結果

問題 No.193 筒の数式
ユーザー 12354865271235486527
提出日時 2020-01-14 11:00:10
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
RE  
実行時間 -
コード長 191 bytes
コンパイル時間 129 ms
コンパイル使用メモリ 10,520 KB
実行使用メモリ 7,980 KB
最終ジャッジ日時 2023-08-26 00:20:10
合計ジャッジ時間 1,938 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 15 ms
7,804 KB
testcase_03 AC 16 ms
7,980 KB
testcase_04 AC 16 ms
7,792 KB
testcase_05 AC 16 ms
7,780 KB
testcase_06 AC 15 ms
7,772 KB
testcase_07 AC 15 ms
7,816 KB
testcase_08 AC 16 ms
7,828 KB
testcase_09 AC 16 ms
7,828 KB
testcase_10 AC 16 ms
7,836 KB
testcase_11 AC 15 ms
7,828 KB
testcase_12 AC 16 ms
7,748 KB
testcase_13 AC 15 ms
7,796 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
D = set(map(str, range(10)))
ans = 0
for i in range(len(S)):
    A = S[i:] + S[:i]
    if not A[0] in D or not A[-1] in D:
        continue
    ans = max(ans, eval(A))
print(ans)
0