結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | komkomh |
提出日時 | 2019-04-04 09:50:09 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
AC
|
実行時間 | 17 ms / 5,000 ms |
コード長 | 300 bytes |
コンパイル時間 | 139 ms |
コンパイル使用メモリ | 10,516 KB |
実行使用メモリ | 8,064 KB |
最終ジャッジ日時 | 2023-09-30 13:29:07 |
合計ジャッジ時間 | 902 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 15 ms
7,928 KB |
testcase_01 | AC | 15 ms
7,960 KB |
testcase_02 | AC | 15 ms
7,884 KB |
testcase_03 | AC | 15 ms
8,052 KB |
testcase_04 | AC | 17 ms
7,920 KB |
testcase_05 | AC | 17 ms
7,976 KB |
testcase_06 | AC | 16 ms
7,904 KB |
testcase_07 | AC | 16 ms
8,064 KB |
testcase_08 | AC | 15 ms
7,964 KB |
testcase_09 | AC | 15 ms
7,820 KB |
testcase_10 | AC | 15 ms
8,000 KB |
testcase_11 | AC | 15 ms
7,904 KB |
ソースコード
import math L = int(input()) M = int(input()) N = int(input()) amount = L * 100 + M * 25 + N * 1 amount = amount % 1000 hyaku = math.floor(amount / 100) amount = amount % 100 nigo = math.floor(amount / 25) amount = amount % 25 ichi = math.floor(amount / 1) maisu = hyaku + nigo + ichi print(maisu)