結果

問題 No.32 貯金箱の憂鬱
ユーザー hum_ophum_op
提出日時 2016-04-20 12:53:36
言語 F#
(F# 4.0)
結果
AC  
実行時間 83 ms / 5,000 ms
コード長 316 bytes
コンパイル時間 4,527 ms
コンパイル使用メモリ 160,100 KB
実行使用メモリ 24,892 KB
最終ジャッジ日時 2023-09-30 08:05:21
合計ジャッジ時間 4,957 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
22,760 KB
testcase_01 AC 81 ms
22,908 KB
testcase_02 AC 82 ms
24,888 KB
testcase_03 AC 81 ms
22,696 KB
testcase_04 AC 83 ms
22,752 KB
testcase_05 AC 83 ms
24,892 KB
testcase_06 AC 82 ms
22,804 KB
testcase_07 AC 83 ms
22,800 KB
testcase_08 AC 82 ms
22,768 KB
testcase_09 AC 81 ms
22,748 KB
testcase_10 AC 81 ms
22,808 KB
testcase_11 AC 82 ms
24,832 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 No32 () =
    let L = int <| Console.ReadLine()
    let M = int <| Console.ReadLine()
    let N = int <| Console.ReadLine()
    
    let M = M + (N / 25)
    let N = N % 25
    
    let L = L + (M / 4)
    let M = M % 4
    
    let L = L % 10
    
    printfn "%d" <| L + M + N
    
    ()
No32 ()
0