QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#510672#5199. Amazing TrickGuanYunchangWA 1ms7696kbC++202.3kb2024-08-09 10:42:462024-08-09 10:42:47

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
2
2 1
3
1 2 3
4
2 1 4 3
5
5 1 4 2 3

output:

Impossible
Possible
2 3 1 
3 1 2 
Possible
3 4 1 2 
4 3 2 1 
Possible
4 3 1 5 2 
5 1 4 2 3 

result:

ok 3/4 are 'Possible' (4 test cases)

Test #2:

score: -100
Wrong Answer
time: 1ms
memory: 7696kb

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

output:

Possible
0 
0 
Possible
1 
1 
Possible
1 
1 
Possible
1 
1 
Possible
1 
1 
Possible
1 
1 
Possible
1 
1 
Possible
1 
1 
Possible
1 
1 
Possible
1 
1 
Possible
1 
1 
Possible
1 
1 
Possible
1 
1 
Possible
1 
1 
Possible
1 
1 
Possible
1 
1 
Possible
1 
1 
Possible
1 
1 
Possible
1 
1 
Possible
1 
1 
...

result:

wrong answer Integer parameter [name=p[1]] equals to 0, violates the range [1, 1] (test case 1)