QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#462854 | #3098. Ancient Machine | egypt_ioi2024b_05 | 5 | 86ms | 10932kb | C++20 | 2.5kb | 2024-07-04 07:51:12 | 2024-07-04 07:51:12 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 5
Accepted
Test #1:
score: 100
Accepted
time: 0ms
memory: 3820kb
input:
18 Y X Y Z X Z X X Z Z Y Y Z Y Y Z X X
output:
36 100010010001000001011010011010010000
input:
36 100010010001000001011010011010010000
output:
0 36 3
result:
ok n = 18, D = 36, L = 3
Test #2:
score: 100
Accepted
time: 0ms
memory: 4104kb
input:
18 X Z X Y Y Y X Z X Y Z Z Z Z Y Z Z Y
output:
36 000100101010000100100101010110010110
input:
36 000100101010000100100101010110010110
output:
0 36 3
result:
ok n = 18, D = 36, L = 3
Test #3:
score: 100
Accepted
time: 0ms
memory: 3880kb
input:
18 Y Z Z Y Z X X Z Y Y Z Z Z Y X X Z Y
output:
36 100101100100000110100101011000000110
input:
36 100101100100000110100101011000000110
output:
0 36 2
result:
ok n = 18, D = 36, L = 2
Test #4:
score: 100
Accepted
time: 0ms
memory: 3820kb
input:
18 X Z Z X Z X X Z X Y Y X X Z X Y Z X
output:
36 000101000100000100101000000100100100
input:
36 000101000100000100101000000100100100
output:
0 36 2
result:
ok n = 18, D = 36, L = 2
Test #5:
score: 100
Accepted
time: 0ms
memory: 3816kb
input:
18 X Y X Y Y X X Z Y Z Y X Z Y Y X X Z
output:
36 001000101000000110011000011010000001
input:
36 001000101000000110011000011010000001
output:
0 36 5
result:
ok n = 18, D = 36, L = 5
Test #6:
score: 100
Accepted
time: 0ms
memory: 3876kb
input:
18 X X Y Z X Y Y Y X X Z X X X Z X Z Z
output:
36 000010010010101000000100000001000101
input:
36 000010010010101000000100000001000101
output:
0 36 2
result:
ok n = 18, D = 36, L = 2
Test #7:
score: 100
Accepted
time: 0ms
memory: 3892kb
input:
3 X Y Z
output:
6 001001
input:
6 001001
output:
0 6 1
result:
ok n = 3, D = 6, L = 1
Test #8:
score: 100
Accepted
time: 0ms
memory: 3752kb
input:
3 Z Y X
output:
6 011000
input:
6 011000
output:
0 6 0
result:
ok n = 3, D = 6, L = 0
Test #9:
score: 100
Accepted
time: 0ms
memory: 3760kb
input:
18 X X X X X X X X X X X X X X X X X X
output:
36 000000000000000000000000000000000000
input:
36 000000000000000000000000000000000000
output:
0 36 0
result:
ok n = 18, D = 36, L = 0
Test #10:
score: 100
Accepted
time: 0ms
memory: 3812kb
input:
18 Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y
output:
36 101010101010101010101010101010101010
input:
36 101010101010101010101010101010101010
output:
0 36 0
result:
ok n = 18, D = 36, L = 0
Test #11:
score: 100
Accepted
time: 0ms
memory: 3792kb
input:
18 Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z
output:
36 010101010101010101010101010101010101
input:
36 010101010101010101010101010101010101
output:
0 36 0
result:
ok n = 18, D = 36, L = 0
Subtask #2:
score: 0
Wrong Answer
Test #12:
score: 0
Wrong Answer
time: 86ms
memory: 10932kb
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:
200000 00010001010010011000100001010110000110001010001010100110010110000010000010100000000110101001010101100010100101010010010000000010001000000100010101001000000001000100000010101010010000100110100001000101010101100110001010101000010110010110010101000101000001010101000001101001101001011010011001100...
input:
200000 00010001010010011000100001010110000110001010001010100110010110000010000010100000000110101001010101100010100101010010010000000010001000000100010101001000000001000100000010101010010000100110100001000101010101100110001010101000010110010110010101000101000001010101000001101001101001011010011001100...
output:
0 200000 22132
result:
wrong answer your query is valid but your solution is not optimal: read 22132 but expected 22133