結果

問題 No.32 貯金箱の憂鬱
ユーザー Sttashe EgnmSttashe Egnm
提出日時 2024-02-25 01:15:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 5,000 ms
コード長 207 bytes
コンパイル時間 176 ms
コンパイル使用メモリ 82,172 KB
実行使用メモリ 51,968 KB
最終ジャッジ日時 2024-09-29 10:32:37
合計ジャッジ時間 1,166 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

L=int(input())
M=int(input())
N=int(input())
amount=100*L+25*M+N
coin_amount=amount%1000
l=int(coin_amount/100)
m=int((coin_amount-l*100)/25)
n=(coin_amount-l*100)-int((coin_amount-l*100)/25)*25
print(l+m+n)
0