結果

問題 No.166 マス埋めゲーム
ユーザー regeregeregerege
提出日時 2016-08-14 19:24:58
言語 F#
(F# 4.0)
結果
AC  
実行時間 64 ms / 1,000 ms
コード長 181 bytes
コンパイル時間 5,818 ms
コンパイル使用メモリ 184,284 KB
実行使用メモリ 30,464 KB
最終ジャッジ日時 2024-04-25 06:39:25
合計ジャッジ時間 7,929 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
30,080 KB
testcase_01 AC 57 ms
30,324 KB
testcase_02 AC 56 ms
30,464 KB
testcase_03 AC 56 ms
30,208 KB
testcase_04 AC 56 ms
30,080 KB
testcase_05 AC 57 ms
30,208 KB
testcase_06 AC 57 ms
30,080 KB
testcase_07 AC 56 ms
30,336 KB
testcase_08 AC 56 ms
30,336 KB
testcase_09 AC 55 ms
30,204 KB
testcase_10 AC 56 ms
30,208 KB
testcase_11 AC 57 ms
30,332 KB
testcase_12 AC 64 ms
30,080 KB
testcase_13 AC 60 ms
30,336 KB
testcase_14 AC 62 ms
30,072 KB
testcase_15 AC 60 ms
30,208 KB
testcase_16 AC 56 ms
30,336 KB
testcase_17 AC 56 ms
30,208 KB
testcase_18 AC 60 ms
30,208 KB
testcase_19 AC 60 ms
30,208 KB
testcase_20 AC 62 ms
30,080 KB
testcase_21 AC 58 ms
30,464 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (203 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 #

let arr = stdin.ReadLine().Split(' ') |> Array.map int64
let H,W,N,K = arr.[0],arr.[1],arr.[2],arr.[3]
let m = H*W
printfn <| if m%N = K || (m%N = 0L && N = K) then "YES" else "NO"
0