結果

問題 No.193 筒の数式
ユーザー beetbeet
提出日時 2018-08-09 13:47:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 262 bytes
コンパイル時間 222 ms
コンパイル使用メモリ 11,700 KB
実行使用メモリ 9,940 KB
最終ジャッジ日時 2023-10-24 12:00:51
合計ジャッジ時間 1,661 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 28 ms
9,844 KB
testcase_03 AC 27 ms
9,844 KB
testcase_04 AC 28 ms
9,844 KB
testcase_05 AC 28 ms
9,844 KB
testcase_06 AC 28 ms
9,844 KB
testcase_07 AC 28 ms
9,844 KB
testcase_08 AC 28 ms
9,844 KB
testcase_09 AC 28 ms
9,844 KB
testcase_10 AC 28 ms
9,844 KB
testcase_11 AC 28 ms
9,844 KB
testcase_12 AC 28 ms
9,844 KB
testcase_13 AC 28 ms
9,844 KB
testcase_14 AC 27 ms
9,844 KB
testcase_15 AC 28 ms
9,844 KB
testcase_16 AC 27 ms
9,844 KB
testcase_17 AC 28 ms
9,844 KB
testcase_18 AC 28 ms
9,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
ans = -10 ** 10
if s[0].isdigit() and s[-1].isdigit():
    ans = eval(s)
for i in range(len(s)):
    if i == 0: continue;
    if s[i-1].isdigit() and s[i].isdigit():
        res = eval(s[i:]+s[:i])
        if ans < res: ans = res;        
print(ans)
0