QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#259303#7748. Karshilov's Matching Problem IIucup-team2108WA 946ms44040kbC++143.6kb2023-11-20 20:14:032023-11-20 20:14:04

详细

Test #1:

score: 100
Accepted
time: 4ms
memory: 21872kb

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

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: 946ms
memory: 44040kb

input:

150000 150000
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

-1326774479
-415973421
428507201
1271762802
-1562011822
-131696066
-1202625941
-1464660695
-1305604559
1536807434
1615436482
-148680155
-718175310
580824847
1796429659
-803959781
-1583589640
-665063318
1212687843
1697856575
397718700
-199615309
1845942216
2054348269
-2086049816
1580900747
571167041
...

result:

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