結果

問題 No.193 筒の数式
ユーザー yuppe19 😺yuppe19 😺
提出日時 2015-04-26 23:44:12
言語 Python2
(2.7.18)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 227 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 6,588 KB
実行使用メモリ 6,180 KB
最終ジャッジ日時 2023-09-18 11:56:13
合計ジャッジ時間 1,265 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,968 KB
testcase_01 WA -
testcase_02 AC 12 ms
6,040 KB
testcase_03 AC 11 ms
6,008 KB
testcase_04 AC 12 ms
5,968 KB
testcase_05 AC 11 ms
5,904 KB
testcase_06 AC 11 ms
5,908 KB
testcase_07 AC 11 ms
5,988 KB
testcase_08 AC 10 ms
5,960 KB
testcase_09 AC 11 ms
5,960 KB
testcase_10 AC 10 ms
5,972 KB
testcase_11 AC 11 ms
5,972 KB
testcase_12 AC 11 ms
6,112 KB
testcase_13 AC 11 ms
6,040 KB
testcase_14 AC 11 ms
5,916 KB
testcase_15 AC 10 ms
6,004 KB
testcase_16 AC 10 ms
6,180 KB
testcase_17 AC 10 ms
5,992 KB
testcase_18 AC 11 ms
6,036 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python
ok = lambda x: (x[0] not in '+-') and (x[-1] not in '+-')

s = raw_input()
hamark = -float('inf')
for i in xrange(len(s)):
    x = s[i:] + s[:i]
    if ok(x):
        hamark = max(hamark, eval(x))
print hamark
0