QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#260217#7748. Karshilov's Matching Problem IIucup-team2423WA 61ms34908kbC++142.4kb2023-11-21 22:22:072023-11-21 22:22:07

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 13880kb

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

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: 61ms
memory: 34908kb

input:

150000 150000
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

239352553
112195132
628550222
544088641
243785509
240844854
214697034
854678588
202185185
169686905
317000829
639098714
422928654
642408961
403511633
167093192
134066643
885896734
742430078
716284783
510837680
980724649
722021954
159010019
706925101
203086025
537913801
667321860
585026553
587940252
...

result:

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