|
|
вернуться в форумПоказать все сообщения Спрятать все сообщения[code deleted] Edited by moderator 24.11.2019 12:58 I try to perfect your program. It's really a hard work. I got 2 CE and 4WA but finally I got AC. Your problem have 2 errors. The First One: You should add this code after you read in N; if n=1 then begin writeln(0);halt(1);end; So your program can give the right answer of the input 1 1 And then You must use "<=" instead of "<" in line 9 Then your program can give the right answer of input 2 3 I use this way and got a AC. Good luck next time . And will you give me a hard work like this one???? :) [code deleted] Edited by moderator 24.11.2019 12:57 Oh my god.......... I'll give you a program. You can use FC to find your mistake:) [code deleted] Edited by moderator 24.11.2019 12:57 [code deleted] Edited by moderator 24.11.2019 12:55 Wait for a moment I'll check it Sorry I make a mistake if s<=n then break; Should be change into If s>=n then break; Sorry again
By the way Do you have E-Mail?? Give me and We'll have a easy way to say something. Oh yes I am david. Tabo. 23 май 2002 09:54 my emile is tabo2001@posta.ge Is your English really so perfect or you just play the fool ;) [code deleted] It's my program. Edited by moderator 24.11.2019 12:53 |
|
|