結果
問題 |
No.203 ゴールデン・ウィーク(1)
|
ユーザー |
|
提出日時 | 2015-07-19 05:18:10 |
言語 | Haskell (9.10.1) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 219 bytes |
コンパイル時間 | 6,210 ms |
コンパイル使用メモリ | 171,136 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-18 09:24:25 |
合計ジャッジ時間 | 6,397 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.8.2/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
main = getContents >>= print . solve . concat . lines solve :: String -> Int solve = fst . foldl ff (0, 0) where ff (m, n) x | x == 'o' = (max m (n + 1), n + 1) | otherwise = (m, 0)