CSES - HIIT Open 2019 - Results
Submission details
Task:Just Solve It
Sender:.*
Submission time:2019-05-25 11:15:03 +0300
Language:C++
Status:READY
Result:ACCEPTED
Test results
testverdicttime
#1ACCEPTED0.02 sdetails
#2ACCEPTED0.02 sdetails
#3ACCEPTED0.01 sdetails
#4ACCEPTED0.02 sdetails
#5ACCEPTED0.03 sdetails
#6ACCEPTED0.01 sdetails
#7ACCEPTED0.02 sdetails
#8ACCEPTED0.02 sdetails

Code

#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define ull unsigned long long
#define M 1000000007
#define N (1<<18)
#define P complex<long long>
#define X real()
#define Y imag()

using namespace std;

int n, k;

int main() {
	cin.tie(0);
	cout.tie(0);
	ios_base::sync_with_stdio(0);
	cin >> n >> k;
	if(n%2 == 1) {
		if(k >= 3)
			cout << "YES";
		else
			cout << "NO";
	} else {
		if(k >= 2)
			cout << "YES";
		else
			cout << "NO";
	}
}

Test details

Test 1

Verdict: ACCEPTED

input
3 1

correct output
NO

user output
NO

Test 2

Verdict: ACCEPTED

input
3 2

correct output
NO

user output
NO

Test 3

Verdict: ACCEPTED

input
3 3

correct output
YES

user output
YES

Test 4

Verdict: ACCEPTED

input
4 1

correct output
NO

user output
NO

Test 5

Verdict: ACCEPTED

input
4 2

correct output
YES

user output
YES

Test 6

Verdict: ACCEPTED

input
4 3

correct output
YES

user output
YES

Test 7

Verdict: ACCEPTED

input
123456 654321

correct output
YES

user output
YES

Test 8

Verdict: ACCEPTED

input
1000000000 1000000000

correct output
YES

user output
YES