結果
問題 | No.88 次はどっちだ |
ユーザー | Michae'Gon |
提出日時 | 2015-04-21 18:18:12 |
言語 | Haskell (9.8.2) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 252 bytes |
コンパイル時間 | 2,074 ms |
コンパイル使用メモリ | 158,744 KB |
実行使用メモリ | 6,668 KB |
最終ジャッジ日時 | 2023-09-18 02:18:56 |
合計ジャッジ時間 | 2,730 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 3 ms
6,624 KB |
testcase_01 | AC | 2 ms
6,648 KB |
testcase_02 | AC | 2 ms
6,528 KB |
testcase_03 | AC | 3 ms
6,624 KB |
testcase_04 | AC | 3 ms
6,604 KB |
testcase_05 | AC | 3 ms
6,608 KB |
testcase_06 | AC | 2 ms
6,644 KB |
testcase_07 | AC | 3 ms
6,604 KB |
testcase_08 | AC | 3 ms
6,668 KB |
testcase_09 | AC | 2 ms
6,652 KB |
testcase_10 | AC | 3 ms
6,604 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: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