|
|
back to boardAre 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. :-| I also had wa#4 before changing readln(x,y) to readln(y,x)! but now i have AC The same 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. |
|
|