QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#776435#9783. Duloc Networkucup-team244#WA 1ms3920kbC++141.8kb2024-11-23 18:39:272024-11-23 18:39:28

详细

Test #1:

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

input:

4
1
3
2
2
2
1
2

output:

? 1000
? 0100
? 0010
? 0001
? 0101
? 0011
? 1010
! 1

result:

ok Correct answer with 7 queries.

Test #2:

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

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

input:

4
1
3
2
2
2
1
2

output:

? 1000
? 0100
? 0010
? 0001
? 0101
? 0011
? 1010
! 1

result:

ok Correct answer with 7 queries.

Test #4:

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

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

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
2
2
5
3
4
5
6
3
4
4
2
6
4
3
2
7
5
6
4
2
4
5
5
6
5
5
2
5
1
5
6
4
4
7
4
5
4
7
4
2
5
2
5
3
5
6
5
4
4
2
2
5
3
3
6
6
10
3
6
5
5
5
4
3
5
5
3
2
3
2
4
4
3
4
3
5
6
5
3
2
6
3
4
4
4
6
4
3
4
4
10
7
2
5
6
4
4...

output:

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

result:

ok Correct answer with 1134 queries.

Test #6:

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

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

output:

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

result:

ok Correct answer with 100 queries.

Test #7:

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

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
2
6
5
4
6
5
5
4
4
2
4
4
6
3
6
2
5
2
8
5
4
3
5
3
7
3
4
3
5
5
2
3
6
2
3
4
3
1
6
4
4
4
8
6
4
2
2
6
6
3
2
5
4
2
3
7
4
5
5
5
3
5
5
4
2
5
5
7
2
4
5
2
6
4
4
2
7
6
3
4
4
5
4
4
5
2
2
4
4
5
4
5
4
3
4
3
3
5
6...

output:

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

result:

ok Correct answer with 1150 queries.

Test #8:

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

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
10
15
15
14
12
12
18
17
12
19
14
14
18
15
17
15
12
12
11
17
11
14
16
10
16
9
19
12
16
16
13
17
16
9
18
12
15
14
11
16
17
14
14
17
12
11
15
12
16
13
13
14
12
15
10
16
8
17
17
18
17
17
...

output:

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

result:

wrong answer Wrong answer.