結果

問題 No.211 素数サイコロと合成数サイコロ (1)
ユーザー regeregeregerege
提出日時 2017-04-18 22:11:54
言語 F#
(F# 4.0)
結果
AC  
実行時間 92 ms / 1,000 ms
コード長 271 bytes
コンパイル時間 4,634 ms
コンパイル使用メモリ 154,172 KB
実行使用メモリ 25,188 KB
最終ジャッジ日時 2023-09-08 06:15:45
合計ジャッジ時間 8,938 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
25,012 KB
testcase_01 AC 85 ms
21,096 KB
testcase_02 AC 88 ms
23,076 KB
testcase_03 AC 87 ms
23,088 KB
testcase_04 AC 88 ms
22,964 KB
testcase_05 AC 88 ms
23,236 KB
testcase_06 AC 88 ms
23,084 KB
testcase_07 AC 89 ms
25,108 KB
testcase_08 AC 90 ms
23,036 KB
testcase_09 AC 91 ms
25,188 KB
testcase_10 AC 90 ms
23,032 KB
testcase_11 AC 90 ms
23,064 KB
testcase_12 AC 92 ms
25,112 KB
testcase_13 AC 89 ms
22,992 KB
testcase_14 AC 90 ms
23,060 KB
testcase_15 AC 90 ms
23,048 KB
testcase_16 AC 91 ms
23,152 KB
testcase_17 AC 92 ms
23,120 KB
testcase_18 AC 90 ms
21,020 KB
testcase_19 AC 90 ms
23,052 KB
testcase_20 AC 90 ms
25,072 KB
testcase_21 AC 91 ms
23,012 KB
testcase_22 AC 90 ms
25,168 KB
testcase_23 AC 91 ms
23,028 KB
testcase_24 AC 91 ms
23,124 KB
testcase_25 AC 89 ms
25,092 KB
testcase_26 AC 86 ms
23,080 KB
testcase_27 AC 85 ms
23,080 KB
testcase_28 AC 87 ms
23,168 KB
testcase_29 AC 87 ms
23,088 KB
testcase_30 AC 86 ms
25,124 KB
testcase_31 AC 86 ms
23,124 KB
testcase_32 AC 87 ms
23,080 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,x*y) c) p
let last (a,b,c) = c
let calc (n:int) = decimal(n) / 36M
let N = stdin.ReadLine() |> int
s |> List.filter (last >> (=)N) |> List.length
|> calc
|> printfn "%M"
0