結果

問題 No.182 新規性の虜
ユーザー mazeppa1108mazeppa1108
提出日時 2015-06-24 16:58:43
言語 Haskell
(9.8.2)
結果
AC  
実行時間 412 ms / 5,000 ms
コード長 224 bytes
コンパイル時間 4,123 ms
コンパイル使用メモリ 160,144 KB
実行使用メモリ 39,800 KB
最終ジャッジ日時 2023-08-27 07:23:34
合計ジャッジ時間 8,459 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,108 KB
testcase_01 AC 3 ms
7,108 KB
testcase_02 AC 2 ms
7,220 KB
testcase_03 AC 2 ms
7,160 KB
testcase_04 AC 2 ms
7,152 KB
testcase_05 AC 2 ms
7,324 KB
testcase_06 AC 2 ms
7,224 KB
testcase_07 AC 3 ms
7,276 KB
testcase_08 AC 262 ms
36,756 KB
testcase_09 AC 412 ms
39,800 KB
testcase_10 AC 362 ms
39,540 KB
testcase_11 AC 292 ms
38,260 KB
testcase_12 AC 112 ms
21,384 KB
testcase_13 AC 3 ms
7,152 KB
testcase_14 AC 3 ms
7,308 KB
testcase_15 AC 3 ms
6,836 KB
testcase_16 AC 3 ms
7,208 KB
testcase_17 AC 3 ms
7,300 KB
testcase_18 AC 282 ms
28,808 KB
testcase_19 AC 192 ms
22,828 KB
testcase_20 AC 112 ms
19,608 KB
testcase_21 AC 352 ms
34,448 KB
testcase_22 AC 152 ms
22,384 KB
testcase_23 AC 2 ms
6,868 KB
testcase_24 AC 232 ms
38,056 KB
testcase_25 AC 142 ms
22,704 KB
testcase_26 AC 53 ms
16,260 KB
testcase_27 AC 3 ms
7,088 KB
evil01.txt AC 372 ms
55,296 KB
evil02.txt AC 362 ms
55,452 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 $ sort a
0