QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#792146#9537. Chinese Chessucup-team864#TL 143ms4440kbC++233.3kb2024-11-29 01:05:222024-11-29 01:05:24

详细

Test #1:

score: 100
Accepted
time: 6ms
memory: 4132kb

input:

1
9 0
6

output:

1
? 7 6
! S

result:

ok number is guessed.

Test #2:

score: 0
Accepted
time: 25ms
memory: 3968kb

input:

4
2 1
2 3
2 5
2 7
14
-1

output:

2
? 9 8
? 4 8
! B

result:

ok number is guessed.

Test #3:

score: 0
Accepted
time: 7ms
memory: 3916kb

input:

1
2 4
-1
7

output:

2
? 9 8
? 9 7
! S

result:

ok number is guessed.

Test #4:

score: 0
Accepted
time: 5ms
memory: 3880kb

input:

1
5 0
6

output:

1
? 3 6
! S

result:

ok number is guessed.

Test #5:

score: 0
Accepted
time: 6ms
memory: 3972kb

input:

1
6 0
6

output:

1
? 4 6
! S

result:

ok number is guessed.

Test #6:

score: 0
Accepted
time: 8ms
memory: 3884kb

input:

2
7 7
1 0
16
-1

output:

2
? 9 8
? 4 8
! B

result:

ok number is guessed.

Test #7:

score: 0
Accepted
time: 47ms
memory: 4260kb

input:

5
8 6
1 3
0 5
2 4
0 2
13
8

output:

2
? 9 8
? 4 8
! J

result:

ok number is guessed.

Test #8:

score: 0
Accepted
time: 60ms
memory: 3980kb

input:

6
0 7
1 6
2 8
0 5
7 6
8 2
12
7

output:

2
? 9 8
? 4 8
! J

result:

ok number is guessed.

Test #9:

score: 0
Accepted
time: 108ms
memory: 4140kb

input:

7
6 5
3 0
3 2
4 1
4 0
2 4
5 2
13
8

output:

2
? 9 8
? 4 8
! J

result:

ok number is guessed.

Test #10:

score: 0
Accepted
time: 143ms
memory: 4272kb

input:

8
3 3
2 5
6 2
7 4
1 4
3 0
2 4
3 4
12
7

output:

2
? 9 8
? 4 8
! J

result:

ok number is guessed.

Test #11:

score: 0
Accepted
time: 92ms
memory: 4184kb

input:

9
2 7
2 4
2 5
2 2
2 1
2 0
2 6
2 3
2 8
15
10

output:

2
? 9 8
? 4 8
! J

result:

ok number is guessed.

Test #12:

score: 0
Accepted
time: 108ms
memory: 4440kb

input:

10
4 0
0 0
5 0
7 0
8 0
1 0
6 0
9 0
2 0
3 0
16
11

output:

2
? 9 8
? 4 8
! J

result:

ok number is guessed.

Test #13:

score: 0
Accepted
time: 101ms
memory: 4148kb

input:

9
1 8
1 2
1 5
1 6
1 3
1 4
1 0
1 1
1 7
16
-1

output:

2
? 9 8
? 4 8
! B

result:

ok number is guessed.

Test #14:

score: 0
Accepted
time: 91ms
memory: 4156kb

input:

10
0 4
5 4
8 4
2 4
4 4
7 4
3 4
9 4
6 4
1 4
11
7

output:

2
? 9 7
? 4 8
! J

result:

ok number is guessed.

Test #15:

score: 0
Accepted
time: 99ms
memory: 4040kb

input:

9
4 6
4 5
4 7
4 4
4 1
4 3
4 0
4 8
4 2
13
8

output:

2
? 9 8
? 4 8
! J

result:

ok number is guessed.

Test #16:

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

input:

10
9 2
5 2
1 2
8 2
6 2
7 2
2 2
0 2
4 2
3 2
14
9

output:

2
? 9 8
? 4 8
! J

result:

ok number is guessed.

Test #17:

score: 0
Accepted
time: 94ms
memory: 4192kb

input:

9
3 1
3 7
3 5
3 3
3 6
3 4
3 0
3 2
3 8
14
-1

output:

2
? 9 8
? 4 8
! B

result:

ok number is guessed.

Test #18:

score: 0
Accepted
time: 105ms
memory: 4096kb

input:

10
5 1
8 1
6 1
4 1
3 1
0 1
2 1
7 1
9 1
1 1
16
-1

output:

2
? 9 8
? 4 8
! B

result:

ok number is guessed.

Test #19:

score: 0
Accepted
time: 80ms
memory: 4152kb

input:

9
1 6
1 4
1 3
1 7
1 8
1 5
1 2
1 1
1 0
16
-1

output:

2
? 9 8
? 4 8
! B

result:

ok number is guessed.

Test #20:

score: 0
Accepted
time: 108ms
memory: 4252kb

input:

10
5 0
9 0
1 0
2 0
3 0
6 0
7 0
4 0
0 0
8 0
16
11

output:

2
? 9 8
? 4 8
! J

result:

ok number is guessed.

Test #21:

score: 0
Accepted
time: 104ms
memory: 4016kb

input:

9
0 3
0 5
0 7
0 0
0 4
0 8
0 1
0 6
0 2
17
12

output:

2
? 9 8
? 4 8
! J

result:

ok number is guessed.

Test #22:

score: 0
Accepted
time: 109ms
memory: 4412kb

input:

10
1 0
9 0
4 0
2 0
8 0
7 0
5 0
3 0
0 0
6 0
16
11

output:

2
? 9 8
? 4 8
! J

result:

ok number is guessed.

Test #23:

score: 0
Accepted
time: 82ms
memory: 4376kb

input:

9
1 8
1 2
1 7
1 0
1 4
1 6
1 1
1 5
1 3
16
-1

output:

2
? 9 8
? 4 8
! B

result:

ok number is guessed.

Test #24:

score: 0
Accepted
time: 90ms
memory: 4160kb

input:

10
2 4
1 4
0 4
6 4
4 4
9 4
5 4
3 4
7 4
8 4
11
7

output:

2
? 9 7
? 4 8
! J

result:

ok number is guessed.

Test #25:

score: 0
Accepted
time: 104ms
memory: 4188kb

input:

9
0 2
0 7
0 5
0 4
0 0
0 3
0 1
0 6
0 8
17
12

output:

2
? 9 8
? 4 8
! J

result:

ok number is guessed.

Test #26:

score: 0
Accepted
time: 95ms
memory: 4376kb

input:

10
5 3
2 3
3 3
8 3
9 3
1 3
6 3
7 3
0 3
4 3
14
-1

output:

2
? 9 8
? 4 8
! B

result:

ok number is guessed.

Test #27:

score: -100
Time Limit Exceeded

input:

50
7 5
9 2
0 4
9 3
8 4
8 2
7 2
6 4
4 4
0 0
1 7
1 1
1 5
2 0
9 8
9 0
3 1
7 8
8 6
5 0
7 3
8 5
2 6
4 8
3 5
6 8
0 8
5 7
4 6
1 6
3 8
5 6
3 0
5 3
0 7
5 1
3 4
0 1
7 6
2 3
4 3
5 5
8 1
0 3
6 5
9 5
5 8
7 4
6 3
2 7
3
2
3

output:

3
? 9 8
? 9 7
? 7 2
! M

result: