QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#469918#3098. Ancient Machineegypt_ioi2024_120 36ms9744kbC++20871b2024-07-10 08:56:492024-07-10 08:56:49

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: 4120kb

input:

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

output:

18
101101001111111100

input:

18
101101001111111100

output:

0 18 3

result:

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

Test #2:

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

input:

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

output:

18
010111010111111111

input:

18
010111010111111111

output:

0 18 3

result:

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

Test #3:

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

input:

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

output:

18
111110011111110011

input:

18
111110011111110011

output:

0 18 2

result:

ok n = 18, D = 18, L = 2

Test #4:

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

input:

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

output:

18
011010010110010110

input:

18
011010010110010110

output:

0 18 2

result:

ok n = 18, D = 18, L = 2

Test #5:

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

input:

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

output:

18
010110011110111001

input:

18
010110011110111001

output:

0 18 4

result:

wrong answer your query is valid but your solution is not optimal: read 4 but expected 5

Subtask #2:

score: 0
Wrong Answer

Test #12:

score: 0
Wrong Answer
time: 36ms
memory: 9744kb

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:

100000
01011011101011110110110111111110010011000111111111011111011000010100101110100010100011111001111010111111110111101111111110110011110011111111111111100110111010111110110111100011101000111011111011111110011111111111011110111111110001110111110111101101101001001111011111110000111111111110110011110...

input:

100000
01011011101011110110110111111110010011000111111111011111011000010100101110100010100011111001111010111111110111101111111110110011110011111111111111100110111010111110110111100011101000111011111011111110011111111111011110111111110001110111110111101101101001001111011111110000111111111110110011110...

output:

0 100000 16642

result:

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