結果

問題 No.166 マス埋めゲーム
ユーザー taktak
提出日時 2018-04-22 22:28:42
言語 F#
(F# 4.0)
結果
AC  
実行時間 81 ms / 1,000 ms
コード長 413 bytes
コンパイル時間 5,311 ms
コンパイル使用メモリ 154,688 KB
実行使用メモリ 24,748 KB
最終ジャッジ日時 2023-09-09 14:09:39
合計ジャッジ時間 8,365 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
20,600 KB
testcase_01 AC 78 ms
24,664 KB
testcase_02 AC 78 ms
22,644 KB
testcase_03 AC 78 ms
24,748 KB
testcase_04 AC 78 ms
24,680 KB
testcase_05 AC 77 ms
22,592 KB
testcase_06 AC 78 ms
24,688 KB
testcase_07 AC 78 ms
22,644 KB
testcase_08 AC 78 ms
22,632 KB
testcase_09 AC 78 ms
24,696 KB
testcase_10 AC 78 ms
22,628 KB
testcase_11 AC 78 ms
24,684 KB
testcase_12 AC 77 ms
22,636 KB
testcase_13 AC 78 ms
24,572 KB
testcase_14 AC 78 ms
22,632 KB
testcase_15 AC 79 ms
22,660 KB
testcase_16 AC 80 ms
22,588 KB
testcase_17 AC 81 ms
22,736 KB
testcase_18 AC 78 ms
24,640 KB
testcase_19 AC 77 ms
22,576 KB
testcase_20 AC 78 ms
22,632 KB
testcase_21 AC 77 ms
24,556 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let loser h w n =
    let grid = h*w
    let last = (grid%n)
               |> function 
                | x when x=0L -> n
                | x -> x
    last
    
let H,W,N,K = let t = stdin.ReadLine().Split()
                      |> Array.map int64
              in t.[0],t.[1],t.[2],t.[3]
                                    
if loser H W N = K then 
    "YES"
else 
    "NO"
|> printfn "%s"                   
0