結果
問題 | No.49 算数の宿題 |
ユーザー | nohakai3 |
提出日時 | 2022-10-22 20:50:55 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 190 bytes |
コンパイル時間 | 265 ms |
コンパイル使用メモリ | 86,640 KB |
実行使用メモリ | 79,116 KB |
最終ジャッジ日時 | 2023-08-24 17:52:07 |
合計ジャッジ時間 | 2,452 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
ソースコード
l=list(input()) ans="((" for i in range(len(l)): if l[i]=="+": ans+="))*(" elif l[i]=="*": ans+=")+(" else: ans+=l[i] ans+=")" print(ans) print(eval(ans))