結果

問題 No.193 筒の数式
ユーザー lloyz
提出日時 2023-04-26 00:11:39
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 268 bytes
コンパイル時間 179 ms
コンパイル使用メモリ 82,180 KB
実行使用メモリ 66,432 KB
最終ジャッジ日時 2024-11-15 08:57:10
合計ジャッジ時間 2,109 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9 WA * 5 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque

Que = deque(list(input()))

n = len(Que)
ans = 0
for _ in range(n):
    s = ''.join(Que)
    if s[0] not in ['-', '+'] and s[-1] not in ['-', '+']:
        ans = max(ans, eval(s))
    temp = Que.pop()
    Que.appendleft(temp)
print(ans)
0