結果
問題 |
No.193 筒の数式
|
ユーザー |
![]() |
提出日時 | 2015-04-26 22:28:42 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 412 bytes |
コンパイル時間 | 299 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 36,664 KB |
最終ジャッジ日時 | 2024-07-05 03:00:37 |
合計ジャッジ時間 | 4,421 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | TLE * 1 -- * 15 |
ソースコード
def elmLead0(s): while True: if '+0' in s: s.replace('+0', '+') elif '-0' in s: s.replace('-0', '-') elif s[0] == '0': s = s[1:] else: break return s s = input() ans = -(10**9) for i in range(len(s)): t = s[i:] + s[:i] if t[0] not in '+-' and t[-1] not in '+-': ans = max(ans, eval(elmLead0(t))) print(ans)