QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#119973#5512. Stone Arranging 2giaminh83680 56ms21032kbC++14885b2023-07-06 09:22:262023-07-06 09:22:28

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 25
Accepted
time: 1ms
memory: 3444kb

input:

1
1

output:

1


result:

ok single line: '1'

Test #2:

score: 0
Accepted
time: 1ms
memory: 3424kb

input:

2
1
1

output:

1
1


result:

ok 2 lines

Test #3:

score: 0
Accepted
time: 1ms
memory: 3464kb

input:

3
1
1
1

output:

1
1
1


result:

ok 3 lines

Test #4:

score: 0
Accepted
time: 1ms
memory: 3460kb

input:

2000
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1...

output:

1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
...

result:

ok 2000 lines

Test #5:

score: 0
Accepted
time: 1ms
memory: 3392kb

input:

1
2

output:

2


result:

ok single line: '2'

Test #6:

score: 0
Accepted
time: 1ms
memory: 3456kb

input:

2
2
2

output:

2
2


result:

ok 2 lines

Test #7:

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

input:

3
2
2
2

output:

2
2
2


result:

ok 3 lines

Test #8:

score: 0
Accepted
time: 1ms
memory: 3432kb

input:

2000
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

result:

ok 2000 lines

Test #9:

score: 0
Accepted
time: 1ms
memory: 3468kb

input:

2000
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
33497...

output:

334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
334978097
...

result:

ok 2000 lines

Test #10:

score: -25
Wrong Answer
time: 1ms
memory: 3592kb

input:

2000
2
1
2
2
1
1
1
2
2
2
1
1
2
2
1
1
2
2
2
2
2
1
2
1
2
2
1
2
2
2
2
2
1
1
1
2
2
2
2
2
1
2
2
2
2
2
1
1
1
1
2
1
2
1
1
2
1
1
2
2
2
1
1
1
1
1
1
2
2
2
1
1
1
2
1
2
2
1
1
2
1
1
1
2
1
1
1
2
1
2
1
2
2
2
1
2
2
1
2
2
2
2
1
2
1
1
2
2
1
2
1
1
2
2
1
1
1
1
1
1
2
1
2
2
2
2
1
2
1
2
2
1
1
1
1
2
1
2
1
1
1
1
2
2
1
1
1
1...

output:

2
2
1
1
2
2
2
1
1
1
2
2
1
1
2
2
1
1
1
1
1
2
1
2
1
1
2
1
1
1
1
1
2
2
2
1
1
1
1
1
2
1
1
1
1
1
2
2
2
2
1
2
1
2
2
1
2
2
1
1
1
2
2
2
2
2
2
1
1
1
2
2
2
1
2
1
1
2
2
1
2
2
2
1
2
2
2
1
2
1
2
1
1
1
2
1
1
2
1
1
1
1
2
1
2
2
1
1
2
1
2
2
1
1
2
2
2
2
2
2
1
2
1
1
1
1
2
1
2
1
1
2
2
2
2
1
2
1
2
2
2
2
1
1
2
2
2
2
2
1
...

result:

wrong answer 3rd lines differ - expected: '2', found: '1'

Subtask #2:

score: 0
Wrong Answer

Test #29:

score: 35
Accepted
time: 13ms
memory: 4916kb

input:

200000
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
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200000 lines

Test #31:

score: -35
Wrong Answer
time: 56ms
memory: 21032kb

input:

200000
2
1
1
2
2
2
2
2
1
1
1
1
2
2
2
1
1
1
2
1
2
2
2
1
1
2
1
1
2
1
2
2
1
2
1
2
1
2
1
2
2
1
1
1
2
1
1
2
2
1
2
1
2
2
2
2
2
1
2
2
2
2
1
1
1
1
1
1
2
1
1
2
2
2
1
1
1
2
2
2
1
2
1
2
2
2
1
1
1
1
1
2
1
1
1
1
1
1
1
2
2
2
2
1
1
2
1
2
2
1
1
2
1
1
1
2
2
2
2
2
2
2
2
2
2
2
2
1
2
1
2
2
1
1
2
1
1
1
1
2
2
1
2
2
1
1
2...

output:

2
2
2
1
1
1
1
1
2
2
2
2
1
1
1
2
2
2
1
2
1
1
1
2
2
1
2
2
1
2
1
1
2
1
2
1
2
1
2
1
1
2
2
2
1
2
2
1
1
2
1
2
1
1
1
1
1
2
1
1
1
1
2
2
2
2
2
2
1
2
2
1
1
1
2
2
2
1
1
1
2
1
2
1
1
1
2
2
2
2
2
1
2
2
2
2
2
2
2
1
1
1
1
2
2
1
2
1
1
2
2
1
2
2
2
1
1
1
1
1
1
1
1
1
1
1
1
2
1
2
1
1
2
2
1
2
2
2
2
1
1
2
1
1
2
2
1
1
2
2
...

result:

wrong answer 4th lines differ - expected: '2', found: '1'

Subtask #3:

score: 0
Skipped

Dependency #1:

0%