結果

問題 No.211 素数サイコロと合成数サイコロ (1)
ユーザー tottoripapertottoripaper
提出日時 2015-05-22 22:24:47
言語 Haskell
(9.8.2)
結果
WA  
実行時間 -
コード長 224 bytes
コンパイル時間 860 ms
コンパイル使用メモリ 160,632 KB
実行使用メモリ 7,608 KB
最終ジャッジ日時 2023-09-20 09:19:21
合計ジャッジ時間 2,365 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,336 KB
testcase_01 AC 3 ms
7,364 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 3 ms
7,544 KB
testcase_07 AC 2 ms
7,332 KB
testcase_08 WA -
testcase_09 AC 3 ms
7,332 KB
testcase_10 AC 3 ms
7,424 KB
testcase_11 WA -
testcase_12 AC 2 ms
7,484 KB
testcase_13 AC 2 ms
7,456 KB
testcase_14 AC 3 ms
7,296 KB
testcase_15 AC 3 ms
7,392 KB
testcase_16 AC 2 ms
7,396 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 2 ms
7,332 KB
testcase_20 AC 2 ms
7,392 KB
testcase_21 AC 2 ms
7,300 KB
testcase_22 AC 3 ms
7,492 KB
testcase_23 AC 3 ms
7,360 KB
testcase_24 AC 3 ms
7,348 KB
testcase_25 AC 3 ms
7,424 KB
testcase_26 AC 3 ms
7,316 KB
testcase_27 AC 3 ms
7,388 KB
testcase_28 AC 3 ms
7,388 KB
testcase_29 AC 3 ms
7,408 KB
testcase_30 AC 3 ms
7,436 KB
testcase_31 AC 2 ms
7,356 KB
testcase_32 AC 3 ms
7,420 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.1/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )
[2 of 2] Linking a.out

ソースコード

diff #

import Control.Applicative
import Text.Printf

main = do
  k <- readLn
  let p :: Float
      p = (/36) $ fromIntegral $ length $ filter (==k) $ (*) <$> [2,3,5,7,11,13] <*> [4,6,8,9,10,12]
  printf "%.13f\n" p
  
          
0