CSES - HIIT Open 2019 - Results
Submission details
Task:Just Solve It
Sender:Omochiikaeri~!
Submission time:2019-05-25 11:23:18
Language:Haskell
Status:READY
Result:ACCEPTED
Test results
testverdicttime
#1ACCEPTED0.01 sdetails
#2ACCEPTED0.01 sdetails
#3ACCEPTED0.02 sdetails
#4ACCEPTED0.01 sdetails
#5ACCEPTED0.01 sdetails
#6ACCEPTED0.02 sdetails
#7ACCEPTED0.02 sdetails
#8ACCEPTED0.02 sdetails

Compiler report

input/code.hs:1:1: warning: [-Wmissing-signatures]
    Top-level binding with no type signature: main :: IO ()

Code

main = do
    l <- getLine
    let [n, k] = map read $ words l
    putStrLn (solve n k)

solve :: Integer -> Integer -> String
solve n k =
    if mod n 2 == 0 && k > 1 || k > 2 then
        "YES"
    else
        "NO"

Test details

Test 1

Verdict: ACCEPTED

input
3 1

correct output
NO

user output
NO

Test 2

Verdict: ACCEPTED

input
3 2

correct output
NO

user output
NO

Test 3

Verdict: ACCEPTED

input
3 3

correct output
YES

user output
YES

Test 4

Verdict: ACCEPTED

input
4 1

correct output
NO

user output
NO

Test 5

Verdict: ACCEPTED

input
4 2

correct output
YES

user output
YES

Test 6

Verdict: ACCEPTED

input
4 3

correct output
YES

user output
YES

Test 7

Verdict: ACCEPTED

input
123456 654321

correct output
YES

user output
YES

Test 8

Verdict: ACCEPTED

input
1000000000 1000000000

correct output
YES

user output
YES