結果

問題 No.193 筒の数式
ユーザー 🍡yurahuna🍡yurahuna
提出日時 2016-05-04 18:33:54
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 159 bytes
コンパイル時間 463 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 66,160 KB
最終ジャッジ日時 2024-04-15 11:24:47
合計ジャッジ時間 1,908 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 41 ms
52,000 KB
testcase_03 AC 39 ms
52,528 KB
testcase_04 AC 39 ms
53,432 KB
testcase_05 AC 39 ms
52,756 KB
testcase_06 AC 45 ms
52,456 KB
testcase_07 AC 39 ms
53,008 KB
testcase_08 AC 39 ms
52,012 KB
testcase_09 AC 38 ms
52,992 KB
testcase_10 AC 38 ms
52,080 KB
testcase_11 AC 39 ms
52,676 KB
testcase_12 AC 39 ms
52,440 KB
testcase_13 AC 39 ms
52,000 KB
testcase_14 AC 40 ms
53,496 KB
testcase_15 AC 38 ms
52,964 KB
testcase_16 AC 38 ms
52,808 KB
testcase_17 AC 39 ms
52,256 KB
testcase_18 AC 38 ms
53,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
N = len(s)
s += s
ans = -10**15
for i in range(N):
    if s[i].isdigit() and s[i+N-1].isdigit():
        ans = max(ans, eval(s[i:i+N]))
print(ans)
0