結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー |
|
提出日時 | 2016-08-13 23:28:57 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 5,000 ms |
コード長 | 307 bytes |
コンパイル時間 | 93 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-23 02:22:39 |
合計ジャッジ時間 | 779 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#!/usr/bin/python# -*- coding: utf-8 -*-c100 = int(raw_input())c25 = int(raw_input())c1 = int(raw_input())list = [ 1000 , 100 , 25 , 1]sum = c100 * 100 + c25 * 25 + c1 * 1sum2 = sumans = 0for i in list:tmp = sum // ians += tmpsum -= tmp * iprint ans - ( sum2 // 1000 )