Advertisement
Hamoudi30

Untitled

Aug 13th, 2022
1,095
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.53 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define ll long long
  4. #define SZ(v) ((int)(v.size()))
  5. #define pb push_back
  6. void run () {
  7.     ll W, H, w, h;
  8.     cin >> W >> H >> w >> h;
  9.     ll a = ((W / w + 1) / 2);
  10.     ll b = ((H / h + 1) / 2);
  11.     cout << a * b << '\n';
  12. }
  13. int main () {
  14. //  freopen("run.in", "r", stdin);
  15.     freopen("garage.in", "rt", stdin);
  16.     freopen("garage.out", "wt", stdout);
  17.     ios_base::sync_with_stdio(false);
  18.     cin.tie(nullptr);
  19.     cout.tie(nullptr);
  20.     int tt = 1;
  21. //  cin >> tt;
  22.     while (tt--)
  23.         run();
  24.     return 0;
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement