QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#232175#6345. Random Interactive Convex Hull Botucup-team1565WA 70ms5316kbC++202.5kb2023-10-29 22:54:192023-10-29 22:54:20

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5
-1
1
1
1
-1
1
1
1
1
1
1

output:

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

result:

ok OK, 11 queries, 4 point in hull

Test #2:

score: 0
Accepted
time: 2ms
memory: 3476kb

input:

50
-1
1
-1
-1
-1
-1
1
1
-1
1
-1
1
1
-1
-1
-1
1
-1
-1
-1
1
1
1
1
1
1
1
-1
1
-1
1
1
1
1
-1
-1
-1
1
-1
-1
1
1
-1
-1
1
-1
-1
-1
-1
-1
-1
1
-1
-1
1
1
-1
-1
1
1
1
-1
-1
1
1
1
1
1
1
-1
1
-1
-1
1
1
-1
-1
-1
1
-1
-1
1
1
-1
-1
1
1
1
-1
-1
1
1
1
1
-1
-1
-1
1
-1
1
-1
1
1
-1
-1
1
-1
1
1
-1
-1
1
-1
1
1
1
1
1
1
-1...

output:

? 3 1 2
? 2 1 3
? 2 3 4
? 2 1 4
? 4 2 1
? 4 2 3
? 4 1 3
? 1 3 4
? 1 4 5
? 1 3 5
? 1 2 5
? 2 3 5
? 5 1 3
? 5 3 2
? 5 1 2
? 5 3 4
? 5 2 4
? 5 1 4
? 3 1 4
? 1 4 2
? 2 4 5
? 2 5 6
? 6 2 4
? 6 4 1
? 6 1 3
? 6 3 5
? 2 4 6
? 2 6 7
? 2 4 7
? 2 3 7
? 2 1 7
? 3 1 7
? 7 2 4
? 7 4 1
? 7 1 3
? 7 2 3
? 7 1 5
? 7 ...

result:

ok OK, 565 queries, 10 point in hull

Test #3:

score: 0
Accepted
time: 21ms
memory: 4020kb

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5
? 2 1 5
? 2 3 5
? 4 3 5
? 5 2 1
? 5 1 3
? 5 3 4
? 5 2 4
? 1 2 4
? 4 2 5
? 4 5 6
? 4 2 6
? 4 1 6
? 4 3 6
? 3 1 6
? 6 4 2
? 6 2 1
? 6 1 3
? 6 4 3
? 6 1 5
? 6 3 5
? 6 4 5
? 3 5 6
? 3 6 7
? 3 5 7
? 3 2 7
? 3 4 7
? 4 5 7
? 7 3 5
? 7 5 4
? 7 3 4
? 7 ...

result:

ok OK, 17573 queries, 23 point in hull

Test #5:

score: 0
Accepted
time: 33ms
memory: 4980kb

input:

3000
1
1
-1
-1
-1
-1
1
1
1
-1
1
1
1
-1
-1
-1
-1
-1
-1
1
1
-1
1
1
1
1
-1
1
-1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
-1
1
-1
-1
1
1
-1
1
-1
-1
1
1
-1
-1
-1
-1
-1
1
-1
-1
1
1
1
-1
-1
1
1
1
1
-1
-1
-1
-1
1
1
-1
1
1
-1
1
1
1
1
-1
-1
-1
1
-1
-1
1
1
-1
-1
-1
1
-1
1
-1
1
-1
-1
-1
1
-1
1
1
-1
-...

output:

? 3 1 2
? 1 2 3
? 1 3 4
? 1 2 4
? 4 1 2
? 4 1 3
? 4 2 3
? 2 3 4
? 2 4 5
? 5 2 3
? 5 2 1
? 5 1 4
? 3 1 5
? 3 5 6
? 3 1 6
? 6 3 1
? 6 3 4
? 6 1 4
? 6 3 5
? 6 4 5
? 6 1 5
? 3 5 4
? 4 5 6
? 4 6 7
? 7 4 5
? 7 5 3
? 7 3 6
? 7 4 6
? 7 5 6
? 5 6 4
? 4 5 7
? 4 7 8
? 8 4 5
? 8 5 3
? 8 3 7
? 4 5 8
? 4 8 9
? 9 ...

result:

ok OK, 25154 queries, 25 point in hull

Test #6:

score: -100
Wrong Answer
time: 70ms
memory: 5316kb

input:

4000
1
1
-1
-1
-1
-1
1
1
-1
-1
-1
-1
-1
-1
1
1
-1
1
-1
1
-1
-1
-1
1
-1
-1
-1
1
1
-1
-1
1
1
-1
-1
1
1
1
1
1
-1
-1
-1
1
-1
1
1
1
1
1
1
-1
1
1
-1
-1
1
-1
1
1
-1
-1
-1
1
1
1
1
1
1
1
-1
-1
1
-1
1
-1
1
-1
-1
1
1
1
1
1
1
1
1
-1
-1
1
-1
1
1
-1
-1
-1
1
-1
1
1
1
1
-1
-1
-1
1
-1
-1
1
1
-1
-1
1
1
1
-1
1
-1
1
1
...

output:

? 3 1 2
? 1 2 3
? 1 3 4
? 1 2 4
? 4 1 2
? 4 1 3
? 4 2 3
? 2 3 4
? 2 4 5
? 2 3 5
? 5 2 3
? 5 2 1
? 5 3 1
? 5 2 4
? 5 1 4
? 5 3 4
? 2 4 1
? 1 4 5
? 1 5 6
? 1 4 6
? 1 2 6
? 2 4 6
? 1 5 7
? 1 4 7
? 1 2 7
? 2 4 7
? 1 5 8
? 1 4 8
? 1 2 8
? 5 2 8
? 1 5 9
? 1 4 9
? 1 2 9
? 5 2 9
? 1 5 10
? 1 4 10
? 1 2 10
?...

result:

wrong answer Integer 0 violates the range [1, 4000]