結果
問題 | No.2924 <===Super Spaceship String===> |
ユーザー |
![]() |
提出日時 | 2024-10-12 15:29:01 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 570 bytes |
コンパイル時間 | 198 ms |
コンパイル使用メモリ | 82,788 KB |
実行使用メモリ | 65,176 KB |
最終ジャッジ日時 | 2024-10-12 15:29:10 |
合計ジャッジ時間 | 3,791 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 40 ms
57,088 KB |
testcase_01 | AC | 37 ms
51,712 KB |
testcase_02 | AC | 37 ms
51,840 KB |
testcase_03 | TLE | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
ソースコード
S = input() L = [S[a] for a in range(len(S))] K = True while K: dame = 0 i = -1 k = 0 for a in range(len(L)): if L[a] == "<": i = a k = 0 elif L[a] == "=": if i != -1: k = 1 elif L[a] == ">": if i != -1 and k == 1: for _ in range(a-i+1): L.pop(i) break else: i = -1 k = 0 if a == len(L)-1: dame = 1 if dame >= 1: K = False print(len(L))