QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#255224#7748. Karshilov's Matching Problem IIucup-team244WA 155ms255232kbC++173.8kb2023-11-18 15:09:302023-11-18 15:09:30

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 10428kb

input:

8 5
abbabaab
aababbab
1 2 4 8 16 32 64 128
1 1
2 3
3 5
4 7
1 8

output:

1
3
3
16
38

result:

ok 5 lines

Test #2:

score: 0
Accepted
time: 2ms
memory: 13028kb

input:

15 4
heheheheehhejie
heheheheheheheh
3 1 4 1 5 9 2 6 5 3 5 8 9 7 9
2 3
4 8
2 6
1 15

output:

3
13
13
174

result:

ok 4 lines

Test #3:

score: -100
Wrong Answer
time: 155ms
memory: 255232kb

input:

150000 150000
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

73621789266376
221878585246974
454794763949917
440084093370518
147699781056151
88279283003171
350743651612229
58850354020997
65824434822005
269929130864423
197316591592983
298193894693053
239240481206360
27931192516357
408238076147899
267779230528373
32091741484780
104397581378589
44021143759844
757...

result:

wrong answer 1st lines differ - expected: '108147037823514', found: '73621789266376'