UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#94128#1416. 郁闷的出纳员M_sea100358ms3088kbC++2.1kb2020-02-17 21:41:102020-02-17 21:41:11

answer


详细

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

Test #1:

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

input:

20 0
I 4
F 1
I 6
S 9
F 14
I 6
I 7
A 8
I 3
F 2
I 9
I 6
I 6
S 3
S 5
I 6
F 1
I 3
A 2
F 5

output:

4
-1
14
7
3
5

result:

ok 6 lines

Test #2:

score: 10
Accepted
time: 78ms
memory: 2708kb

input:

160100 1000
I 30000
I 29999
I 29998
I 29997
I 29996
I 29995
I 29994
I 29993
I 29992
I 29991
I 29990
...

output:

9753
22258
18717
23999
28466
13458
5800
18204
28590
25097
-1
12709
29313
12321
16978
6798
10330
2810...

result:

ok 80001 lines

Test #3:

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

input:

350 0
F 40
I 77
F 1
I 57
F 1
F 3
F 3
F 1
F 1
A 61
F 3
F 3
I 62
F 3
F 5
F 5
I 59
F 5
F 5
F 7
I 9
I 39...

output:

-1
77
77
-1
-1
77
77
-1
-1
62
-1
-1
-1
-1
-1
-1
-1
138
138
-1
13
147
18
-1
-1
13
13
-1
-1
85
17
-1
8...

result:

ok 201 lines

Test #4:

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

input:

10505 0
I 489
I 323
I 967
I 32
I 314
I 397
I 433
I 697
I 866
I 882
I 91
I 766
F 8
I 241
I 535
I 170
...

output:

397
88
56
254
113
806
-1
620
705
921
620
397
11
-1
1
442
133
94
-1
186
773
48
725
822
668
192
533
76...

result:

ok 501 lines

Test #5:

score: 10
Accepted
time: 13ms
memory: 1544kb

input:

30100 500
I 10000
I 9999
I 9998
I 9997
I 9996
I 9995
I 9994
I 9993
I 9992
I 9991
I 9990
I 9989
I 998...

output:

6394
-1
1110
8276
9647
5454
5388
-1
1186
7479
1161
2526
1044
9012
6815
-1
889
9129
9853
6608
6365
93...

result:

ok 10001 lines

Test #6:

score: 10
Accepted
time: 10ms
memory: 1764kb

input:

50100 0
I 0
I 1
I 2
I 3
I 4
I 5
I 6
I 7
I 8
I 9
I 10
I 11
I 12
I 13
I 14
I 15
I 16
I 17
I 18
I 19
I ...

output:

35125
35123
35122
35120
35119
35117
35116
35114
35113
35111
35110
35108
35107
35105
35104
35102
3510...

result:

ok 20001 lines

Test #7:

score: 10
Accepted
time: 28ms
memory: 2128kb

input:

70100 1000
I 40000
I 39999
I 39998
I 39997
I 39996
I 39995
I 39994
I 39993
I 39992
I 39991
I 39990
I...

output:

24398
4094
22284
28771
8004
24917
29302
34504
33563
21173
39306
8806
20471
14952
24793
-1
4368
3007
...

result:

ok 20001 lines

Test #8:

score: 10
Accepted
time: 40ms
memory: 2144kb

input:

60100 1000
I 20423
I 39225
I 6148
I 60360
F 1
I 26364
I 162
I 92550
I 69454
I 29621
F 1
I 55279
I 38...

output:

60360
92550
29728
60360
-1
40175
39537
6148
47218
20423
32701
-1
-1
21342
33931
85045
83499
2932
830...

result:

ok 10001 lines

Test #9:

score: 10
Accepted
time: 83ms
memory: 2720kb

input:

130100 1000
I 40342
I 47835
I 52705
I 99975
F 4
I 16999
I 10104
I 33465
F 2
I 64622
F 2
I 19954
I 39...

output:

40342
52705
64622
40342
47835
16999
-1
39661
84139
10036
47174
52705
94689
76325
68792
94689
97116
6...

result:

ok 50001 lines

Test #10:

score: 10
Accepted
time: 99ms
memory: 3088kb

input:

180100 1000
I 30000
I 29999
I 29998
I 29997
I 29996
I 29995
I 29994
I 29993
I 29992
I 29991
I 29990
...

output:

-1
26315
18710
5875
-1
27727
-1
10726
11650
6419
4927
22358
27676
1489
-1
29279
-1
-1
18559
12759
-1...

result:

ok 80001 lines