Balance the Bits
1503A1600· expert1s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
3610110110100110110141100
Output
YES()()()((()))YES()()((()))(())()()()NO
58%
1503A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
3610110110100110110141100
YES()()()((()))YES()()((()))(())()()()NO