結果
問題 | No.8 N言っちゃダメゲーム |
ユーザー |
![]() |
提出日時 | 2015-09-11 14:38:01 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 66 ms / 5,000 ms |
コード長 | 448 bytes |
コンパイル時間 | 7,619 ms |
コンパイル使用メモリ | 191,440 KB |
実行使用メモリ | 30,592 KB |
最終ジャッジ日時 | 2024-07-19 05:16:38 |
合計ジャッジ時間 | 8,924 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (225 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/
ソースコード
// http://yukicoder.me/problems/26 open System let dprintfn fmt = Printf.kprintf Diagnostics.Debug.WriteLine fmt [<EntryPoint>] let main argv = let P = Console.ReadLine().Trim() |> int for _ in 1 .. P do let N, K = Console.ReadLine().Trim().Split([|' '|]) |> Array.map int |> fun a -> a.[0], a.[1] let ans = N%(K+1) <> 1 match ans with | true -> "Win" | _ -> "Lose" |> printfn "%s" 0