結果
| 問題 | No.49 算数の宿題 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-30 17:13:20 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 249 bytes |
| 記録 | |
| コンパイル時間 | 63 ms |
| コンパイル使用メモリ | 82,044 KB |
| 実行使用メモリ | 74,872 KB |
| 最終ジャッジ日時 | 2026-10-06 07:28:12 |
| 合計ジャッジ時間 | 1,681 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 10 |
ソースコード
S = input()
l = list(map(int,S.split("*+")))
op = ["+"]
for s in S:
if s == "*" or s == "+":
op.append(s)
ans = 0
for i in range(len(op)):
t = l[i]
p = op[i]
if p == "+":
ans += t
else:
ans *= t
print(ans)