結果
| 問題 |
No.279 木の数え上げ
|
| コンテスト | |
| ユーザー |
shikatsusan
|
| 提出日時 | 2016-05-14 12:39:05 |
| 言語 | Haskell (9.10.1) |
| 結果 |
AC
|
| 実行時間 | 185 ms / 2,000 ms |
| コード長 | 203 bytes |
| コンパイル時間 | 1,848 ms |
| コンパイル使用メモリ | 173,696 KB |
| 実行使用メモリ | 58,624 KB |
| 最終ジャッジ日時 | 2024-10-14 15:29:12 |
| 合計ジャッジ時間 | 3,514 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
コンパイルメッセージ
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:5:45: 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 ‘$’.
|
5 | exe (x:xs) ws = (length .filter (==x) $ws)
| ^
Main.hs:8: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 ‘$’.
|
8 | print . minimum $ (exe "tr" ws) ++ (map (`div` 2).exe "e" $ws)
| ^
[2 of 2] Linking a.out
ソースコード
main::IO()
main = do
ws <-getLine
let exe [] _=[]
exe (x:xs) ws = (length .filter (==x) $ws)
:exe xs ws
print . minimum $ (exe "tr" ws) ++ (map (`div` 2).exe "e" $ws)
shikatsusan