結果

問題 No.795 Restrictions!!!!!!!!!!!!!!
ユーザー iwotiwot
提出日時 2020-05-22 15:16:33
言語 Haskell
(9.8.2)
結果
WA  
実行時間 -
コード長 274 bytes
コンパイル時間 4,524 ms
コンパイル使用メモリ 177,152 KB
実行使用メモリ 13,696 KB
最終ジャッジ日時 2024-04-15 05:16:20
合計ジャッジ時間 6,283 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
13,440 KB
testcase_01 AC 35 ms
13,440 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 35 ms
13,568 KB
testcase_06 AC 38 ms
13,440 KB
testcase_07 AC 34 ms
13,312 KB
testcase_08 AC 35 ms
13,312 KB
testcase_09 WA -
testcase_10 AC 35 ms
13,440 KB
testcase_11 AC 36 ms
13,568 KB
testcase_12 AC 35 ms
13,440 KB
testcase_13 AC 36 ms
13,312 KB
testcase_14 AC 36 ms
13,568 KB
testcase_15 AC 37 ms
13,312 KB
testcase_16 AC 35 ms
13,440 KB
testcase_17 WA -
testcase_18 AC 36 ms
13,440 KB
testcase_19 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 #

main :: IO ()
main = solve <$> (read <$> getLine) <*> (read <$> getLine) >>= putStrLn

solve :: Int -> Int -> String
solve n m
    | n `mod` 2 == 0 = if m `mod` 2 == 0 then "Yes" else "No"
    | m >= 10 = if (m - 10) `mod` 2 == 0 then "Yes" else "No"
    | otherwise = "No"
0