QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#783592 | #9783. Duloc Network | jlgxy# | WA | 69ms | 9348kb | C++17 | 1.7kb | 2024-11-26 10:50:35 | 2024-11-26 10:50:35 |
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
Test #1:
score: 100
Accepted
time: 1ms
memory: 3616kb
input:
4 1 3 2 2 1 0 2 1 2 2 1
output:
? 1000 ? 0100 ? 0010 ? 0001 ? 1101 ? 1111 ? 1100 ? 1110 ? 0110 ? 1010 ? 0011 ! 1
result:
ok Correct answer with 11 queries.
Test #2:
score: 0
Accepted
time: 1ms
memory: 3616kb
input:
2 0 0 0
output:
? 10 ? 01 ? 11 ! 0
result:
ok Correct answer with 3 queries.
Test #3:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
4 1 3 2 2 1 0 2 1 2 2 1
output:
? 1000 ? 0100 ? 0010 ? 0001 ? 1101 ? 1111 ? 1100 ? 1110 ? 0110 ? 1010 ? 0011 ! 1
result:
ok Correct answer with 11 queries.
Test #4:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
2 0 0 0
output:
? 10 ? 01 ? 11 ! 0
result:
ok Correct answer with 3 queries.
Test #5:
score: 0
Accepted
time: 5ms
memory: 4116kb
input:
50 3 1 1 1 1 4 3 1 1 2 3 3 2 1 2 4 3 1 1 1 2 4 1 3 1 4 3 2 2 2 4 2 2 1 1 2 1 2 4 1 1 3 3 3 6 2 1 3 2 3 1 0 15 14 14 14 9 12 4 7 2 6 2 5 4 5 7 11 10 11 4 6 3 6 5 5 6 6 9 5 8 7 5 5 15 15 12 13 9 10 6 10 4 3 7 11 13 6 10 8 10 4 6 5 5 8 18 17 15 16 12 13 7 9 5 7 7 4 6 7 10 6 10 5 4 8 17 17 9 11 4 8 7 9 ...
output:
? 10000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000 ? 00010000000000000000000000000000000000000000000000 ? 00001000000000000000000000000000000000000000000000 ? 000001000000000000000000000000000...
result:
ok Correct answer with 498 queries.
Test #6:
score: 0
Accepted
time: 2ms
memory: 3584kb
input:
50 10 13 8 6 13 8 10 8 8 8 9 13 15 11 9 10 14 6 16 10 15 10 7 8 10 10 10 13 10 15 9 10 11 5 16 10 14 11 10 9 9 15 11 10 7 11 12 10 9 10 1 0 25 24 36 35 33 34 29 31 19 24 20 14 18 22 13 18 22 26 17 22 17 16 14 34 37 20 25 13 19 15 15 16 26 31 23 29 20 22 17 38 37 38 38 27 29 17 19 15 14 21 24 28 19 2...
output:
? 10000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000 ? 00010000000000000000000000000000000000000000000000 ? 00001000000000000000000000000000000000000000000000 ? 000001000000000000000000000000000...
result:
ok Correct answer with 205 queries.
Test #7:
score: 0
Accepted
time: 5ms
memory: 4120kb
input:
50 1 3 1 4 3 1 1 1 1 3 1 1 1 1 3 5 1 1 1 1 3 2 5 1 2 1 4 1 2 3 4 3 3 2 3 1 1 1 1 3 2 2 1 3 4 2 4 2 3 2 1 0 15 16 16 15 17 17 13 14 9 9 8 8 5 6 3 3 4 20 19 10 9 6 6 4 4 2 3 3 6 5 3 4 2 14 15 1 17 16 16 17 18 17 9 9 7 8 3 3 2 2 2 1 2 11 10 6 5 7 6 4 5 2 3 6 7 16 16 15 16 19 19 11 11 4 4 2 2 2 1 3 7 8 ...
output:
? 10000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000 ? 00010000000000000000000000000000000000000000000000 ? 00001000000000000000000000000000000000000000000000 ? 000001000000000000000000000000000...
result:
ok Correct answer with 530 queries.
Test #8:
score: 0
Accepted
time: 2ms
memory: 3568kb
input:
50 2 14 8 8 7 12 12 8 8 9 9 10 8 8 4 8 9 9 9 11 13 11 8 7 9 12 7 5 6 4 7 8 10 5 5 10 8 4 10 9 11 7 10 8 6 8 10 7 5 9 1 0 25 24 30 30 32 33 26 29 20 25 23 16 15 23 17 18 19 27 14 24 14 22 18 31 31 21 27 15 23 18 19 18 22 24 17 22 17 17 16 32 32 33 35 21 28 12 21 15 18 19 22 25 16 21 16 18 18 31 31 25...
output:
? 10000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000 ? 00010000000000000000000000000000000000000000000000 ? 00001000000000000000000000000000000000000000000000 ? 000001000000000000000000000000000...
result:
ok Correct answer with 227 queries.
Test #9:
score: 0
Accepted
time: 1ms
memory: 3832kb
input:
50 3 1 1 1 2 1 1 1 1 5 1 2 1 1 1 1 3 1 1 2 1 1 1 2 2 1 1 1 1 3 1 2 1 1 2 3 1 2 3 2 1 3 1 2 3 1 2 2 1 1 1 0 15 15 12 13 12 12 9 10 8 8 3 4 5 5 4 5 1 17 16 14 13 7 8 8 7 4 3 2 3 1 6 7 16 17 1 14 14 12 13 5 7 8 9 4 6 4 5 3 4 3 3 3 10 10 6 8 7 7 2 4 5 5 3 3 3 2 4 15 15 12 14 15 15 10 10 4 6 6 6 3 3 1 4 ...
output:
? 10000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000 ? 00010000000000000000000000000000000000000000000000 ? 00001000000000000000000000000000000000000000000000 ? 000001000000000000000000000000000...
result:
ok Correct answer with 579 queries.
Test #10:
score: 0
Accepted
time: 17ms
memory: 5196kb
input:
100 1 2 1 1 1 1 1 1 3 3 1 1 2 3 4 1 2 2 2 1 2 2 1 2 2 1 1 1 3 2 1 2 2 1 4 1 1 1 3 2 4 1 3 2 3 3 3 1 1 1 1 2 1 2 2 4 3 1 2 1 1 1 1 3 3 3 2 1 1 2 1 2 2 3 2 1 5 3 5 1 1 1 1 1 1 1 1 3 4 1 2 1 2 1 1 2 1 3 2 1 1 0 30 29 27 26 17 16 8 7 5 6 3 2 2 1 2 0 2 11 12 16 17 26 27 30 31 1 30 27 26 19 18 10 9 4 3 2 ...
output:
? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 1458 queries.
Test #11:
score: 0
Accepted
time: 3ms
memory: 3824kb
input:
100 11 13 9 11 8 7 15 12 8 8 7 6 9 12 11 9 10 9 11 16 10 8 9 8 10 6 8 9 13 10 9 7 5 11 14 6 11 16 7 7 8 8 11 8 13 15 11 12 11 11 11 9 10 12 10 6 11 10 5 13 9 9 6 6 6 12 7 12 10 10 9 11 7 11 5 6 9 6 5 9 5 16 11 13 13 10 5 5 8 8 12 11 5 8 8 10 8 10 8 10 1 0 49 48 65 64 63 63 49 50 35 38 19 23 18 15 19...
output:
? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 528 queries.
Test #12:
score: 0
Accepted
time: 14ms
memory: 4568kb
input:
100 5 3 3 4 2 2 2 8 4 5 4 4 2 2 3 4 6 5 1 4 3 3 2 5 5 2 2 4 3 4 4 4 4 1 3 5 3 4 4 3 3 4 1 3 3 2 5 5 5 1 3 4 3 4 2 2 4 2 1 3 3 7 3 5 5 6 6 1 3 2 3 3 3 2 1 6 3 5 5 3 4 4 2 2 1 5 7 3 3 1 6 2 2 5 2 5 3 3 6 4 1 0 37 36 47 46 32 32 22 24 18 18 12 12 9 9 6 5 6 8 8 6 6 5 3 4 32 32 20 20 12 12 7 9 6 9 11 15 ...
output:
? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 1147 queries.
Test #13:
score: 0
Accepted
time: 5ms
memory: 4900kb
input:
100 1 1 1 3 1 1 3 1 4 1 2 3 4 1 1 2 4 1 3 2 1 3 2 4 1 3 1 1 2 1 1 1 3 1 1 4 1 1 1 1 4 1 2 1 3 3 1 1 3 4 1 2 2 3 3 1 1 1 1 4 1 1 1 1 1 2 2 2 2 1 2 2 2 2 2 1 1 2 5 1 2 2 1 1 2 2 2 4 1 1 1 5 4 1 3 1 1 1 2 1 1 0 34 33 40 39 24 23 11 12 15 14 7 8 8 7 7 6 4 3 2 24 25 29 29 15 15 8 9 7 7 6 6 2 2 2 1 5 3 4 ...
output:
? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 1409 queries.
Test #14:
score: 0
Accepted
time: 15ms
memory: 5092kb
input:
100 1 1 2 3 1 3 2 1 1 1 1 1 1 4 1 1 1 2 1 1 2 3 1 1 1 2 1 2 2 2 1 2 1 1 1 4 3 1 1 1 1 2 2 3 2 1 1 1 1 1 1 1 1 5 3 1 1 2 1 1 2 1 2 2 1 2 3 1 1 1 1 1 3 1 1 1 1 1 3 1 1 1 2 2 1 3 3 2 1 4 3 1 2 3 1 1 2 1 2 1 1 0 30 30 27 28 17 20 16 17 7 9 3 6 4 6 3 5 5 3 4 10 12 6 9 4 6 2 4 3 4 5 25 26 18 19 8 11 10 11...
output:
? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 1447 queries.
Test #15:
score: 0
Accepted
time: 27ms
memory: 5664kb
input:
150 4 2 3 2 2 3 2 4 3 3 4 2 2 4 6 1 3 2 3 5 3 4 4 3 6 3 1 2 4 5 5 3 2 3 3 2 3 1 2 4 2 4 4 1 2 3 2 3 1 1 4 4 3 2 2 1 3 3 1 2 1 6 1 3 2 4 1 4 2 1 4 3 4 1 3 4 2 4 2 5 3 4 2 6 6 2 2 2 3 2 4 4 4 2 2 1 2 1 3 2 3 7 2 1 3 2 5 4 1 2 3 2 3 2 3 5 3 4 5 2 3 1 3 1 2 3 1 3 1 2 3 3 2 3 7 1 2 1 4 2 2 2 3 4 4 3 6 3 ...
output:
? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 1983 queries.
Test #16:
score: 0
Accepted
time: 28ms
memory: 5420kb
input:
150 4 2 2 1 2 1 1 8 1 2 1 3 4 2 1 4 3 2 1 4 3 1 1 4 5 3 2 3 3 2 4 1 3 4 4 5 4 2 6 4 2 2 2 2 3 6 2 3 3 4 3 3 2 3 2 4 2 1 1 1 1 2 2 4 2 3 3 3 7 1 4 3 3 3 4 2 2 1 2 2 2 1 2 4 2 1 2 2 4 2 2 4 2 6 2 4 4 2 1 2 4 2 5 1 4 3 3 1 2 4 4 2 2 3 4 1 4 2 2 3 3 3 2 3 2 6 3 3 2 3 1 1 3 5 2 3 2 2 2 3 1 3 3 4 3 3 2 3 ...
output:
? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 2142 queries.
Test #17:
score: 0
Accepted
time: 25ms
memory: 6096kb
input:
150 3 1 4 1 4 2 3 1 1 3 1 1 4 5 7 1 2 1 2 3 4 2 3 5 1 5 1 2 2 5 3 6 2 2 1 3 5 1 3 2 2 3 1 2 1 3 2 2 1 3 2 2 2 5 1 2 2 5 5 2 3 4 1 3 1 2 1 2 2 1 1 5 3 1 3 1 2 3 1 2 2 2 1 4 1 2 2 5 3 2 1 4 2 2 5 1 3 3 1 4 3 2 4 1 5 3 4 2 2 3 1 2 4 3 3 2 1 2 3 1 1 2 1 3 4 3 1 2 4 4 3 1 7 4 1 1 1 1 4 3 2 3 2 2 1 3 3 1 ...
output:
? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 2285 queries.
Test #18:
score: 0
Accepted
time: 29ms
memory: 5520kb
input:
150 4 4 5 4 2 2 5 3 1 4 2 2 3 1 1 2 2 3 3 3 8 2 1 3 2 2 3 1 1 3 2 3 2 3 3 7 1 2 1 5 4 1 4 4 3 2 3 2 5 7 3 2 1 2 1 3 5 3 3 6 3 3 5 3 5 5 1 4 2 5 2 3 2 2 1 3 2 2 2 2 1 3 2 1 2 5 4 3 6 3 2 3 1 2 3 3 1 4 2 2 2 3 4 3 1 5 2 1 5 2 4 6 3 3 2 3 3 2 3 1 5 1 3 2 3 8 2 5 1 4 5 4 1 1 3 1 1 1 5 3 1 3 4 2 3 2 2 4 ...
output:
? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 2126 queries.
Test #19:
score: 0
Accepted
time: 36ms
memory: 6536kb
input:
150 2 1 1 3 2 2 2 1 1 1 1 1 2 2 2 1 1 3 3 2 2 1 2 1 2 5 4 2 1 2 2 2 2 1 2 1 2 1 2 3 3 2 3 2 1 1 2 2 3 1 2 1 1 3 3 2 4 2 1 1 2 5 2 2 2 2 1 1 3 2 1 3 1 5 3 1 3 1 4 1 2 1 3 1 1 1 3 1 1 2 1 5 3 1 1 1 2 1 2 1 2 1 1 2 2 3 1 2 1 2 2 2 2 2 3 1 5 2 1 2 3 2 1 2 4 1 1 2 3 3 3 1 2 1 3 2 2 1 1 2 2 3 1 1 1 1 4 1 ...
output:
? 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 2470 queries.
Test #20:
score: 0
Accepted
time: 55ms
memory: 9348kb
input:
200 1 3 1 3 3 1 1 1 1 1 2 1 3 2 2 1 1 3 1 2 1 1 1 1 2 2 1 1 1 2 1 4 1 1 1 1 2 1 1 2 3 1 1 1 4 1 1 1 1 3 1 1 1 1 2 1 1 1 1 2 1 2 1 2 1 1 1 1 1 4 1 1 1 1 1 1 1 1 1 2 1 1 2 1 2 2 2 4 1 2 1 1 5 2 1 1 2 1 1 1 1 1 1 1 1 2 1 1 1 1 1 3 1 2 1 1 3 1 1 1 2 1 5 1 1 1 1 4 1 4 1 1 3 1 3 1 3 1 1 4 1 2 1 3 1 2 2 2 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 3392 queries.
Test #21:
score: -100
Wrong Answer
time: 69ms
memory: 8920kb
input:
200 3 2 2 2 2 2 1 1 1 4 2 1 2 2 2 2 1 1 2 1 1 3 1 1 2 2 2 3 1 2 1 1 2 1 2 2 2 3 3 3 2 2 1 1 4 1 1 2 2 2 2 1 2 2 1 3 2 3 2 1 1 1 1 1 2 2 1 1 2 1 1 4 2 1 1 1 1 2 3 2 1 2 3 4 1 1 2 5 5 2 1 3 2 3 1 3 1 2 1 2 1 1 3 2 2 3 3 4 1 1 2 1 3 2 1 1 1 1 1 4 2 1 1 1 1 2 2 2 3 2 2 2 1 1 1 2 3 3 2 2 2 3 1 4 1 3 2 1 ...
output:
? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
wrong answer Too many queries.