Saleh127

codeforces 1358C.cpp

Jun 6th, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define test int t; cin>>t; while (t--)
  4. #define ll long long int
  5. #define Faster ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
  6. #define pi acos(-1)
  7. #define yes printf("YES\n");
  8. #define no printf("NO\n");
  9. int main()
  10. {
  11. Faster
  12.  
  13. ll a,c,d,e,f,i,j,k;
  14. test
  15. {
  16. cin>>a>>c>>d>>e;
  17. f=1+(d-a)*(e-c);
  18. cout<<f<<endl;
  19. }
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment