結果

問題 No.32 貯金箱の憂鬱
ユーザー hosobikihosobiki
提出日時 2018-07-03 14:48:18
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 500 bytes
コンパイル時間 68 ms
コンパイル使用メモリ 10,520 KB
実行使用メモリ 7,936 KB
最終ジャッジ日時 2023-09-13 17:15:41
合計ジャッジ時間 940 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

import sys
def main():
    param = []
    for i in range(3):
        param.append(sys.stdin.readline())
    coin1_be = int(param[0])
    coin25_be = int(param[1])
    coin100_be = int(param[2])
    
    money_total = coin1_be + coin25_be * 25 + coin100_be * 100
    
    coin100_af = (money_total % 1000) // 100
    coin25_af = ((money_total % 1000) % 100) // 25
    coin1_af = ((money_total % 1000) % 100) % 25
    
    print(coin100_af + coin25_af + coin1_af)

if __name__ == "__main__":
    main()
0