QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#262239#7748. Karshilov's Matching Problem IIucup-team1817#WA 175ms57472kbC++142.9kb2023-11-23 17:01:422023-11-23 17:01:42

详细

Test #1:

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

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: 3ms
memory: 42764kb

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: 175ms
memory: 57472kb

input:

150000 150000
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

148721439447966
504605177924063
502723021238209
534151230338084
188037909386621
492710607960203
353656899054095
513436196273325
257569786196313
450658335222499
493119930219385
484999977007544
427221260027972
344194605101754
408732748223490
404833174114908
162920315078716
154857175861846
207806007476...

result:

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