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

34240866
78143630
33040475
408
37504391638239
37504378791221
374
54312038
539
185042984
57
17409205
878
980
37504373930764
37504371064659
143029438
45760998
842
37504337100561
83592053
37504601234341
665
159775758
920
37504484556985
37504566335973
94454266
496
37504534996039
168555080
28239596
12992755
559
37504600689291
139
37504380569941
24
37504329338979
172072611
30902458
87367459
19518485
72530183
9683621
909
366
124738918
185664978
497
117835465
158506843
140833095
37504494542595
37504552841400
46217832
917
37504376121884
37504509081533
91
61895333
616
37504505229211
550
1815813
70362920
142496045
122442320
37504335179697
94
143833947
729
37504469397937
223
37504389966630
143563
98743320
472
155

JOJ Answer

1034231099
1078133863
1033030708
408
1253647671
1240800653
374
1054302271
539
1185033217
57
1017399438
878
980
1235940196
1233074091
1143019671
1045751231
842
1199109993
1083582286
1463243773
665
1159765991
920
1346566417
1428345405
1094444499
496
1397005471
1168545313
1028229829
1012982988
559
1462698723
139
1242579373
24
1191348411
1172062844
1030892691
1087357692
1019508718
1072520416
1009673854
909
366
1124729151
1185655211
497
1117825698
1158497076
1140823328
1356552027
1414850832
1046208065
917
1238131316
1371090965
91
1061885566
616
1367238643
550
1001806046
1070353153
1142486278
1122432553
1197189129
94
1143824180
729
1331407369
223
1251976062
1000133796
1098733553
472
155
842
1211945286
1140364102
1471559122
1249410847
503
1483790767
1371059841
1458633981
558
397
455
1166876679
1158218764
1312249357
1200572021
75
1221217582
1271486676
763
1141796194
591
1161799709
807
1078389501
1072730316
1240883794
445
1190065437
1431259525
1249758404
1375482936
475
1192124305
1044249458
1026157916
851
1342578595
1