結果
問題 | No.182 新規性の虜 |
ユーザー | shikatsusan |
提出日時 | 2016-05-19 17:18:23 |
言語 | Haskell (9.8.2) |
結果 |
AC
|
実行時間 | 331 ms / 5,000 ms |
コード長 | 292 bytes |
コンパイル時間 | 8,077 ms |
コンパイル使用メモリ | 171,264 KB |
実行使用メモリ | 37,504 KB |
最終ジャッジ日時 | 2024-06-08 07:00:22 |
合計ジャッジ時間 | 12,177 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
5,248 KB |
testcase_01 | AC | 1 ms
5,248 KB |
testcase_02 | AC | 1 ms
5,376 KB |
testcase_03 | AC | 1 ms
5,376 KB |
testcase_04 | AC | 2 ms
5,376 KB |
testcase_05 | AC | 1 ms
5,376 KB |
testcase_06 | AC | 2 ms
5,376 KB |
testcase_07 | AC | 2 ms
5,376 KB |
testcase_08 | AC | 245 ms
34,432 KB |
testcase_09 | AC | 331 ms
37,504 KB |
testcase_10 | AC | 292 ms
36,480 KB |
testcase_11 | AC | 228 ms
35,328 KB |
testcase_12 | AC | 91 ms
19,072 KB |
testcase_13 | AC | 1 ms
5,376 KB |
testcase_14 | AC | 2 ms
5,376 KB |
testcase_15 | AC | 1 ms
5,376 KB |
testcase_16 | AC | 2 ms
5,376 KB |
testcase_17 | AC | 2 ms
5,376 KB |
testcase_18 | AC | 219 ms
27,136 KB |
testcase_19 | AC | 141 ms
20,992 KB |
testcase_20 | AC | 92 ms
17,152 KB |
testcase_21 | AC | 274 ms
32,384 KB |
testcase_22 | AC | 110 ms
19,968 KB |
testcase_23 | AC | 2 ms
5,376 KB |
testcase_24 | AC | 187 ms
35,328 KB |
testcase_25 | AC | 108 ms
18,048 KB |
testcase_26 | AC | 44 ms
13,696 KB |
testcase_27 | AC | 2 ms
5,376 KB |
evil01.txt | AC | 309 ms
52,224 KB |
evil02.txt | AC | 304 ms
52,096 KB |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.8.2/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) Main.hs:9:30: 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 ‘$’. | 9 | |x==y = exe cnt $dropWhile (==x) xs | ^ Main.hs:12:24: 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 ‘$’. | 12 | print . exe 0 . sort $xs | ^ [2 of 2] Linking a.out
ソースコード
import Data.List main::IO() main =do getLine xs <-fmap (map (\x->read x::Int) . words) getLine let exe cnt [] = cnt exe cnt [x] = cnt+1 exe cnt (x:ys@(y:xs)) |x==y = exe cnt $dropWhile (==x) xs |otherwise = exe (cnt+1) ys print . exe 0 . sort $xs