結果

問題 No.32 貯金箱の憂鬱
ユーザー kuuso1kuuso1
提出日時 2016-08-19 01:15:33
言語 F#
(F# 4.0)
結果
AC  
実行時間 83 ms / 5,000 ms
コード長 336 bytes
コンパイル時間 3,472 ms
コンパイル使用メモリ 169,536 KB
実行使用メモリ 24,896 KB
最終ジャッジ日時 2023-09-30 08:11:28
合計ジャッジ時間 5,334 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

open System
type Sol() =
    member this.Solve() = 
        let L = stdin.ReadLine() |> int
        let M = stdin.ReadLine() |> int
        let N = stdin.ReadLine() |> int
        
        let ans = (N%25) + ( ((N/25)+M)%4 ) + ( L + ((N/25)+M)/4 ) % 10 
        ans |> printfn "%d"
        
        
let mySol = new Sol()
mySol.Solve()
0