Café com Leite

Problem Link

Solution by TheRealFertos100 pts

Code / Notes

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

int main() {
    int a, b, c, d;
    cin >> a >> b >> c >> d;
    c-=d;
    b-=c;
    c-=a;
    if (c>=0 and b>=0) {
        cout << 'S';
    }
    else {
        cout << 'N';
    }
}

Last updated 1 month, 4 weeks ago


« Back to problem