QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#325931#7748. Karshilov's Matching Problem IIucup-team1617#WA 234ms119380kbC++173.4kb2024-02-12 04:44:432024-02-12 04:44:43

詳細信息

Test #1:

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

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

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: 234ms
memory: 119380kb

input:

150000 150000
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

72014968538
975540696151
33261240661413
713145394294
495443336651
285233216077
536999753923
71431284506
1040716352102
204953103908
277636730238
816747496030
95637699955
702030373373
821113930175
575982696800
568012909389
519143866949
770950454137
284343875508
78058764367
16588927433133
1854066133441...

result:

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