QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#549367#7748. Karshilov's Matching Problem IIrotcar08WA 69ms21152kbC++141.5kb2024-09-06 14:49:352024-09-06 14:49:35

详细

Test #1:

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

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: 1ms
memory: 7864kb

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: 69ms
memory: 21152kb

input:

150000 150000
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

108146858500782
221847599805437
455133986082234
440080376777413
147909926260829
88525789097948
350974359964598
58849305516868
65618613176597
270107775098739
197620371244511
298137196590408
239501307311132
27933332585917
408174350189819
268053044885027
32211299540557
104607726583267
44067920755080
76...

result:

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