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

10285
INF
INF
9871
INF
INF
8772
INF
INF
12788
INF
INF
9119
INF
INF
14555
INF
INF
15298
INF
INF
13830
INF
INF
13056
INF
INF
11993
INF
INF
7469
INF
INF
7031
INF
INF
11033
INF
INF
16168
INF
INF
11604
INF
INF
9818
INF
INF
9424
INF
INF
12899
INF
INF
14106
INF
INF
10865
INF
INF
10437
INF
INF
10497
INF
INF
6864
INF
INF
9414
INF
INF
INF
INF
INF
11299
INF
INF
8523
INF
INF
7845
INF
INF
12552
INF
INF
INF
INF
INF
8695
INF
INF
10394
INF
INF
10474
INF
INF
12318
INF
INF
12361
INF
INF
10363
INF
INF
10083
INF
INF
7096
INF
INF
15931
INF
INF
13361
INF
INF
8472
INF
INF
7986
INF
INF
12688
INF
INF
7974
INF
INF
14021
INF
INF
13209
INF
INF
10688
INF
INF
14721
INF
INF
13762
INF
INF
11038
INF
INF
8480
INF
INF
10780
INF
INF
7661
INF
INF
15044
INF
INF
14537
INF
INF
15584
INF
INF
9931
INF
INF
13418
INF
INF
14189
INF
INF
INF
INF
INF
16016
INF
INF
14809
INF
INF
9412
INF
INF
7689
INF
INF
8298
INF
INF
7286
INF
INF
8363
INF
INF
10918
INF
INF
INF
INF
INF
7134
INF
INF
12815
INF
INF
10550
INF
INF
8193
INF
INF
8211
INF
INF
10210
INF
INF
12369
INF

JOJ Answer

316
81
549
252
348
220
322
124
230
396
229
345
231
204
416
264
545
116
341
366
444
300
229
244
315
194
650
245
139
541
223
402
182
244
253
211
342
237