QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#152279#6210. 灯塔legenc6y100 ✓147ms12380kbC++141018b2023-08-27 22:45:242023-08-27 22:45:25

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 10
Accepted
time: 2ms
memory: 7976kb

input:

1000
774
900
292
144
276
899
98
200
804
418
737
946
239
694
780
516
295
24
552
338
69
467
719
721
725
986
447
310
405
679
896
445
905
5
538
738
642
23
989
940
762
271
902
596
378
952
113
27
917
380
10
745
26
639
226
791
717
194
288
614
326
705
189
125
641
165
519
751
885
730
96
890
965
66
604
33
458...

output:

248
122
730
878
746
123
924
822
218
604
285
76
783
328
242
506
727
998
470
684
953
555
303
301
297
36
575
712
617
343
126
577
117
1017
484
284
380
999
33
82
260
751
120
426
644
70
909
995
105
642
1012
277
996
383
796
231
305
828
734
407
695
316
832
896
380
856
502
270
136
291
925
131
56
955
417
988
...

result:

ok 1000 numbers

Test #2:

score: 10
Accepted
time: 1ms
memory: 5932kb

input:

1000
4727
5818
9957
5644
6473
8746
9755
98
4786
3985
5384
9658
1802
8678
4132
3708
3741
9698
2223
3650
7466
2575
2776
8906
8980
4752
295
3191
52
8537
7557
9759
2932
1458
9406
6798
69
7337
2166
2482
7563
3869
321
4270
2236
4899
2217
6279
2516
8565
2972
3626
1732
1582
1435
6900
814
9151
6364
1527
8827...

output:

5288
4197
58
4371
3542
1269
260
9917
5229
6030
4631
356
8212
1336
5882
6306
6273
316
7791
6364
2548
7439
7238
1108
1034
5262
9719
6823
9962
1477
2457
255
7082
8556
608
3216
9945
2677
7848
7532
2451
6145
9693
5744
7778
5115
7797
3735
7498
1449
7042
6388
8282
8432
8579
3114
9199
862
3649
8486
1186
529...

result:

ok 1000 numbers

Test #3:

score: 10
Accepted
time: 0ms
memory: 5864kb

input:

1000
100007378
100005639
100012972
100006042
100017218
100008984
100018917
100018441
100006454
100017203
100009945
100003730
100018822
100012299
100007617
100000605
100011980
100006138
100009756
100019349
100013705
100016795
100011434
100015623
100003777
100014513
100011090
100013351
100008090
10001...

output:

12602
14341
7008
13938
2761
10995
1062
1538
13525
2776
10034
16249
1157
7680
12362
19374
7999
13841
10223
630
6274
3184
8545
4356
16202
5466
8889
6628
11889
5387
19725
13855
6794
18588
17297
5436
10310
2400
10547
14172
15250
17125
9340
7036
6997
11576
16501
7605
16533
6047
5278
7581
16880
10557
1131...

result:

ok 1000 numbers

Test #4:

score: 10
Accepted
time: 11ms
memory: 10080kb

input:

20000
869494
482122
878090
411508
345663
186199
799648
794437
626792
388654
677685
852921
857849
749139
578739
484295
559901
584400
909735
146731
442597
454256
791237
631201
440387
28932
141920
770030
775952
663969
950387
652567
247494
715167
541083
777384
346438
909596
482394
195183
988371
264119
7...

output:

130610
517982
122014
588596
654441
813905
200456
205667
373312
611450
322419
147183
142255
250965
421365
515809
440203
415704
90369
853373
557507
545848
208867
368903
559717
971172
858184
230074
224152
336135
49717
347537
752610
284937
459021
222720
653666
90508
517710
804921
11733
735985
925331
510...

result:

ok 20000 numbers

Test #5:

score: 10
Accepted
time: 15ms
memory: 10472kb

input:

20000
10007358
10004323
10008990
10005894
10003569
10008831
10007080
10000020
10004114
10004090
10007615
10002634
10005655
10006008
10007020
10007632
10003133
10002658
10007309
10009152
10009604
10006421
10006243
10009208
10004349
10006912
10002196
10008875
10005298
10006026
10008218
10002207
100089...

output:

2767
5802
1135
4231
6556
1294
3045
10105
6011
6035
2510
7491
4470
4117
3105
2493
6992
7467
2816
973
521
3704
3882
917
5776
3213
7929
1250
4827
4099
1907
7918
1167
9331
6379
8989
2572
8303
6479
6529
3183
1016
4921
1192
9201
4233
9505
5162
2469
185
9383
8014
700
4555
9180
964
7986
1598
9976
8586
7088
...

result:

ok 20000 numbers

Test #6:

score: 10
Accepted
time: 8ms
memory: 10456kb

input:

20000
10066178
10017978
10058434
10055882
10039432
10017005
10056201
10070813
10087624
10063860
10078730
10013662
10057034
10057874
10052590
10047523
10025594
10047506
10036451
10084391
10017062
10043296
10031002
10019144
10086436
10063371
10070345
10034377
10075945
10001386
10021290
10045201
100351...

output:

33957
82157
41701
44253
60703
83130
43934
29322
12511
36275
21405
86473
43101
42261
47545
52612
74541
52629
63684
15744
83073
56839
69133
80991
13699
36764
29790
65758
24190
98749
78845
54934
65012
75539
72685
36124
28743
45633
92044
259
2899
27782
71796
31096
99344
60670
18781
7907
15986
33440
3090...

result:

ok 20000 numbers

Test #7:

score: 10
Accepted
time: 142ms
memory: 11036kb

input:

100000
30817458
81811152
82315670
3270048
42119491
79448801
86870802
23708113
31180619
44025868
962197
76824484
77736113
50249075
55653736
58783408
83816898
2958017
19414649
17701968
97787309
74776737
15849177
15589667
94868998
24431941
76391999
19860618
38200388
86557152
57903491
59647278
90189379
...

output:

69182269
18188575
17684057
96729679
57880236
20550926
13128925
76291614
68819108
55973859
99037530
23175243
22263614
49750652
44345990
41216318
16182828
97041709
80585077
82297758
2212417
25222989
84150549
84410059
5130728
75567785
23607727
80139108
61799338
13442574
42096235
40352448
9810347
409414...

result:

ok 100000 numbers

Test #8:

score: 10
Accepted
time: 147ms
memory: 12380kb

input:

100000
10188684
10789729
10067822
10951746
10984073
10964293
10801163
10136605
10208719
10626650
10250320
10587331
10718564
10322918
10980199
10133292
10480245
10314608
10917660
10542737
10609040
10545990
10118049
10393138
10081323
10744825
10521997
10648721
10347164
10993180
10292696
10588981
10842...

output:

811567
210522
932429
48505
16178
35958
199088
863646
791532
373601
749931
412920
281687
677333
20052
866959
520006
685643
82591
457514
391211
454261
882202
607113
918928
255426
478254
351530
653087
7071
707555
411270
157277
896178
594587
10387
534440
549088
734548
828098
310655
764294
964904
759233
...

result:

ok 100000 numbers

Test #9:

score: 10
Accepted
time: 143ms
memory: 10812kb

input:

100000
10777832
10674695
11058300
10753099
11417338
11975461
11771619
10230841
11029925
10732429
10492178
10478491
10683281
11938596
11954963
11114312
11690697
11749844
11635605
10804827
11165374
11845512
11676775
11880882
10154946
11459633
11386881
11656944
10897549
11373764
11933691
11130364
10527...

output:

1222411
1325548
941943
1247144
582905
24782
228624
1769402
970318
1267814
1508065
1521752
1316962
61647
45280
885931
309546
250399
364638
1195416
834869
154731
323468
119361
1845297
540610
613362
343299
1102694
626479
66551
869878
1473078
1772088
98783
1092081
1452326
1325156
1543238
810246
1369806
...

result:

ok 100000 numbers

Test #10:

score: 10
Accepted
time: 142ms
memory: 11256kb

input:

100000
11276806
10136257
11225024
10226621
12035669
10447937
10579032
12904293
12316173
10575396
11700058
11870634
12935736
12590895
11936814
11103556
10129024
10668587
11400868
12160684
12159861
11441061
11733099
10151778
12398091
11961197
10893403
12214056
12149785
10670104
10756012
12961092
11239...

output:

1723324
2863873
1775106
2773509
964461
2552193
2421098
95837
683957
2424734
1300072
1129496
64394
409235
1063316
1896574
2871106
2331543
1599262
839446
840269
1559069
1267031
2848352
602039
1038933
2106727
786074
850345
2330026
2244118
39038
1760871
1648387
2591749
1241856
938705
2266885
1908212
341...

result:

ok 100000 numbers