QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#805169#6788. Heap Partition膜拜ljc大队 (Zhichen Pan, Junhao Zhou, Wenhao Chen) #AC ✓421ms11896kbC++14847b2024-12-08 13:58:012024-12-08 13:58:01

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 6608kb

input:

4
4
1 2 3 4
4
2 4 3 1
4
1 1 1 1
5
3 2 1 4 1

output:

1
4 1 2 3 4 
2
3 1 2 3 
1 4 
1
4 1 2 3 4 
3
2 1 4 
1 2 
2 3 5 

result:

ok ok

Test #2:

score: 0
Accepted
time: 421ms
memory: 11896kb

input:

72284
1
1
2
1 1
2
2 1
2
1 2
2
2 2
3
1 1 1
3
2 1 1
3
3 1 1
3
1 2 1
3
2 2 1
3
3 2 1
3
1 3 1
3
2 3 1
3
3 3 1
3
1 1 2
3
2 1 2
3
3 1 2
3
1 2 2
3
2 2 2
3
3 2 2
3
1 3 2
3
2 3 2
3
3 3 2
3
1 1 3
3
2 1 3
3
3 1 3
3
1 2 3
3
2 2 3
3
3 2 3
3
1 3 3
3
2 3 3
3
3 3 3
4
1 1 1 1
4
2 1 1 1
4
3 1 1 1
4
4 1 1 1
4
1 2 1 1
...

output:

1
1 1 
1
2 1 2 
2
1 1 
1 2 
1
2 1 2 
1
2 1 2 
1
3 1 2 3 
2
1 1 
2 2 3 
2
1 1 
2 2 3 
1
3 1 2 3 
2
2 1 2 
1 3 
3
1 1 
1 2 
1 3 
1
3 1 2 3 
2
2 1 2 
1 3 
2
2 1 2 
1 3 
1
3 1 2 3 
2
2 1 3 
1 2 
2
1 1 
2 2 3 
1
3 1 2 3 
1
3 1 2 3 
2
1 1 
2 2 3 
1
3 1 2 3 
1
3 1 2 3 
2
2 1 2 
1 3 
1
3 1 2 3 
2
2 1 3 
1 2...

result:

ok ok