結果

問題 No.182 新規性の虜
ユーザー mazeppa1108mazeppa1108
提出日時 2015-06-24 16:57:11
言語 Haskell
(9.8.2)
結果
WA  
実行時間 -
コード長 217 bytes
コンパイル時間 9,795 ms
コンパイル使用メモリ 158,552 KB
実行使用メモリ 38,148 KB
最終ジャッジ日時 2023-09-22 00:31:59
合計ジャッジ時間 13,928 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,224 KB
testcase_01 AC 2 ms
7,200 KB
testcase_02 AC 2 ms
7,184 KB
testcase_03 AC 2 ms
7,204 KB
testcase_04 AC 3 ms
7,204 KB
testcase_05 AC 3 ms
7,320 KB
testcase_06 AC 2 ms
7,268 KB
testcase_07 AC 3 ms
7,344 KB
testcase_08 AC 193 ms
35,044 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 2 ms
7,000 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 3 ms
7,104 KB
testcase_24 AC 223 ms
37,244 KB
testcase_25 AC 142 ms
21,096 KB
testcase_26 AC 42 ms
15,340 KB
testcase_27 AC 2 ms
7,120 KB
evil01.txt AC 313 ms
37,892 KB
evil02.txt AC 313 ms
37,980 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

ソースコード

diff #

import Data.List
import Control.Applicative
import Control.Monad

main = do
     n <- readLn :: IO Int
     a <- map (read :: String -> Int) . words <$> getLine
     print . length . filter ((== 1) . length) $ group a
0