結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー tottoripapertottoripaper
提出日時 2014-12-02 16:55:41
言語 Haskell
(9.8.2)
結果
AC  
実行時間 263 ms / 5,000 ms
コード長 302 bytes
コンパイル時間 8,415 ms
コンパイル使用メモリ 165,528 KB
実行使用メモリ 25,032 KB
最終ジャッジ日時 2023-09-08 14:10:51
合計ジャッジ時間 11,717 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
11,712 KB
testcase_01 AC 252 ms
24,280 KB
testcase_02 AC 2 ms
7,204 KB
testcase_03 AC 2 ms
7,144 KB
testcase_04 AC 2 ms
7,256 KB
testcase_05 AC 142 ms
22,832 KB
testcase_06 AC 2 ms
7,044 KB
testcase_07 AC 2 ms
6,976 KB
testcase_08 AC 2 ms
7,128 KB
testcase_09 AC 3 ms
7,108 KB
testcase_10 AC 2 ms
7,112 KB
testcase_11 AC 3 ms
7,216 KB
testcase_12 AC 2 ms
7,200 KB
testcase_13 AC 3 ms
7,200 KB
testcase_14 AC 143 ms
18,688 KB
testcase_15 AC 62 ms
15,576 KB
testcase_16 AC 192 ms
21,800 KB
testcase_17 AC 52 ms
14,868 KB
testcase_18 AC 183 ms
20,948 KB
testcase_19 AC 132 ms
18,620 KB
testcase_20 AC 263 ms
25,032 KB
testcase_21 AC 12 ms
11,432 KB
testcase_22 AC 82 ms
16,024 KB
testcase_23 AC 243 ms
23,772 KB
testcase_24 AC 252 ms
23,840 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 Control.Applicative
import Data.List
import Data.Monoid

main = do
  _ <- getLine
  ls <- map read . words <$> getLine :: IO [Int]
  let
    cmp x y = (length y `compare` length x) `mappend` (head y `compare` head x)
    l = head . head . sortBy cmp . group . sort $ ls
   in print l
0