Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int neededHours, days, workers;
- cin >> neededHours >> days >> workers;
- int totalHours = days * 0.9 * workers * (8 + 2);
- if (neededHours > totalHours) {
- cout << "Not enough time!" << neededHours - totalHours << " hours needed." << endl;
- }
- else {
- cout << "Yes!" << totalHours - neededHours << " hours left." << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement