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 1401. Gamers

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.
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. :-|
SuperLight No subject [2] // Problem 1401. Gamers 15 Apr 2006 16:33
I also had wa#4 before changing readln(x,y) to readln(y,x)!
but now i have AC
VasilySlesarev Re: No subject [1] // Problem 1401. Gamers 19 Jun 2009 13:23
The same
Sandro (USU) The statement is fixed (+) // Problem 1401. Gamers 19 Jun 2009 19:51
If some inaccurate statement need to be fixed, it's better to write about it to timus_support@acm.timus.ru instead of webboard.
I hadn't change x and y,
but I still got AC.
Maybe something wrong with your program.
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.
Yep, and both LINE and ROW usually refer to something horizontal (along with Y coordinate) :) That should be rows/columns for clearer problem statement.