hkshakib

Untitled

Feb 15th, 2020
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. typedef long long ll;
  4.  
  5. int main()
  6. {
  7. ll a,b,c,d,e,f;
  8. cin>>a>>b>>c>>d>>e>>f;
  9. ll ans =pow((a+b+c),2)-(a*a)-(c*c)-(e*e);
  10. cout<<ans<<endl;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment