結果

問題 No.85 TVザッピング(1)
ユーザー okaduki
提出日時 2014-12-04 23:32:47
言語 Haskell
(9.10.1)
結果
WA  
実行時間 -
コード長 207 bytes
コンパイル時間 1,549 ms
コンパイル使用メモリ 173,312 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-11 15:22:54
合計ジャッジ時間 2,216 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22 WA * 5
権限があれば一括ダウンロードができます
コンパイルメッセージ
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

ソースコード

diff #

import Control.Applicative
import Text.Printf

-- input
main = do
  xs <- take 2 <$> fmap (read :: String -> Int) . words <$> getLine
  if and $ map odd xs
    then putStrLn "NO" else putStrLn "YES"
0