結果

問題 No.32 貯金箱の憂鬱
ユーザー NeochiNeochi
提出日時 2017-07-03 20:42:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 441 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 10,636 KB
実行使用メモリ 8,096 KB
最終ジャッジ日時 2023-09-30 12:10:15
合計ジャッジ時間 960 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,076 KB
testcase_01 AC 16 ms
7,952 KB
testcase_02 AC 17 ms
8,036 KB
testcase_03 AC 16 ms
7,968 KB
testcase_04 AC 16 ms
8,096 KB
testcase_05 AC 16 ms
7,896 KB
testcase_06 AC 16 ms
8,012 KB
testcase_07 AC 16 ms
7,992 KB
testcase_08 AC 16 ms
7,976 KB
testcase_09 AC 16 ms
8,044 KB
testcase_10 AC 16 ms
7,976 KB
testcase_11 AC 16 ms
7,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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