UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#112919#1707. 图书馆管理员lovelypang062610017ms1228kbC++525b2020-07-21 11:28:022020-07-21 11:28:03

answer


详细

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

Test #1:

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

input:

1000 1
3244675
7069750
5786233
7184408
6656768
6236080
6638060
4092770
3078075
233
6019570
5946233
5...

output:

233

result:

ok single line: '233'

Test #2:

score: 10
Accepted
time: 6ms
memory: 1228kb

input:

1000 1000
261
361
425
446
510
533
636
655
827
838
961
1097
1159
1204
1417
1528
1575
1652
1768
1810
1...

output:

1204
-1
-1
25453
-1
-1
6718
-1
838
7358028
-1
13385
446
-1
-1
-1
-1
-1
-1
-1
-1
-1
121140
-1
-1
-1
-...

result:

ok 1000 lines

Test #3:

score: 10
Accepted
time: 4ms
memory: 1220kb

input:

600 600
16560
63235
68022
68304
114030
118055
118602
124250
150144
189153
191670
192640
192980
21562...

output:

-1
-1
-1
68022
286816
-1
8281824
-1
-1
924591
715482
63235
-1
-1
-1
-1
894280
-1
-1
-1
-1
-1
-1
-1
-...

result:

ok 600 lines

Test #4:

score: 10
Accepted
time: 4ms
memory: 1224kb

input:

1000 1000
2092768
5542900
2983327
7841145
4046240
9978998
3372448
246100
5818619
9244327
7642696
989...

output:

351731
50082
77324
191546
50082
44308
316653
77324
33275
77324
77324
351731
316653
351731
351731
115...

result:

ok 1000 lines

Test #5:

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

input:

500 500
905120
730996
2127226
5372343
9434617
222660
3838855
2535345
1804857
7551323
5724840
516416
...

output:

37075
37075
107112
167549
1126827
58696
58696
7278
325391
325391
345784
7278
644413
37075
7278
64441...

result:

ok 500 lines

Test #6:

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

input:

800 800
8351720
2868819
9145000
6339140
6274950
167321
8250180
7402600
4175600
899392
4547559
393527...

output:

-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
6881860
7795250
-1
-1
-1
-1
-1
-1
-1
4502
-1
-1
182386
...

result:

ok 800 lines

Test #7:

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

input:

1000 1000
4299254
3202005
7478529
5379540
70501
9729447
3539840
9879640
8644520
6267557
6727720
4955...

output:

131154
-1
-1
-1
6750274
-1
26448
4845600
767516
46336
-1
700110
-1
-1
-1
-1
-1
-1
3415
5624
6728678
...

result:

ok 1000 lines

Test #8:

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

input:

1 10
9392912
3 912
2 10
7 2731197
2 12
7 7163045
4 8785
7 4577297
5 75400
1 2
6 493284

output:

9392912
-1
-1
9392912
-1
-1
-1
-1
9392912
-1

result:

ok 10 lines

Test #9:

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

input:

2 20
7004628
7499328
6 405775
5 76830
7 6920940
6 922112
5 58940
4 4628
5 26932
2 28
5 62190
4 1000
...

output:

-1
-1
-1
-1
-1
7004628
-1
7004628
-1
-1
-1
-1
7499328
-1
-1
-1
-1
7004628
-1
7004628

result:

ok 20 lines

Test #10:

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

input:

500 1
5573180
259945
8839834
3344180
9203024
3191780
3499395
8985050
4935280
6178888
7950300
7091678...

output:

10180

result:

ok single line: '10180'