Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- author: SALEH * -- *
- **/
- # include <bits/stdc++.h>
- using namespace std;
- # define ll long long
- # define ull unsigned long long
- # define _FastIO ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
- ll const MAX = 1e5 + 5;
- ll k,w1,w2,h1,h2;
- int tree[MAX];
- int a[MAX];
- int main()
- {
- _FastIO;
- //freopen("beads.in", "r", stdin);
- //freopen("beads.out", "w", stdout);
- int l,r,q;
- cin >> w1 >> h1 >> w2 >> h2;
- k = 2 * (w1 + h1 + w2 + h2 + 4 - w2 - 2);
- cout << k << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement