QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#445261#6303. Inversionegypt_ioi2024_13TL 1ms3552kbC++203.4kb2024-06-16 00:32:412024-06-16 00:32:41

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
1
0
0

output:

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

result:

ok OK, guesses=3

Test #2:

score: -100
Time Limit Exceeded

input:

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

output:

? 1992 1993
? 1991 1992
? 1990 1992
? 1990 1991
? 1990 1993
? 1990 1992
? 1989 1992
? 1989 1991
? 1989 1990
? 1989 1993
? 1989 1992
? 1988 1990
? 1988 1991
? 1988 1992
? 1988 1991
? 1987 1988
? 1987 1991
? 1987 1992
? 1987 1991
? 1986 1988
? 1986 1987
? 1986 1992
? 1986 1991
? 1986 1987
? 1985 1986
...

result: