結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー HaarHaar
提出日時 2016-04-03 13:13:45
言語 Haskell
(9.8.2)
結果
AC  
実行時間 232 ms / 5,000 ms
コード長 223 bytes
コンパイル時間 3,224 ms
コンパイル使用メモリ 154,544 KB
実行使用メモリ 24,860 KB
最終ジャッジ日時 2023-09-08 14:49:45
合計ジャッジ時間 6,254 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
11,664 KB
testcase_01 AC 222 ms
24,112 KB
testcase_02 AC 2 ms
7,092 KB
testcase_03 AC 3 ms
7,080 KB
testcase_04 AC 3 ms
7,128 KB
testcase_05 AC 132 ms
22,672 KB
testcase_06 AC 2 ms
7,128 KB
testcase_07 AC 3 ms
6,976 KB
testcase_08 AC 3 ms
7,064 KB
testcase_09 AC 3 ms
7,036 KB
testcase_10 AC 3 ms
7,108 KB
testcase_11 AC 2 ms
7,116 KB
testcase_12 AC 3 ms
7,092 KB
testcase_13 AC 2 ms
7,076 KB
testcase_14 AC 132 ms
18,560 KB
testcase_15 AC 52 ms
15,532 KB
testcase_16 AC 172 ms
21,648 KB
testcase_17 AC 52 ms
14,700 KB
testcase_18 AC 162 ms
20,864 KB
testcase_19 AC 122 ms
18,516 KB
testcase_20 AC 232 ms
24,860 KB
testcase_21 AC 12 ms
11,340 KB
testcase_22 AC 72 ms
15,500 KB
testcase_23 AC 213 ms
23,664 KB
testcase_24 AC 222 ms
23,876 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:3:1: warning: [GHC-94817] [-Wtabs]
    Tab character found here, and in three further locations.
    Suggested fix: Please use spaces instead.
  |
3 |         getLine
  | ^^^^^^^^
[2 of 2] Linking a.out

ソースコード

diff #

import Data.List
main = do
	getLine
	l <- getLine >>= return . map (\x -> (length x, head x)) . group . sort . map (read::String->Int) . words
	let m = fst (maximum l)
	print $ maximum $ map snd $ filter (\(a,b) -> a==m ) l
0