ENG
RUS
Timus 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
ZH
please help with WA10
[2] // Problem
2003. Simple Magic
9 May 2014 19:05
Marginean Ciprian
Re: please help with WA10
[1] // Problem
2003. Simple Magic
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
SButterfly [Samara SAU]
Re: please help with WA10
// Problem
2003. Simple Magic
3 Jan 2015 14:34
Your tests are incorrect, cause 3 ≤ n ≤ 10 000
© 2000–2026
Timus Online Judge Team
. All rights reserved.