ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1537. Ents

WhY WA#16???????????????!!!!!!!! I think it true solution
Posted by CHIDEMYAN SERGEY 15 Mar 2007 21:57


Edited by author 16.03.2007 22:42
Re: WhY WA#16???????????????!!!!!!!! I think it true solution
Posted by KIRILL(ArcSTU) 16 Mar 2007 01:58
Pay attention on this line

a[i]=a[i-1]+a[i/2];
Re: WhY WA#16???????????????!!!!!!!! I think it true solution
Posted by CHIDEMYAN SERGEY 16 Mar 2007 13:03
What mistake can be in this line?THANK!
Re: WhY WA#16???????????????!!!!!!!! I think it true solution
Posted by KIRILL(ArcSTU) 16 Mar 2007 13:50
overflow
Re: WhY WA#16???????????????!!!!!!!! I think it true solution
Posted by CHIDEMYAN SERGEY 16 Mar 2007 19:00
I try to correct it!If I cant,please, say how i must correct!THANK!!!
Re: WhY WA#16???????????????!!!!!!!! I think it true solution
Posted by CHIDEMYAN SERGEY 16 Mar 2007 19:21
I cant correct!IF YOU can,help me!!!THANK!!!!!

Edited by author 16.03.2007 19:22
Re: WhY WA#16???????????????!!!!!!!! I think it true solution
Posted by KIRILL(ArcSTU) 16 Mar 2007 20:44
a[i]=(a[i-1]+a[i/2])%p;
Re: WhY WA#16???????????????!!!!!!!! I think it true solution
Posted by CHIDEMYAN SERGEY 16 Mar 2007 22:04
THANK for hint!


Edited by author 16.03.2007 22:21
Re: WhY WA#16???????????????!!!!!!!! I think it true solution
Posted by CHIDEMYAN SERGEY 16 Mar 2007 22:22
NOW I HAVE MLE on 24 test!
Re: WhY WA#16???????????????!!!!!!!! I think it true solution
Posted by Romko [Lviv NU] 16 Mar 2007 22:23
Use int instead of __int64 and you'll get AC!
Re: WhY WA#16???????????????!!!!!!!! I think it true solution
Posted by CHIDEMYAN SERGEY 16 Mar 2007 22:39
WOW!!!NOW I GOT AC!!!THANK to KIRILL(ArcSTU) & Romko [Lviv NU]!!!!

Edited by author 16.03.2007 22:41
Re: WhY WA#16???????????????!!!!!!!! I think it true solution
Posted by CHIDEMYAN SERGEY 18 Jun 2007 13:55
[code deleted]

Edited by author 18.06.2007 16:58
Re: WhY WA#16???????????????!!!!!!!! I think it true solution
Posted by CHIDEMYAN SERGEY 30 Jun 2007 15:00
[code delete]

Edited by author 30.06.2007 15:04