|
|
back to boardIs it the same problem if I placed containers in linear massive? Edited by author 17.07.2006 18:02 Give me some tests Please! I had WA #21 too. But there was no something special, just stupid mistake. I stored the input not in Matrix, but in Array. And I filled it wrong; My wrong way: (in pascal) for i := 1 to n do for j := 1 to m do read(Mat[(i-1)*n + j]); My correct way: for i := 1 to n do for j := 1 to m do read(Mat[(i-1)*m + j]); May be it will help you. And here is test which helped me find my mistake: 2 3 6 1 1 1 1 1 1 Answer: 2. Thank you very much, i did same mistake :D |
|
|