Advertisement
DidiMilikina

01. Training Lab

Sep 18th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4.  
  5. int main() {
  6.     double heigth;
  7.     double width;
  8.     cin >> heigth >> width;
  9.  
  10.     double length_room = (width * 100) - 100;
  11.     double seats_row = floor(length_room / 70);
  12.     double width_room = heigth * 100;
  13.     double seats_number = floor(width_room / 120);
  14.     double total_seats = (seats_row * seats_number) - 3;
  15.  
  16.     cout << total_seats << endl;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement