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 2003. Simple Magic

please help with WA10
Posted by ZH 9 May 2014 19:05
Re: please help with WA10
Posted by Marginean Ciprian 4 Sep 2014 15:55
Try
Input
3
3999986
5999979
9999965
Output
infinity

Input
2
5999979
9999965
Output
2

Input
1
9999965
Output
1

Input
1
1
Output
0
Re: please help with WA10
Posted by SButterfly [Samara SAU] 3 Jan 2015 14:34
Your tests are incorrect, cause 3 ≤ n ≤ 10 000