結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | yoshi_k |
提出日時 | 2017-09-17 16:25:58 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 5,000 ms |
コード長 | 527 bytes |
コンパイル時間 | 118 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-23 06:44:18 |
合計ジャッジ時間 | 1,002 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
try: import mydebug def dprint(*objects): print(*objects) except: def dprint(*objects, sep='', end='\n'): pass # d, p = [int(x) for x in input().split()] l = int(input()) m = int(input()) n = int(input()) dprint("l:%d m:%d n:%d" % (l, m, n)) ans = 0 total = l * 100 + m * 25 + 1 * n dprint("total",total) total %= 1000 left = total ans = 0 ans += left // 100 left = left % 100 dprint("left",left, "ans", ans) ans += left // 25 left = left % 25 ans += left dprint("left",left, "ans", ans) print(ans)