There is some inaccuracy in the condition.In condition is writed:'The second line consist two integers x and y'. I write readln(x,y) and got WA#4. When I changed it to readln(y,x), I got AC.
Re: There is some inaccuracy in the condition.In condition is writed:'The second line consist two integers x and y'. I write readln(x,y) and got WA#4. When I changed it to readln(y,x), I got AC.
Are you sure?
Probably you write
for i:=1 to x
for j:=1 to y
In this case you should switch x and y.
Re: There is some inaccuracy in the condition.In condition is writed:'The second line consist two integers x and y'. I write readln(x,y) and got WA#4. When I changed it to readln(y,x), I got AC.
I had WA#4 for 3 times, than I replaced
scanf("%d %d %d", &n, &x, &y);
with
scanf("%d %d %d", &n, &y, &x);
and got AC! But I'm sure that there is a mistake in tests cuz I think that the first version of my program was right. :-|
No subject
I also had wa#4 before changing readln(x,y) to readln(y,x)!
but now i have AC
Re: There is some inaccuracy in the condition.In condition is writed:'The second line consist two integers x and y'. I write readln(x,y) and got WA#4. When I changed it to readln(y,x), I got AC.
I hadn't change x and y,
but I still got AC.
Maybe something wrong with your program.
Re: There is some inaccuracy in the condition.In condition is writed:'The second line consist two integers x and y'. I write readln(x,y) and got WA#4. When I changed it to readln(y,x), I got AC.
Read problem statement more careful:
The second line consists of two integers x and y — those are the coordinates of the deleted cell (1 <= x, y <= 2n). X is a number of a LINE and Y — a number of a ROW.
Re: There is some inaccuracy in the condition.In condition is writed:'The second line consist two integers x and y'. I write readln(x,y) and got WA#4. When I changed it to readln(y,x), I got AC.
Yep, and both LINE and ROW usually refer to something horizontal (along with Y coordinate) :) That should be rows/columns for clearer problem statement.
The statement is fixed (+)
If some inaccurate statement need to be fixed, it's better to write about it to timus_support@acm.timus.ru instead of webboard.