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

Show all messages Hide all messages



Edited by author 16.03.2007 22:42
Pay attention on this line

a[i]=a[i-1]+a[i/2];
What mistake can be in this line?THANK!
overflow
I try to correct it!If I cant,please, say how i must correct!THANK!!!
I cant correct!IF YOU can,help me!!!THANK!!!!!

Edited by author 16.03.2007 19:22
a[i]=(a[i-1]+a[i/2])%p;
THANK for hint!


Edited by author 16.03.2007 22:21
NOW I HAVE MLE on 24 test!
Use int instead of __int64 and you'll get AC!
WOW!!!NOW I GOT AC!!!THANK to KIRILL(ArcSTU) & Romko [Lviv NU]!!!!

Edited by author 16.03.2007 22:41
[code deleted]

Edited by author 18.06.2007 16:58
[code delete]

Edited by author 30.06.2007 15:04