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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
'''input
31 10
'''
import time
import math
n, k = map(int, input().strip().split())
d = (n + 1) / 2
if k <= d:
	print("YES")
else:
	print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n ,k=map(int,input().split())
d=[]
for i in range(1,n+1,2):
  d.append(i)
  if len(d)==k:
    break
if len(d)>=k:
  print("YES")
else:
  print("NO")

Submission status: Accepted

Solution code:
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


# aとbの最大公約数
def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)


# aとbの最小公倍数
def lcm(a, b):
    g = gcd(a, b)
    return a / g * b


def main():
    N, K = map(int, input().split())
    num = 0
    for i in range(1, N + 1, 2):
        num += 1
    if num >= K:
        print(YES)
    else:
        print(NO)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n,k = list(map(int,input().split()))
#差が１にならないような数字を選ぶ場合kは奇数の数となるからその奇数の数を満たすには
if n >= 2*k-1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
n, k = [int(i) for i in s.split(' ')]

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
N, K = list(map(int, input().split()))
num = 0
#奇数の数を求める
for n in range(1,N+1):
    if n%2!=0:
        num += 1
if num<K:
    print("NO")
else:
    print("YES")

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# みんなのプロコン 2019：A - Anti-Adjacency


def main():
    N, K = [int(i) for i in raw_input().strip().split(' ')]

    if N >= K*2 - 1:
        print 'YES'
    else:
        print 'NO'


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#横にn個入力
n, k = map(int, input().split())
if k <= (n + 1) // 2:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
a = list(map(int,input().split()))
if(a[1]<=-(-a[0]//2)):
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
#最大値は2k-1
N,K=map(int,input().split())#原則入力はmapでやっていこうかな
if N>=2*K-1:
    print("YES")
else:print("NO")

Submission status: Accepted

Solution code:
l=[]
n,k=map(int,input().split())
for i in range(1,n+1,2):
    l.append(i)

if k<=len(l):
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def func():
    pass


def main():
    n, k = map(int, input().split())

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
print("YNEOS"[(lambda n,k:n<k*2-1)(*map(int,input().split()))::2])

Submission status: Accepted

Solution code:


n,k = map(int,input().strip().split(' '))
c = 0
for i in range(n):
  if i%2 == 0:
    c+=1
if(c>=k):
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

N, K = [int(x) for x in input().split()]

if K > math.ceil(N / 2):
    print('NO')
else:
    print('YES')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


def main():
    from math import ceil
    n, k = map(int, input().split())

    if ceil(n / 2) < k:
        print('NO')
    else:
        print('YES')


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math
 
N, K = [int(i) for i in input().split()]
 
ans = "YES"
if math.ceil(N / 2)< K:
    ans = "NO"
 
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

ans = "YES"
if math.ceil(N / 2)< K:
    ans = "NO"

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = list(map(int,input().split()))
N,K = a[0]-1,a[1]-1
 
if N/2 >= K:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
a = list(map(int,input().split()))
N,K = a[0]-1,a[1]-1

if N/2 >= K:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
import math
n,k=map(int,input().split())
xx=math.ceil(n/2)
if xx>=k:
	print("YES")
else:
	print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n,k=map(int,input().split())
print(["NO","YES"][n>=k*2-1])

Submission status: Accepted

Solution code:
print('YNEOS'[eval(input().replace(' ','+1<2*'))::2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print('YNEOS'[eval(input().replace(' ','<-1+2*'))::2])

Submission status: Accepted

Solution code:
n,k=map(int,input().split());print('YNEOS'[2*k-1>n::2])

Submission status: Accepted

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

for i in range(1,N+1):
  if i % 2 == 1:
    count += 1
    
if count >= K:
  print('YES')
else:
  print('NO')

Submission status: Accepted

Solution code:
if __name__=="__main__":
    n,k=map(int,raw_input().split())
    if 2*k-1<=n:
        print "YES"
    else:
        print "NO"

Submission status: Accepted

Solution code:
n, k = map(int, input().split())
import math
print('YES' if k <= math.ceil(n/2) else 'NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8

I=raw_input()
n,k=map(int, I.split(" "))

def f(n):
    if n<3:return 0
    if n==3:return 2
    if n%2==0:return f(n-1)
    return f(n-1)+1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N, K = [int(i) for i in input().split()]
print('YES' if sum(divmod(N, 2)) >= K else 'NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
  N, K = map(int, input().split())
  if N % 2 == 0:
    X = N / 2
    if X >= K:
      print('YES')
    else:
      print('NO')
  else:
    X = (N + 1)/2
    if X >= K:
      print('YES')
    else:
      print('NO')
main()

Submission status: Accepted

Solution code:
inp = input().split(' ')

N = int(inp[0])
K = int(inp[1])
cnt = 0
for i in range(1, N + 1, 2):
  cnt += 1

if cnt >= K:
  print("YES")
else:
  print("NO")

Submission status: Accepted

Solution code:
from sys import stdin
n,m = map(int,stdin.readline().split())
if (n+1)/2 >=m:
 print 'YES'
else:
 print 'NO'

Submission status: Accepted

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

N = int(n)
K = int(k)

if N < K:
    print("NO")
    #sys.exit()
    
elif N == 1 and K == 1:
    print("YES")
    #sys.exit()

elif N % 2 == 0:
    if 2 * K <= N:
        print("YES")
    else:
        print("NO")

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

Submission status: Accepted

Solution code:
def a_anti_adjacency(N, K):
    if N % 2 == 0:
        ans = 'YES' if N // 2 >= K else 'NO'
    else:
        ans = 'YES' if (1 + N // 2) >= K else 'NO'
    return ans

N, K = [int(i) for i in input().split()]
print(a_anti_adjacency(N, K))

Submission status: Accepted

Solution code:
import math

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

if n % 2 != 0:
	if k <= math.floor(n / 2) + 1:
		print('YES')
	else:
		print('NO')

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

Submission status: Accepted

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

if N % 2 == 0:
    if N / 2 >= K:
        print('YES')
    else:
        print('NO')

else:
    if (N + 1) / 2 >= K:
        print('YES')
    else:
        print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n,k=map(int,input().split())
print(["NO","YES"][n+n%2>=k*2])

Submission status: Accepted

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

if N % 2 ==0:
    N //= 2
else:
    N = (N//2) + 1

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

Submission status: Accepted

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

if __name__ == '__main__':
	main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

ans = "NO"

if N % 2 == 0:
    if N / K >= 2:
        ans = "YES"
else:
    if (N + 1) / K >= 2:
        ans = "YES"


print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# _*_ coding:utf-8 _*_
#  Atcoder_yahooMinnanoProcon_Contest-A
#  TODO https://atcoder.jp/contests/yahoo-procon2019-qual/tasks/yahoo_procon2019_qual_a

def solveProblem(LimitInteger,SelectNumber):
	MaxSelectLength = SelectNumber * 2 -1
	if MaxSelectLength <= LimitInteger:
		answer="YES"
	else :
		answer="NO"
	return answer


if __name__ == '__main__':
	N,K = map(int,input().strip().split(' '))
	solution = solveProblem(N,K)
	print("{}".format(solution))

Submission status: Accepted

Solution code:
def compare(num):
    count=0
    d=list(range(1,num+1,2))
    return len(d)
# スペース区切りの整数の入力
b, c = map(int, input().split())
answer=compare(b)
#print(answer)
if answer>=c:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    n, k = map(int, input().split())
    x = 1 + 2 * (k - 1)
    if x <= n:
        print('YES')
    else:
        print('NO')

main()

Submission status: Accepted

Solution code:
import sys
A,B = [int(n) for n in input().split()]
# N = int(input())
if((A+1)/2 >=B):
    print("YES")
    sys.exit()

print("NO")

Submission status: Accepted

Solution code:
import sys
n,k=map(int,input().split())
tmp=1
count=1
if n==1 and k==1:
    print('YES')
    sys.exit(0)
if k==0:
    print('YES')
    sys.exit(0)
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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n,k=map(int,input().strip().split())
if n%2==0:
    val=int(n/2)
    if k<=val:
        print("YES")
    else:
        print("NO")
else:#even
    val=int(n/2)+1
    if k<=val:
        print("YES")
    else:
        print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

if N >= 2*K-1:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
# ----------------------------------------------------------------
# Use Solve Function

def solve(lines):
    N,K = map(int, lines.pop(0).split(' '))
    re = int(N / 2)
    if N % 2 == 0:
        if re >= K:
            print('YES')
        else:
            print('NO')
    else:
        if re + 1 >= K:
            print('YES')
        else:
            print('NO')


#
# main
#

lines = [x.strip() for x in sys.stdin.readlines()]

#
# solve !!
#
solve(lines)

Submission status: Accepted

Solution code:
import math

n, k = map(int, input().split())
pos = math.ceil(n / 2)
if pos >= k:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 入力値を受け取る ( N:総数、 K: 取る数)
N, K = (int(i) for i in input().split())

if N >= 2 * K - 1:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
# coding: utf-8

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

if n%2==1:#偶数化
    n+=1

if n<3:#3以下ははじく
    n=0

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

Submission status: Accepted

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

if cnt>=b:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

nN = int(nData[0])
nK = int(nData[1])
nN += 1
nTmp = nK * 2


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

Submission status: Accepted

Solution code:
# coding: utf-8
line = input().split()
 
 
if (int(line[0])+1)//2>=int(line[1]):
    print("YES")
else :
    print("NO")

Submission status: Accepted

Solution code:
# coding: utf-8
N, K = list(map(int, input().split()))
if N >= 2 * K - 1:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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: Accepted

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: Accepted

Solution code:
from math import ceil
n,k = map(int,input().split())
print('YES' if ceil(n/2)>=k else 'NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def Test(n,k):
    if n > 2 * k:
        res = "YES"
    else:
        count = 0
        res = "NO"
        for i in range(1,n + 1,2):
            count += 1
            if count == k:
                res = "YES"
    print(res)
    
if __name__ == '__main__':
    N,K = map(int,input().split())
    try:
        Test(N,K)
    except:
        print("Error")

Submission status: Accepted

Solution code:
a = input().rstrip().split(" ")
N = int(a[0])
K = int(a[1])

n = []
for i in range(N):
    n.append(i + 1)

#print(n)
k = 0
for i in range(N):
    if i % 2 == 0:
#        print(n[i])
        k += 1
        if k == K:
            break
    else:
        continue

if k == K:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

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

Submission status: Accepted

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: Accepted

Solution code:
tmp = input().split()
N = int(tmp[0])
K = int(tmp[1])
if(N/2 + N%2 >= K):
	print("YES")
else:
	print("NO")

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

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

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

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

Submission status: Accepted

Solution code:
l = map(int, raw_input().split())

if (l[0] >= (2 * l[1]) -1) :
	print("YES")

else :
	print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
print('YES' if a>=2*b-1 else 'NO')

Submission status: Accepted

Solution code:
inp = input().split()
N = int(inp[0])
K = int(inp[1])

c = N//2 + N%2

if (c >= K):
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

if(((n/2)+0.5)>=k):
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

Solution code:
#coding:utf-8

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input().split()
N = int(s[0])
K = int(s[1])

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

Solution code:
import math
N,K = map(int,input().split())
if N%2 == 1:
  N = N+1

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

max_k = N / 2
max_k = int(my_round(max_k))

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

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

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: Accepted

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

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

Submission status: Accepted

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