結果
問題 |
No.3142 Balancing with O=>X Flip
|
ユーザー |
👑 |
提出日時 | 2025-05-16 21:28:51 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 183 bytes |
コンパイル時間 | 169 ms |
コンパイル使用メモリ | 82,460 KB |
実行使用メモリ | 84,608 KB |
最終ジャッジ日時 | 2025-05-16 21:28:57 |
合計ジャッジ時間 | 2,564 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 RE * 1 |
other | AC * 13 WA * 7 RE * 4 |
ソースコード
N = int(input()) S = list(input()) stack = [] for s in S: stack.append(s) if len(S) >= 2 and S[-2:] == ["(", ")"]: stack.pop() stack.pop() print("Yes" if not stack else "No")