Chips Puzzle
1054E2400· grandmaster1s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
2 200 1001 1110 0110 01
Output
42 1 1 11 1 1 21 2 2 22 2 2 1
Sample 2of 2
Input
2 30 0 0011 1 00 0 1011 0 0
Output
42 2 1 21 2 2 21 2 1 31 3 1 2
58%
1054E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)