QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#883064#9734. Identify ChordHuluoboTL 1ms3968kbC++143.9kb2025-02-05 14:35:552025-02-05 14:35:57

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
6
2
2
1
1
1
1
4
1
1
1
1
1

output:

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

result:

ok ok (2 test cases)

Test #2:

score: -100
Time Limit Exceeded

input:

1000
15
5
6
1
1
2
1
1
19
5
4
5
3
4
5
1
17
5
4
5
3
4
5
1
15
7
7
6
7
2
1
1
1
1
14
5
4
2
2
3

output:

? 5 12
? 5 13
? 5 8
? 5 6
? 5 7
? 5 8
! 5 8
? 1 10
? 1 11
? 1 15
? 1 12
? 1 13
? 18 12
! 3 12
? 1 9
? 1 10
? 1 13
? 1 11
? 1 12
? 16 11
! 3 11
? 1 9
? 2 10
? 1 8
? 1 9
? 1 4
? 1 2
? 1 3
? 1 3
! 1 3
? 6 13
? 6 14
? 6 2
? 6 4
? 6 3
? 5 16

result: