結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー |
![]() |
提出日時 | 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 mydebugdef 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 = 0total = l * 100 + m * 25 + 1 * ndprint("total",total)total %= 1000left = totalans = 0ans += left // 100left = left % 100dprint("left",left, "ans", ans)ans += left // 25left = left % 25ans += leftdprint("left",left, "ans", ans)print(ans)