結果
| 問題 |
No.300 平方数
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-03-10 04:53:56 |
| 言語 | Haskell (9.10.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 235 bytes |
| コンパイル時間 | 2,226 ms |
| コンパイル使用メモリ | 176,512 KB |
| 実行使用メモリ | 14,624 KB |
| 最終ジャッジ日時 | 2024-09-24 17:26:59 |
| 合計ジャッジ時間 | 5,631 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 TLE * 1 -- * 25 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.8.2/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
import Data.List pf::Integer->Integer->[Integer] pf p 1 = [1] pf p n = if n`mod`p==0 then p:pf p(n`div`p) else pf (p+1) n f (_:[]) = [] f (x:xs) = if elem x xs then f (delete x xs) else x:f xs main=getLine>>=print.product.f.pf 2.read