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 1276. Train

To Admins
Posted by Fcdkbear[VNTU] 7 Feb 2010 21:39
To solve this problem we must use 64-bit variable. When i wrote in my code "printf("%lld\n",res)" i've got WA on test number 7. But when i wrote "cout<<res<<endl",i've got AC. My friend had the same problem. So what does it mean?
Re: To Admins
Posted by Fcdkbear[VNTU] 7 Feb 2010 21:49
Sorry, i must be more careful and write "printf("%I64d\n",res)".