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

-1116905829
503723779
367064506
455573943
1261545130
-928608298
-1552909185
INF
-1180157119
INF
552159094
4247035
825080692
897292818
21722405
793852063
1503652827
-1734586488
508214804
66755408
6124662
INF
-1471845676
INF
-2045556366
-716208546
-1704804924
INF
2062575515
INF
-1644862267
-1993685270
30256067
2015710738
308241
90029057
-815243242
INF
-514209989
-1661418541
-1095280254
-1224676254
-570956935
-1826270611
-2123685696
-599457987
-1893096507
-2011751376
-54283788
INF
243377551
1544938949
1746126381
-413186130
258577539
573581484
-1676191796
INF
-1633102839
-1690209081
121302783
745026
INF
-473350193
591025825
-944733417
733033806
-622671282
7522858
-386257443
-2134194301
1380835346
-1155893645
-1926169637
629240289
5099998
-1030113903
INF
1558084
-2086384737
-527361530
-1053316009
INF
-1057191101
1234644384
INF
-1113909280
757090
-1036166221
-1395664624
INF
-1634482110
-1325840359
-2066984579
-1937223609
587219767
-935854268
INF
-1238216227
INF
5099998
-865353416
289105450
112220
536718
-1762365224

JOJ Answer

-106
-86
-102
-105
1028
864
-84
865
853
982
-12
1431
996
908
1135
-13
-42
1066
897
939
945
-14
-136
877
1060
915
-29
1930
862
2060
-49
918
920
-9
1012
933
-117
899
-56
-119
864
-120
864
964
887
889
-94
-116
-136
956
1701
-51
-24
-27
-8
941
968
-25
-24
-118
936
2049
877
-98
-50
-14
-30
871
997
868
1089
-124
894
-60
944
968
928
888
1001
-11
878
856
-106
-55
940
883
-171
924
-38
-75
1644
-70
1739
-55
852
876
-70
1155
-91
1044
968
955
929
955
1183
1427
958
-33
-65
859
891
-153
-15
927
-73
-44
860
861
940
1048
885
903
1722
-65
904
880
-24
911
958
939
909
945
955
903
-80
906
985
-93
1004
858
-41
-25
968
-43
1095
908
901
942
976
-38
-12
-72
1930
-97
-22
880
901
-111
-103
1045
-56
917
1689
990
-162
-41
922
953
1026
-24
1807
-38
1335
948
997
-91
1059
844
909
941
-15
-114
-118
1029
-81
975
867
855
-48
876
906
-94
1052
-129
969
1727
1065
-43
981
885
-90
-118
1008
-36
937
876
987
1360
-14
896
1020
-89
936
-82
884
928
-68
-64
984
-106
942
-42
953
860
1265
-33
-16
-152
-120
891
-8
930
890
838
1947
854
1052
908
2129
-23
996