結果
| 問題 | No.49 算数の宿題 |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2022-01-20 21:04:14 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 36 ms / 5,000 ms |
| + 316µs | |
| コード長 | 231 bytes |
| 記録 | |
| コンパイル時間 | 88 ms |
| コンパイル使用メモリ | 64,592 KB |
| 実行使用メモリ | 53,812 KB |
| 最終ジャッジ日時 | 2026-10-15 14:31:49 |
| 合計ジャッジ時間 | 2,037 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
S = input() + "*"
ans = 0
ope = "*"
T = ""
for s in S:
if s.isdigit():
T += s
else:
if ope == "*":
ans += int(T)
else:
ans *= int(T)
T = ""
ope = s
print(ans)