Input of problem 2365 is wrong

Do you want to discuss about these problems? Go now!
Users are shared (no need to re-register).

Moderator: Board moderators

Post Reply
PdR
New poster
Posts: 24
Joined: Mon Dec 30, 2002 4:27 am

Input of problem 2365 is wrong

Post by PdR » Tue May 27, 2003 9:17 pm

One test in input is wrong it has 20*21 integers insteed of 20*20

also they seem to be all zeros
ie:
3
-1 1 3 2 ...
0 1 ... 0 1 0 ... 1 3 2 ... 3 1 2 ... 3
. .
. .
. .
2 2 1 ... 2 3 0 ... 2 3 1 ... 0 ... 2 2
0 0 0 0 0 0 0 0 ... 0 0 0 0 0 ... 0 0
My workaround:
[c]
void input (void)
{
int i, j;

scanf ("%d", &t);

if (t == 0)
{
input ();
return;
}

readdna ();
readboard ();
}
[/c]

Post Reply

Return to “ACM ICPC Archive Board”