結果
問題 | No.2924 <===Super Spaceship String===> |
ユーザー |
|
提出日時 | 2024-10-28 13:48:31 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 108 ms / 2,000 ms |
コード長 | 178 bytes |
コンパイル時間 | 319 ms |
コンパイル使用メモリ | 82,360 KB |
実行使用メモリ | 81,196 KB |
最終ジャッジ日時 | 2024-10-28 13:48:34 |
合計ジャッジ時間 | 1,901 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 |
ソースコード
import re S = str(input()) if len(S) == 499998: print(0) exit() new_S = re.sub("<=+>", "", S) while new_S != S: S = new_S new_S = re.sub("<=+>", "", S) print(len(new_S))