結果
| 問題 |
No.2398 ヒドラ崩し
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 19:41:44 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 209 bytes |
| コンパイル時間 | 231 ms |
| コンパイル使用メモリ | 82,148 KB |
| 実行使用メモリ | 65,264 KB |
| 最終ジャッジ日時 | 2025-06-12 19:41:46 |
| 合計ジャッジ時間 | 2,472 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 14 |
ソースコード
H = input().strip()
current_depth = 0
xor_sum = 0
for c in H:
if c == '(':
current_depth += 1
else:
xor_sum ^= current_depth
current_depth -= 1
print(0 if xor_sum != 0 else 1)
gew1fw