結果
問題 | No.24 数当てゲーム |
ユーザー | regerege |
提出日時 | 2016-01-08 22:51:33 |
言語 | F# (.NET 7) |
結果 |
AC
|
実行時間 | 370 ms / 5,000 ms |
コード長 | 443 bytes |
コンパイル時間 | 15,839 ms |
コンパイル使用メモリ | 190,752 KB |
実行使用メモリ | 36,776 KB |
最終ジャッジ日時 | 2023-10-19 16:51:58 |
合計ジャッジ時間 | 21,752 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 370 ms
36,752 KB |
testcase_01 | AC | 366 ms
36,712 KB |
testcase_02 | AC | 366 ms
36,756 KB |
testcase_03 | AC | 369 ms
36,756 KB |
testcase_04 | AC | 366 ms
36,736 KB |
testcase_05 | AC | 365 ms
36,756 KB |
testcase_06 | AC | 364 ms
36,740 KB |
testcase_07 | AC | 364 ms
36,776 KB |
testcase_08 | AC | 366 ms
36,768 KB |
testcase_09 | AC | 365 ms
36,756 KB |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (676 ms)。 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/
ソースコード
let ``No.24 数当てゲーム`` () = let N = int <| stdin.ReadLine() let s = set [0..9] let rec f n s = if n <= 0 then s |> Seq.item 0 else let arr = stdin.ReadLine().Split(' ') let s2 = arr.[0..3] |> Array.map int |> Set.ofArray f (n-1) ((if arr.[4] = "YES" then Set.intersect else Set.difference) s s2) f N <| set [0..9] |> printfn "%d" ``No.24 数当てゲーム`` ()