結果

問題 No.8 N言っちゃダメゲーム
ユーザー chike_pluschike_plus
提出日時 2019-03-21 23:03:31
言語 F#
(F# 4.0)
結果
AC  
実行時間 64 ms / 5,000 ms
コード長 403 bytes
コンパイル時間 17,173 ms
コンパイル使用メモリ 189,720 KB
実行使用メモリ 30,944 KB
最終ジャッジ日時 2023-10-19 05:45:41
合計ジャッジ時間 20,077 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
30,920 KB
testcase_01 AC 63 ms
30,920 KB
testcase_02 AC 62 ms
30,920 KB
testcase_03 AC 63 ms
30,936 KB
testcase_04 AC 63 ms
30,936 KB
testcase_05 AC 63 ms
30,944 KB
testcase_06 AC 63 ms
30,936 KB
testcase_07 AC 63 ms
30,936 KB
testcase_08 AC 64 ms
30,936 KB
testcase_09 AC 62 ms
30,936 KB
testcase_10 AC 62 ms
30,936 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (1.03 sec)。
MSBuild のバージョン 17.7.3+8ec440e68 (.NET)
  main -> /home/judge/data/code/bin/Release/net7.0/main.dll
  main -> /home/judge/data/code/bin/Release/net7.0/publish/

ソースコード

diff #

let ``No.8 N言っちゃダメゲーム``() =
  let P = stdin.ReadLine() |> int

  let judgeGame() =
    stdin.ReadLine().Split(' ')
    |> fun args -> args.[0] |> int, args.[1] |> int
    |> fun (N , K) ->
      match ( N % (K+1) ) with
      | 1 -> stdout.WriteLine "Lose"
      | _ -> stdout.WriteLine "Win"

  [1..P]
  |> List.iter ( fun i -> judgeGame() )
  
``No.8 N言っちゃダメゲーム``()
0