Café com Leite

Problem Link

Solution by dudu100 pts

Code / Notes

#include <bits/stdc++.h>
using namespace std;

int main() {
    int A, B, C, D;
    cin >> A >> B >> C >> D;

    int here = C-D;
    if (A <= here && here <= B) cout << "S" << endl;
    else cout << "N" << endl;
}

Last updated 6 hours, 22 minutes ago


« Back to problem