|  | 
|  | 
| вернуться в форум | TL?? The time limit is 1 sec and my program works for 3000 for about 0.5 seconds.Why I got TL?Here's my solution:
 
 [code deleted]
 
 Edited by moderator 02.02.2020 19:25
Re: TL?? Послано Harut  8 мар 2012 13:35your program works endlessly when n is 1;in other cases your program is right
 and also in case when n is 2 your program outputs ' symbol
 hope it helps!!!
 
 Edited by author 08.03.2012 13:36
 
 Edited by author 08.03.2012 13:37
 | 
 | 
|