結果
問題 |
No.2398 ヒドラ崩し
|
ユーザー |
![]() |
提出日時 | 2025-04-15 23:51:35 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 189 bytes |
コンパイル時間 | 213 ms |
コンパイル使用メモリ | 82,424 KB |
実行使用メモリ | 60,740 KB |
最終ジャッジ日時 | 2025-04-15 23:53:04 |
合計ジャッジ時間 | 2,176 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)