QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#151114#5555. Chaotic ConstructionHuangHanShengWA 11ms3636kbC++201.2kb2023-08-26 15:29:012023-08-26 15:29:05

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

10 12
? 1 5
- 2
- 8
? 9 2
? 9 8
? 9 7
? 6 7
? 3 7
? 1 9
? 9 1
+ 8
? 10 3

output:

possible
impossible
impossible
impossible
possible
possible
possible
possible
possible

result:

ok 9 lines

Test #2:

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

input:

20 20
? 17 4
- 11
+ 11
? 16 1
- 8
- 13
? 18 12
? 17 11
? 9 16
+ 8
? 18 4
? 8 4
- 20
- 14
? 7 12
? 19 20
? 6 10
+ 13
? 5 11
+ 20

output:

possible
possible
impossible
impossible
impossible
possible
possible
possible
impossible
possible
possible

result:

ok 11 lines

Test #3:

score: -100
Wrong Answer
time: 11ms
memory: 3636kb

input:

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

output:

possible
impossible
possible
possible
possible
possible
possible
possible
impossible
impossible
impossible
impossible
impossible
impossible
impossible
impossible
impossible
impossible
impossible
possible
possible
possible
possible
impossible
possible
impossible
possible
possible
possible
impossible
...

result:

wrong answer 12th lines differ - expected: 'possible', found: 'impossible'