Game of Stacks
1889D3000· legendary gm1s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
33 1 2 23 3 1 23 1 2 1
Output
1 2 2
Sample 2of 2
Input
55 1 2 4 3 46 1 2 5 3 3 46 1 1 4 4 4 29 3 1 4 2 3 5 5 1 24 4 4 1 3
Output
1 1 1 1 1
58%
1889D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…