Advertisement
Guest User

ert

a guest
Feb 23rd, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. /**
  2. author: SALEH * -- *
  3. **/
  4.  
  5. # include <bits/stdc++.h>
  6.  
  7. using namespace std;
  8.  
  9. # define ll long long
  10. # define ull unsigned long long
  11. # define _FastIO ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
  12.  
  13. ll const MAX = 1e5 + 5;
  14. ll k,w1,w2,h1,h2;
  15. int tree[MAX];
  16. int a[MAX];
  17.  
  18.  
  19. int main()
  20. {
  21. _FastIO;
  22. //freopen("beads.in", "r", stdin);
  23. //freopen("beads.out", "w", stdout);
  24. int l,r,q;
  25. cin >> w1 >> h1 >> w2 >> h2;
  26. k = 2 * (w1 + h1 + w2 + h2 + 4 - w2 - 2);
  27. cout << k << endl;
  28. return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement