UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#5510#38. 游戏jah_melon1001809ms13124kbC++112.5kb2018-09-16 16:39:372018-09-16 16:39:38

answer


Details

小提示:点击横条可展开更详细的信息

Test #1:

score: 5
Accepted
time: 2ms
memory: 1316kb

input:

591 8 977
204598890 634101218 832899416 1268140873 1272029073 1615429920 1630808294 1746080905
42899...

output:

330
281
92
23
103
19
442
325
71
176
205
697
329
139
167
194
438
48
335
26
304
42
66
150
549
36
191
1...

result:

ok 334 numbers

Test #2:

score: 5
Accepted
time: 2ms
memory: 1312kb

input:

981 6 920
149818788 712606161 1073595874 1829430219 1851606094 1876820352
108688390 241446247 215550...

output:

124
109
236
862
657
189
318
398
132
171
314
448
888
732
442
234
289
502
365
68
156
202
626
249
898
3...

result:

ok 304 numbers

Test #3:

score: 5
Accepted
time: 0ms
memory: 1316kb

input:

999 8 996
217421390 350914579 1107263696 1334862390 1793727034 1910083373 1955272517 1963185019
4029...

output:

809
559
10
155
836
517
253
129
271
817
232
330
470
1179
191
462
134
103
795
329
70
1047
896
357
641
...

result:

ok 363 numbers

Test #4:

score: 5
Accepted
time: 1ms
memory: 1320kb

input:

999 10 1000
346276660 351738843 386590160 564396288 761159686 1233267360 1653258846 1766945413 18130...

output:

31
289
1011
1490
1376
255
606
67
1306
2189
304
381
2380
389
1196
438
593
1078
1184
613
1982
823
1737...

result:

ok 314 numbers

Test #5:

score: 5
Accepted
time: 1ms
memory: 1316kb

input:

1000 10 1000
419105579 757133947 790533103 828238796 1321779203 1408773959 1471848532 1652939590 189...

output:

66
477
68
363
341
1117
293
262
200
996
579
698
577
620
45
1127
504
281
47
918
192
559
20
643
343
812...

result:

ok 334 numbers

Test #6:

score: 5
Accepted
time: 0ms
memory: 1316kb

input:

999 9 999
196288274 534619118 718245095 955704951 1241305427 1288297297 1291438291 1432112850 184472...

output:

1143
379
520
253
593
631
242
481
1108
222
1317
778
94
266
532
695
1101
171
1220
433
390
320
57
459
1...

result:

ok 326 numbers

Test #7:

score: 5
Accepted
time: 106ms
memory: 6972kb

input:

99994 10 99990
977313 265742655 427224240 512927632 537896205 781368955 1472883462 1474446951 155474...

output:

108430
208136
38209
31558
217806
83929
79456
173334
166173
17408
194752
79652
122132
203750
181493
2...

result:

ok 99990 numbers

Test #8:

score: 5
Accepted
time: 90ms
memory: 6972kb

input:

99726 9 94409
198687682 212471977 375870486 555499609 949721682 1016845792 1217233367 1529330785 182...

output:

2076
192359
87358
17671
55273
61236
44652
71794
22763
123288
50626
99828
112651
40444
19856
88321
10...

result:

ok 47007 numbers

Test #9:

score: 5
Accepted
time: 81ms
memory: 6964kb

input:

95881 10 94157
105457146 721143317 860578461 867346943 941562627 1033897275 1286951516 1606067661 18...

output:

1764
55147
43629
98942
33067
12843
55785
87166
25288
118516
46092
5917
32238
26824
48730
7741
1312
2...

result:

ok 47384 numbers

Test #10:

score: 5
Accepted
time: 134ms
memory: 13116kb

input:

98177 8 91091
416989511 529538610 583868202 693711592 875755893 1620825728 1721599839 1811297070
859...

output:

41497
50219
110127
143725
119483
131469
38892
19224
150350
40158
114958
8348
121051
25379
41372
1408...

result:

ok 45459 numbers

Test #11:

score: 5
Accepted
time: 171ms
memory: 13116kb

input:

97882 9 96556
124327754 243329556 384574766 584406847 776924526 876329074 1121314291 1196080327 1208...

output:

56044
87760
131627
8855
55503
17100
7572
668
255025
233956
96688
118213
174447
27542
224653
147723
6...

result:

ok 48366 numbers

Test #12:

score: 5
Accepted
time: 153ms
memory: 13116kb

input:

99993 10 99995
20951183 465888386 631033237 903170493 953539633 1331950985 1391207778 1410669120 175...

output:

74870
79238
39201
116374
2220
18020
51516
50281
23632
72099
30205
1650
2819
57663
168698
35481
10237...

result:

ok 49898 numbers

Test #13:

score: 5
Accepted
time: 90ms
memory: 6784kb

input:

51080 10 85433
45938553 189422721 409082369 683511659 762785758 1255841942 1258645898 1282129224 152...

output:

7779
49509
91416
48194
66398
6682
65237
45849
45003
15493
122025
53294
69211
21283
62519
119666
8182...

result:

ok 28724 numbers

Test #14:

score: 5
Accepted
time: 153ms
memory: 13116kb

input:

99992 10 99999
380514672 531225628 586254560 600379624 727997713 783027642 864245596 942417568 14205...

output:

86157
203240
49640
13668
5123
118464
97473
97288
95455
48401
28275
17199
44549
968
70720
133277
1186...

result:

ok 33502 numbers

Test #15:

score: 5
Accepted
time: 131ms
memory: 13124kb

input:

99194 10 99465
71036820 370661425 506400028 512733303 961636336 1161723813 1457543076 1457573850 158...

output:

0
0
8
12
4
0
9
5
15
35
30
8
0
31
1
10
50
1
34
21
15
26
35
26
1
22
48
73
92
21
12
19
43
50
66
105
5
7...

result:

ok 33417 numbers

Test #16:

score: 5
Accepted
time: 130ms
memory: 13124kb

input:

100000 10 100000
152259932 438648676 512036114 591376399 1067725597 1129957767 1204787799 1373365808...

output:

0
3
3
14
2
3
22
0
9
0
0
19
0
9
11
16
4
1
18
9
1
20
16
13
0
31
16
5
16
1
8
17
19
22
27
40
44
13
57
24...

result:

ok 33708 numbers

Test #17:

score: 5
Accepted
time: 144ms
memory: 13116kb

input:

100000 10 100000
12501791 222416740 295082617 878965168 972717522 1211903629 1378192541 1439467776 1...

output:

126444
42329
7413
134162
29921
85222
3741
184051
187681
135988
75190
70751
23881
87657
39397
79175
1...

result:

ok 33326 numbers

Test #18:

score: 5
Accepted
time: 130ms
memory: 13116kb

input:

100000 10 100000
104921203 214060061 272613146 1035432180 1048284646 1077130008 1215601776 137151591...

output:

127307
133457
84467
4458
193932
142605
29485
45018
98679
56239
30365
148333
124404
42362
25548
12083...

result:

ok 33159 numbers

Test #19:

score: 5
Accepted
time: 135ms
memory: 13120kb

input:

99992 10 99992
145813275 362818461 411594496 647366900 651056476 1100044636 1428734388 1741788212 18...

output:

43669
94302
12028
115587
98828
159274
76919
143709
184513
122615
19341
224321
53936
268097
20655
397...

result:

ok 33567 numbers

Test #20:

score: 5
Accepted
time: 155ms
memory: 13120kb

input:

99999 9 99995
74697142 245803791 264916998 661862550 778118902 963944821 1078793277 1478212363 19864...

output:

141413
4470
70233
51320
2141
158504
105966
45742
150031
270325
144987
83015
161516
50847
114068
1431...

result:

ok 33190 numbers

Extra Test:

score: 0
Extra Test Passed