結果
| 問題 | No.29 パワーアップ | 
| コンテスト | |
| ユーザー |  refle | 
| 提出日時 | 2018-12-31 22:25:30 | 
| 言語 | Haskell (9.10.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 3 ms / 5,000 ms | 
| コード長 | 252 bytes | 
| コンパイル時間 | 1,163 ms | 
| コンパイル使用メモリ | 177,280 KB | 
| 実行使用メモリ | 7,716 KB | 
| 最終ジャッジ日時 | 2025-10-24 21:08:36 | 
| 合計ジャッジ時間 | 2,001 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 22 | 
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.10.1/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
import Control.Applicative
import Control.Monad
import Data.List
f ds = sum (map (`div`2) ss) + div (sum $ map (`mod`2) ss) 4
  where
    ss = map length $ group $ sort ds
 
main = readLn >>= flip replicateM (words <$> getLine) >>= print . f . concat
            
            
            
        