Created
March 30, 2018 13:31
-
-
Save qkreltms/fddb1ee55bef239e1454cc80a9a99cbc to your computer and use it in GitHub Desktop.
백준9012번 easy버전
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def f(str): | |
| while "()" in str: | |
| str = str.replace("()", "") | |
| if len(str) >= 1: | |
| print("NO") | |
| else: | |
| print("YES") | |
| for _ in range(int(input())): | |
| f(input()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment