結果
問題 |
No.193 筒の数式
|
ユーザー |
![]() |
提出日時 | 2018-08-09 13:47:58 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 262 bytes |
コンパイル時間 | 105 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-09-23 04:20:08 |
合計ジャッジ時間 | 1,495 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 RE * 2 |
ソースコード
s = input() ans = -10 ** 10 if s[0].isdigit() and s[-1].isdigit(): ans = eval(s) for i in range(len(s)): if i == 0: continue; if s[i-1].isdigit() and s[i].isdigit(): res = eval(s[i:]+s[:i]) if ans < res: ans = res; print(ans)