QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#355574#962. Thanks to MikeMirzayanovCyber_PunkWA 1ms3744kbC++142.0kb2024-03-16 20:50:482024-03-16 20:50:49

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3744kb

input:

4
3 1 2 4

output:

16
4 1 1 1 1 
2 3 1 
4 1 1 1 1 
2 3 1 
4 1 1 1 1 
2 3 1 
4 1 1 1 1 
2 3 1 
4 1 1 1 1 
2 3 1 
4 1 1 1 1 
2 3 1 
4 1 1 1 1 
2 3 1 
2 3 1 
3 1 2 1 

result:

wrong answer the permutation is not sorted