Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main() {
- double w, h;
- cin >> w >> h;
- double num = (h - 1) * 100 / 70;
- double row = (w * 100 / 120);
- double numberOfSeats = floor(num) * floor(row) - 3;
- cout << numberOfSeats << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement