|
|
вернуться в форумПоказать все сообщения Спрятать все сообщенияI surrender. What can be wrong with this code? [code deleted] Sorry for posting code. Please help! Edited by author 05.11.2005 20:58 Edited by moderator 22.02.2006 22:12 try this: abc ab ac def The answer is: 6 Other test (my program failed it): 2 3 4 The answer is: 0 One more test: a b c de f g hi The answer is: 5 Thank you for tests. My program outputs '6' in the last one and right answers in others. I fixed it, but it still WA #12 :-((( I can't understand what test can it be. What does the problem mean.How to know the answer? try this: abc ab ac def The answer is: 6 Other test (my program failed it): 2 3 4 The answer is: 0 One more test: a b c de f g hi The answer is: 5 |
|
|