結果
問題 | No.713 素数の和 |
ユーザー | 👑 horiesiniti |
提出日時 | 2018-12-08 19:45:11 |
言語 | Haskell (9.6.2) |
結果 |
AC
|
実行時間 | 7 ms / 2,000 ms |
コード長 | 208 bytes |
コンパイル時間 | 811 ms |
コンパイル使用メモリ | 155,756 KB |
実行使用メモリ | 7,044 KB |
最終ジャッジ日時 | 2023-10-12 07:53:55 |
合計ジャッジ時間 | 1,783 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 6 ms
6,968 KB |
testcase_01 | AC | 3 ms
6,800 KB |
testcase_02 | AC | 3 ms
6,856 KB |
testcase_03 | AC | 4 ms
7,044 KB |
testcase_04 | AC | 7 ms
6,948 KB |
testcase_05 | AC | 3 ms
6,984 KB |
testcase_06 | AC | 3 ms
6,808 KB |
testcase_07 | AC | 2 ms
7,004 KB |
testcase_08 | AC | 3 ms
7,040 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
ソースコード
f ::Int->Int f n |n<2=0 |n<4=n |otherwise=if length [1|e<-[2..(n `div` 2)],n `mod` e==0]>0 then 0 else n main =do e<-getLine let x=read e::Int print $ sum(take x [f e2|e2<-[1..1000]])