CSES - HIIT Open 2019 - Results
Submission details
Task:Just Solve It
Sender:O(n^10)
Submission time:2019-05-25 11:15:53
Language:Python3
Status:READY
Result:
Test results
testverdicttime
#1ACCEPTED0.05 sdetails
#20.06 sdetails
#3ACCEPTED0.06 sdetails
#4ACCEPTED0.06 sdetails
#5ACCEPTED0.05 sdetails
#6ACCEPTED0.04 sdetails
#7ACCEPTED0.05 sdetails
#8ACCEPTED0.05 sdetails

Code

n, k = [int(x) for x in input().split()]

if k == 1:
  if n == 1:
    print("YES")
    exit()
  print("NO")
  exit()
  
if n % 2 == 0:
  print("YES")
else:
  if n >= 3: print("YES")
  else: print("NO")

Test details

Test 1

Verdict: ACCEPTED

input
3 1

correct output
NO

user output
NO

Test 2

Verdict:

input
3 2

correct output
NO

user output
YES

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