QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#792142#9537. Chinese Chessucup-team864#TL 130ms4456kbC++233.2kb2024-11-29 01:01:302024-11-29 01:01:31

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1
9 0
6

output:

1
? 7 6
! S

result:

ok number is guessed.

Test #2:

score: 0
Accepted
time: 24ms
memory: 4012kb

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: 5ms
memory: 3808kb

input:

1
2 4
-1
7

output:

2
? 9 8
? 9 7
! S

result:

ok number is guessed.

Test #4:

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

input:

1
5 0
6

output:

1
? 3 6
! S

result:

ok number is guessed.

Test #5:

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

input:

1
6 0
6

output:

1
? 4 6
! S

result:

ok number is guessed.

Test #6:

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

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: 45ms
memory: 4264kb

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: 57ms
memory: 4064kb

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: 99ms
memory: 4196kb

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: 130ms
memory: 4456kb

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: 86ms
memory: 4140kb

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: 101ms
memory: 4144kb

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: 78ms
memory: 4292kb

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: 86ms
memory: 4088kb

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: 92ms
memory: 4308kb

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: 99ms
memory: 4420kb

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: 84ms
memory: 4024kb

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: 97ms
memory: 4132kb

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: 78ms
memory: 4360kb

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: 100ms
memory: 4440kb

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: 98ms
memory: 4172kb

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: 99ms
memory: 4140kb

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: 79ms
memory: 4072kb

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: 83ms
memory: 4152kb

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: 98ms
memory: 4104kb

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: 87ms
memory: 4164kb

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: