QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#92924#6173. 女生散步问题Naitoah100 ✓27ms2140kbC++17435b2023-03-31 08:39:492023-03-31 08:39:53

詳細信息

Test #1:

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

input:

532181
258497
409608
463493
237042
471134
197900
459751
482046
561261
58271
370780
334322
570859
394183
53767
513255
163524
515095
94665
497307
499475
50291
143515
428675
464380
141237
449173
429138
93301
223850
41075
178496
413078
322463
499842
560086
31389
218271
361852
223150
305000
373377
457168...

output:

1457
1014
1278
1359
971
1370
887
1354
1386
1496
480
1215
1154
1509
1253
461
1430
806
1433
613
1408
1411
446
755
1307
1360
749
1338
1308
608
944
403
842
1283
1133
1411
1494
352
932
1201
942
1102
1220
1350
1452
310
1349
1039
1527
1301
1384
1050
1086
1538
1535
395
1089
1240
1280
1321
163
1237
510
1517
...

result:

ok 100 numbers

Test #2:

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

input:

182908
318046
160742
294308
62794
240402
476651
83496
165208
234229
416018
463558
327959
583469
193769
416827
45125
374012
258769
1219
292564
251829
149911
462937
196992
400536
283348
524730
256987
590148
426946
84713
475506
334872
248331
153990
207260
352894
524435
103312
386922
312267
373552
26139...

output:

853
1125
799
1083
499
978
1378
575
810
965
1287
1359
1143
1525
878
1289
422
1221
1015
67
1079
1001
772
1358
885
1263
1062
1446
1011
1534
1304
580
1377
1155
994
782
908
1186
1446
640
1242
1115
1220
1020
540
408
895
950
1510
734
1420
765
1318
928
1110
1411
1296
1448
1275
1370
1484
1532
1034
345
824
10...

result:

ok 800 numbers

Test #3:

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

input:

284641
130581
109194
402845
80494
12519
379013
277931
336814
363141
225969
552739
123679
109350
558725
213615
481052
473310
155556
232481
528929
438963
563602
436543
54737
480079
287188
515943
522486
186855
290895
377512
70954
125205
542546
569894
277163
258035
514941
158784
52027
248301
490680
5261...

output:

1065
720
658
1267
565
221
1229
1052
1158
1203
948
1484
701
659
1492
922
1385
1373
786
962
1452
1323
1499
1319
465
1383
1069
1434
1443
862
1076
1226
530
705
1471
1507
1050
1013
1433
794
454
994
1398
1448
1305
1193
1357
1450
411
1098
1502
76
581
874
1489
1118
1205
1541
1340
1444
1517
1335
1388
910
139...

result:

ok 2700 numbers

Test #4:

score: 10
Accepted
time: 3ms
memory: 2140kb

input:

113490
157708
413937
401993
412692
138004
400154
458650
536593
543969
212205
342994
287791
102393
523375
476093
3966
115866
122577
93861
535196
168532
8847
17561
374995
525509
348191
317274
517955
568649
226539
26699
202363
171783
88123
373388
390403
182239
439855
29042
189976
63656
282048
17237
108...

output:

671
792
1284
1266
1282
740
1263
1352
1463
1473
919
1169
1070
637
1444
1377
123
678
698
610
1461
819
186
263
1222
1447
1178
1124
1437
1506
949
324
897
826
591
1220
1247
851
1324
338
869
502
1060
260
658
1397
1469
1528
1327
274
1400
991
1547
1504
1194
1299
913
1407
1037
1445
915
1126
1237
1311
1539
13...

result:

ok 6400 numbers

Test #5:

score: 10
Accepted
time: 5ms
memory: 2136kb

input:

521050
581815
537324
350851
511510
359544
405605
476768
595483
168797
517675
592785
534120
126550
271737
244893
500398
479550
137186
248433
490606
306543
91014
495757
81780
579169
474052
129660
223574
332189
194430
385793
551511
213402
579254
576024
295569
168003
392169
349299
453061
344160
418594
3...

output:

1441
1523
1464
1182
1428
1197
1271
1378
1541
819
1436
1537
1459
709
1040
987
1412
1382
738
994
1398
1105
601
1406
569
1520
1375
718
943
1150
879
1240
1483
921
1520
1515
1085
817
1250
1180
1344
1171
1291
1228
560
379
1037
1034
941
1017
899
771
661
580
676
1136
828
859
1279
317
1042
1336
1470
1316
685...

result:

ok 12500 numbers

Test #6:

score: 10
Accepted
time: 7ms
memory: 2084kb

input:

50000005
45368005
1793316
1600024
29294071
38125973
6545367
10951306
18448548
36751208
3686794
42689623
36432252
8784508
11315384
21807152
23037890
45887066
49178424
21245709
22323793
47805186
11261669
14711505
10189425
2971466
6736919
12377602
11543451
34970143
10250344
49227225
18611165
26295869
6...

output:

14140
13469
2676
2527
10822
12347
5114
6616
8588
12122
3838
13065
12069
5925
6725
9337
9597
13545
14023
9216
9447
13826
6709
7669
6382
3445
5189
7034
6793
11825
6401
14030
8626
10253
5077
4745
5551
5472
13027
10848
4711
8654
13321
9781
13065
4309
12023
5344
7448
9444
11399
8386
12314
5880
13642
1220...

result:

ok 21600 numbers

Test #7:

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

input:

18243306
14618913
19418671
2030738
13328420
27571142
8153689
22448853
25335710
21862744
45116208
30974407
975173
27983745
35744488
10072682
10656876
26975343
16640090
16265497
15506060
39700056
47553441
27015955
16680095
17662049
17047446
29721186
34707125
19700941
9522119
1122375
31129970
16235149
...

output:

8540
7644
8811
2848
7299
10499
5708
9474
10064
9349
13431
11128
1973
10577
11955
6345
6526
10385
8156
8064
7873
12599
13789
10393
8166
8403
8255
10901
11780
8875
6169
2116
11156
8056
10916
10354
13554
11323
13396
11776
8471
12015
11128
2416
10348
6982
6467
11252
10159
12190
9212
13122
4764
7175
7345...

result:

ok 34300 numbers

Test #8:

score: 10
Accepted
time: 16ms
memory: 2044kb

input:

43262051
31222122
41376937
49726941
15796105
48207086
14193874
37399656
5507598
3909568
2849395
41755986
21324453
12447876
44529914
27155885
6303063
5980354
44988192
20643172
30185844
18565460
15529396
35753612
40441324
41258084
30790527
38925344
2302053
6793189
40741091
37405737
27932988
20998121
2...

output:

13152
11173
12862
14101
7946
13884
7532
12229
4691
3952
3374
12921
9233
7054
13344
10420
5019
4888
13412
9084
10986
8615
7879
11956
12716
12844
11095
12476
3032
5210
12763
12230
10568
9162
9172
4249
3813
11170
12101
11510
13981
4822
4091
8393
13999
6359
10696
9555
10568
13332
9734
11748
10439
5751
1...

result:

ok 51200 numbers

Test #9:

score: 10
Accepted
time: 27ms
memory: 2104kb

input:

859803376
681133114
296422774
747117118
743742627
556167575
451622229
332002264
782070965
685491130
147449623
668590118
405367366
587423812
548946601
343262464
124878487
508992362
477182638
749281418
189760302
13212341
263878971
438615058
498930428
473605108
838545802
497593231
104161121
467936497
1...

output:

58642
52195
34431
54664
54541
47164
42500
36439
55929
52361
24283
51712
40265
48471
46857
37052
22347
45119
43687
54744
27548
7267
32486
41884
44671
43522
57913
44611
20409
43261
25069
49382
27507
57181
62094
59030
43555
54085
49413
56210
28791
45935
28056
31220
45156
48907
54365
62433
46931
46131
4...

result:

ok 72900 numbers

Test #10:

score: 10
Accepted
time: 26ms
memory: 2132kb

input:

636414448
98408073
970468708
894499571
904755168
793917794
452106602
587478665
727361196
354216307
636035291
707441570
709975478
685562336
596529270
358203608
676534353
353078751
991298922
741671536
100733877
29659709
233097908
135777112
321457068
895355495
796648537
937582624
566754386
261201222
66...

output:

50452
19838
62302
59814
60156
56351
42523
48473
53937
37639
50437
53193
53288
52364
48845
37850
52018
37578
62967
54465
20071
10890
30533
23302
35856
59842
56447
61237
47611
32321
51687
33086
39864
50320
36909
48698
19875
28432
44444
43963
42351
31252
37945
13668
17993
10464
32554
41691
30351
23964
...

result:

ok 100000 numbers