abc178_b - Product Max
28 Jan 2021 — Tags: None
Click to show code.
using namespace std;
using ll = long long;
using ii = pair<int, int>;
using vi = vector<int>;
int main(void)
{
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll ans = max({a * c, a * d, b * c, b * d});
cout << ans << endl;
return 0;
}