結果

問題 No.182 新規性の虜
ユーザー momen999momen999
提出日時 2017-06-09 21:00:22
言語 Haskell
(9.8.2)
結果
AC  
実行時間 173 ms / 5,000 ms
コード長 272 bytes
コンパイル時間 3,411 ms
コンパイル使用メモリ 162,560 KB
実行使用メモリ 22,824 KB
最終ジャッジ日時 2023-08-27 15:17:50
合計ジャッジ時間 6,266 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,160 KB
testcase_01 AC 2 ms
7,204 KB
testcase_02 AC 3 ms
7,228 KB
testcase_03 AC 3 ms
7,228 KB
testcase_04 AC 3 ms
7,172 KB
testcase_05 AC 3 ms
7,116 KB
testcase_06 AC 2 ms
7,208 KB
testcase_07 AC 3 ms
7,172 KB
testcase_08 AC 93 ms
17,652 KB
testcase_09 AC 173 ms
21,780 KB
testcase_10 AC 142 ms
20,848 KB
testcase_11 AC 112 ms
17,844 KB
testcase_12 AC 42 ms
14,164 KB
testcase_13 AC 3 ms
7,148 KB
testcase_14 AC 2 ms
7,224 KB
testcase_15 AC 3 ms
7,032 KB
testcase_16 AC 2 ms
7,208 KB
testcase_17 AC 2 ms
7,220 KB
testcase_18 AC 153 ms
20,784 KB
testcase_19 AC 92 ms
17,720 KB
testcase_20 AC 52 ms
14,940 KB
testcase_21 AC 172 ms
22,824 KB
testcase_22 AC 72 ms
15,896 KB
testcase_23 AC 2 ms
7,028 KB
testcase_24 AC 42 ms
19,972 KB
testcase_25 AC 32 ms
17,756 KB
testcase_26 AC 23 ms
12,304 KB
testcase_27 AC 2 ms
7,240 KB
evil01.txt AC 42 ms
20,276 KB
evil02.txt AC 42 ms
20,316 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 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
0