結果

問題 No.193 筒の数式
ユーザー ssmkzk
提出日時 2018-12-10 13:10:04
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 293 bytes
コンパイル時間 237 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-16 15:48:21
合計ジャッジ時間 1,416 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
ans_l = []

for i in range(len(S)):
    newS = S[i:] + S[:i]
    if newS[0] == "+" or newS[0] == "-":
        continue
    if newS[-1] == "+" or newS[-1] == "-":
        continue
    if "+-" in newS or "-+" in newS:
        continue
    ans_l.append(eval(newS))

print(max(ans_l)) 
0