Back to General discussions forum
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?
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.
You are right! I made a huge mistake! Thank you for your feedback!!