結果

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

コンパイルメッセージ
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:19:1: error: [GHC-87110]
    Could not load module ‘Data.Map.Strict’.
    It is a member of the hidden package ‘containers-0.6.8’.
    Use -v to see a list of the files searched for.
   |
19 | import qualified Data.Map.Strict               as Map
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Main.hs:22:1: error: [GHC-87110]
    Could not load module ‘Data.Set’.
    It is a member of the hidden package ‘containers-0.6.8’.
    Use -v 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