結果
| 問題 |
No.193 筒の数式
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-04-26 22:16:36 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 168 bytes |
| コンパイル時間 | 75 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-05 02:56:12 |
| 合計ジャッジ時間 | 1,014 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 WA * 1 |
ソースコード
S = raw_input()
ans = -9999999999999
for i in xrange(len(S)):
s = S[i:] + S[:i]
if s[0] in "+-" or s[-1] in "+-": continue
ans = max(ans, eval(s))
print ans