QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#485642#3098. Ancient Machineegypt_ioi2024_115 32ms9692kbC++202.7kb2024-07-20 22:01:122024-07-20 22:01:12

详细

Subtask #1:

score: 5
Accepted

Test #1:

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

input:

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

output:

74
11111111111111111111111111111110110000101100000000000000000000000000000000

input:

74
11111111111111111111111111111110110000101100000000000000000000000000000000

output:

0 74 3

result:

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

Test #2:

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

input:

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

output:

74
11111111111111111111111111111110010110001010000000000000000000000000000000

input:

74
11111111111111111111111111111110010110001010000000000000000000000000000000

output:

0 74 3

result:

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

Test #3:

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

input:

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

output:

74
11111111111111111111111111111111000000110010000000000000000000000000000000

input:

74
11111111111111111111111111111111000000110010000000000000000000000000000000

output:

0 74 2

result:

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

Test #4:

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

input:

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

output:

74
11111111111111111111111111111110010110001010000000000000000000000000000000

input:

74
11111111111111111111111111111110010110001010000000000000000000000000000000

output:

0 74 2

result:

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

Test #5:

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

input:

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

output:

74
11111111111111111111111111111100011001101110000000000000000000000000000000

input:

74
11111111111111111111111111111100011001101110000000000000000000000000000000

output:

0 74 5

result:

ok n = 18, D = 74, L = 5

Test #6:

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

input:

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

output:

74
11111111111111111111111111111111101110010110000000000000000000000000000000

input:

74
11111111111111111111111111111111101110010110000000000000000000000000000000

output:

0 74 2

result:

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

Test #7:

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

input:

3
X Y Z

output:

74
11111111111111111111111111111111100000000000000000000000000000000000000000

input:

74
11111111111111111111111111111111100000000000000000000000000000000000000000

output:

0 74 1

result:

ok n = 3, D = 74, L = 1

Test #8:

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

input:

3
Z Y X

output:

74
11111111111111111111111111111110100000000000000000000000000000000000000000

input:

74
11111111111111111111111111111110100000000000000000000000000000000000000000

output:

0 74 0

result:

ok n = 3, D = 74, L = 0

Test #9:

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

input:

18
X X X X X X X X X X X X X X X X X X

output:

74
11111111111111111111111111111101000000000000000000000000000000000000000000

input:

74
11111111111111111111111111111101000000000000000000000000000000000000000000

output:

0 74 0

result:

ok n = 18, D = 74, L = 0

Test #10:

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

input:

18
Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y

output:

74
11111111111111111111111111111100000000000000000000000000000000000000000000

input:

74
11111111111111111111111111111100000000000000000000000000000000000000000000

output:

0 74 0

result:

ok n = 18, D = 74, L = 0

Test #11:

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

input:

18
Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z

output:

74
11111111111111111111111111111100000000000000000000000000000000000000000000

input:

74
11111111111111111111111111111100000000000000000000000000000000000000000000

output:

0 74 0

result:

ok n = 18, D = 74, L = 0

Subtask #2:

score: 0
Wrong Answer

Test #12:

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

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:

69902
111111111111111111111111111111100101010101011011101011000000111111111111110010011100001010011110011001110000000000000011011100010110101000101111000101111111111111000110110011011100111001011001100000000000001101110100101101011100010101111000000000000010110100001101000110111100110100000000000000...

input:

69902
111111111111111111111111111111100101010101011011101011000000111111111111110010011100001010011110011001110000000000000011011100010110101000101111000101111111111111000110110011011100111001011001100000000000001101110100101101011100010101111000000000000010110100001101000110111100110100000000000000...

output:

0 69902 2088

result:

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