結果

問題 No.2924 <===Super Spaceship String===>
コンテスト
ユーザー ちーぴん
提出日時 2024-10-13 22:48:26
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 253 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 193 ms
コンパイル使用メモリ 85,504 KB
実行使用メモリ 106,208 KB
最終ジャッジ日時 2026-05-01 09:29:24
合計ジャッジ時間 2,151 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 6 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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))
0