Advertisement
Spocoman

05. Training Lab

Sep 1st, 2023 (edited)
596
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6.     double w, h;
  7.     cin >> w >> h;
  8.  
  9.     double num = (h - 1) * 100 / 70;
  10.     double row = (w * 100 / 120);
  11.     double numberOfSeats = floor(num) * floor(row) - 3;
  12.  
  13.     cout << numberOfSeats << endl;
  14.  
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement