cf/mirror

Game of Stacks

CF
1889D3000· legendary gm1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
3
3 1 2 2
3 3 1 2
3 1 2 1
Output
1 2 2
Sample 2of 2
Input
5
5 1 2 4 3 4
6 1 2 5 3 3 4
6 1 1 4 4 4 2
9 3 1 4 2 3 5 5 1 2
4 4 4 1 3
Output
1 1 1 1 1
1889D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…