Advertisement
Saleh127

at 178b

Sep 13th, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define ll long long
  4. #define test int t; cin>>t; for(int cs=1;cs<=t;cs++)
  5. int main()
  6. {
  7. ios_base::sync_with_stdio(0);
  8. cin.tie(0);cout.tie(0);
  9.  
  10. ll a,c,d,e,x,y,i,j,k,l;
  11. cin>>a>>c>>d>>e;
  12.  
  13. x=a*e;
  14. y=a*d;
  15. i=c*e;
  16. j=c*d;
  17. cout<<max(x,max(y,max(i,j)))<<endl;
  18.  
  19. return 0;
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement