Concert Tickets

Problem Link

Solution by SaoriKidonotes 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 16 hours, 20 minutes ago


« Back to problem