結果
| 問題 | No.3141 Balancing with X=>O Flip |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-06-20 15:17:17 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 97 ms / 2,000 ms |
| コード長 | 103 bytes |
| 記録 | |
| コンパイル時間 | 683 ms |
| コンパイル使用メモリ | 20,572 KB |
| 実行使用メモリ | 15,232 KB |
| 最終ジャッジ日時 | 2026-06-20 15:17:24 |
| 合計ジャッジ時間 | 4,993 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
n = int(input())
s = input()
if s.count('(') == s.count(')') :
print('Yes')
else:
print('No')