QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#471729#3098. Ancient Machineegypt_ioi2024_125 40ms9716kbC++202.8kb2024-07-11 05:51:502024-07-11 05:51:50

詳細信息

Subtask #1:

score: 5
Accepted

Test #1:

score: 100
Accepted
time: 2ms
memory: 4056kb

input:

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

output:

35
01001011000000001100000000000001111

input:

35
01001011000000001100000000000001111

output:

0 35 3

result:

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

Test #2:

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

input:

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

output:

35
10100010100000000000000000000010000

input:

35
10100010100000000000000000000010000

output:

0 35 3

result:

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

Test #3:

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

input:

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

output:

35
00000110000000110000000000000010000

input:

35
00000110000000110000000000000010000

output:

0 35 2

result:

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

Test #4:

score: 100
Accepted
time: 2ms
memory: 3788kb

input:

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

output:

35
10010110100110100100000000000010000

input:

35
10010110100110100100000000000010000

output:

0 35 2

result:

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

Test #5:

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

input:

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

output:

35
10100110000100011000000000000010001

input:

35
10100110000100011000000000000010001

output:

0 35 5

result:

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

Test #6:

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

input:

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

output:

35
11001000110111010000000000000010001

input:

35
11001000110111010000000000000010001

output:

0 35 2

result:

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

Test #7:

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

input:

3
X Y Z

output:

20
10000000000000000010

input:

20
10000000000000000010

output:

0 20 1

result:

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

Test #8:

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

input:

3
Z Y X

output:

20
00100000000000000000

input:

20
00100000000000000000

output:

0 20 0

result:

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

Test #9:

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

input:

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

output:

35
11111111111111111100000000000010010

input:

35
11111111111111111100000000000010010

output:

0 35 0

result:

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

Test #10:

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

input:

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

output:

35
00000000000000000000000000000010010

input:

35
00000000000000000000000000000010010

output:

0 35 0

result:

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

Test #11:

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

input:

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

output:

35
00000000000000000000000000000010001

input:

35
00000000000000000000000000000010001

output:

0 35 0

result:

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

Subtask #2:

score: 0
Wrong Answer

Test #12:

score: 0
Wrong Answer
time: 40ms
memory: 9716kb

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:

69864
101110011010000101011110100101001011100111111101110100000100010100111000011001100101100110010000100101010110100110110100111000100100010001110010011000001101111000110110111110100100011100100110000011011110001101101111101001000111001001100000110111100011011011111010100100001001010101101001101101...

input:

69864
101110011010000101011110100101001011100111111101110100000100010100111000011001100101100110010000100101010110100110110100111000100100010001110010011000001101111000110110111110100100011100100110000011011110001101101111101001000111001001100000110111100011011011111010100100001001010101101001101101...

output:

0 69864 8121

result:

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