cf/mirror

A Simple RBS Problem

CF
2210D2100· master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
4
()()
()()
4
()()
(())
6
(())()
()(())
8
(()()())
()()(())
8
()()(())
()(()())
Output
YES
NO
YES
NO
YES
2210D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…