結果

問題 No.32 貯金箱の憂鬱
ユーザー yumenomatayumeyumenomatayume
提出日時 2020-03-21 00:57:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 182 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 87,108 KB
実行使用メモリ 71,608 KB
最終ジャッジ日時 2023-09-30 13:51:36
合計ジャッジ時間 1,834 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,452 KB
testcase_01 AC 70 ms
71,452 KB
testcase_02 AC 70 ms
71,280 KB
testcase_03 AC 70 ms
71,436 KB
testcase_04 AC 71 ms
71,160 KB
testcase_05 AC 70 ms
71,516 KB
testcase_06 AC 69 ms
71,536 KB
testcase_07 AC 69 ms
71,608 KB
testcase_08 AC 68 ms
71,140 KB
testcase_09 AC 70 ms
71,340 KB
testcase_10 AC 70 ms
71,144 KB
testcase_11 AC 70 ms
71,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

coins = [int(input()) for _ in range(3)]
l = [25,4,10]

for i in range(len(l)):
    if i != len(l)-1:
        coins[1-i] += coins[2-i]//l[i]
    coins[2-i] %= l[i]
print(sum(coins))
0