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, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.

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

Your Answer

4
4
3
3
2
4
3
2
3
-200
3
2
4
-200
-200
3
2
-200
3
-200
3
2
-200
3
-200
-200
3
2
-200
3
5434597
-200
3
2
-200
3
5434597
-200
3
2
-200
3
-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
-200
3
3368718
-200
-200
3368718
-200
-200
-200
3368718
-200
3
2
-200
3
-200
3
2
-200
3
-200
3368718
-200
3
2
4
9119328
7600790
6894609
1065448
8119592
6062281
3368718
1342310
5434597
4987389
351257
8703452
5721613
3368718
5721613
-200
5434597
5721613
-200
-200
3
2
-200
3
5434597
5434597
3368718
3368718
-200
3
2
4
9119328
7600790
6894609
1065448
8119592
6062281
4658694
3368718
1342310
2001786
5434597
4205002
4987389
351257
8703452
5721613
-200
3
2
-200
3
5434597
3368718
-200
-200
3
2
4
9119328
7600790
6894609
1065448
8119592
6062281
4658694
3368718
1342310
2001786
6227593
8683722
5434597
4205002
4987389
351257
7397083
8703452
603

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