QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#258280#7748. Karshilov's Matching Problem IIucup-team991WA 79ms20052kbC++172.3kb2023-11-19 16:44:112023-11-19 16:44:11

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3624kb

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: 0ms
memory: 3856kb

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: 79ms
memory: 20052kb

input:

150000 150000
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

108208735676378
221878585246974
455581854839020
440296106086191
148129054209116
88695249853257
351241340616311
58878235264992
65903404525327
270232971934859
197732558443069
298293111748461
239720336221369
28152460534204
408436498717144
268035560609130
32710315960288
104481938690474
44074926058619
78...

result:

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