QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#887966#9734. Identify ChordHuluoboTL 0ms3584kbC++141.7kb2025-02-07 21:01:402025-02-07 21:01:47

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
6
2
2
2
1
1
4
1
1

output:

? 1 3
? 1 4
? 1 5
? 2 4
! 2 4
? 1 3
! 1 3

result:

ok ok (2 test cases)

Test #2:

score: -100
Time Limit Exceeded

input:

1000
15
5
6
4
1
1
2
1
1
19
5
6
4
4
4
3
5
1
17
5
6
4
3
4
3
4
1
15
6
7
6
1
1
14
5
6
4
3
5
1
1
15
3
4
2
3
3
3
1
17
8
8
6
7
5
3
5
4
3
1
20
6
7
7
1
1
13
5
4
5
3
3
2
1
1
18
3
2
4
4
4
3
3
1
13
4
3
5
3
4
5
1
14
2
1
3
3
2
1
1
17
8
6
7
5
3
3
2
3
1
12
5
5
4
2
3
3
2
1
10
2
3
4
5
4
3
2
2
3
4
5
4
3
2
2
3
4
3
4
3
...

output:

? 1 8
? 15 8
? 2 8
? 5 8
? 7 8
? 6 8
? 5 8
! 5 8
? 1 10
? 19 10
? 2 10
? 6 10
? 4 10
? 3 10
? 3 8
! 3 12
? 1 9
? 17 9
? 2 9
? 6 9
? 4 9
? 3 9
? 3 7
! 3 11
? 1 8
? 15 8
? 2 8
? 1 3
! 1 3
? 1 8
? 14 8
? 2 8
? 5 8
? 3 8
? 2 5
! 2 5
? 1 8
? 15 8
? 2 8
? 5 8
? 3 8
? 2 7
! 2 9
? 1 9
? 2 10
? 3 11
? 2 11
?...

result: