結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
Neochi
|
| 提出日時 | 2017-07-03 20:42:34 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 5,000 ms |
| コード長 | 441 bytes |
| コンパイル時間 | 95 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-23 06:10:35 |
| 合計ジャッジ時間 | 1,036 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
import math
N100 = input()
N25 = input()
N1 = input()
N100 = int(N100)
N25 = int(N25)
n1 = 0
n25 = 0
n100 = 0
if int(N1) / 25 >= 1:
N25 += math.floor(int(N1) / 25)
n1 += int(N1) % 25
else:
n1 = N1
if int(N25) / 4 >= 1:
N100 += math.floor(int(N25) / 4)
n25 += int(N25) % 4
else:
n25 += N25
if int(N100) >= 10:
n100 += int(N100) % 10
else:
n100 += int(N100)
answer = int(n1) + int(n25) + int(n100)
print(answer)
Neochi