QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#263269#7748. Karshilov's Matching Problem IIucup-team1532WA 116ms11772kbC++204.1kb2023-11-24 18:04:322023-11-24 18:04:34

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 3604kb

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

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: 116ms
memory: 11772kb

input:

150000 150000
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

25846874497562
54722753053950
109912767979546
106756218084645
36279094485693
22256400751433
83952523108971
14341607932549
15362864061301
65240849012898
48783092617789
71904952768701
56992256821834
6784576835613
98107439404891
64532110649146
8073246552237
25176264626243
10982203042939
1766753157647
1...

result:

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