結果
問題 |
No.2924 <===Super Spaceship String===>
|
ユーザー |
![]() |
提出日時 | 2024-10-13 22:48:26 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 253 bytes |
コンパイル時間 | 184 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 102,188 KB |
最終ジャッジ日時 | 2024-10-13 22:48:29 |
合計ジャッジ時間 | 1,967 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 WA * 6 |
ソースコード
S = input() stack = [] for s in S: if s == "=" and len(stack) > 0 and stack[-1] == "=": continue stack.append(s) if len(stack) >= 3 and stack[-3:] == list("<=>"): for _ in range(3): stack.pop() print(len(stack))