QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#117186#4776. Smoking gunDitaMirikaWA 35ms3528kbC++141.5kb2023-06-30 16:21:192023-06-30 16:21:23

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
4 2
BillyTheKid 0 0
Andy 10 0
John 19 0
Larry 20 0
Andy heard BillyTheKid firing before John
Larry heard John firing before BillyTheKid
2 2
Andy 0 0
Beate 0 1
Andy heard Beate firing before Andy
Beate heard Andy firing before Beate
3 1
Andy 0 0
Beate 0 1
Charles 1 3
Beate heard Andy firing before ...

output:

BillyTheKid John
IMPOSSIBLE
UNKNOWN

result:

ok 3 lines

Test #2:

score: -100
Wrong Answer
time: 35ms
memory: 3528kb

input:

100
3 2
A 9 3
B 9 9
C 0 0
C heard A firing before B
A heard B firing before A
4 3
A 0 0
B 10 0
C 10 1
D 5 1
B heard A firing before B
B heard B firing before C
D heard C firing before A
3 1
A 0 0
B 0 1
C 1000000 0
C heard A firing before B
4 2
A 0 0
B 0 1
C 1000000 0
D 500000 0
C heard A firing befo...

output:

IMPOSSIBLE
IMPOSSIBLE
UNKNOWN
IMPOSSIBLE
B A
UNKNOWN
SHTab SHTac SHTaa
IMPOSSIBLE
UNKNOWN
UNKNOWN
ab ai
UNKNOWN
UNKNOWN
UNKNOWN
UNKNOWN
UNKNOWN
UNKNOWN
IMPOSSIBLE
UNKNOWN
UNKNOWN
ad ah
UNKNOWN
IMPOSSIBLE
ag aq au aj
UNKNOWN
UNKNOWN
UNKNOWN
bc ba ar aq at as ad bd ag al ac ak ay
UNKNOWN
UNKNOWN
UNKNO...

result:

wrong answer 9th lines differ - expected: 'ag ah aj ac ab ae aa ad ai', found: 'UNKNOWN'