Concert Tickets
Problem LinkSolution by augusto — 100 pts
Code / Notes
#include <iostream>
using namespace std;
int main() {
int B, T, P;
cin >> B;
cin >> T;
cin >> P;
int restantes = T - P;
if (B <= restantes) {
cout << "Y " << restantes - B << endl;
} else {
cout << "N" << endl;
}
return 0;
}
Last updated 16 hours, 7 minutes ago