Skip to content

Maxwell’s Demon

Unrated
English

Language

Contribute a translation
Time limit
6000 ms
Memory limit
2048 MB (no extra memory)
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

Maxwell’s Demon, original English page 1

Maxwell’s Demon, original English page 2

Examples

Sample input 1
7 4 1 1 1
2 1 4 1
-3 1 2 0
Sample output 1
24.0
Sample input 2
4 4 1 2 2
3 1 2 2
-2 3 -2 -1
3 2 1 -2
-2 2 2 2
Sample output 2
impossible

Tags

No tags yet

Source