|
|
вернуться в форум[code deleted] Edited by author 18.02.2008 18:55 >n%2==0?r=n/k:r=n/k+1;/*<I think I wrong there.Is it true?*/ You are right there. Your mistake is in printing cycles, I think. You ae in right way, but it is easier and more safely to scan numbers in matrix Thank you.I'll think that way.Please,can you give me test,which on my program give WA.Thank you!!! try test 8 3 1 2 30 40 50 600 700 65 right answer is: 1 40 700 2 50 65 30 600 Thank you very much,now I'll try to find bug!!! Does such tests exist? 7 6 1 2 3 4 5 6 7 and 5 3 1 2 30 40 50 600 700 and if exist,please,can you write answers for this tests. [code deleted] Thank You very much!!! Edited by author 17.02.2008 21:45 Edited by author 18.02.2008 18:54 Edited by author 18.02.2008 02:49 I didn't see '2' in your code n%2==0?r=n/k:r=n/k+1 =>n%k==0?r=n/k:r=n/k+1 these tests are wrong Thank you very much!!!!I get AC!!! Can you send me your AC or previuos WA code... and what did you fix there? my e-mail: liwang@mail.ru |
|
|