結果

問題 No.32 貯金箱の憂鬱
ユーザー takamich-Tatakamich-Ta
提出日時 2017-09-10 11:33:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 317 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 10,736 KB
実行使用メモリ 7,976 KB
最終ジャッジ日時 2023-09-30 12:37:12
合計ジャッジ時間 1,027 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,976 KB
testcase_01 AC 15 ms
7,880 KB
testcase_02 AC 16 ms
7,880 KB
testcase_03 AC 16 ms
7,812 KB
testcase_04 AC 17 ms
7,864 KB
testcase_05 AC 17 ms
7,912 KB
testcase_06 AC 15 ms
7,800 KB
testcase_07 AC 15 ms
7,860 KB
testcase_08 AC 16 ms
7,792 KB
testcase_09 AC 15 ms
7,872 KB
testcase_10 AC 16 ms
7,880 KB
testcase_11 AC 16 ms
7,788 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

m100=int(input())
m25=int(input())
m1=int(input())

if m1>=25:
    kuriage1=int(m1/25)
    m25+=kuriage1
    m1=int(m1%25)

if m25>=4:
    kuriage25=int(m25/4)
    m100+=kuriage25
    m25=int(m25%4)

if m100>=10:
    m1000=0
    kuriage100=int(m100/10)
    m1000+=kuriage100
    m100=int(m100%10)

print(m1+m25+m100)
0