ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1029. Ministry

Admins, 12 test is INCORRECT (+)
Posted by qwerty 21 Jul 2008 17:19
In the description of this problem is written that
"Each official collects a fee for signing a document. The fee is a positive integer not exceeding 10^9."
But in 12 test there is '0'.
I define that by that code and got TL.
for(i = 0; i < m; i++)
for(j = 0; j < n; j++)
{
scanf("%d", &a);
if(a == 0) while(1);
g[i][j] = a;
}

Please, Check tests or Correct description!
Re: Admins, 12 test is INCORRECT (+)
Posted by Chmel_Tolstiy 21 Jul 2008 20:47
I think your code can get TL using wrong algorithm. is without this line you get WA?
Re: Admins, 12 test is INCORRECT (+)
Posted by Sandro (USU) 21 Jul 2008 23:59
Right! 12 test and some others contain zeroes. Problem statement is corrected now.
Re: Admins, 12 test is INCORRECT (+)
Posted by Chmel_Tolstiy 22 Jul 2008 01:07
Oh, ok.