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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x = []
for i in range(3):
    x.append(list(map(int,input().split())))
one,two,three,four = 0,0,0,0
def push(a):
    global one,two,three,four
    if a == 1:
        one = one + 1
    elif a ==2:
        two += 1
    elif a == 3:
        three += 1
    else :
        four +=1
for i in x:
    push(i[0])
    push(i[1])
if one*two*three*four ==0 or one ==3 or two ==3 or three ==3 or four ==3:
    print("NO")
else :
    print("YES")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = argv[1]
K = argv[2]
if N > K:
  return "YES"
else:
  return "NO"

Submission status: Runtime Error

Solution code:
N

Submission status: Runtime Error

Solution code:
#coding:utf-8

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

if n > k:
  print(‘YES’)
else:
  print(‘NO’)

Submission status: Runtime Error

Solution code:
import collections

a1, b1 = [int(x) for x in input().split()]
a2, b2 = [int(x) for x in input().split()]
a3, b3 = [int(x) for x in input().split()]

l = [a1, b1, a2, b2, a3, b3]
col = list(collections.Counter(l).values())
if col.count(1) == 2 & col.count(2) == 2:
    print('YES')
else:
    print('NO')

Submission status: Runtime Error

Solution code:
k,a,b = map(int, input().split())
if b - a <= 2:
  print(k + 1)
else:
  yen = 0
  if k >= a + 1:
    yen += 1
    k -= a + 1
    c,d = divmod(k,2)
    yen += c
    print(a + (b-a) * yen + d)
  else:
    print(k + 1)

Submission status: Runtime Error

Solution code:
import numpy as np
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!=0:
  if k <= np.ceil(n/2)
    print("YES")
  else:
    print("NO")

Submission status: Runtime Error

Solution code:
import numpy as np
n, k = (int(x) for x in input().split())
if n%2==0:
  if k <= n/2.0
  print("YES")
else:
  print("NO")
if n%2!=0:
  if k <= np.ceil(n/2.0)
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

if ((n - 1) <= 0):
  print("NO")
  exit()

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

Submission status: Runtime Error

Solution code:
if n - k > 0:
    return "YES"
else:
    return "NO"

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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(k, S))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys

N = int(sys.argv[1])
K = int(sys.argv[2])

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A,B=map(int, input() .split())
if int(A / 2) + 1 =< B:
     print(YES)
else:print

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = input()
k = input()
if (2 < n / k):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n,k = map(int, input().split())
ans = 2*k+1
if ans > n:
    print(“No”)
else:
    print(“Yes”)

Submission status: Runtime Error

Solution code:
n,k = map(int(), input().split())
ans = 2*k+1
if ans > n:
  print(“No”)
else:
  print(“Yes”)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

elif len(list(range(1, N+1, 2))) >= K:
    print('YES')
else:
    print('NO')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
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: Runtime Error

Solution code:
N = int(input())
K = int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define INF 120000000

using namespace std;

typedef pair<int, int> P;
typedef long long int LL;

int main() {
    int n, k;
    cin >> n >> k;
    if ((n + 1) / 2 >= k) {
        cout << "YES" << endl;
    } else {
        cout << "NO" << endl;
    }

    return 0;
}

Submission status: Runtime Error

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