結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-04-21 18:18:12 |
| 言語 | Haskell (9.10.1) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 252 bytes |
| コンパイル時間 | 4,812 ms |
| コンパイル使用メモリ | 173,824 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-04 19:08:07 |
| 合計ジャッジ時間 | 4,555 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
コンパイルメッセージ
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:1: warning: [GHC-94817] [-Wtabs]
Tab character found here, and in 10 further locations.
Suggested fix: Please use spaces instead.
|
5 | where
| ^^^^^^^^
[2 of 2] Linking a.out
ソースコード
main = getLine >>= solve solve :: String -> IO () solve n = getContents >>= putStrLn . ans . foldl ff True where ans x | x = n | otherwise = if n == "oda" then "yukiko" else "oda" ff acc x | x == 'b' || x == 'w' = not acc | otherwise = acc