|
|
вернуться в форумWA #3 Послано Xysia 4 апр 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 Re: WA #3 Послано Xysia 11 апр 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 Re: WA #3 Послано simon 19 апр 2008 16:08 your num 0 isn't on the correct place Re: WA #3 Послано Xysia 23 апр 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... :( Re: WA #3 Послано Xysia 10 июл 2008 15:01 So, could somebody give the correct solution for test: 3 4 5 ? Maybe I haven't correctly understood this problem? Re: WA #3 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) |
|
|