Sum of Nestings
847C1800· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
3 1
Output
()(())
Sample 2of 3
Input
4 6
Output
(((())))
Sample 3of 3
Input
2 5
Output
Impossible
58%
847C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
3 1
()(())
4 6
(((())))
2 5
Impossible