QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#107238#6394. Turn on the LightGuanYunchangWA 3ms3736kbC++14379b2023-05-20 16:24:162023-05-20 16:24:20

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
1
1

output:

? 1
? 3
! 3

result:

ok Correct position at 3

Test #2:

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

input:

10
1
0
1
0

output:

? 1
? 6
? 2
? 4
! 3

result:

ok Correct position at 3

Test #3:

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

input:

9
1
0
1
0

output:

? 1
? 6
? 2
? 4
! 3

result:

ok Correct position at 3

Test #4:

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

input:

8
1
0
1
0

output:

? 1
? 5
? 2
? 4
! 3

result:

ok Correct position at 3

Test #5:

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

input:

7
1
0
1
0

output:

? 1
? 5
? 2
? 4
! 3

result:

ok Correct position at 3

Test #6:

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

input:

6
1
0
1
1

output:

? 1
? 4
? 2
? 3
! 3

result:

ok Correct position at 3

Test #7:

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

input:

5
1
0
1
1

output:

? 1
? 4
? 2
? 3
! 3

result:

ok Correct position at 3

Test #8:

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

input:

4
1
1

output:

? 1
? 3
! 3

result:

ok Correct position at 3

Test #9:

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

input:

3
1
0

output:

? 1
? 3
! 2

result:

ok Correct position at 2

Test #10:

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

input:

2
1
1

output:

? 1
? 2
! 2

result:

ok Correct position at 2

Test #11:

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

input:

1

output:

! 1

result:

ok Correct position at 1

Test #12:

score: -100
Wrong Answer
time: 3ms
memory: 3536kb

input:

1000000
1
0
1
0
1
0
1
0
1
0
1
0
1
2
3
2
3
2
3
2
3
2
3
2
3
2
3
2
3
4
5
4
5
4
5
6
6
5

output:

? 1
? 500001
? 2
? 250002
? 3
? 125003
? 4
? 62504
? 5
? 31255
? 6
? 15631
? 7
? 7819
? 7820
? 11726
? 7821
? 9774
? 7822
? 8798
? 7823
? 8311
? 7824
? 8068
? 7825
? 7947
? 7826
? 7887
? 7827
? 7857
? 7858
? 7873
? 7859
? 7866
? 7860
? 7863
? 7864
? 7865
! 7865

result:

wrong answer Wrong favorite light!