QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#784172#9783. Duloc Networkucup-team4851WA 3ms3964kbC++202.1kb2024-11-26 13:54:272024-11-26 13:54:31

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3736kb

input:

4
1
3
2
2
2
2
2

output:

? 1000
? 0100
? 0010
? 0001
? 1100
? 1010
? 1001
! 1

result:

ok Correct answer with 7 queries.

Test #2:

score: 0
Accepted
time: 1ms
memory: 3660kb

input:

2
0

output:

? 10
! 0

result:

ok Correct answer with 1 queries.

Test #3:

score: 0
Accepted
time: 0ms
memory: 3952kb

input:

4
1
3
2
2
2
2
2

output:

? 1000
? 0100
? 0010
? 0001
? 1100
? 1010
? 1001
! 1

result:

ok Correct answer with 7 queries.

Test #4:

score: 0
Accepted
time: 1ms
memory: 3680kb

input:

2
0

output:

? 10
! 0

result:

ok Correct answer with 1 queries.

Test #5:

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

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
4
4
5
5
6
6
7
7
10
5
9
2
5
4
5
7
8
5
6
4
5
6
2
4
2
5
7
8
8
9
9
11
11
12
6
9
5
6
2
5
3
4
4
3
11
13
6
9
5
7
2
4
4
3
3
6
11
11
6
6
4
4
3
3
2
4
5
7
11
11
6
6
4
4
4
1
2
3
5
6
11
13
13
15
7
9
5
9
2
4
5
3...

output:

? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000
? 00010000000000000000000000000000000000000000000000
? 00001000000000000000000000000000000000000000000000
? 000001000000000000000000000000000...

result:

ok Correct answer with 503 queries.

Test #6:

score: 0
Accepted
time: 1ms
memory: 3956kb

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
19
14
13
22
17
17
17
18
18
22
17
13
15
17
20
15
17
17
25
18
17
17
22
16
20
13
23
15
23
18
16
16
20
16
12
15
15
14
19
15
20
13
16
17
11
21
15
18
17
15
15
13
18
18
18...

output:

? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000
? 00010000000000000000000000000000000000000000000000
? 00001000000000000000000000000000000000000000000000
? 000001000000000000000000000000000...

result:

ok Correct answer with 117 queries.

Test #7:

score: 0
Accepted
time: 3ms
memory: 3964kb

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
4
4
5
5
9
9
12
12
13
13
14
14
13
9
10
5
4
4
3
2
2
2
14
13
9
10
5
4
4
3
2
2
2
14
16
9
11
4
6
4
5
5
8
5
8
14
15
15
16
16
17
17
16
12
11
5
6
7
6
3
4
5
6
17
17
12
14
5
8
7
9
7
5
5
6
3
4
2
5
2
2
5
14
16...

output:

? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000
? 00010000000000000000000000000000000000000000000000
? 00001000000000000000000000000000000000000000000000
? 000001000000000000000000000000000...

result:

ok Correct answer with 517 queries.

Test #8:

score: 0
Accepted
time: 1ms
memory: 3640kb

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
15
10
10
16
10
14
10
17
17
24
10
18
14
16
18
9
17
14
15
9
16
10
14
9
17
17
20
9
14
10
13
15
14
15
14
15
12
12
18
14
12
12
18
14
13
12
20
16
13
12
20
17
12
12
20
16
15
12
23
19
17
12
2...

output:

? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000
? 00010000000000000000000000000000000000000000000000
? 00001000000000000000000000000000000000000000000000
? 000001000000000000000000000000000...

result:

ok Correct answer with 170 queries.

Test #9:

score: 0
Accepted
time: 0ms
memory: 3696kb

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
4
4
5
5
4
4
3
2
2
2
5
5
4
4
3
3
3
5
6
6
7
7
8
8
9
9
10
6
10
4
8
8
5
2
7
3
5
2
5
6
4
5
7
8
8
10
10
11
11
11
6
7
5
5
2
3
3
3
2
2
11
12
12
13
13
14
7
10
6
7
4
5
3
4
4
3
4
2
5
13
14
14
13
8
7
5
4
4
3
2...

output:

? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000
? 00010000000000000000000000000000000000000000000000
? 00001000000000000000000000000000000000000000000000
? 000001000000000000000000000000000...

result:

ok Correct answer with 552 queries.

Test #10:

score: 0
Accepted
time: 0ms
memory: 3612kb

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
3
3
4
4
5
5
6
6
7
7
6
4
5
3
2
2
3
0
7
8
8
11
11
14
14
15
15
16
16
17
7
8
4
5
3
5
2
3
5
9
11
16
1...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1356 queries.

Test #11:

score: -100
Wrong Answer
time: 0ms
memory: 3928kb

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
23
17
19
18
18
18
27
22
20
19
19
25
13
20
19
25
...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

wrong answer Wrong answer.