QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#961781#10226. Tree Fliplmh_qwq WA 146ms30920kbC++146.0kb2025-04-02 15:02:152025-04-02 15:02:27

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 146ms
memory: 30920kb

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:

49952
50073
49913
49913
49914
49913
50048
49945
49943
49993
50115
50114
50039
50040
50011
49991
50098
50096
50097
49995
49932
49934
49933
50064
50063
50063
50009
50078
50077
49993
50028
50035
50047
49919
49928
49927
50035
49934
49933
49991
49993
49994
49926
50046
49986
50021
50020
50024
50078
50080
...

result:

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