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 1741. Communication Fiend

would it exceed int32?
Posted by liuexp 1 Nov 2009 15:35
would it exceed int32?
Re: would it exceed int32?
Posted by Anton Lunyov 1 Nov 2009 15:40
Yes, it can.
for test
10000 9999
1 2 1000000 Licensed
2 3 1000000 Licensed
3 4 1000000 Licensed
...
9999 10000 1000000 Licensed
answer is 9999000000