結果

問題 No.193 筒の数式
ユーザー NotationNapNotationNap
提出日時 2015-04-26 22:09:41
言語 Python2
(2.7.18)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 204 bytes
コンパイル時間 830 ms
コンパイル使用メモリ 6,652 KB
実行使用メモリ 6,172 KB
最終ジャッジ日時 2023-09-18 11:52:19
合計ジャッジ時間 1,917 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,084 KB
testcase_01 WA -
testcase_02 AC 11 ms
6,172 KB
testcase_03 AC 11 ms
6,052 KB
testcase_04 AC 11 ms
6,016 KB
testcase_05 AC 11 ms
6,128 KB
testcase_06 AC 11 ms
6,100 KB
testcase_07 AC 11 ms
5,964 KB
testcase_08 AC 10 ms
6,052 KB
testcase_09 AC 11 ms
6,024 KB
testcase_10 AC 11 ms
5,920 KB
testcase_11 AC 11 ms
6,092 KB
testcase_12 AC 11 ms
6,108 KB
testcase_13 AC 11 ms
6,000 KB
testcase_14 AC 11 ms
6,032 KB
testcase_15 AC 11 ms
6,056 KB
testcase_16 AC 11 ms
6,072 KB
testcase_17 AC 11 ms
6,028 KB
testcase_18 AC 11 ms
5,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = raw_input()
n = len(s)
s = s + s
best = -999999999
for i in xrange(n):
	t = s[i:i + n]
	if t[0] == '+' or t[0] == '-' or t[-1] == '+' or t[-1] == '-':
		continue
	best = max(best, eval(t))
print best;
0