QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#474289#3098. Ancient Machineegypt_ioi2024_010 24ms10644kbC++201.5kb2024-07-12 17:08:232024-07-12 17:08:23

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3768kb

input:

18
Y X Y Z X Z X X Z Z Y Y Z Y Y Z X X

output:

15
111111010010110

input:

15
111111010010110

output:

0 15 1

result:

wrong answer your query is valid but your solution is not optimal: read 1 but expected 3

Subtask #2:

score: 0
Wrong Answer

Test #12:

score: 0
Wrong Answer
time: 24ms
memory: 10644kb

input:

100000
X Z X Z Z X Y Z Y X Y X Z Z Z Y X Z Y X Y Y X Y Y Y Z Y Z Z Y X X Y X X Y Y X X X Z Y Y Y Z Z Z Z Y X Y Y Z Z Z X Y Z X X X X Y X Y X X Z X Z Z Z X Y X X X Z X Z X X X Y Y Y Y Z X X Y Z Y Y X Z X Z Z Z Z Z Y Z Y X Y Y Y Y X Z Z Y Z Z Y Z Z Z X Z Z X X Z Z Z Z X X Z Y Y Z Y Y Z Z Y Y Z Y Z Y Z...

output:

72225
101101100100110000101000000110110001100100000101000010100001001001010001000010110100100100010110100101010110001010110011000101010000100101000101100010111101001000011111111110001001010001010110010001011110100100101101100110101101010110010011110111100110100100100111100010001101100100101101011001...

input:

72225
101101100100110000101000000110110001100100000101000010100001001001010001000010110100100100010110100101010110001010110011000101010000100101000101100010111101001000011111111110001001010001010110010001011110100100101101100110101101010110010011110111100110100100100111100010001101100100101101011001...

output:

0 72225 11103

result:

wrong answer your query is valid but your solution is not optimal: read 11103 but expected 22133