結果
問題 | No.79 過小評価ダメ・ゼッタイ |
ユーザー | highd |
提出日時 | 2016-09-08 20:06:08 |
言語 | Haskell (9.8.2) |
結果 |
AC
|
実行時間 | 203 ms / 5,000 ms |
コード長 | 473 bytes |
コンパイル時間 | 3,188 ms |
コンパイル使用メモリ | 161,288 KB |
実行使用メモリ | 35,484 KB |
最終ジャッジ日時 | 2023-09-08 14:58:27 |
合計ジャッジ時間 | 5,950 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 12 ms
11,004 KB |
testcase_01 | AC | 194 ms
35,420 KB |
testcase_02 | AC | 2 ms
6,544 KB |
testcase_03 | AC | 2 ms
6,528 KB |
testcase_04 | AC | 2 ms
6,700 KB |
testcase_05 | AC | 62 ms
21,064 KB |
testcase_06 | AC | 3 ms
6,504 KB |
testcase_07 | AC | 2 ms
6,624 KB |
testcase_08 | AC | 2 ms
6,620 KB |
testcase_09 | AC | 3 ms
6,584 KB |
testcase_10 | AC | 3 ms
6,676 KB |
testcase_11 | AC | 3 ms
6,636 KB |
testcase_12 | AC | 3 ms
6,532 KB |
testcase_13 | AC | 2 ms
6,572 KB |
testcase_14 | AC | 113 ms
25,180 KB |
testcase_15 | AC | 42 ms
14,760 KB |
testcase_16 | AC | 153 ms
29,184 KB |
testcase_17 | AC | 33 ms
14,604 KB |
testcase_18 | AC | 143 ms
27,368 KB |
testcase_19 | AC | 102 ms
23,160 KB |
testcase_20 | AC | 203 ms
35,412 KB |
testcase_21 | AC | 6 ms
9,600 KB |
testcase_22 | AC | 62 ms
18,532 KB |
testcase_23 | AC | 183 ms
34,368 KB |
testcase_24 | AC | 194 ms
35,484 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:18:1: warning: [GHC-94817] [-Wtabs] Tab character found here, and in 8 further locations. Suggested fix: Please use spaces instead. | 18 | _<-getLine; | ^^^^^^^^ [2 of 2] Linking a.out
ソースコード
import qualified Data.Text as Text import Control.Applicative import Data.List import Control.Arrow (<$~>)::Functor f=>f a->(a->b)->f b (<$~>)=flip (<$>) infixl 4 <$~> (.~)::(a->a->b)->(c->a)->c->c->b f .~ a=(\x y->f (a x) (a y)) infixr 9 .~ toList::String->[String] toList=(fmap Text.unpack).(Text.split (==' ')).(Text.pack) main = do{ _<-getLine; getLine<$~> (toList>>> sort>>> group>>> fmap (head&&&length)>>> maximumBy (compare.~snd)>>> fst)>>= putStrLn; }