結果

問題 No.182 新規性の虜
ユーザー shikatsusanshikatsusan
提出日時 2016-05-19 17:21:53
言語 Haskell
(9.8.2)
結果
AC  
実行時間 402 ms / 5,000 ms
コード長 164 bytes
コンパイル時間 5,963 ms
コンパイル使用メモリ 161,020 KB
実行使用メモリ 39,848 KB
最終ジャッジ日時 2023-08-27 11:27:30
合計ジャッジ時間 9,519 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,076 KB
testcase_01 AC 3 ms
7,016 KB
testcase_02 AC 3 ms
7,032 KB
testcase_03 AC 3 ms
7,140 KB
testcase_04 AC 3 ms
7,124 KB
testcase_05 AC 3 ms
7,252 KB
testcase_06 AC 2 ms
7,172 KB
testcase_07 AC 3 ms
7,304 KB
testcase_08 AC 262 ms
36,748 KB
testcase_09 AC 402 ms
39,848 KB
testcase_10 AC 343 ms
39,564 KB
testcase_11 AC 273 ms
38,192 KB
testcase_12 AC 113 ms
21,392 KB
testcase_13 AC 3 ms
7,172 KB
testcase_14 AC 2 ms
7,240 KB
testcase_15 AC 2 ms
6,528 KB
testcase_16 AC 3 ms
7,204 KB
testcase_17 AC 3 ms
7,356 KB
testcase_18 AC 263 ms
28,816 KB
testcase_19 AC 183 ms
22,896 KB
testcase_20 AC 102 ms
19,596 KB
testcase_21 AC 332 ms
34,464 KB
testcase_22 AC 143 ms
22,320 KB
testcase_23 AC 2 ms
6,648 KB
testcase_24 AC 222 ms
38,060 KB
testcase_25 AC 142 ms
22,664 KB
testcase_26 AC 53 ms
16,716 KB
testcase_27 AC 3 ms
7,072 KB
evil01.txt AC 362 ms
55,376 KB
evil02.txt AC 362 ms
55,392 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 )

Main.hs:6:61: warning: [GHC-47082] [-Woperator-whitespace-ext-conflict]
    The prefix use of a ‘$’ would denote an untyped splice
      were the TemplateHaskell extension enabled.
    Suggested fix: Add whitespace after the ‘$’.
  |
6 |   print . length . filter (\x->length x ==1) . group . sort $xs
  |                                                             ^
[2 of 2] Linking a.out

ソースコード

diff #

import Data.List
main::IO()
main =do
  getLine
  xs <-fmap (fmap (\x->read x::Int) . words) getLine
  print . length . filter (\x->length x ==1) . group . sort $xs
0