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

4
4
3
3
2
4
3
2
4
-200
3
2
4
-200
-200
3
2
4
9119328
6062281
8835322
4987389
-200
3
2
4
9119328
6062281
8835322
4987389
-200
-200
3
2
4
9119328
6062281
8835322
5434597
4987389
4987389
-200
3
2
4
9119328
6062281
8835322
5434597
4987389
6062281
-200
3
2
4
9119328
6062281
8835322
5434597
4987389
-200
-200
8703452
-200
3
2
4
9119328
6894609
6062281
3368718
1342310
5434597
4987389
8703452
-200
3
2
4
9119328
6894609
6062281
3368718
1342310
5434597
4987389
8703452
-200
3
2
4
9119328
6894609
6062281
3368718
1342310
5434597
4987389
8703452
-200
3
2
4
9119328
6894609
8119592
6062281
3368718
1342310
5434597
4987389
8703452
4987389
-200
-200
5721613
-200
-200
-200
5721613
-200
3
2
4
9119328
6894609
1065448
8119592
6062281
3368718
1342310
5434597
4987389
351257
8703452
5721613
-200
3
2
4
9119328
6894609
1065448
8119592
6062281
3368718
1342310
5434597
4987389
351257
8703452
5721613
-200
5721613
-200
3
2
4
9119328
7600790
6894609
1065448
8119592
6062281
3368718
1342310
5434597
4987389
351257
8703452
5721613
5721613
5721613

JOJ Answer

4
4
3
3
2
4
3
2
4
-200
3
2
4
-200
-200
3
2
4
9119328
6062281
8835322
4987389
-200
3
2
4
9119328
6062281
8835322
4987389
-200
-200
3
2
4
9119328
6062281
8835322
5434597
4987389
5434597
-200
3
2
4
9119328
6062281
8835322
5434597
4987389
5434597
-200
3
2
4
9119328
6062281
8835322
5434597
4987389
-200
-200
8703452
-200
3
2
4
9119328
6894609
6062281
3368718
1342310
5434597
4987389
8703452
-200
3
2
4
9119328
6894609
6062281
3368718
1342310
5434597
4987389
8703452
-200
3
2
4
9119328
6894609
6062281
3368718
1342310
5434597
4987389
8703452
-200
3
2
4
9119328
6894609
8119592
6062281
3368718
1342310
5434597
4987389
8703452
3368718
-200
-200
3368718
-200
-200
-200
3368718
-200
3
2
4
9119328
6894609
1065448
8119592
6062281
3368718
1342310
5434597
4987389
351257
8703452
5721613
-200
3
2
4
9119328
6894609
1065448
8119592
6062281
3368718
1342310
5434597
4987389
351257
8703452
5721613
-200
3368718
-200
3
2
4
9119328
7600790
6894609
1065448
8119592
6062281
3368718
1342310
5434597
4987389
351257
8703452
5721613
3368718
5721613