QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#784146#9783. Duloc Networkucup-team4851WA 4ms3924kbC++202.1kb2024-11-26 13:43:582024-11-26 13:43:59

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
1
3
2
2
1
2
1
2
1
2

output:

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

result:

ok Correct answer with 10 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: 1ms
memory: 3672kb

input:

4
1
3
2
2
1
2
1
2
1
2

output:

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

result:

ok Correct answer with 10 queries.

Test #4:

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

input:

2
0

output:

? 10
! 0

result:

ok Correct answer with 1 queries.

Test #5:

score: 0
Accepted
time: 4ms
memory: 3672kb

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

output:

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

result:

ok Correct answer with 584 queries.

Test #6:

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

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
10
19
10
14
10
13
10
22
10
17
10
17
10
17
10
18
18
22
10
17
8
13
8
15
8
17
8
20
8
15
8
17
17
25
8
18
9
17
17
22
8
16
9
20
9
13
9
23
9
15
9
23
9
18
9
16
16
20
9
16
7...

output:

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

result:

ok Correct answer with 172 queries.

Test #7:

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

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

output:

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

result:

ok Correct answer with 600 queries.

Test #8:

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

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

output:

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

result:

ok Correct answer with 240 queries.

Test #9:

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

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

output:

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

result:

ok Correct answer with 644 queries.

Test #10:

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

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

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1530 queries.

Test #11:

score: -100
Wrong Answer
time: 3ms
memory: 3924kb

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

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

wrong answer Wrong answer.