結果
問題 | No.33 アメーバがたくさん |
ユーザー |
![]() |
提出日時 | 2014-10-03 00:40:45 |
言語 | Haskell (9.10.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 454 bytes |
コンパイル時間 | 5,061 ms |
コンパイル使用メモリ | 168,448 KB |
実行使用メモリ | 20,740 KB |
最終ジャッジ日時 | 2024-09-24 09:52:46 |
合計ジャッジ時間 | 8,201 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 TLE * 1 -- * 2 |
コンパイルメッセージ
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
ソースコード
moduleMainwhereimportData.Listeval::Int->Int->Int->Inteval 0 _ = ideval t d = eval (t - 1) d . f . (>>= \x -> [x+d, x, x-d]) wheref = g . sortg [] = []g (x:xs) = x : g (filt (/= x) xs)filt _ [] = []filt p (y:ys) = if p y then y:ys else filt p ysmain::IO()main = do[_, d, t] <- fmap (map read . words) getLinexs <- fmap (map read . words) getLineprint $ length $ eval t d xs