Problem 75 - Yacht or Dice Poker

Back to General discussions forum

Gelcsi     2015-10-22 16:04:25
User avatar

Hello everyone!

I wanted to do the Problem 75 - Yacht or Dice Poker, but I found a problem during testing my code: the server of CodeAbbey gives me an answer, which is wrong comparing to the test datas, while the console application on my computer gives a correct answer.

What should I do? Should I try to solve the task in a different way?

Quandray     2015-10-22 17:20:18
User avatar

Hi Gelcsi,

I'm not a C# person, but the code I can see of yours contains

int h = int.Parse(Console.ReadLine());
int[] szamok = { 0, 0, 0, 0, 0, 0 };
for (int i = 0; i < h; i++)

so you zero szamok only once. I think you need to zero it for each test case.

Gelcsi     2015-10-22 17:26:24
User avatar

You are right! I made a huge mistake! Thank you for your feedback!!

Please login and solve 5 problems to be able to post at forum