結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
Fullmoon85072
|
| 提出日時 | 2020-08-01 20:04:56 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 5,000 ms |
| コード長 | 350 bytes |
| コンパイル時間 | 325 ms |
| コンパイル使用メモリ | 82,316 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2024-07-23 07:59:48 |
| 合計ジャッジ時間 | 1,381 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
one_hundred_coin = int(input())
twenty_five_coin = int(input())
one_coin = int(input())
while one_coin >= 25:
one_coin -= 25
twenty_five_coin += 1
while twenty_five_coin >= 4:
twenty_five_coin -= 4
one_hundred_coin += 1
while one_hundred_coin >= 10:
one_hundred_coin -= 10
print(one_coin + twenty_five_coin + one_hundred_coin)
Fullmoon85072