結果
問題 | No.212 素数サイコロと合成数サイコロ (2) |
ユーザー | tottoripaper |
提出日時 | 2015-05-23 18:04:01 |
言語 | Haskell (9.8.2) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 263 bytes |
コンパイル時間 | 7,115 ms |
コンパイル使用メモリ | 165,376 KB |
実行使用メモリ | 7,688 KB |
最終ジャッジ日時 | 2023-09-20 10:54:41 |
合計ジャッジ時間 | 7,642 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
7,568 KB |
testcase_01 | AC | 2 ms
7,568 KB |
testcase_02 | AC | 3 ms
7,612 KB |
testcase_03 | AC | 3 ms
7,556 KB |
testcase_04 | AC | 3 ms
7,624 KB |
testcase_05 | AC | 3 ms
7,536 KB |
testcase_06 | AC | 3 ms
7,672 KB |
testcase_07 | AC | 3 ms
7,560 KB |
testcase_08 | AC | 2 ms
7,688 KB |
testcase_09 | AC | 3 ms
7,684 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
ソースコード
import Control.Monad import Text.Printf main = do [p, c] <- liftM (map read . words) getLine let s = sum [2,3,5,7,11,13] ^ p * sum [4,6,8,9,10,12] ^ c e :: Double e = fromIntegral s / (6 ** fromIntegral (p + c)) in printf "%.13f\n" e