結果

問題 No.32 貯金箱の憂鬱
ユーザー どまおーどまおー
提出日時 2018-05-10 00:05:16
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 5,000 ms
コード長 357 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-07-23 07:11:09
合計ジャッジ時間 1,323 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

nums = []
for i in range(3):
    nums.append(int(input()))
money = nums[0]*100 + nums[1]*25 + nums[2]
cnt = 0

thous = money // 1000
if thous!= 0:
    #cnt += thous
    money -= 1000*thous
hands = money // 100
if hands!= 0:
    cnt += hands
    money -= 100*hands
twef = money // 25
if twef != 0:
    cnt += twef
    money -= 25*twef
cnt += money
print(cnt)
0