よじろめ覚書

私の理解度重視のソースコードです。

ABC094A - Cats and Dogs

問題:A - Cats and Dogs

#include <iostream>
using namespace std;

int main(void) {
    int a, b, x;

    cin.tie(0);
    ios::sync_with_stdio(false);
    cin >> a >> b >> x;
    cout << (a <= x && x <= a + b? "YES" : "NO") << "\n";
    return 0;
}