QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#262218#7748. Karshilov's Matching Problem IIucup-team1817#WA 185ms30332kbC++142.7kb2023-11-23 16:49:512023-11-23 16:49:52

详细

Test #1:

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

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: 28388kb

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: 185ms
memory: 30332kb

input:

150000 150000
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

148715481421582
504564450536858
502715910771393
534137513597141
188032095415291
492651110652709
353656466888933
513369032537156
257544365781873
450633923193437
493076969978843
484975060785793
427196271778694
344148011974049
408732748223490
404813855781906
162902005131092
154849705257395
207783854185...

result:

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