Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr


        

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, the main problem you meet now is Time Exceeded. And the exit code of your program is -9, which should be 0.

Please double check your code to solve this problem and try again.

Your Answer

3
2
4
-200
2
-200
3
2
4
6752753
-200
-200
3
2
4
5984349
6752753
-200
3
2
4
5984349
6752753
-200
3
2
4
5984349
6752753
-200
3
2
4
5984349
6752753
-200
3
2
4
5984349
171074
6752753
-200
6752753
-200
3
2
4
5984349
171074
6752753
-200
3
2
4
5984349
171074
6752753
5469618
-200
5469618
6752753
-200
3
2
4
5984349
171074
563069
6011960
3712266
3870900
1871409
6752753
7016659
5469618
-200
3
2
4
5984349
171074
563069
6011960
3712266
3870900
1871409
6752753
7016659
5469618
6752753
-200
3
2
4
5984349
171074
563069
6011960
3712266
3870900
1871409
6752753
7016659
5469618
-200
3
2
4
5984349
171074
563069
6011960
3712266
3870900
1871409
6752753
7016659
5469618
6752753
-200
-200
3
2
4
5984349
171074
6744277
563069
6011960
3712266
3870900
1960681
1871409
6752753
7016659
535948
5469618
5469618
-200
3
2
4
5984349
171074
6744277
563069
6011960
3712266
3870900
1960681
1871409
6752753
7016659
535948
5469618
-200
3
2
4
5984349
171074
6744277
563069
6011960
3712266
3870900
1960681
1871409
6752753
7016659
535948
5469618
6752753
-200
-

JOJ Answer

3
2
4
-200
3
-200
3
2
4
6752753
-200
-200
3
2
4
5984349
6752753
-200
3
2
4
5984349
6752753
-200
3
2
4
5984349
6752753
-200
3
2
4
5984349
6752753
-200
3
2
4
5984349
171074
6752753
-200
6752753
-200
3
2
4
5984349
171074
6752753
-200
3
2
4
5984349
171074
6752753
5469618
-200
563069
6752753
-200
3
2
4
5984349
171074
563069
6011960
3712266
3870900
1871409
6752753
7016659
5469618
-200
3
2
4
5984349
171074
563069
6011960
3712266
3870900
1871409
6752753
7016659
5469618
6752753
-200
3
2
4
5984349
171074
563069
6011960
3712266
3870900
1871409
6752753
7016659
5469618
-200
3
2
4
5984349
171074
563069
6011960
3712266
3870900
1871409
6752753
7016659
5469618
6744277
-200
-200
3
2
4
5984349
171074
6744277
563069
6011960
3712266
3870900
1960681
1871409
6752753
7016659
535948
5469618
563069
-200
3
2
4
5984349
171074
6744277
563069
6011960
3712266
3870900
1960681
1871409
6752753
7016659
535948
5469618
-200
3
2
4
5984349
171074
6744277
563069
6011960
3712266
3870900
1960681
1871409
6752753
7016659
535948
5469618
6744277
-200
-20