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

Xysia WA #3 [6] // Problem 1401. Gamers 4 Apr 2008 14:00
OK, I had a mistake in zeroing the matrix at the beginning setup.
Now I have AC.

Edited by author 23.02.2009 21:24
apostol_vlz Re: WA #3 [5] // Problem 1401. Gamers 11 Apr 2008 05:15
test:
3
4 5
Xysia Re: WA #3 [4] // Problem 1401. Gamers 11 Apr 2008 21:38
Tested for input (on my computer):
3
4 5
this program gave me result:

3 3 4 4 8 8 9 9
3 2 2 4 8 7 7 9
5 2 6 6 10 10 7 11
5 5 6 1 1 10 11 11
13 13 14 0 1 18 19 19
13 12 14 14 18 18 17 19
15 12 12 16 20 17 17 21
15 15 16 16 20 20 21 21

I don't see anything wrong here. Maybe I haven't fully and correctly understood the problem?

Edited by author 11.04.2008 21:42
simon Re: WA #3 [3] // Problem 1401. Gamers 19 Apr 2008 16:08
your num 0 isn't on the correct place
Xysia Re: WA #3 [2] // Problem 1401. Gamers 23 Apr 2008 14:43
So you mean that I have switched rows and columns?

Well, now I have changed the scanf line from
(...) &a,&b) to
(...) &b,&a)
and now I have the following result for this test:

3 3 4 4 8 8 9 9
3 2 2 4 8 7 7 9
5 2 6 6 10 10 7 11
5 5 6 1 0 10 11 11
13 13 14 1 1 18 19 19
13 12 14 14 18 18 17 19
15 12 12 16 20 17 17 21
15 15 16 16 20 20 21 21

But I still have WA #3 :(
Also, look at the other posts at the forum about this problem and you'll read that people who have exchanged rows with columns have WA #4. I have WA earlier so there must be
something else wrong with my program... :(
Xysia Re: WA #3 [1] // Problem 1401. Gamers 10 Jul 2008 15:01
So, could somebody give the correct solution for test:

3
4 5

? Maybe I haven't correctly understood this problem?
Denis Koshman Re: WA #3 // Problem 1401. Gamers 24 Jul 2008 17:48
3 3 4 4 8 8 9 9
3 2 2 4 8 7 7 9
5 2 6 6 10 10 7 11
5 5 6 1 0 10 11 11
13 13 14 1 1 18 19 19
13 12 14 14 18 18 17 19
15 12 12 16 20 17 17 21
15 15 16 16 20 20 21 21

x is row, y is column, I was caught by that (but AFAIK it wasn't WA3)