QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#775258#9783. Duloc Networkucup-team3634#WA 2ms3848kbC++2327.7kb2024-11-23 15:12:552024-11-23 15:12:56

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
1
3
2
2
2
2
1

output:

? 1000
? 0100
? 0010
? 0001
? 1100
? 0110
? 0011
! 1

result:

ok Correct answer with 7 queries.

Test #2:

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

input:

2
0
0
0

output:

? 10
? 01
? 11
! 0

result:

ok Correct answer with 3 queries.

Test #3:

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

input:

4
1
3
2
2
2
2
1

output:

? 1000
? 0100
? 0010
? 0001
? 1100
? 0110
? 0011
! 1

result:

ok Correct answer with 7 queries.

Test #4:

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

input:

2
0
0
0

output:

? 10
? 01
? 11
! 0

result:

ok Correct answer with 3 queries.

Test #5:

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

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

output:

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

result:

ok Correct answer with 243 queries.

Test #6:

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

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

output:

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

result:

ok Correct answer with 105 queries.

Test #7:

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

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

output:

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

result:

ok Correct answer with 258 queries.

Test #8:

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

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

output:

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

result:

ok Correct answer with 124 queries.

Test #9:

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

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

output:

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

result:

ok Correct answer with 237 queries.

Test #10:

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

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
4
5
6
7
6
5
6
7
8
11
14
15
16
17
7
5
5
14
18
9
16
17
18
21
10
16
10
15
22
24
23
11
14
12
13
7
...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 567 queries.

Test #11:

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

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
19
18
19
25
18
31
26
35
22
25
20
26
18
16
20
...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

wrong answer Wrong answer.