Source Code
#include<bits/stdc++.h>

using namespace std;
typedef long long ll;

#define FAST ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define mp make_pair
#define pb push_back
#define lp(i,s,f) for(ll i = s; i < ll(f); i++)
#define inF freopen("input.in", "r", stdin);
#define outF freopen("output.in", "w", stdout);
#define endl '\n'
#define MOD 1000000007
#define mm(arr) memset(arr, 0, sizeof(arr))
#define F first
#define S second
#define int ll

const long double PI = atan(1) * 4.0;

int32_t main(){
    FAST
    int n, k, e;
    cin >> n >> k >> e;
    //student at index e will
    if(n - e + 1 <= e){
        cout << "Yes";
    }
    else{
        cout << "No";
    }
    return 0;
}
Copy
Scientific Study Basilhijaz
GNU G++17
3 ms
716 KB
Wrong Answer