結果
問題 |
No.3142 Balancing with O=>X Flip
|
ユーザー |
|
提出日時 | 2025-05-16 21:58:13 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 144 bytes |
コンパイル時間 | 360 ms |
コンパイル使用メモリ | 82,280 KB |
実行使用メモリ | 58,672 KB |
最終ジャッジ日時 | 2025-05-16 21:58:16 |
合計ジャッジ時間 | 2,161 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 WA * 1 |
ソースコード
n = int(input()) s = list(input().rstrip()) if s == [')','(']: print('No') exit() print('Yes' if s.count('(') == s.count(')') else 'No')