結果
| 問題 | No.49 算数の宿題 |
| コンテスト | |
| ユーザー |
ixmel
|
| 提出日時 | 2017-03-30 20:16:21 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 98 ms / 5,000 ms |
| コード長 | 195 bytes |
| 記録 | |
| コンパイル時間 | 313 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-05-29 04:48:24 |
| 合計ジャッジ時間 | 2,230 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
s=input() s+="+" out,t=0,-1 for i in range(len(s)): if s[i]=='*' or s[i]=='+': a=s[t+1:i] if t==-1:out=int(a) else: if s[t]=='+':out*=int(a) if s[t]=='*':out+=int(a) t=i print(out)
ixmel