Concert Tickets

Problem Link

Solution by SaoriKido — notes only

Code / Notes


int main() {
    int x,y,z;
    cin >> x >> y >> z;
    int a= y-z;
    if(a>=x){
       cout << "Y " << a-x;
    } else{
        cout << "N";
    }
}

Last updated 1 month, 4 weeks ago


« Back to problem