Problem:


Score : 100 points

Problem Statement

Determine if we can choose K different integers between 1 and N (inclusive) so that no two of them differ by 1.

Constraints

1\leq N,K\leq 100

N and K are integers.

Input

Input is given from Standard Input in the following format:

N K

Output

If we can choose K integers as above, print YES; otherwise, print NO.

Sample Input 1

3 2

Sample Output 1

YES

We can choose 1 and 3.

Sample Input 2

5 5

Sample Output 2

NO

Sample Input 3

31 10

Sample Output 3

YES

Sample Input 4

10 90

Sample Output 4

NO



Sample input:
3 2


Sample output:
YES

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())

cnt = N-1
#print(cnt)
if cnt >= K:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n,k = map(int, input().split())
ans = 2*k-3
if ans > k:
  print('NO')
else:
  print ('YES')

Submission status: Wrong Answer

Solution code:
in_list = input().split()
n = int(in_list[0])
k = int(in_list[1])
if(1+2*k<=n):
   print("YES")
else:
   print("NO")

Submission status: Wrong Answer

Solution code:
import sys
n,k=map(int,input().split())
tmp=1
count=1
for i in range(2,n+1):
    if i-tmp>1:
        tmp=i
        count+=1
    if count==k:
        print('YES')
        sys.exit(0)
print('NO')

Submission status: Wrong Answer

Solution code:
n, k = (int(i) for i in input().split())
n = n/2
if n > k:
  print("YES")
if n < k:
  print("NO")

Submission status: Wrong Answer

Solution code:
a,b = input().split( )
a=int(a)
b=int(b)
c = (a+1)/2
if b > c:
 print("no")
else:
 print("yes")

Submission status: Wrong Answer

Solution code:
n, k = (int(i) for i in input().split())
re = ""
if n - k > 0:
    re="YES"
else:
    re="NO"
print(re)

Submission status: Wrong Answer

Solution code:
li = list(map(int,input().split()))
if li[0] < li[1]:
	print("YES")
else:
	print("NO")

Submission status: Wrong Answer

Solution code:
n, k = (int(i) for i in input().split())
a = n-k
if n > k:
  print("YES")
if n < k:
  print("NO")

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
flag = True

if N == 1 or N == 2:
  print('NO')
  flag = False

if flag == True:
  if N % 2 == 0:
    if (N//2) % 2 == 0:
      num = N
    elif (N//2) % 2 == 1:
      num = N - 1
  elif N % 2 == 1:
    if (N//2) % 2 == 0:
      num = N - 1
    elif (N//2) % 2 == 1:
      num = N - 1
  if num >= K:
    print('YES')
  else:
    print('NO')

Submission status: Wrong Answer

Solution code:
in_list = input().split()
n = int(in_list[0])
k = int(in_list[1])
num = 1
ans = "YES"
for i in range(k):
   if(num>n or k>=n):
      ans="NO"
      break
   num+=2
print(ans)

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split()))
n = i[0]
k = i[1]

if n >= 1 and n <= 100 and k >= 1 and k <= 100:
  if n > 2:
    if n > k:
      if n % 2 == 1:
        if n / k >= 2:
          print("YES")
        elif n / k == 1 and n % k == k - 1:
          print("YES")
        else:
          print("NO")
      else:
        if n / k >= 2:
          print("YES")
        elif n % k == 0:
          print("YES")
        else:
          print("NO")
    else:
      print("NO")
  else:
    print("NO")

Submission status: Wrong Answer

Solution code:
a,b = input().split( )
a=int(a)
b=int(b)
c = (a-2)*(a-1)/2
if b > c:
 print("no")
else:
 print("yes")

Submission status: Wrong Answer

Solution code:
n, k = map(int, input().split())
if n -1 >= k or (n == 1 and k == 1):
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
cnt = 0
for i in range(1,a,2):
    cnt += 1
 
if cnt>=b:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
# coding: utf-8

n,k=map(int,input().split())

if n%2==1:
    n+=1

if n<3:
    n=0

if n/2>=k:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
s = input()
N, K = [int(x) for x in s.split(' ')]

h = (N-1) // 2 + (N % 2)

if h >= K:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
n,k = map(int, input().split())
ans = 2*k+1
if ans > k:
  print('NO')
else:
  print ('YES')

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
cnt = 0
for i in range(1,a,2):
    cnt += 1

if cnt>=b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import sys
A,B = [int(n) for n in input().split()]
# N = int(input())
# A = [0]*N
# for i in range(N):
#     A[i] = int(input())
# S = str(input())
# T = str(input())
if A/2 >= B:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())

if N % 2 != 0:
    N -= 1

if K <= N:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
n,k = map(int,input().split())
if n>=k+1:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split()))
n = i[0]
k = i[1]

if n >= 1 and n <= 100 and k >= 1 and k <= 100:
  if n > 2:
    if n > k:
      if n % 2 == 1:
        if n / k >= 1:
          print("YES")
        elif n % k == 1:
          print("YES")
        else:
          print("NO")
      else:
        if n / k >= 2:
          print("YES")
        elif n % k == 0:
          print("YES")
        else:
          print("NO")
    else:
      print("NO")
  else:
    print("NO")

Submission status: Wrong Answer

Solution code:
# 入力 N K
nk = list(map(int, input().split()))

# 制約条件
if nk[0] > 0 and 0 <= nk[1] < 101:
    if nk[0] > nk[1]:
        s = int(nk[0] / 2)
        j = nk[0] % 2
        if nk[1] <= s + j:
            print("YES")
        else:
            print("NO")
    else:
        print("NO")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split()))
n = i[0]
k = i[1]

if n >= 1 and n <= 100 and k >= 1 and k <= 100:
  if n > 2:
    if n % 2 == 1:
      if n / k >= 1:
        print("YES")
      elif n % k == 1:
        print("YES")
      else:
        print("NO")
    else:
      if n / k >= 2:
        print("YES")
      elif n % k == 0:
        print("YES")
      else:
        print("NO")
  else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n, k = map(int, input().split())

if k >= n:
  print("NO")
elif k <= n//2:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
# 入力 N K
nk = list(map(int, input().split()))

# 制約条件
if nk[0] > 0 and 0 <= nk[1] < 101:
    if nk[0] > nk[1]:
        s = int(nk[0] / 2)
        j = nk[0] % 2
        if nk[1] <= s + j:
            print("YES")
        else:
            print("NO")
    else:
        print("NO")

Submission status: Wrong Answer

Solution code:
n, k = map(int, input().split())

if k >= n:
  print("NO")
elif k <= n//2:
  print("YES")
elif (n % k == 0 or n % k == 1 or n % k ==2) and n >= k*2 - 1:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
in_ = input()
n, k = map(int, in_.split())

if (n <= k):
    print("NO")
    exit()

if (k == 1):
    print("YES")
    exit()

if ((n % 2) == 1):
    n += 1

if (2 <= (n / k)):
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split()))
n = i[0]
k = i[1]

if n >= 1 and n <= 100 and k >= 1 and k <= 100:
  if n > 2:
    if n % 2 == 1:
      if n / k >= 1:
        print("YES")
      elif n % k == 1:
        print("YES")
      else:
        print("NO")
    else:
      if n / k >= 2:
        print("YES")
      elif n % k == 0:
        print("YES")
      else:
        print("NO")
  else:
    print("NO")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
nData = []
nData  = input().rstrip().split(' ')

nN = int(nData[0])
nK = int(nData[1])

nTmp = nK * 2

if (nN >= nTmp):
 print('YES')
else:
 print('NO')

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
flag = True

if N == 1 or N == 2:
  print('NO')
  flag = False

if flag == True:
  if N % 2 == 0:
    if (N//2) % 2 == 0:
      num = N
    elif (N//2) % 2 == 1:
      num = N - 2
  elif N % 2 == 1:
    if (N//2) % 2 == 0:
      num = N - 2
    elif (N//2) % 2 == 1:
      num = N
  if num >= K:
    print('YES')
  else:
    print('NO')

Submission status: Wrong Answer

Solution code:
# coding: utf-8

n,k=map(int,input().split())

if n<3:
    n=0
else:
    if n%2==1:
        n+=1
    n/=2

if int(n)>=k:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
s = input()
N, K = [int(x) for x in s.split(' ')]
if (N % 2) == 0:
    h = (N-1) // 2
else:
    h = N // 2 + 1
if h >= K:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
N,K = map(int,input().split())
if K==1:
    print("YES")
    exit()

if N <= 1+(2*(K-1)):
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
# coding: utf-8

n,k=map(int,input().split())

if n<3:
    n=0
else:
    if n%2==1:
        n+=1
    n/=2


print(n)

if int(n)>=k:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n,k = list(map(int,input().split()))

nn = 1
count_n = 1
while nn < n:
    nn += 2
    count_n += 1
    
if n==2 and k==2:
    print("NO")
elif count_n >= k:
    print("YES")
elif count_n < k:
    print("NO")

Submission status: Wrong Answer

Solution code:
n, k = map(int, input().split())
if n // 2 >= k - 1:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
# 入力 N K
nk = list(map(int, input().split()))

# 制約条件
if nk[0] > 0 and 0 < nk[1] < 101:
    if nk[0] > nk[1]:
        s = int(nk[0] / 2)
        j = nk[0] % 2
        if nk[1] <= s + j:
            print("YES")
        else:
            print("NO")
    else:
        print("NO")

Submission status: Wrong Answer

Solution code:
in_ = input()
n, k = map(int, in_.split())

if (n <= 2):
    print("NO")
    exit()

if (n <= k):
    print("NO")
    exit()

if (k == 1):
    print("YES")
    exit()


if ((n % 2) == 1):
    n += 1

if (2 <= (n / k)):
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split()))
n = i[0]
k = i[1]

if n >= 1 and n <= 100 and k >= 1 and k <= 100:
  if n > 2:
    if n - 2 > k:
      if n % 2 == 1:
        if n / k >= 1:
          print("YES")
        elif n % k == 1:
          print("YES")
        else:
          print("NO")
      else:
        if n / k >= 2:
          print("YES")
        elif n % k == 0:
          print("YES")
        else:
          print("NO")
    else:
      print("NO")
  else:
    print("NO")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
# coding: utf-8
line = input().split()


if(int(line[0])//2+1>=int(line[1])):
    print("YES")
else :
    print("NO")

Submission status: Wrong Answer

Solution code:
N,K = map(int,input().split())

if N <= 1+(2*(K-1)):
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
n,k = list(map(int, input().split()))
#print(int(n/2)+1)
if int(n/2)+1 >= k:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
# coding: utf-8

n,k=map(int,input().split())

if n<3:
    n=0
else:
    if n%2==1:
        n+=1
    n/=2

if n>=k:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n, k = map(int, input().split())
 

if n - 1 >= k:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n,k = input().split()
n = int(n)
k = int(k)
n = int(n/3)*2

if n>=k:
     print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n, k = map(int,input().split())


if n == k:
  print("NO")
elif n <= k:
  print("NO")
else:
  print('YES')

Submission status: Wrong Answer

Solution code:
import math

n, k = map(int, input().split())
if k <= math.ceil(n/2):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())

cnt = 0
used = []
for nn in range(1, N+1):
    if nn not in used and nn + 2 <= N:
        #print(nn, nn + 2)
        cnt += 2
        used.append(nn)
        used.append(nn+2)

    #for mm in range(nn + 2, N+1):
    #    #print(nn, mm)
    #    cnt += 2
    #    break
#print(cnt)
if cnt >= K:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split()))
n = i[0]
k = i[1]

if n >= 1 and n <= 100 and k >= 1 and k <= 100:
  if n > 2:
    if n > k - 2:
      if n % 2 == 1:
        if n / k >= 1:
          print("YES")
        elif n % k == 1:
          print("YES")
        else:
          print("NO")
      else:
        if n / k >= 2:
          print("YES")
        elif n % k == 0:
          print("YES")
        else:
          print("NO")
    else:
      print("NO")
  else:
    print("NO")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
n,k = list(map(int,input().split()))

nn = 1
count_n = 1
while nn < n:
    nn += 2
    count_n += 1
    
if count_n >= k:
    print("YES")
elif count_n < k:
    print("NO")

Submission status: Wrong Answer

Solution code:
n,k = list(map(int, input().split()))
if int(n/k)+1 >= k:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
n,k = map(int,input().split())
if n==0:
  num=0
# else:
num = int(n/2) + 1
if k!=0 and num>=k:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
in_ = input()
n, k = map(int, in_.split())

if (n <= 2):
    print("NO")
    exit()

if ((n % 2) == 1):
    n += 1

if (2 <= (n / k)):
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
s = input()
N, K = [int(x) for x in s.split(' ')]
h = N // 2 + 1
if h >= K:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
def compare(num):
    count=0
    for x in range(num):
        #print(x,end="")
        for y in range(num):
            if x<y and y-x==1:
                count+=1
    return count
# スペース区切りの整数の入力
b, c = map(int, input().split())
answer=compare(b)
#print(answer)
if answer>=c:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n, k = map(int, input().split())


if n%2==1:
    if (n-1)/2 >= k:
        print("YES")
    else:
        print("NO")
else:
    if n/2 >= k:
        print("YES")
    else:
        print("NO")

Submission status: Wrong Answer

Solution code:
print("YES")

Submission status: Wrong Answer

Solution code:
n, k = map(int, input().split())

if k >= n:
  print("NO")
elif (n % k == 0 or n % k == 1 or n % k ==2) and n >= k*2 - 1:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
#coding:utf-8

n,k = map(int,input().split())

if n+1 > 2*k:
	print('YES')
else:
	print('NO')

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
ans = 'YES' if N > K else 'NO'
print(ans)

Submission status: Wrong Answer

Solution code:
#coding:utf-8

n,k = map(int,input().split())

if n > 2*k:
	print('YES')
else:
	print('NO')

Submission status: Wrong Answer

Solution code:

n, k = map(int, input().split())


if n-1==1:
    print("NO")
else:
    if n%2==1:
        if (n-1)/2 >= k:
            print("YES")
        else:
            print("NO")
    else:
        if n/2 >= k:
            print("YES")
        else:
            print("NO")

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
even = 0
odd = 0
flag = True

if N == 1 or N == 2:
  print('NO')
  flag = False

if flag == True:
  for num in range(1,N+1):
    if num % 2 == 0:
      even += 1
    elif num % 2 == 1:
      odd += 1
  if (even//2 + odd//2)*2 >= K :
    print('YES')
  else:
    print('NO')

Submission status: Wrong Answer

Solution code:
def main() -> None:
    x, y = map(int, input().split())
    print("%s" % "YES" if x > y else "NO")


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
#coding:utf-8

n,k = map(int,input().split())

if n > k:
	print('YES')
else:
	print('NO')

Submission status: Wrong Answer

Solution code:
N, K =  map(int,input().split())
if N%2==0 and N >= (K//2):
  print("YES")
elif N%2==1 and N >= (K//2)+1:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
import sys, copy, math, collections, itertools

n, k = map(int, input().split())

if n-1==1:
    print("NO")
elif n - 1 >= k:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n,k = map(int,input().split())
print("YES" if n > k else "NO")

Submission status: Wrong Answer

Solution code:
N,K = [int(i) for i in input().split()]
if (N / 2 + 1 >= K or K == 1):
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n, k = map(int, input().split())

if k >= n:
  print("NO")
elif n - k == 1:
  print("NO")
elif n % k == 0 or n % k == 1:
  print("YES")
elif n % k == k-1:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
n,k = map(int,input().split())
# if n==2:
#     num=0
# else:
num = int(n/2) + 1
if num>=k:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
n,k = list(map(int,input().split()))

nn = 1
count_n = 1
while nn <= n:
    nn += 2
    count_n += 1
    
if count_n >= k:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n, k = map(int, input().split())
if n -1 >= k:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
even = 0
odd = 0
flag = True

if N == 1 or N == 2:
  print('NO')
  flag = False

if flag == True:
  for num in range(1,N+1):
    if num % 2 == 0:
      even += 1
    elif num % 2 == 1:
      odd += 1
if (even//2 + odd//2)*2 >= K :
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
n,k = input().split()
n = int(n)
k = int(k)

if n>k:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
n,k=(int(x) for x in input().split())

if n%2==0:
  if k<=n//2:
    print("Yes")
  else:
    print("No")

else:
  if k<=n//2+1:
    print("Yes")
  else:
    print("No")

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
if N>K:
    if 2*K-1<=N:
        print("YES")
    else:
        print("NO")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
 
if (a//2+1) > b:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split()))
n = i[0]
k = i[1]

if n >= 1 and n <= 100 and k >= 1 and k <= 100:
  if n > 2:
    if n > k - 2:
      if (n % 2 == 1 and n % k == 1 and n / k >= 1) or (n % 2 == 0 and n % k == 0 and n / k >= 2):
        print("YES")
      else:
        print("NO")
    else:
      print("NO")
  else:
    print("NO")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
q=input()
p=q.split()
n=int(p[0])
k=int(p[1])
if n//2+1>=k:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())

def my_round(x):
    return (x*2 + 1) // 2

c = N / K
c = int(my_round(c))

if  K <= c and N > K:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

N, K = (int(i) for i in input().split())

if K <= round(N/2):
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
n,k=(int(x) for x in input().split())

if n%2==0:
  if k<=n//2:
    print("Yes")
  else:
    print("No")

if n%2==1:
  if k<=n//2+1:
    print("Yes")
  else:
    print("No")

Submission status: Wrong Answer

Solution code:
in_ = input()
n, k = map(int, in_.split())

if (n == 1):
    print("NO")
    exit()

if (1 <= (n - 1) / k):
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
even = 0
odd = 0
flag = True

if N == 1 or N == 2:
  print('NO')
  flag = False

if flag == True:
  for num in range(1,N+1):
    if num % 2 == 0:
      even += 1
    elif num % 2 == 1:
      odd += 1
if (even//2 + odd//2)*2 > K :
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
q=input()
p=q.split()
n=int(p[0])
k=int(p[1])
if n//2+1>=k:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
in_list = input().split()
n = int(in_list[0])
k = int(in_list[1])
num = 1
ans = "YES"
for i in range(k):
   num+=2
   if(num>n or k>=n):
      ans="NO"
      break
print(ans)

Submission status: Wrong Answer

Solution code:
n,k = map(int,input().split())
# if n==2:
#     num=0
if n>2:
    num = int(n/2) + 1
elif (n==1 or n==2):
    num=0
    
if num>=k:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
n, k = map(int, input().split())

if k >= n:
  print("NO")
elif n % k == 0 or n % k == 1:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
n,k=map(int,input().split())
if k-n>=1:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
N,K = [int(_) for _ in input().split()]
if N/2 >= K:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())

if N == 1:
    print('NO')
elif N == 2:
    print('NO')
elif (int(N**2+N)/2)+1 <= K:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
n, k = map(int, input().split())

if n/2 >= k:
    print("YES")
elif n/2 + n%2 == k:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())

def my_round(x):
    return (x*2 + 1) // 2

c = N / K
c = int(my_round(c))

if  K >= c and N > K:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())

if N == 1:
    print('No')
elif N == 2:
    print('No')
elif (int(N**2+N)/2)+1 <= K:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n, k = map(int, input().split())
if n > k:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split()))
n = i[0]
k = i[1]

if n >= 1 and n <= 100 and k >= 1 and k <= 100:
  if n > 2:
    if n > k - 2:
      if (n % 2 == 1 and n % k == 1) or (n % 2 == 0 and n % k == 0):
        print("YES")
      else:
        print("NO")
    else:
      print("NO")
  else:
    print("NO")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
q=input()
p=q.split()
n=int(p[0])
k=int(p[1])
if n/2>k:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
 
if (a/2+1) >= b:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n, k = map(int, input().split())

if k >= n:
  print("NO")
elif k <= 1:
  print("NO")
elif n % k == 0 or n % k == 1:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
even = 0
odd = 0
flag = True

if N == 1 or N == 2:
  print('NO')
  flag = False

if flag == True:
  for num in range(1,N+1):
    if num % 2 == 0:
      even += 1
    elif num % 2 == 1:
      odd += 1
if even + odd > K :
  if even % 2 == 0 and odd % 2 == 0:
    print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
n, k = map(int, input().split())

if n/2 >= k:
    print("YES")
elif n/2 + 1 == k:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
import math

N,K = [int(x) for x in input().split()]
if K <= math.ceil(N/2):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
if N//2 + 1 >= K:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
line = input().split(" ")
n = int(line[0])
k = int(line[1])

if (n//2+1 >= k):
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split()))
n = i[0]
k = i[1]

if n >= 0 and n <= 100 and k >= 0 and k <= 100:
  if n > 2:
    if n > k - 2:
      if (n % 2 == 1 and n % k == 1) or (n % 2 == 0 and n % k == 0):
        print("YES")
      else:
        print("NO")
    else:
      print("NO")
  else:
    print("NO")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
n,k = input().split()
n = int(n)
k = int(k)

if n==2:
  print("NO")
elif n>k:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
n,k = map(int, input().split())

if n <= k:
  print('NO')
elif n < ((k-1)*2+1) :
  print('NO')
else:
  print('YES')

Submission status: Wrong Answer

Solution code:
in_list = input().split()
n = int(in_list[0])
k = int(in_list[1])
num = 1
ans = "NO"
for i in range(k):
   num+=2
if(num<=n):
   ans="YES"
   #break
print(ans)

Submission status: Wrong Answer

Solution code:
n,k = input().split()
n = int(n)
k = int(k)

if n==2:
     print("NO")
elif n>k:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N,K=map(int,input().split())

ans='NO'

if N%2==0 and K<=(N/2):
    ans=''
if N%2==1 and K<=((N+1)/2) :
    ans='YES'

print(ans)

Submission status: Wrong Answer

Solution code:
n,k=map(int,input().split())
n=n/2+1
print(n)
if n>=k:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n,k = list(map(int,input().split()))

nn = 1
count_n = 1
while nn < n:
    nn += 2
    count_n += 1
    
if n <= k:
    print("NO")
elif count_n >= k:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
if K == 0 or (N == 1 and K == 1):
    print("YES")
    exit()
if (N + K - 1) // 2 >= K:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N, K = [int(i) for i in input().split()]
pair = (N - 2) * (N - 1) // 2
ans = 'YES' if (K % 2 == pair * 2 % 2) and K <= pair * 2 else 'NO'
print(ans)

Submission status: Wrong Answer

Solution code:
n, k = map(int, input().split())

if k >= n:
  print("NO")
elif k <= 1:
  print("NO")
elif n % k == 0 or n % k == 1:
  print("YES")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if (a%2==1 and a>=(b-1)*2) or (a%2==0 and a>=b*2) :
    print("Yes")
else :
    print("No")

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split()))
n = i[0]
k = i[1]

if n >= 0 and n <= 100 and k >= 0 and k <= 100:
  if n > 3:
    if n > k - 2:
      if (n % 2 == 1 and n % k == 1) or (n % 2 == 0 and n % k == 0):
        print("YES")
      else:
        print("NO")
    else:
      print("NO")
  else:
    print("NO")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
if N <= K and N!=1 and K!=1:
  print("NO")
elif N//2 + 1 >= K:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
even = 0
odd = 0
flag = True

if N == 1 or N == 2:
  print('NO')
  flag = False

if flag == True:
  for num in range(1,N+1):
    if num % 2 == 0:
      even += 1
    elif num % 2 == 1:
      odd += 1
if even + odd > K:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:

def sol(n, k):
    ans = int(n/2)+1 if n % 2 == 1 else int(n/2)
    return ans >= k

test = False
#test = True
if test:
    n, k = 3, 2
    #S =list( map(int, "1 6 3".split()))
    print(sol(n, k))

    n, k = 5, 5
    #S =list( map(int, "7 4 0 3".split()))
    print(sol(n, k))
    #
    n, k = 31, 10
    #S =list( map(int, "1000000000000".split()))
    print(sol(n, k))


else:
    n, k = map(int, input().split())
    #S =list( map(int, input().split()))
    print(sol(n, k))

Submission status: Wrong Answer

Solution code:
N,K=map(int,input().split())

ans='NO'

if N%2==0 and K<=(N/2):
    ans=''
if N%2==1 and K<=((N/2)+1) :
    ans='YES'

print(ans)

Submission status: Wrong Answer

Solution code:
in_list = input().split()
n = int(in_list[0])
k = int(in_list[1])
num = 1
ans = "YES"
for i in range(k):
   num+=2
   if(num>n):
      ans="NO"
      break
print(ans)

Submission status: Wrong Answer

Solution code:
n, k = map(int, input().split())
ans = 0
for i in range(1, n+1, 2):
    ans += 1
if ans >= k:
    print("YES")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import math

N,K = [int(x) for x in input().split()]
print(N,K)
print(math.ceil(N/2))
if K <= math.ceil(N/2):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N,K = input().split()
if (int(N) // 2)+1>=int(K) :
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
if N>K:
    if N==2:
        print("NO")
    else:
        print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n,k = map(int,input().split())
if n==2:
    num=0
else:
    num = int(n/2) + 1
if num>=k:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
import math

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

if math.ceil((n-1)/2) < k:
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
n,k = list(map(int,input().split()))

nn = 1
count_n = 1
while nn < n:
    nn += 2
    count_n += 1

if count_n >= k:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
import math
def read():
    return int(input())

def reads():
    return list(map(int, input().split()))

n,k = reads()
if n < k:
    print('NO')
else:
    if int(math.ceil(n/k)) >= 2:
        print('YES')
    else:
        print('NO')

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if A%2==0:
   if A/2 >= B:
      print("Yes")
   else:
      print("No")
else:
   if (A+1)/2 >= B:
      print("Yes")
   else:
      print("No")

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())

cnt = 0
for nn in range(1, N+1):
    for mm in range(nn + 2, N+1):
        #print(nn, mm)
        cnt += 2
        break
#print(cnt)
if cnt >= K:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split()))
n = i[0]
k = i[1]

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

Submission status: Wrong Answer

Solution code:
N,K = map(int,input().split())

if N <= 1+(2*(K-1)):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
even = 0
odd = 0

if K == 1:
  print('NO')
for num in range(1,N+1):
  if num % 2 == 0:
    even += 1
  elif num % 2 == 1:
    odd += 1
if even + odd > K:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
# coding:utf-8

N, K = map(int, input().split())

if -(-N // 2) >= K:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())

cnt = 0
for nn in range(1, N+1):
    for mm in range(nn + 2, N+1):
        print(nn, mm)
        cnt += 2
        break
#print(cnt)
if cnt >= K:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n, k = map(int, input().split())

if n/2 >= k:
    print("YES")
elif n%2 + 1 == k:
    print("YES")
else:
    print("NO")