結果
問題 | No.182 新規性の虜 |
ユーザー |
|
提出日時 | 2017-06-09 21:00:22 |
言語 | Haskell (9.10.1) |
結果 |
AC
|
実行時間 | 212 ms / 5,000 ms |
コード長 | 272 bytes |
コンパイル時間 | 11,060 ms |
コンパイル使用メモリ | 180,168 KB |
実行使用メモリ | 19,712 KB |
最終ジャッジ日時 | 2024-12-27 15:48:31 |
合計ジャッジ時間 | 13,690 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
コンパイルメッセージ
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 qualified Data.ByteString.Char8 as B import Data.List import Data.Maybe rInt :: B.ByteString -> Int rInt = fst . fromJust . B.readInt main = do getLine as <- map rInt . B.words <$> B.getLine print $ length $ filter (==1) $ map length $ group $ sort as