結果

問題 No.1714 Tag on Grid
ユーザー sanao10000sanao10000
提出日時 2021-10-22 22:02:18
言語 Haskell
(9.8.2)
結果
CE  
(最新)
AC  
(最初)
実行時間 -
コード長 1,409 bytes
コンパイル時間 3,905 ms
コンパイル使用メモリ 150,984 KB
最終ジャッジ日時 2023-10-24 13:10:06
合計ジャッジ時間 4,275 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.2/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )

Main.hs:12:1: error:
    Could not load module ‘Data.ByteString.Char8’
    It is a member of the hidden package ‘bytestring-0.11.4.0’.
    You can run ‘:set -package bytestring’ to expose it.
    (Note: this unloads all the modules in the current scope.)
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
12 | import qualified Data.ByteString.Char8         as BS
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Main.hs:19:1: error:
    Could not load module ‘Data.Map.Strict’
    It is a member of the hidden package ‘containers-0.6.7’.
    You can run ‘:set -package containers’ to expose it.
    (Note: this unloads all the modules in the current scope.)
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
19 | import qualified Data.Map.Strict               as Map
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Main.hs:22:1: error:
    Could not load module ‘Data.Set’
    It is a member of the hidden package ‘containers-0.6.7’.
    You can run ‘:set -package containers’ to expose it.
    (Note: this unloads all the modules in the current scope.)
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
22 | import qualified Data.Set                      as Set
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ソースコード

diff #

module Main where
import Data.Bool
import Control.Applicative
import Data.Ord
import qualified Data.Text as Te
import Control.Monad.State
import qualified Control.Monad                 as CM
import qualified Control.Monad.ST              as ST
import qualified Data.Array             as A
import qualified Data.Bits                     as Bits
import qualified Data.ByteString.Char8         as BS
import qualified Data.Char as Char
import qualified Data.Complex                  as Comp
import qualified Data.Foldable                 as Foldable
import qualified Data.Function                 as Func
import qualified Data.IORef                    as IO
import qualified Data.List                     as L
import qualified Data.Map.Strict               as Map
import qualified Data.Maybe                    as May
import qualified Data.Proxy                    as Proxy
import qualified Data.Set                      as Set
import qualified Data.Vector                   as V
import qualified Data.Vector.Mutable           as VM
import Text.Printf (printf)


mod' = 1000000007

gs :: IO String
gs=getLine

gn=map (read . BS.unpack) . BS.words <$> BS.getLine ::IO[Int]
----------------------------------------------------

-- main=interact$('0':)
main = do
    [h,w] <- gn
    [nh,nw] <- gn
    [zh,zw] <- gn
    putStr $ solve nh nw zh zw

solve nh nw zh zw
 |odd((zh-nh)+(zw-nw)) = "Yes"
 | otherwise = "No"
0