結果

問題 No.32 貯金箱の憂鬱
コンテスト
ユーザー iad_2889
提出日時 2019-05-06 11:56:20
言語 Python3
(3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 95 ms / 5,000 ms
+ 4µs
コード長 236 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 298 ms
コンパイル使用メモリ 21,536 KB
実行使用メモリ 15,996 KB
最終ジャッジ日時 2026-08-23 21:06:44
合計ジャッジ時間 2,718 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

coin100,coin25,coin1 = map(int,[input() for x in range(3)])

if coin1>=25:
    coin25+=coin1//25
    coin1%=25
if coin25>=4:
    coin100+=coin25//4
    coin25%=4
if coin100>=10:
    coin100%=10

wallet=coin100+coin25+coin1
print(wallet)
0