QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#390173#6842. Popcount WordscarrotqqWA 41ms49164kbC++142.0kb2024-04-15 09:24:232024-04-15 09:24:24

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3 5
2 6
1 3
4 8
0
1
11
101
0011010

output:

6
7
2
2
1

result:

ok 5 lines

Test #2:

score: 0
Accepted
time: 0ms
memory: 24744kb

input:

3 10
2 6
1 3
4 8
0
1
11
101
0011010
0
1
11
101
0011010

output:

6
7
2
2
1
6
7
2
2
1

result:

ok 10 lines

Test #3:

score: -100
Wrong Answer
time: 41ms
memory: 49164kb

input:

100000 37701
605224571 605224571
681034454 681034463
468837041 468837048
323235128 323235135
400367345 400367345
394938241 394938241
221026001 221026007
183872918 183872926
881878131 881878138
374491962 374491967
588030380 588030381
109143398 109143401
727016146 727016149
857189138 857189138
1940312...

output:

232651
232588
85842
146809
146809
85778
16639
69203
77678
69131
69203
77606
69130
16647
3646
12993
35756
33447
35748
41930
56152
12978
12993
56210
41922
35684
33455
35675
12978
3669
642
3004
5847
7146
12719
23037
26790
6656
6418
29330
19012
22918
26173
29979
9969
3009
3004
9989
29909
26301
23029
188...

result:

wrong answer 1st lines differ - expected: '273828', found: '232651'