QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#784183#9783. Duloc Networkucup-team4851WA 3ms3940kbC++202.1kb2024-11-26 13:57:242024-11-26 13:57:26

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 3712kb

input:

2
0

output:

? 10
! 0

result:

ok Correct answer with 1 queries.

Test #3:

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

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: 3940kb

input:

2
0

output:

? 10
! 0

result:

ok Correct answer with 1 queries.

Test #5:

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

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 524 queries.

Test #6:

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

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

output:

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

result:

ok Correct answer with 108 queries.

Test #7:

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

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
16
19...

output:

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

result:

ok Correct answer with 503 queries.

Test #8:

score: -100
Wrong Answer
time: 1ms
memory: 3936kb

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
10
20
14
18
10
18
18
23
10
17
10
15
14
10
17
10
16
11
11
19
12
17
11
16
10
14
11
17
10
15
11
14
6
12
11
19
19
24
11
16
11
14
17
19
23
11
1...

output:

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

result:

wrong answer Wrong answer.