結果
問題 |
No.2398 ヒドラ崩し
|
ユーザー |
![]() |
提出日時 | 2025-04-16 16:26:36 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 189 bytes |
コンパイル時間 | 230 ms |
コンパイル使用メモリ | 81,820 KB |
実行使用メモリ | 61,080 KB |
最終ジャッジ日時 | 2025-04-16 16:28:17 |
合計ジャッジ時間 | 2,637 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 WA * 7 |
ソースコード
s = input().strip() count = 0 n = len(s) i = 0 while i < n - 1: if s[i] == '(' and s[i+1] == ')': count += 1 i += 2 else: i += 1 print(0 if count % 2 else 1)