QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#961825#10226. Tree Fliplmh_qwq WA 138ms30552kbC++146.2kb2025-04-02 15:15:482025-04-02 15:15:54

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1
3 3
0 0 1
1 2
3 1
1 1
2 2
1 1

output:

2
1
1

result:

ok 3 lines

Test #2:

score: -100
Wrong Answer
time: 138ms
memory: 30552kb

input:

1
100000 100000
0 0 1 1 0 0 0 1 1 1 0 0 0 1 1 1 1 1 0 1 1 1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1 1 1 1 1 1 0 0 0 0 0 0 1 1 0 0 1 1 1 0 0 0 1 1 1 1 0 0 0 0 0 0 1 1 1 1 0 1 1 0 0 0 0 1 0 0 0 0 1 0 1 1 1 1 0 0 0 0 1 1 1 1 0 1 0 1 1 0 1 0 1 1 0 0 1 1 1 1 1 1 1 1 1 0 1 0 0 1 0 0 1 0 1 0 0 1 1 1 0 1 1 1 1 0 1 1 ...

output:

49871
50073
49875
49875
49917
49916
50035
49938
49936
49864
50089
50088
50024
50025
50008
49854
50102
50100
50101
49996
49949
49951
49950
50195
50196
50196
50010
50072
50071
49993
50021
50149
50083
49915
49897
49896
50149
49820
49821
49984
49986
49987
49936
50046
49963
50021
50020
50027
50141
50143
...

result:

wrong answer 1st lines differ - expected: '49874', found: '49871'