結果

問題 No.211 素数サイコロと合成数サイコロ (1)
ユーザー regeregeregerege
提出日時 2017-04-18 22:17:15
言語 F#
(F# 4.0)
結果
AC  
実行時間 94 ms / 1,000 ms
コード長 238 bytes
コンパイル時間 4,597 ms
コンパイル使用メモリ 155,696 KB
実行使用メモリ 25,184 KB
最終ジャッジ日時 2023-09-08 06:16:00
合計ジャッジ時間 9,180 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
22,984 KB
testcase_01 AC 92 ms
24,908 KB
testcase_02 AC 92 ms
23,072 KB
testcase_03 AC 92 ms
22,968 KB
testcase_04 AC 91 ms
22,940 KB
testcase_05 AC 92 ms
25,084 KB
testcase_06 AC 91 ms
23,076 KB
testcase_07 AC 92 ms
23,040 KB
testcase_08 AC 93 ms
25,020 KB
testcase_09 AC 92 ms
22,960 KB
testcase_10 AC 90 ms
22,928 KB
testcase_11 AC 92 ms
23,036 KB
testcase_12 AC 90 ms
21,020 KB
testcase_13 AC 90 ms
20,908 KB
testcase_14 AC 91 ms
22,924 KB
testcase_15 AC 91 ms
25,184 KB
testcase_16 AC 92 ms
24,976 KB
testcase_17 AC 94 ms
23,036 KB
testcase_18 AC 92 ms
23,172 KB
testcase_19 AC 91 ms
20,884 KB
testcase_20 AC 91 ms
22,968 KB
testcase_21 AC 90 ms
23,188 KB
testcase_22 AC 92 ms
22,920 KB
testcase_23 AC 92 ms
22,984 KB
testcase_24 AC 91 ms
25,184 KB
testcase_25 AC 92 ms
23,028 KB
testcase_26 AC 90 ms
23,068 KB
testcase_27 AC 91 ms
23,176 KB
testcase_28 AC 91 ms
24,972 KB
testcase_29 AC 91 ms
25,068 KB
testcase_30 AC 91 ms
22,996 KB
testcase_31 AC 90 ms
23,136 KB
testcase_32 AC 92 ms
20,912 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let p = [2;3;5;7;11;13]
let c = [4;6;8;9;10;12]
let s = List.collect (fun x -> List.map (fun y -> x*y) c) p
let calc (n:int) = decimal(n) / 36M
let N = stdin.ReadLine() |> int
s |> List.filter ((=)N) |> List.length
|> calc
|> printfn "%M"
0