結果
| 問題 | No.32 貯金箱の憂鬱 |
| コンテスト | |
| ユーザー |
ramendaisuki
|
| 提出日時 | 2020-03-15 00:57:27 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 496 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-28 20:02:32 |
| 合計ジャッジ時間 | 1,412 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 12 |
ソースコード
#No.32 貯金箱の憂鬱
l = int(input())
m = int(input())
n = int(input())
#l;100, m:25, n:1
a = n*1//25
print("25円硬貨に変える枚数={}".format(a))
x = n-a*25
print("1円硬貨の枚数={}".format(x))
m = m+a
b = m*25//100
print("100円硬貨に変える枚数={}".format(b))
y = (m*25%100)//25
print("25円硬貨の枚数={}".format(y))
l = l+b
c = l*100//1000
print("1000円硬貨の枚数={}".format(c))
z = (l*100%1000)//100
print("100円硬貨の枚数={}".format(z))
print(x+y+z)
ramendaisuki