結果
問題 | No.49 算数の宿題 |
ユーザー |
![]() |
提出日時 | 2021-12-07 06:32:31 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 5,000 ms |
コード長 | 249 bytes |
コンパイル時間 | 297 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-23 02:16:09 |
合計ジャッジ時間 | 1,229 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
S=input()T=""X=[]for s in S:if s!="+"and s!="*":T+=selse:T+=" "X+=[s]T=list(map(int,T.split()))ANS=T[0]for i in range(len(X)):if X[i]=="+":ANS*=T[i+1]else:ANS+=T[i+1]print(ANS)