|
|
вернуться в форумWA# 21 Is it the same problem if I placed containers in linear massive? Edited by author 17.07.2006 18:02 Re: WA# 21 Give me some tests Please! Re: WA# 21 Послано Loky 20 сен 2006 22:12 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. Re: WA# 21 Thank you very much, i did same mistake :D |
|
|