cf/mirror

Guess Your Way Out! II

CF
558D2300· international master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
3 1
3 4 6 0
Output
7
Sample 2of 4
Input
4 3
4 10 14 1
3 6 6 0
2 3 3 1
Output
14
Sample 3of 4
Input
4 2
3 4 6 1
4 12 15 1
Output
Data not sufficient!
Sample 4of 4
Input
4 2
3 4 5 1
2 3 3 1
Output
Game cheated!
558D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)