QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#474486#3098. Ancient Machineegypt_ioi2024b_040 32ms9728kbC++203.0kb2024-07-12 19:08:412024-07-12 19:08:41

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

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

input:

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

output:

29
00010101111001101100110101111

input:

29
00010101111001101100110101111

output:

0 29 3

result:

ok n = 18, D = 29, L = 3

Test #2:

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

input:

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

output:

29
11110011111010001011100010000

input:

29
11110011111010001011100010000

output:

0 29 0

result:

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

Subtask #2:

score: 0
Wrong Answer

Test #12:

score: 0
Wrong Answer
time: 32ms
memory: 9728kb

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:

68321
101001110001100101111101101001110001001011011010100010000101011000001001001010000100001111101111110110000010010001110010011110101011010001000110001110110000010100101110000111100100000000111100100010011100000101001010110100011010000111010100100110010101000010100010000111010110101100001000110110...

input:

68321
101001110001100101111101101001110001001011011010100010000101011000001001001010000100001111101111110110000010010001110010011110101011010001000110001110110000010100101110000111100100000000111100100010011100000101001010110100011010000111010100100110010101000010100010000111010110101100001000110110...

output:

0 68321 9298

result:

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