結果
問題 | No.166 マス埋めゲーム |
ユーザー |
![]() |
提出日時 | 2018-04-22 22:28:42 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 73 ms / 1,000 ms |
コード長 | 413 bytes |
コンパイル時間 | 14,523 ms |
コンパイル使用メモリ | 185,740 KB |
実行使用メモリ | 30,976 KB |
最終ジャッジ日時 | 2024-06-27 07:04:32 |
合計ジャッジ時間 | 16,960 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (345 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/
ソースコード
let loser h w n =let grid = h*wlet last = (grid%n)|> function| x when x=0L -> n| x -> xlastlet H,W,N,K = let t = stdin.ReadLine().Split()|> Array.map int64in t.[0],t.[1],t.[2],t.[3]if loser H W N = K then"YES"else"NO"|> printfn "%s"