結果

問題 No.193 筒の数式
ユーザー flippergo
提出日時 2025-01-01 14:47:27
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 210 bytes
コンパイル時間 301 ms
コンパイル使用メモリ 82,460 KB
実行使用メモリ 66,468 KB
最終ジャッジ日時 2025-01-01 14:47:30
合計ジャッジ時間 2,280 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input().strip()
NUM = [str(i) for i in range(10)]
ans = -10**10
for i in range(len(S)):
    x = S[i:]+S[:i]
    if x[0] not in NUM or x[-1] not in NUM:
        continue
    ans = max(ans,eval(x))
print(ans)
0