結果

問題 No.32 貯金箱の憂鬱
ユーザー ichibanshiboriichibanshibori
提出日時 2016-06-25 19:41:16
言語 F#
(F# 4.0)
結果
AC  
実行時間 84 ms / 5,000 ms
コード長 303 bytes
コンパイル時間 2,951 ms
コンパイル使用メモリ 153,660 KB
実行使用メモリ 24,888 KB
最終ジャッジ日時 2023-09-30 08:09:49
合計ジャッジ時間 4,767 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
24,828 KB
testcase_01 AC 82 ms
22,960 KB
testcase_02 AC 82 ms
22,796 KB
testcase_03 AC 84 ms
22,748 KB
testcase_04 AC 82 ms
22,784 KB
testcase_05 AC 81 ms
24,768 KB
testcase_06 AC 83 ms
20,772 KB
testcase_07 AC 82 ms
24,888 KB
testcase_08 AC 82 ms
24,836 KB
testcase_09 AC 83 ms
22,892 KB
testcase_10 AC 82 ms
24,792 KB
testcase_11 AC 81 ms
24,864 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let doIt () =
    let L = stdin.ReadLine () |> int
    let M = stdin.ReadLine () |> int
    let N = stdin.ReadLine () |> int

    let total = L * 100 + M * 25 + N
    let c100 = (total % 1000) / 100
    let c25 = (total % 100) / 25
    let c1 = (total % 25)

    c100 + c25 + c1 |> printfn "%d"

doIt ()
0