結果
問題 | No.49 算数の宿題 |
ユーザー | _matumo_ |
提出日時 | 2019-06-17 16:26:53 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 17 ms / 5,000 ms |
コード長 | 160 bytes |
コンパイル時間 | 115 ms |
コンパイル使用メモリ | 10,548 KB |
実行使用メモリ | 7,984 KB |
最終ジャッジ日時 | 2023-08-24 17:42:39 |
合計ジャッジ時間 | 995 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 17 ms
7,876 KB |
testcase_01 | AC | 17 ms
7,748 KB |
testcase_02 | AC | 17 ms
7,872 KB |
testcase_03 | AC | 16 ms
7,860 KB |
testcase_04 | AC | 16 ms
7,796 KB |
testcase_05 | AC | 16 ms
7,784 KB |
testcase_06 | AC | 16 ms
7,920 KB |
testcase_07 | AC | 16 ms
7,824 KB |
testcase_08 | AC | 16 ms
7,984 KB |
testcase_09 | AC | 16 ms
7,980 KB |
ソースコード
f='*' x=y=0 for c in input()+'.': if c>'.': x=x*10+int(c) elif f=='*': y, x, f = y+x, 0, c elif f=='+': y, x, f = y*x, 0, c else: break print(y)