QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#439920#6303. Inversionyoy68TL 0ms21160kbC++171.3kb2024-06-12 20:37:482024-06-12 20:37:48

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
0
1
0

output:

? 1 2
? 2 3
? 1 3
! 2 3 1 

result:

ok OK, guesses=3

Test #2:

score: -100
Time Limit Exceeded

input:

1993
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
1
0
1
1
0
1
0
1
0
0
0
0
0
0
0
0
1
1
1
0
1
0
0
0
1
0
0
0
1
1
0
0
1
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
1
0
1
1
0
1
1
1
0
1
0
0
0
1
1
0
0
1
0
0
0
0
1
0
0
1
1
0
1
1
0
1
1
1
1
1
0
0
0
0
0
1
0
1
1
1
0
0
1
1
1
1
1
1
1
0
0
1
1
1
1
0
0
1
0
0
0
0
1
1
0
1
1
1
0
0
0
1...

output:

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

result: