結果

問題 No.166 マス埋めゲーム
ユーザー hum_ophum_op
提出日時 2016-04-17 17:54:27
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 292 bytes
コンパイル時間 6,016 ms
コンパイル使用メモリ 185,832 KB
実行使用メモリ 32,120 KB
最終ジャッジ日時 2024-04-15 02:15:54
合計ジャッジ時間 8,195 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
31,744 KB
testcase_01 AC 56 ms
31,744 KB
testcase_02 AC 56 ms
31,872 KB
testcase_03 AC 57 ms
31,616 KB
testcase_04 WA -
testcase_05 AC 56 ms
31,988 KB
testcase_06 AC 57 ms
31,872 KB
testcase_07 AC 58 ms
32,000 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 71 ms
31,744 KB
testcase_12 AC 57 ms
31,744 KB
testcase_13 WA -
testcase_14 AC 56 ms
31,744 KB
testcase_15 AC 60 ms
31,744 KB
testcase_16 AC 59 ms
31,616 KB
testcase_17 WA -
testcase_18 AC 59 ms
31,616 KB
testcase_19 WA -
testcase_20 AC 57 ms
31,872 KB
testcase_21 AC 59 ms
31,992 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (205 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

open System

let No166 () =
    let IN = Console.ReadLine().Split(' ')
    let H, W, N, K = Int64.Parse IN.[0], Int64.Parse IN.[1], Int64.Parse IN.[2], Int64.Parse IN.[3]
    let mass = H * W
    if mass % N = K - 1L then
        printfn "NO"
    else 
        printfn "YES"

    ()

No166 ()
0