結果
問題 |
No.193 筒の数式
|
ユーザー |
![]() |
提出日時 | 2018-08-10 22:19:46 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 254 bytes |
コンパイル時間 | 188 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-23 05:58:01 |
合計ジャッジ時間 | 1,645 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 RE * 2 |
ソースコード
s = input() import copy import re ss = [ s ] ans = [] for i in range(len(s)): ss.append( ss[-1][1:] + ss[-1][0] ) try: if ss[-1][0] not in ['+', '-'] and ss[-1][-1] not in ['+', '-']: ans.append( eval(ss[-1]) ) except:... print(max(ans))