結果

問題 No.32 貯金箱の憂鬱
ユーザー ramendaisukiramendaisuki
提出日時 2020-03-15 00:59:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 476 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 8,008 KB
最終ジャッジ日時 2023-09-30 13:51:01
合計ジャッジ時間 969 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,872 KB
testcase_01 AC 15 ms
7,780 KB
testcase_02 AC 16 ms
7,812 KB
testcase_03 AC 16 ms
7,892 KB
testcase_04 AC 16 ms
7,792 KB
testcase_05 AC 16 ms
7,916 KB
testcase_06 AC 15 ms
7,868 KB
testcase_07 AC 15 ms
7,840 KB
testcase_08 AC 15 ms
7,816 KB
testcase_09 AC 15 ms
7,956 KB
testcase_10 AC 16 ms
7,816 KB
testcase_11 AC 15 ms
8,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0