結果

問題 No.32 貯金箱の憂鬱
ユーザー chike_pluschike_plus
提出日時 2019-03-19 10:35:48
言語 F#
(F# 4.0)
結果
AC  
実行時間 58 ms / 5,000 ms
コード長 311 bytes
コンパイル時間 5,174 ms
コンパイル使用メモリ 159,804 KB
実行使用メモリ 24,176 KB
最終ジャッジ日時 2023-09-30 13:28:22
合計ジャッジ時間 5,977 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
20,052 KB
testcase_01 AC 56 ms
20,180 KB
testcase_02 AC 58 ms
24,176 KB
testcase_03 AC 56 ms
22,164 KB
testcase_04 AC 57 ms
20,104 KB
testcase_05 AC 56 ms
22,156 KB
testcase_06 AC 56 ms
22,152 KB
testcase_07 AC 56 ms
22,080 KB
testcase_08 AC 56 ms
24,132 KB
testcase_09 AC 57 ms
22,064 KB
testcase_10 AC 58 ms
22,256 KB
testcase_11 AC 56 ms
22,084 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

open System

let sum = (Console.ReadLine() |> (fun s -> 100 * (int s)))
        + (Console.ReadLine() |> (fun s ->  25 * (int s)))
        + (Console.ReadLine() |> int)

let hundred = (sum % 1000) / 100
let quarter = ((sum % 1000) % 100) / 25
let one     = sum % 25

Console.WriteLine (hundred + quarter + one)
0