結果

問題 No.32 貯金箱の憂鬱
ユーザー hum_ophum_op
提出日時 2016-04-20 20:40:35
言語 F#
(F# 4.0)
結果
AC  
実行時間 82 ms / 5,000 ms
コード長 315 bytes
コンパイル時間 3,815 ms
コンパイル使用メモリ 159,872 KB
実行使用メモリ 24,856 KB
最終ジャッジ日時 2023-09-30 08:05:42
合計ジャッジ時間 4,798 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
22,684 KB
testcase_01 AC 82 ms
22,768 KB
testcase_02 AC 82 ms
22,760 KB
testcase_03 AC 82 ms
24,764 KB
testcase_04 AC 81 ms
22,724 KB
testcase_05 AC 81 ms
24,856 KB
testcase_06 AC 81 ms
22,752 KB
testcase_07 AC 81 ms
22,784 KB
testcase_08 AC 80 ms
20,740 KB
testcase_09 AC 82 ms
22,784 KB
testcase_10 AC 82 ms
22,792 KB
testcase_11 AC 81 ms
20,676 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