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:
import sys


line = sys.stdin.readline()
N, K = line.split(" ")
N = int(N)
K = int(K)
if K <= (N/2 + 1):
	print("YES")
else:
	print("NO")

Submission status: Wrong Answer

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

if sum([N - k for k in range(3, N+1)]) >= K:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def solution(N, K):
    x = 0
    if N%2:
        x = (N + 1) / 2
    else:
        x = N / 2
    return K<=x
N, K = [int(s) for s in input().split(' ')]
print(solution(N, K))

Submission status: Wrong Answer

Solution code:
def solution(N, K):
    x = 0
    if N%2:
        x = (N-1)/2
    else:
        x = N / 2
    return K<=x
N, K = [int(s) for s in input().split(' ')]
print(solution(N, K))

Submission status: Wrong Answer

Solution code:
def solution(N, K):
    x = 0
    if N%2:
        x = N / 2
    else:
        x = (N+1) / 2
    return K<=x
N, K = [int(s) for s in input().split(' ')]
print(solution(N, K))

Submission status: Wrong Answer

Solution code:
def solution(N, K):
    x = 0
    if N%2:
        x = N/2
    else:
        x = (N-1) / 2
    return K<=x
N, K = [int(s) for s in input().split(' ')]
print(solution(N, K))

Submission status: Wrong Answer

Solution code:
import math


def solution(N, K):
    if (math.ceil((N + 1) / 2) >= K):
        return "YES"
    else:
        return "NO"


n, k = [int(s) for s in input().split(' ')]
print(solution(n, k))

Submission status: Wrong Answer

Solution code:
import math


def solution(N, K):
    if (math.ceil((N + 1) / 2) >= K):
        return "YES"
    else:
        return "NO"


n, k = [int(s) for s in input().split(' ')]
solution(n, k)

Submission status: Wrong Answer

Solution code:

import math

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

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

Submission status: Wrong Answer

Solution code:
if __name__==("__main__"):
  text = input()
 
  text = text.split(" ")
  N = int(text[0])
  K = int(text[1])
 
  ans = int((N * (N - 1)) / 2) - int(N / 2)
  print(ans)
  if ans >= K:
    print("YES")
  else:
    print("NO")

Submission status: Wrong Answer

Solution code:
if __name__==("__main__"):
  text = input()
 
  text = text.split(" ")
  N = int(text[0])
  K = int(text[1])
 
  ans = int((N * (N - 1)) / 2) - int(N / 2)
  
  if ans == K:
    print("YES")
  else:
    print("NO")

Submission status: Wrong Answer

Solution code:
def check(N, K):
  if N <= K:
    return True
 
if __name__==("__main__"):
  text = input()
 
  text = text.split(" ")
  N = int(text[0])
  K = int(text[1])
 
  if int(N / 2) >= K:
    print("YES")
  else:
    print("NO")

Submission status: Wrong Answer

Solution code:
def check(N, K):
  if N <= K:
    return True
 
if __name__==("__main__"):
  text = input()
 
  text = text.split(" ")
  N = int(text[0])
  K = int(text[1])
 
  if check(N, K):
    print("NO")
    exit()
 
  if int(N / 2) >= K:
    print("YES")
  else:
    print("NO")

Submission status: Wrong Answer

Solution code:
def check(N, K):
  if N <= K:
    return True
 
if __name__==("__main__"):
  text = input()
 
  text = text.split(" ")
  N = int(text[0])
  K = int(text[1])
 
  if check(N, K):
    print("NO")
    exit()
 
  if int(N / 2) == K:
    print("YES")
  else:
    print("NO")

Submission status: Wrong Answer

Solution code:
def check(N, K):
  if N <= K:
    return True

if __name__==("__main__"):
  text = input()

  text = text.split(" ")
  N = int(text[0])
  K = int(text[1])

  if check(N, K):
    print("NO")
    exit()

  if N / 2 == K:
    print("YES")
  else:
    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:
import math
N, K = map(int, input().split())
ans = 'Yes'
if math.ceil(N / 2) < K:
  ans = 'No'
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N,K = map(int,input().split())
 
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 int((N+1) /2) >= K:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
N, K = map(int, input().split())

if int((N+1) /2) > K:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n,k = [int(x) for x in input().split()]
print('YES' if len([n-i for i in range(1,k+1,2) if n-i >= 10]) == k else 'NO')

Submission status: Wrong Answer

Solution code:
n,k = [int(x) for x in input().split()]
print('YES' if len([n-1-i for i in range(1,k+1,2) if n-1-i >= 10]) == k else 'NO')

Submission status: Wrong Answer

Solution code:
n,k = [int(x) for x in input().split()]
print('YES' if len([n-1-i for i in range(1,k+1) if n-1-i >= 10]) == k else 'NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N,K = (int(x) for x in input().split())
if(K==0):
    print("YES")
    exit()
if(N-2 >= 10):
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
'''input
2 2
'''
import time
import math
n, k = map(int, input().strip().split())
if n == k and k <= 2:
	print("YES")
elif k >= n:
	print("NO")
else:
	print("YES")

Submission status: Wrong Answer

Solution code:
'''input
10 90
'''
import time
import math
n, k = map(int, input().strip().split())
if n == 1 and k == 1:
	print("YES")
elif k >= n:
	print("NO")
else:
	print("YES")

Submission status: Wrong Answer

Solution code:
'''input
10 90
'''
import time
import math
n, k = map(int, input().strip().split())
if n ==1:
	print("No")
elif k >= n:
	print("NO")
else:
	print("YES")

Submission status: Wrong Answer

Solution code:
'''input

'''
import time
import math
n, k = map(int, input().strip().split())
if k >= n:
	print("NO")
else:
	print("YES")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
h, w = map(int, input().split())

if h//2+1>=w:
    print("YES")
else:
    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:
a, b = map(int, input().split())
if a < b + 1:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a < b:
    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:
n,k = map(int,input().split())
m = (n/2)+1
if m >= k:
  print("YES")
else:
  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 = 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: Wrong Answer

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/2+1>=K:
        print("Yes")
    else:
        print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#横にn個入力
n, k = map(int, input().split())
if k <= (n + 1) // 2:
    print("Yes")
else:
    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 = map(int,input().split())
if N%2 == 0:
  if N >= K:
    print('YES')
  else:
    print('NO')
else:
  if (N+1)//2 >= K:
    print('YES')
  else:
    print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n,k=map(int,input().split())
print('NO' if 67<=k/n*100 else 'YES')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
if __name__=="__main__":
    n,k=map(int,raw_input().split())
    if n%2==0:
        if k>n/2:
            print"No"
        else:
            print"Yes"
    else:
        if k>(n+1)/2:
            print"No"
        else:
            print"Yes"

Submission status: Wrong Answer

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:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
kflag = False
flag = True
if K % 2 == 1:
  print('NO')
  kflag = True
elif N < K:
  print('NO')
  kflag = True
  
if kflag == False:
  if N == 1 or N == 2:
    print('NO')
    flag = False
  elif (N//2)%2==0:
    if N >= K:
      print('YES')
      flag = False
      
if kflag == False and flag == True:
  if N % 2 == 1:
    num = N - 1
  elif (N//2)%2==1:
    num = N - 2
  if num >= K:
    print('YES')

Submission status: Wrong Answer

Solution code:
n, k= [int(i) for i in input().split()]
 
ls = list(range(1,n+1))
ls_l = []
j = 0

while j < len(ls):
  ls_l.append(ls[j])
  j += 2
  
if len(ls_l) == k:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
kflag = False
flag = True
if K % 2 == 1:
  print('NO')
  kflag = True
elif N < K:
  print('NO')
  kflag = True
  
if kflag == False:
  if N == 1 or N == 2:
    print('NO')
    flag = False
  elif (N//2)%2==0:
    if N >= K:
      print('YES')
      flag = False

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

Submission status: Wrong Answer

Solution code:
import sys

sys.setrecursionlimit(200000)


def input():
    return sys.stdin.readline()[:-1]


def ii(t: type = int):
    return t(input())


def il(t: type = int):
    return list(map(t, input().split()))


def imi(N: int, t: type = int):
    return [ii(t) for _ in range(N)]


def iml(N: int, t: type = int):
    return [il(t) for _ in range(N)]


def solve():
    N, K = il()
    return "NO" if (N-1)*(N-2) < K else "YES"


if __name__ == "__main__":
    print(solve())

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
kflag = False
flag = True
if K % 2 == 1:
  print('NO')
  kflag = True
elif N < K:
  print('NO')
  kflag = True
  
if kflag == False:
  if N == 1 or N == 2:
    print('NO')
    flag = False
  elif (N//2)%2==0:
    if N >= K:
      print('YES')
    else:
      print('NO')
    flag = False

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python3

N, K = list(map(int, input().split()))
if N % K == 1:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
kflag = False
flag = True
if K % 2 == 1:
  print('NO')
elif N < K:
  print('NO')
  kflag = True

if kflag == False:
  if N == 1 or N == 2:
    print('NO')
    flag = False
  elif (N//2)%2==0:
    if N >= K:
      print('YES')
    else:
      print('NO')
    flag = False

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

Submission status: Wrong Answer

Solution code:
n, k= [int(i) for i in input().split()]
 
j = 1
ls = []
while j <= n:
  ls.append(j)
  j += 2
  
if len(ls) == k:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
kflag = False
flag = True
if K % 2 == 1:
  print('NO')
  kflag = True

if kflag == False:
  if N == 1 or N == 2:
    print('NO')
    flag = False
  elif (N//2)%2==0:
    if N >= K:
      print('YES')
    else:
      print('NO')
    flag = False

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

Submission status: Wrong Answer

Solution code:
n, k= [int(i) for i in input().split()]
 
j = 1
ls = []
while j < n:
  ls.append(j)
  j += 2
  
if len(ls) == k:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
import sys

sys.setrecursionlimit(200000)


def input():
    return sys.stdin.readline()[:-1]


def ii(t: type = int):
    return t(input())


def il(t: type = int):
    return list(map(t, input().split()))


def imi(N: int, t: type = int):
    return [ii(t) for _ in range(N)]


def iml(N: int, t: type = int):
    return [il(t) for _ in range(N)]


def solve():
    N, K = il()
    return "NO" if sum(list(range(N))[::2]) < K else "YES"


if __name__ == "__main__":
    print(solve())

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
N, K = map(int, input().split())
kflag = False
flag = True
#if K % 2 == 1:
#  print('NO')
#  kflag = True

if kflag == False:
  if N == 1 or N == 2:
    print('NO')
    flag = False
  elif (N//2)%2==0:
    if N >= K:
      print('YES')
    flag = False

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
kflag = False
flag = True
if K % 2 == 1:
  print('NO')
  kflag = True

if kflag == False:
  if N == 1 or N == 2:
    print('NO')
    flag = False
  elif (N//2)%2==0:
    if N >= K:
      print('YES')
    flag = False

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

Submission status: Wrong Answer

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 / K >= 1:
    if N == K:
        print("NO")
    elif N - K*(N/K) <=N % K:
        print("YES")
    else:
        print("NO")

Submission status: Wrong Answer

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

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

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

if N / K >= 1:
    if N == K:
        print("NO")
    elif N - K*(N/K) <=N % K:
        print("YES")
    else:
        print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
kflag = False
flag = True
if K % 2 == 1:
  print('NO')
  kflag = True

if kflag == False:
  if N == 1 or N == 2:
    print('NO')
    flag = False
  elif (N//2)%2==0:
    if N >=K:
      print('YES')
    flag = False

  num_li = []
  counter = 0
  if flag == True:
    for n in range(1, N+1):
      num_li.append(n)
    for i in range(len(num_li)):
      ans = abs(num_li[i] - num_li[-i-1])
      if ans >= 2:
        counter += 2
      elif ans <= 1:
        break
    if counter >= K:
      print('YES')
    else:
      print('NO')

Submission status: Wrong Answer

Solution code:
import math

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
list = input().split()
for i in range(len(list)):
  list[i] = int(list[i])
  i = i + 1
 
if(int(list[0] / 2) + 1 >= list[1] and list[0] != list[1]):
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
x,y=[int(i) for i in input().split()]
N = int(x)
K = int(y)
S = 0

if N % 2 == 0:
	if K <= (N / 2):
		print("Yes")
	if K > (N / 2):
		print("No")

if N % 2 != 0:
	S = (N / 2) + 0.5
	if K <= S:
		print("Yes")
	if K > S:
		print("No")

Submission status: Wrong Answer

Solution code:
N, K = map(int, input().split())
if N > 2 * K - 2:
    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
elif (N//2)%2==0:
  if N >=K:
    print('YES')
  flag = False

num_li = []
counter = 0
if flag == True:
  for n in range(1, N+1):
    num_li.append(n)
  for i in range(len(num_li)):
    ans = abs(num_li[i] - num_li[-i-1])
    if ans >= 2:
      counter += 2
    elif ans <= 1:
      break
  if counter >= K:
    print('YES')
  else:
    print('NO')

Submission status: Wrong Answer

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

if N < 3:
    cnt = 0
elif N % 2 == 0:
    cnt = N
else:
    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())

if N < 2:
    cnt = 0
elif N % 2 == 0:
    cnt = N
else:
    cnt = N - 1

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if N == 1 or N == 2:
  print('NO')
elif (N//2)%2==0:
  if N >=K:
    print('YES')
  flag = False

num_li = []
counter = 0
if flag == True:
  for n in range(1, N+1):
    num_li.append(n)
  for i in range(len(num_li)):
    ans = abs(num_li[i] - num_li[-i-1])
    if ans >= 2:
      counter += 2
    elif ans <= 1:
      break
  if counter >= K:
    print('YES')
  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")
elif k == 1:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
x,y=[int(i) for i in input().split()]
N = int(x)
K = int(y)
S = 0

if N % 2 == 0:
	if K <= (N / 2):
		print("Yes")
	if K > (N / 2):
		print("No")

if N % 2 != 0:
	S = float((N / 2) + 0.5)
	if K <= S:
		print("Yes")
	if K > S:
		print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,y=[int(i) for i in input().split()]
N = float(x)
K = float(y)
S = 0

if N % 2 == 0:
	if K <= (N / 2):
		print("Yes")
	if K > (N / 2):
		print("No")

if N % 2 != 0:
	S = (N / 2) + 0.5
	if K <= S:
		print("Yes")
	if K > S:
		print("No")

Submission status: Wrong Answer

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

if n >= 1  and k <= 100:
  if 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")
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

num_li = []
counter = 0
if flag == True:
  for n in range(1, N+1):
    num_li.append(n)
  for i in range(len(num_li)):
    ans = abs(num_li[i] - num_li[-i-1])
    if ans >= 2:
      counter += 2
    elif ans <= 1:
      break
  if counter >= 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:
i = list(map(int, input().split()))
n = i[0]
k = i[1]

if n >= 1  and k <= 100:
  if n > 2:
    if 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")
  else:
    print("NO")
else:
  print("NO")

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
list = input().split()
for i in range(len(list)):
  list[i] = int(list[i])
  i = i + 1
 
if(int(list[0] / 2) + 1 >= list[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 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")
  else:
    print("NO")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
x,y=[int(i) for i in input().split()]
N = float(x)
K = float(y)
S = 0

if N % 2 == 0:
	if 0 <= K <= (N / 2):
		print("Yes")
	if K > (N / 2):
		print("No")

if N % 2 != 0:
	S = (N / 2) + 0.5
	if 0 <= K <= S:
		print("Yes")
	if K > S:
		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 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")
  else:
    print("NO")

Submission status: Wrong Answer

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

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 and k > 1:
    if 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")
  else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,y=[int(i) for i in input().split()]
N = float(x)
K = float(y)
S = 0

if N % 2 == 0:
	if 0 <= K <= (N / 2):
		print("Yes")
	else:
		print("No")

if N % 2 != 0:
	S = (N / 2) + 0.5
	if 0 <= K <= S:
		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')
else:
    if (N //2) % 2 != 0:
        N -= 2

    if K <= N:
        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 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")
  else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if K < 0:
    print('NO')
else:
    if K <= 0:
        print('YES')
    else:    
        if N < 3:
            print('NO')
        else:
            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-3
if ans > n:
  print('NO')
else:
  print ('YES')

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 int(n / k) == 1 and (int(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:
import sys
n,k=map(int,input().split())
tmp=1
count=1
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: 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:
N, K = map(int, input().split())
if 2 <= round(N/K) or (N == 1 and K == 1):
    print('YES')
else:
    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:
n,k = map(int, input().split())
ans = 2*k-2
if ans >= k:
  print('NO')
else:
  print ('YES')

Submission status: Wrong Answer

Solution code:

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

if K == 0:
    print('YES')
else:    
    if N < 3:
        print('NO')
    else:
        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())
if k <= 100 and n -1 >= k or (n == 1 and k == 1):
    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:
    num = N - 1
  if num >= K:
    print('YES')
  else:
    print('NO')