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 1846. GCD 2010

D4nick Some tests [1] // Problem 1846. GCD 2010 2 Jun 2022 17:57
10
+ 24
+ 27
+ 9
+ 24
+ 12
- 24
- 24
- 12
- 27
- 9
24
3
3
3
3
3
3
9
9
1

5
+ 8
+ 6
+ 8
- 8
- 8
8
2
2
2
6


9
+ 10
+ 10
+ 10
- 10
- 10
+ 5
- 10
- 5
+ 123
10
10
10
10
10
5
5
1
123
Aleksei Chernenkov Re: Some tests // Problem 1846. GCD 2010 2 Dec 2022 10:00
The following test helped me to catch out-of-index run time exception in my solution:

IN:
18
+ 1
- 1
+ 1
- 1
+ 1
- 1
+ 1
- 1
+ 1
- 1
+ 1
- 1
+ 1
- 1
+ 1
- 1
+ 32
- 32

OUT:
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
32
1