buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) typedef long long ll; typedef pair<int, int> P; const int INF = 1001001001; int main() { ll n, q; cin >> n >> q; vector<ll> upGet(n - 2, n - 2); vector<ll> leftGet(n - 2, n - 2); ll h = n - 2; ll w = n - 2; ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) typedef long long ll; typedef pair<int, int> P; const int INF = 1001001001; int main() { ll n, q; cin >> n >> q; vector<ll> upGet(n - 2, n - 2); vector<ll> leftGet(n - 2, n - 2); ll h = n - 2; ll w = n - 2; ...
[["+", 0, 57, 64, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 57, 64, 9, 0, 7, 8, 9, 0, 46]]
1
274
#include <bits/stdc++.h> using namespace std; int n, q, tx, ty, ans, px[2 << 17], py[2 << 17]; int main() { cin >> n >> q; tx = ty = n; ans = (n - 2) * (n - 2); while (q--) { int t, x; cin >> t >> x; if (t == 1) { if (x < tx) { ans -= ty - 2; while (tx > x) px[tx--] =...
#include <bits/stdc++.h> #define int long long using namespace std; int n, q, tx, ty, ans, px[2 << 17], py[2 << 17]; signed main() { cin >> n >> q; tx = ty = n; ans = (n - 2) * (n - 2); while (q--) { int t, x; cin >> t >> x; if (t == 1) { if (x < tx) { ans -= ty - 2; while (tx ...
[["+", 36, 36, 36, 36, 0, 30, 0, 58, 0, 148], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 141, 22], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["-", 36, 36, 36, 36, 0, 30, 0, 14, 39, 40], ["+", 36, 36, 0, 30, 0, 14, 39, 86, 0, 156]]
1
174
#include <bits/stdc++.h> #define F first #define S second #define PB push_back #define MP make_pair #define endl '\n' using namespace std; typedef long long ll; typedef vector<int> vi; typedef pair<int, int> pi; int main() { ll a, b, c, d, ans = 10e-10; cin >> a >> b >> c >> d; ans = max(ans, a * c); ans = ma...
#include <bits/stdc++.h> #define F first #define S second #define PB push_back #define MP make_pair #define endl '\n' using namespace std; typedef long long ll; typedef vector<int> vi; typedef pair<int, int> pi; int main() { ll a, b, c, d, ans = -1e18; cin >> a >> b >> c >> d; ans = max(ans, a * c); ans = max...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
124
#include <iostream> int main() { int a, b, c, d; long long ans; std::cin >> a >> b >> c >> d; ans = std::max(a * c, a * d); ans = std::max(ans, (long long)b * c); ans = std::max(ans, (long long)b * d); std::cout << ans << std::endl; return 0; }
#include <iostream> int main() { long a, b, c, d; long long ans; std::cin >> a >> b >> c >> d; ans = std::max(a * c, a * d); ans = std::max(ans, (long long)b * c); ans = std::max(ans, (long long)b * d); std::cout << ans << std::endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
95
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; int ans = max(a * c, max(a * d, max(b * c, b * d))); cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; long long ans = max(a * c, max(a * d, max(b * c, b * d))); cout << ans << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
69
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << max(max(a * c, a * d), max(b * c, b * d)) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; cout << max(max(a * c, a * d), max(b * c, b * d)) << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
63
const main = arg => { const [a, b, c, d] = arg.split(' ').map(BigInt); const ary = [ a * c, a * d, b * c, b * d ]; const max = ary.reduce((x, y) => x > y ? x : y); console.log(Number(max)); }; main(require('fs').readFileSync('/dev/stdin', 'utf8'));
const main = arg => { const [a, b, c, d] = arg.split(' ').map(BigInt); const ary = [ a * c, a * d, b * c, b * d ]; const max = ary.reduce((x, y) => x > y ? x : y); console.log(max.toString()); }; main(require('fs').readFileSync('/dev/stdin', 'utf8'));
[["-", 0, 1, 0, 2, 3, 3, 0, 2, 63, 22], ["-", 0, 2, 3, 3, 0, 2, 3, 3, 0, 24], ["+", 0, 2, 3, 3, 0, 2, 63, 558, 0, 131], ["+", 0, 2, 3, 3, 0, 2, 63, 558, 559, 560], ["+", 0, 2, 3, 3, 0, 2, 3, 3, 0, 24]]
2
107
a, b, c, d = map(int, input().split()) x = [a, b] y = [c, d] ans = 0 for i in x: for j in y: ans = max(ans, i*j) print(ans)
a, b, c, d = map(int, input().split()) x = [a, b] y = [c, d] ans = -1e30 for i in x: for j in y: ans = max(ans, i*j) print(ans)
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 664, 17, 33], ["+", 0, 656, 0, 1, 0, 662, 12, 664, 28, 531]]
5
61
//#include <tourist> #include <bits/stdc++.h> //#include <atcoder/all> using namespace std; // using namespace atcoder; typedef long long ll; typedef unsigned int uint; typedef unsigned long long ull; typedef pair<ll, ll> p; const int INF = 1e9; const ll LINF = ll(1e18); const int MOD = 1000000007; const int dx[4] = {0...
//#include <tourist> #include <bits/stdc++.h> //#include <atcoder/all> using namespace std; // using namespace atcoder; typedef long long ll; typedef unsigned int uint; typedef unsigned long long ull; typedef pair<ll, ll> p; const int INF = 1e9; const ll LINF = ll(1e18); const int MOD = 1000000007; const int dx[4] = {0...
[["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 22]]
1
936
a,b,c,d=list(map(int,input().split())) print(max([a*b,a*c,b*c,b*d]))
a,b,c,d=list(map(int,input().split())) print(max([a*c,a*d,b*c,b*d]))
[["-", 0, 652, 3, 4, 0, 634, 0, 657, 12, 22], ["+", 0, 652, 3, 4, 0, 634, 0, 657, 12, 22]]
5
46
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, D; cin >> A >> B >> C >> D; int ans; ans = max(A * C, max(A * D, max(B * C, B * D))); cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int64_t A, B, C, D; cin >> A >> B >> C >> D; int64_t ans; ans = max(A * C, max(A * D, max(B * C, B * D))); cout << ans << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
67
#include <bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" int main() { ll a, b, c, d; cin >> a >> b; ll ans1 = a * c; ll ans2 = a * d; ll ans3 = b * c; ll ans4 = b * d; cout << max(max(ans1, ans2), max(ans3, ans4)) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" int main() { ll a, b, c, d; cin >> a >> b >> c >> d; ll ans1 = a * c; ll ans2 = a * d; ll ans3 = b * c; ll ans4 = b * d; cout << max(max(ans1, ans2), max(ans3, ans4)) << endl; return 0; }
[["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
85
#include <bits/stdc++.h> using namespace std; ; typedef long long ll; int main() { vector<ll> num(4); for (int i = 0; i < 4; i++) { cin >> num.at(i); } ll ans = num[0] * num[1]; for (int i = 0; i < 3; i++) { for (int j = i; j < 4; j++) { ans = max(ans, num[i] * num[j]); } } cout << set...
#include <bits/stdc++.h> using namespace std; ; typedef long long ll; int main() { vector<ll> num(4); for (int i = 0; i < 4; i++) { cin >> num.at(i); } ll ans = num[0] * num[2]; for (int i = 0; i < 2; i++) { for (int j = 2; j < 4; j++) { ans = max(ans, num[i] * num[j]); } } cout << set...
[["-", 49, 50, 51, 16, 12, 69, 341, 342, 0, 13], ["+", 49, 50, 51, 16, 12, 69, 341, 342, 0, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 22], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]]
1
125
#include <bits/stdc++.h> #define ll long long #define ld long double #define rep(i, n) for (ll i = 0; i < n; ++i) #define rep2(i, a, b) for (ll i = a; i <= b; ++i) #define rrep(i, a, b) for (ll i = a; i >= b; --i) #define pii pair<int, int> #define pll pair<ll, ll> #define fi first #define se second #define pb pus...
#include <bits/stdc++.h> #define ll long long #define ld long double #define rep(i, n) for (ll i = 0; i < n; ++i) #define rep2(i, a, b) for (ll i = a; i <= b; ++i) #define rrep(i, a, b) for (ll i = a; i >= b; --i) #define pii pair<int, int> #define pll pair<ll, ll> #define fi first #define se second #define pb pus...
[["-", 12, 2, 3, 4, 0, 83, 0, 16, 12, 22], ["+", 12, 2, 3, 4, 0, 83, 0, 16, 12, 22]]
1
887
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; using P = pair<int, int>; int main() { ll a, b, c, d; cin >> a >> b >> c >> d; cout << max(a * b, max(a * d, max(b * c, b * d))) << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; using P = pair<int, int>; int main() { ll a, b, c, d; cin >> a >> b >> c >> d; cout << max(a * c, max(a * d, max(b * c, b * d))) << endl; return 0; }
[["-", 31, 16, 12, 2, 3, 4, 0, 16, 12, 22], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 12, 22]]
1
86
#include <bits/stdc++.h> using namespace std; int main() { float a, b, c, d; cin >> a >> b >> c >> d; float num_m = a * c; float num; num = a * d; if (num_m < num) { num_m = num; } num = b * c; if (num_m < num) { num_m = num; } num = b * d; if (num_m < num) { num_m = num; } cout...
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; long long num_m = a * c; long long num; num = a * d; if (num_m < num) { num_m = num; } num = b * c; if (num_m < num) { num_m = num; } num = b * d; if (num_m < num) { num_m = num...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
101
#include <bits/stdc++.h> using namespace std; #define ALL(x) x.begin(), x.end() #define RALL(x) x.rbegin(), x.rend() #define MP make_pair #define PB push_back #define X first #define Y second typedef long long int lld; typedef pair<int, int> pii; typedef pair<lld, lld> pll; int main() { ios::sync_with_stdio(false...
#include <bits/stdc++.h> using namespace std; #define ALL(x) x.begin(), x.end() #define RALL(x) x.rbegin(), x.rend() #define MP make_pair #define PB push_back #define X first #define Y second typedef long long int lld; typedef pair<int, int> pii; typedef pair<lld, lld> pll; int main() { ios::sync_with_stdio(false...
[["-", 31, 16, 12, 2, 3, 4, 0, 83, 0, 21], ["-", 31, 16, 12, 2, 3, 4, 0, 83, 0, 13]]
1
126
#include <algorithm> #include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << max({a * c, a * d, b * c, b * d}) << endl; }
#include <algorithm> #include <bits/stdc++.h> using namespace std; int main() { long a, b, c, d; cin >> a >> b >> c >> d; cout << max({a * c, a * d, b * c, b * d}) << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
58
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; using ll = long long; int main() { ll a, b, c, d; cin >> a >> b >> c >> d; cout << max(max(a * b, a * c), max(b * c, b * d)) << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; using ll = long long; int main() { ll a, b, c, d; cin >> a >> b >> c >> d; cout << max(max(a * c, a * d), max(b * c, b * d)) << endl; return 0; }
[["-", 3, 4, 0, 2, 3, 4, 0, 16, 12, 22], ["+", 3, 4, 0, 2, 3, 4, 0, 16, 12, 22]]
1
77
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << max({a * c, a * d, b * c, b * d}) << '\n'; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; cout << max({a * c, a * d, b * c, b * d}) << '\n'; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
61
#include <iostream> #include <stdio.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; cout << max(max(a * c, b * c), max(b * c, c * d)); }
#include <iostream> #include <stdio.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; cout << max(max(a * c, a * d), max(b * c, b * d)); }
[["-", 3, 4, 0, 2, 3, 4, 0, 16, 31, 22], ["+", 3, 4, 0, 2, 3, 4, 0, 16, 31, 22], ["-", 3, 4, 0, 2, 3, 4, 0, 16, 12, 22], ["+", 3, 4, 0, 2, 3, 4, 0, 16, 12, 22]]
1
61
#include <bits/stdc++.h> #include <iostream> #include <string> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; using ll = long long; using P = pair<int, int>; /* int main(){ int a,b,c,d; cin >> a >> b >> c >> d; if (d < 0) { if(a < 0) cout << (ll)a*(ll)c << endl; else co...
#include <bits/stdc++.h> #include <iostream> #include <string> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; using ll = long long; using P = pair<int, int>; /* int main(){ int a,b,c,d; cin >> a >> b >> c >> d; if (d < 0) { if(a < 0) cout << (ll)a*(ll)c << endl; else co...
[["-", 0, 11, 12, 2, 3, 4, 0, 16, 12, 22], ["+", 0, 11, 12, 2, 3, 4, 0, 16, 12, 22]]
1
115
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) int main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << max({...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) int main() { long long int a, b, c, d; cin >> a >> b >> c >> d; cou...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
84
#include <stdio.h> int main(void) { long long a, b, c, d; scanf("%lld%lld%lld%lld", &a, &b, &c, &d); long long max = a * c; if (max < a * d) max = a * d; else if (max < b * c) max = b * c; else if (max < b * d) max = b * d; printf("%lld\n", max); return 0; }
#include <stdio.h> int main(void) { long long a, b, c, d; scanf("%lld%lld%lld%lld", &a, &b, &c, &d); long long max = a * c; if (max < a * d) max = a * d; if (max < b * c) max = b * c; if (max < b * d) max = b * d; printf("%lld\n", max); return 0; }
[["-", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["-", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]]
0
103
#include <bits/stdc++.h> using namespace std; #define FOR(i, m, n) for (int i = m; i < n; ++i) #define FORD(i, m, n) for (int i = m; i >= n; --i) #define REP(i, n) for (int i = 0; i < n; ++i) #define REP1(i, n) for (int i = 0; i <= n; ++i) #define REPR(i, n) for (int i = n; i >= 0; --i) #define EPS (1e-7) #define INF...
#include <bits/stdc++.h> using namespace std; #define FOR(i, m, n) for (int i = m; i < n; ++i) #define FORD(i, m, n) for (int i = m; i >= n; --i) #define REP(i, n) for (int i = 0; i < n; ++i) #define REP1(i, n) for (int i = 0; i <= n; ++i) #define REPR(i, n) for (int i = n; i >= 0; --i) #define EPS (1e-7) #define INF...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
149
#include <stdio.h> int main(void) { long long a, b, c, d, e, f, g, h, max; scanf("%lld %lld %lld %lld", &a, &b, &c, &d); e = a * c; f = a * d; g = b * c; h = b * d; max = e; if (f > max) max = f; else if (g > max) max = g; else if (h > max) max = h; printf("%lld\n", max); return 0; }
#include <stdio.h> int main(void) { long long a, b, c, d, e, f, g, h, max; scanf("%lld %lld %lld %lld", &a, &b, &c, &d); e = a * c; f = a * d; g = b * c; h = b * d; max = e; if (f > max) max = f; if (g > max) max = g; if (h > max) max = h; printf("%lld\n", max); return 0; }
[["-", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["-", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]]
0
121
#include <algorithm> #include <iostream> #include <stdio.h> #include <string> #include <vector> using namespace std; char p[1002][1002], cop[1002][1002]; unsigned long long a, b, c, d, ma, i, j; int main() { cin >> a >> b >> c >> d; cout << max(max(a * d, a * c), max(b * c, b * d)) << endl; return 0; }
#include <algorithm> #include <iostream> #include <stdio.h> #include <string> #include <vector> using namespace std; char p[1002][1002], cop[1002][1002]; long long a, b, c, d, ma, i, j; int main() { cin >> a >> b >> c >> d; cout << max(max(a * d, a * c), max(b * c, b * d)) << endl; return 0; }
[["-", 36, 36, 0, 30, 0, 43, 39, 86, 0, 87]]
1
96
#include <stdio.h> int main() { long long int a, b, c, d, m, n, o, p; scanf("%lld %lld %lld %lld", &a, &b, &c, &d); m = a * c; n = a * d; o = b * c; p = b * d; if (m >= n && m >= o && n >= p) { printf("%lld\n", m); } else if (n >= m && n >= o && n >= p) { printf("%lld\n", n); } else if (o >= ...
#include <stdio.h> int main() { long long int a, b, c, d, m, n, o, p; scanf("%lld %lld %lld %lld", &a, &b, &c, &d); m = a * c; n = a * d; o = b * c; p = b * d; if (m >= n && m >= o && m >= p) { printf("%lld\n", m); } else if (n >= m && n >= o && n >= p) { printf("%lld\n", n); } else if (o >= ...
[["-", 0, 57, 15, 23, 0, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 31, 22]]
0
166
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; long long x1, x2, x3, x4; x1 = a * c; x2 = a * d; x3 = b * c; x4 = b * d; cout << max(max(max(x1, x2), x3), x4); }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; long long x1, x2, x3, x4; x1 = a * c; x2 = a * d; x3 = b * c; x4 = b * d; // cout<<x1<<" "<<x2<<" "<<x3<<" "<<x4<<" "; cout << max(max(max(x1, x2), x3), x4); }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
84
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int max = a * c; if (max < a * d) max = a * d; if (max < b * c) max = b * c; if (max < b * d) max = b * d; cout << max; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; long long max = a * c; if (max < a * d) max = a * d; if (max < b * c) max = b * c; if (max < b * d) max = b * d; cout << max; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
84
a=[int(x) for x in input().split()] print(a) b=[a[0]*a[2],a[0]*a[3],a[1]*a[2],a[1]*a[3]] print(max(b))
a=[int(x) for x in input().split()] b=[a[0]*a[2],a[0]*a[3],a[1]*a[2],a[1]*a[3]] print(max(b))
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
72
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; long long ans; ans = max(a * c, max(a * d, max(b * c, b * d))); cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int64_t a, b, c, d; cin >> a >> b >> c >> d; long long ans; ans = max(a * c, max(a * d, max(b * c, b * d))); cout << ans << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
68
a,b,c,d = map(int,input().split(' ')) ans1 = a*c ans2 = a*c ans3 = b*c ans4 = b*d print(max(ans1,ans2,ans3,ans4))
a,b,c,d = map(int,input().split(' ')) ans1 = a*c ans2 = a*d ans3 = b*c ans4 = b*d print(max(ans1,ans2,ans3,ans4))
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22]]
5
56
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << max(max(a * c, a * d), max(b * c, b * d)) << '\n'; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; cout << max(max(a * c, a * d), max(b * c, b * d)) << '\n'; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
65
#include <algorithm> #include <cmath> #include <iostream> #include <set> #include <string> #include <vector> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << max(max(a * c, a * d), max(b * c, b * d)) << endl; }
#include <algorithm> #include <cmath> #include <iostream> #include <set> #include <string> #include <vector> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; cout << max(max(a * c, a * d), max(b * c, b * d)) << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
70
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define inf 1001001001001001001 #define mod 1000000007 #define mod2 998244353 #define pi acos(-1) #define all(v) v.begin(), v.end() int main() { int a, b, c, d; cin >> a >> b >> c >> d; cout <...
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define inf 1001001001001001001 #define mod 1000000007 #define mod2 998244353 #define pi acos(-1) #define all(v) v.begin(), v.end() int main() { ll a, b, c, d; cin >> a >> b >> c >> d; cout <<...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
92
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << max(a * c, max(a * d, max(b * c, b * d))) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long a, b, c, d; cin >> a >> b >> c >> d; cout << max(a * c, max(a * d, max(b * c, b * d))) << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
60
a,b,c,d = int(input().split()) print(max(a*c, a*d, b*c, b*d))
a,b,c,d = map(int,input().split()) print(max(a*c, a*d, b*c, b*d))
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21]]
5
39
#include <bits/stdc++.h> using namespace std; template <typename T, typename U> void cmax(T &a, U b) { if (a < b) a = b; } template <typename T, typename U> void cmin(T &a, U b) { if (a > b) a = b; } signed main() { cin.tie(nullptr); ios_base::sync_with_stdio(false); int A, B, C, D; cin >> A >> B...
#include <bits/stdc++.h> using namespace std; template <typename T, typename U> void cmax(T &a, U b) { if (a < b) a = b; } template <typename T, typename U> void cmin(T &a, U b) { if (a > b) a = b; } signed main() { cin.tie(nullptr); ios_base::sync_with_stdio(false); long A, B, C, D; cin >> A >> ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
132
#include <stdio.h> long long max(long long a, long long b) { return a > b ? a : b; } int main(void) { long long a, b, c, d; //入力 scanf("%lld %lld %lld %lld", &a, &b, &c, &d); long long ans; ans = max(max(a * c, b * d), max(a * d, b * c)); printf("%d", ans); return 0; } // long long は 64bit 9.22e+18
#include <stdio.h> long long max(long long a, long long b) { return a > b ? a : b; } int main(void) { long long a, b, c, d; //入力 scanf("%lld %lld %lld %lld", &a, &b, &c, &d); long long ans; ans = max(max(a * c, b * d), max(a * d, b * c)); printf("%lld", ans); return 0; } // long long は 64bit 9.22e+18 /...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
106
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int p, q, r, s; p = a * c; q = b * c; r = a * d; s = b * d; cout << max(p, max(q, max(r, s))) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; long long p, q, r, s; p = a * c; q = b * c; r = a * d; s = b * d; cout << max(p, max(q, max(r, s))) << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
88
#include <algorithm> #include <functional> #include <iostream> #include <map> #include <math.h> #include <queue> #include <stack> #include <string> #include <vector> #define rep(i, n) for (ll i = 0; i < (n); i++) typedef long long ll; using namespace std; int main(void) { int a, b, c, d; cin >> a >> b >> c >> d; ...
#include <algorithm> #include <functional> #include <iostream> #include <map> #include <math.h> #include <queue> #include <stack> #include <string> #include <vector> #define rep(i, n) for (ll i = 0; i < (n); i++) typedef long long ll; using namespace std; int main(void) { ll a, b, c, d; cin >> a >> b >> c >> d; ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
101
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { unsigned long long int a, b, c, d; vector<unsigned long long int> res; ios::sync_with_stdio(false); cin >> a >> b >> c >> d; res.push_back(a * c); res.push_back(b * d); res.push_back(b * c); res.push_back(a ...
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { long long int a, b, c, d; vector<long long int> res; ios::sync_with_stdio(false); cin >> a >> b >> c >> d; res.push_back(a * c); res.push_back(b * d); res.push_back(b * c); res.push_back(a * d); auto max ...
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 87], ["-", 39, 344, 3, 347, 0, 77, 39, 86, 0, 87]]
1
132
#include <iostream> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int one = a * c; int two = a * d; int three = b * c; int four = b * d; cout << max(max(max(one, two), three), four); }
#include <iostream> using namespace std; int main() { long a, b, c, d; cin >> a >> b >> c >> d; long one = a * c; long two = a * d; long three = b * c; long four = b * d; cout << max(max(max(one, two), three), four); }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
78
#include <bits/stdc++.h> using namespace std; #define rep(i, A) for (int i = 0; i < A; i++) int main() { int A, B, C, D; cin >> A >> B >> C >> D; cout << max(max(A * C, A * D), max(B * C, B * D)); }
#include <bits/stdc++.h> using namespace std; #define rep(i, A) for (int i = 0; i < A; i++) int main() { long long A, B, C, D; cin >> A >> B >> C >> D; cout << max(max(A * C, A * D), max(B * C, B * D)); }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
66
#include <iostream> using namespace std; int main() { int a[2], b[2]; cin >> a[0] >> a[1] >> b[0] >> b[1]; int max = a[0] * b[0]; for (int i = 0; i < 2; i++) { for (int j = 0; j < 2; j++) { if (max < a[i] * b[j]) max = a[i] * b[j]; } } cout << max; return 0; }
#include <iostream> using namespace std; int main() { long long a[2], b[2]; cin >> a[0] >> a[1] >> b[0] >> b[1]; long long max = a[0] * b[0]; for (int i = 0; i < 2; i++) { for (int j = 0; j < 2; j++) { if (max < a[i] * b[j]) max = a[i] * b[j]; } } cout << max; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
123
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string.h> #include <vector> #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) #define ALL(a) (a).begin(), (a).end() typedef long long...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string.h> #include <vector> #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) #define ALL(a) (a).begin(), (a).end() typedef long long...
[["-", 0, 11, 12, 2, 3, 4, 0, 16, 12, 22], ["+", 0, 11, 12, 2, 3, 4, 0, 16, 12, 22]]
1
136
'use script'; { function Main(input) { // input = input.split("\n"); tmp = input.split(" "); const a = parseInt(tmp[0], 10); const b = parseInt(tmp[1], 10); const c = parseInt(tmp[2], 10); const d = parseInt(tmp[3], 10); let max = a * c; if (max < a * d) { max = a * d; } ...
'use script'; { function Main(input) { // input = input.split("\n"); tmp = input.split(" "); const a = BigInt(tmp[0], 10); const b = BigInt(tmp[1], 10); const c = BigInt(tmp[2], 10); const d = BigInt(tmp[3], 10); let max = a * c; if (max < a * d) { max = a * d; } if (m...
[["-", 8, 556, 0, 570, 0, 200, 51, 2, 63, 22], ["+", 8, 556, 0, 570, 0, 200, 51, 2, 63, 22]]
2
164
a,b,c,d = map(int,input().split()) m = a*c if a*d > m: m = a*d elif b*c > m: m = b*c elif b*d > m: m = b*d print(m)
a,b,c,d = map(int,input().split()) m = a*c if a*d > m: m = a*d if b*c > m: m = b*c if b*d > m: m = b*d print(m)
[["-", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683], ["+", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121]]
5
65
#include <bits/stdc++.h> using namespace std; /* useful defines with short names */ #define st first #define nd second #define pb push_back #define pp pop_back #define all(x) (x).begin(), (x).end() #define lb(a, b, c) lower_bound(a, b, c) #define ub(a, b, c) upper_bound(a, b, c) #define forn(i, n) for (int i = 0; i < ...
#include <bits/stdc++.h> using namespace std; /* useful defines with short names */ #define st first #define nd second #define pb push_back #define pp pop_back #define all(x) (x).begin(), (x).end() #define lb(a, b, c) lower_bound(a, b, c) #define ub(a, b, c) upper_bound(a, b, c) #define forn(i, n) for (int i = 0; i < ...
[["-", 0, 2, 3, 4, 0, 83, 0, 16, 12, 22], ["+", 0, 2, 3, 4, 0, 83, 0, 16, 12, 22]]
1
5,833
#include <bits/stdc++.h> #define ll long long #define un unsigned using namespace std; int main() { ll a, b, c, d, x, y; cin >> a >> b >> c >> d; x = max(a * c, a * d); y = max(b * c, c * d); cout << max(x, y) << endl; return 0; }
#include <bits/stdc++.h> #define ll long long #define un unsigned using namespace std; int main() { ll a, b, c, d, x, y; cin >> a >> b >> c >> d; x = max(a * c, a * d); y = max(b * c, b * d); cout << max(x, y) << endl; return 0; }
[["-", 0, 11, 12, 2, 3, 4, 0, 16, 31, 22], ["+", 0, 11, 12, 2, 3, 4, 0, 16, 31, 22]]
1
81
#include <algorithm> #include <cmath> #include <fstream> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <sstream> #include <stack> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #include <vector> using namespace std; struct XX { int s; in...
#include <algorithm> #include <cmath> #include <fstream> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <sstream> #include <stack> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #include <vector> using namespace std; struct XX { int s; in...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
207
#include <bits/stdc++.h> using namespace std; #define pb push_back typedef long long ll; typedef vector<int> vi; typedef vector<vi> vvi; typedef pair<int, int> pii; ll a, b, c, d; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cin >> a >> b >> c >> d; ll res = max(max(a * c, a * d), max(b * d, ...
#include <bits/stdc++.h> using namespace std; #define pb push_back typedef long long ll; typedef vector<int> vi; typedef vector<vi> vvi; typedef pair<int, int> pii; ll a, b, c, d; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cin >> a >> b >> c >> d; ll res = max(max(a * c, a * d), max(b * d, ...
[["+", 15, 339, 51, 16, 31, 23, 0, 16, 17, 98], ["+", 51, 16, 31, 23, 0, 16, 12, 16, 31, 13], ["+", 51, 16, 12, 23, 0, 16, 31, 16, 12, 13], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 98]]
1
135
#include <iostream> using namespace std; int a, b, c, d; int main() { cin >> a >> b >> c >> d; cout << max(max(a * c, a * d), max(b * c, b * d)); return 0; }
#include <iostream> using namespace std; long long a, b, c, d; int main() { cin >> a >> b >> c >> d; cout << max(max(a * c, a * d), max(b * c, b * d)); return 0; }
[["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96]]
1
61
a,b,c,d=map(int,input().split()) ans=[] ans.append(a+c) ans.append(a+d) ans.append(b+c) ans.append(b+d) print(max(ans))
a,b,c,d=map(int,input().split()) ans=[] ans.append(a*c) ans.append(a*d) ans.append(b*c) ans.append(b*d) print(max(ans))
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48]]
5
63
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define printVec(v) \ printf("{"); \ for (const auto &i : v) { \ ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define printVec(v) \ printf("{"); \ for (const auto &i : v) { \ ...
[["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 0, 43, 39, 344, 3, 347, 0, 77, 39, 78]]
1
263
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(x) (x).begin(), (x).end() typedef long long ll; typedef pair<ll, ll> P; const int mod = 1000000007; //出力は (ans % mod + mod) % mod (負の剰余を正にする) const int inf = 1e9; const long long INF = 1LL << 60; // INF...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(x) (x).begin(), (x).end() typedef long long ll; typedef pair<ll, ll> P; const int mod = 1000000007; //出力は (ans % mod + mod) % mod (負の剰余を正にする) const int inf = 1e9; const long long INF = 1LL << 60; // INF...
[["-", 0, 11, 12, 2, 3, 4, 0, 16, 12, 22], ["+", 0, 11, 12, 2, 3, 4, 0, 16, 12, 22]]
1
139
#include <bits/stdc++.h> int main() { using namespace std; int a, b, c, d; cin >> a >> b >> c >> d; vector<int> res; res.push_back(a * c); res.push_back(b * d); res.push_back(a * d); res.push_back(b * c); cout << *max_element(res.begin(), res.end()); return 0; }
#include <bits/stdc++.h> int main() { using namespace std; int64_t a, b, c, d; cin >> a >> b >> c >> d; vector<int64_t> res; res.push_back(a * c); res.push_back(b * d); res.push_back(a * d); res.push_back(b * c); cout << *max_element(res.begin(), res.end()); return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40]]
1
94
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; long long ans = max(1000000000000000009LL, a * c); ans = max(ans, a * d); ans = max(ans, b * c); ans = max(ans, b * d); cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; long long ans = max(-1000000000000000009LL, a * c); ans = max(ans, a * d); ans = max(ans, b * c); ans = max(ans, b * d); cout << ans << endl; }
[["-", 0, 43, 49, 50, 51, 2, 3, 4, 0, 13], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 13]]
1
84
a=int(input('')) a=list(map(int,a)) b=(a[0]) c=(a[1]) d=(a[2]) e=(a[3]) f=b*d g=b*e h=c*d i=c*e if f>g: if h>f: if i>h: print(i) else: print(h) else: if i>f: print(i) else: print(f) else: if h>g: if i>h: print(i) else: print(h) else: if i>g: ...
a=input('').split() a=list(map(int,a)) b=(a[0]) c=(a[1]) d=(a[2]) e=(a[3]) f=b*d g=b*e h=c*d i=c*e if f>g: if h>f: if i>h: print(i) else: print(h) else: if i>f: print(i) else: print(f) else: if h>g: if i>h: print(i) else: print(h) else: if i>g: ...
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24]]
5
154
#include <iostream> using namespace std; int a, b, c, d; int main() { cin >> a >> b >> c >> d; cout << max(a * c, max(a * d, max(b * c, b * d))); return 0; }
#include <iostream> using namespace std; long long a, b, c, d; int main() { cin >> a >> b >> c >> d; cout << max(a * c, max(a * d, max(b * c, b * d))); return 0; }
[["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96]]
1
61
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; long long A = a * c; long long B = a * d; long long C = b * c; long long D = b * d; vector<long long> N; N = {A, B, C, D}; long long m; for (int i; i < 3; i++) { if (i == 0) m = A; ...
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; long long A = a * c; long long B = a * d; long long C = b * c; long long D = b * d; vector<long long> N; N = {A, B, C, D}; long long m; for (int i = 0; i < 4; i++) { if (i == 0) m =...
[["+", 8, 9, 0, 7, 10, 43, 49, 50, 0, 32], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]]
1
135
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { ll a, b, c, d; cin >> a >> b >> c >> d; ll res1 = max(a * d, b * c); ll res2 = max(a * c, b * c); ll res = max(res1, res2); if (a <= 0 && b >= 0) { res = max(res, 0ll); } if (c <= 0 && d >= 0) { res = max(res, ...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { ll a, b, c, d; cin >> a >> b >> c >> d; ll res1 = max(a * d, b * c); ll res2 = max(a * c, b * d); ll res = max(res1, res2); if (a <= 0 && b >= 0) { res = max(res, 0ll); } if (c <= 0 && d >= 0) { res = max(res, ...
[["-", 49, 50, 51, 2, 3, 4, 0, 16, 12, 22], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 12, 22]]
1
124
package main import "fmt" func main() { nums := make([]int, 4) for i:=0; i<len(nums); i++{ fmt.Scan(&nums[i]) } max := 0 for i:=0; i<2; i++{ if max < nums[i] * nums[2]{ max = nums[i] * nums[2] } if max < nums[i] * nums[3]{ max = nums[i] * nums[3] } } fmt.Println(max) }
package main import "fmt" func main() { nums := make([]int, 4) for i:=0; i<len(nums); i++{ fmt.Scan(&nums[i]) } max := -1000000000000000000 for i:=0; i<2; i++{ if max <= nums[i] * nums[2]{ max = nums[i] * nums[2] } if max <= nums[i] * nums[3]{ max = nums[i] * nums[3] } } fmt.Println(max) }
[["-", 0, 435, 8, 196, 0, 431, 12, 432, 0, 433], ["+", 8, 196, 0, 431, 12, 432, 0, 91, 17, 33], ["+", 8, 196, 0, 431, 12, 432, 0, 91, 439, 433], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]]
7
132
import java.util.Scanner; import java.util.Vector; class Main { public static void main(String[] args) { Scanner ler = new Scanner(System.in); long a = ler.nextLong(), b = ler.nextLong(), c = ler.nextLong(), d = ler.nextLong(); Vector<Long> v = new Vector<>(); v.add(a * c); v.add(a * d)...
import java.util.Scanner; import java.util.Vector; class Main { public static void main(String[] args) { Scanner ler = new Scanner(System.in); long a = ler.nextLong(), b = ler.nextLong(), c = ler.nextLong(), d = ler.nextLong(); Vector<Long> v = new Vector<>(); v.add(a * c); v.add(a * d)...
[["-", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22]]
3
143
#include <algorithm> #include <assert.h> #include <bitset> #include <deque> #include <functional> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <stdio.h> #include ...
#include <algorithm> #include <assert.h> #include <bitset> #include <deque> #include <functional> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <stdio.h> #include ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
182
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; vector<long long> v(4); v.push_back(a * c); v.push_back(a * d); v.push_back(b * c); v.push_back(b * d); sort(v.begin(), v.end(), greater<long long>()); cout << v[0]; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; vector<long long> v; v.push_back(a * c); v.push_back(a * d); v.push_back(b * c); v.push_back(b * d); sort(v.begin(), v.end(), greater<long long>()); cout << v[0]; }
[["-", 8, 9, 0, 43, 49, 50, 51, 4, 0, 24], ["-", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["-", 8, 9, 0, 43, 49, 50, 51, 4, 0, 25]]
1
108
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; long long ans; ans = max(a * c, a * d); ans = max(ans, b * c); ans = max(ans, b * d); cout << ans << "/n"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; long long ans; ans = max(a * c, a * d); ans = max(ans, b * c); ans = max(ans, b * d); cout << ans << "\n"; return 0; }
[["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 44]]
1
82
#include <iostream> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int ans = a * c; ans = max(ans, a * d); ans = max(ans, b * c); ans = max(ans, b * d); cout << ans << endl; }
#include <iostream> using namespace std; int main() { long long int a, b, c, d; cin >> a >> b >> c >> d; long long int ans = a * c; ans = max(ans, a * d); ans = max(ans, b * c); ans = max(ans, b * d); cout << ans << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
77
#include <bits/stdc++.h> using namespace std; int main() { long long int a, b, c, d; cin >> a >> b >> c >> d; long long int res = a * c; res = max(res, max(b * c, max(d * a, c * d))); cout << res; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long int a, b, c, d; cin >> a >> b >> c >> d; long long int res = a * c; res = max(res, max(b * c, max(d * a, b * d))); cout << res; return 0; }
[["-", 3, 4, 0, 2, 3, 4, 0, 16, 31, 22], ["+", 3, 4, 0, 2, 3, 4, 0, 16, 31, 22]]
1
74
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << max(b * d, max(a * d, max(b * c, a * c))); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; cout << max(b * d, max(a * d, max(b * c, a * c))); return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
61
a, b, c, d = map(int, input().split) ans = max(max(a*c, a*d), max(b*c, b*d)) print(ans)
a, b, c, d = map(int, input().split()) ans = max(max(a*c, a*d), max(b*c, b*d)) print(ans)
[["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
48
#include <bits/stdc++.h> using namespace std; //#define int long long int #define fi first #define se second #define pb push_back #define soo(v) sort(v.rbegin(), v.rend()) #define so(v) sort(v.begin(), v.end()) #define lb(v, x) lower_bound(v.begin(), v.end(), x) #define ub(v, x) upper_bound(v.begin(), v.end(), x) #def...
#include <bits/stdc++.h> using namespace std; #define int long long int #define fi first #define se second #define pb push_back #define soo(v) sort(v.rbegin(), v.rend()) #define so(v) sort(v.begin(), v.end()) #define lb(v, x) lower_bound(v.begin(), v.end(), x) #define ub(v, x) upper_bound(v.begin(), v.end(), x) #define...
[["+", 36, 36, 36, 36, 0, 30, 0, 58, 141, 22], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 0, 148]]
1
175
a,b,c,d = map(int,input().split()) e = a*c f = a*d g = b*c h = b*d xy =[e,f,g,h] max(xy)
a,b,c,d = map(int,input().split()) e = a*c f = a*d g = b*c h = b*d xy =[e,f,g,h] print(int(max(xy)))
[["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
55
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << max(max(a * c, a * d), max(b * c, b * d)) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long int a, b, c, d; cin >> a >> b >> c >> d; cout << max(max(a * c, a * d), max(b * c, b * d)) << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
60
long max(a, b) { return a > b ? a : b; } long a, b, c, d; main() { scanf("%ld%ld%ld%ld", &a, &b, &c, &d); printf("%ld\n", max(max(a * c, a * d), max(b * c, b * d))); }
long max(long a, long b) { return a > b ? a : b; } long a, b, c, d; main() { scanf("%ld%ld%ld%ld", &a, &b, &c, &d); printf("%ld\n", max(max(a * c, a * d), max(b * c, b * d))); }
[["+", 49, 53, 54, 55, 0, 56, 39, 86, 0, 96]]
0
85
#include <stdio.h> int main() { long long int a, b, c, d, maior; scanf("%lli %lli %lli %lli", &a, &b, &c, &d); // x>=a && x<=b; // y>=c && y<=d; maior = a * c; if (maior < a * d) { maior = a * d; } if (maior < b * c) { maior = b * c; } if (maior < b * d) { maior = maior; } print...
#include <stdio.h> int main() { long long int a, b, c, d, maior; scanf("%lli %lli %lli %lli", &a, &b, &c, &d); // x>=a && x<=b; // y>=c && y<=d; maior = a * c; if (maior < a * d) { maior = a * d; } if (maior < b * c) { maior = b * c; } if (maior < b * d) { maior = b * d; } print...
[["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 12, 22]]
0
107
#include <iostream> #include <vector> using ull = unsigned long long int; int main() { ull a, b, c, d; std::cin >> a >> b >> c >> d; if (a == 0 and b > 0) { a++; } if (b == 0 and a < 0) { b--; } if (c == 0 and d > 0) { c++; } if (d == 0 and c < 0) { d--; } ull ac = a * c; ull a...
#include <iostream> #include <vector> using ull = long long int; int main() { ull a, b, c, d; std::cin >> a >> b >> c >> d; if (a == 0 and b > 0) { a++; } if (b == 0 and a < 0) { b--; } if (c == 0 and d > 0) { c++; } if (d == 0 and c < 0) { d--; } ull ac = a * c; ull ad = a * d...
[["-", 0, 30, 0, 360, 39, 77, 39, 86, 0, 87]]
1
168
#include <bits/stdc++.h> using namespace std; void solve(long long a, long long b, long long c, long long d) { int tmp = a * c; if (a * d > tmp) tmp = a * d; if (b * c > tmp) tmp = b * c; if (b * d > tmp) tmp = b * d; cout << tmp << endl; } // Generated by 1.1.7.1 https://github.com/kyuridenamid...
#include <bits/stdc++.h> using namespace std; void solve(long long a, long long b, long long c, long long d) { long long tmp = a * c; if (a * d > tmp) tmp = a * d; if (b * c > tmp) tmp = b * c; if (b * d > tmp) tmp = b * d; cout << tmp << endl; } // Generated by 1.1.7.1 https://github.com/kyurid...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
161
a, b, c, d = [int(t) for t in input().split()] print(max([b*d, a*c, a*d, b*d]))
a, b, c, d = [int(t) for t in input().split()] print(max([b*d, a*c, a*d, b*c]))
[["-", 0, 652, 3, 4, 0, 634, 0, 657, 12, 22], ["+", 0, 652, 3, 4, 0, 634, 0, 657, 12, 22]]
5
47
a, b, c, d = int(map(int, input().split())) print(max(a*c, max(a*d, max(b*c, b*d))))
a, b, c, d = map(int, input().split()) print(max(a*c, max(a*d, max(b*c, b*d))))
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
50
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int w, x, y, z, max; w = a * c; x = a * d; y = b * c; z = b * d; max = w; if (max < x) { max = x; } if (max < y) { max = y; } if (max < z) { max = z; } cout << max << en...
#include <bits/stdc++.h> using namespace std; int main() { long long int a, b, c, d; cin >> a >> b >> c >> d; long long int w, x, y, z, max; w = a * c; x = a * d; y = b * c; z = b * d; max = w; if (max < x) { max = x; } if (max < y) { max = y; } if (max < z) { max = z; } ...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
115
// Author- Vaibhav Singh #include <bits/stdc++.h> /* #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define ordered_multiset tree<long long , null_type,less_equal<long long >, rb_tree_tag,tree_order_statistics_node_update> #define ordered_set tree<long long , ...
// Author- Vaibhav Singh #include <bits/stdc++.h> /* #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define ordered_multiset tree<long long , null_type,less_equal<long long >, rb_tree_tag,tree_order_statistics_node_update> #define ordered_set tree<long long , ...
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 31, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 31, 22], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]]
1
529
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << max({b * d, a * c, a * d, b * c}) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { signed long long a, b, c, d; cin >> a >> b >> c >> d; cout << max({b * d, a * c, a * d, b * c}) << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 156], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
56
#include <iostream> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << max(a * c, max(a * d, max(b * c, b * d))) << endl; return 0; }
#include <iostream> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; cout << max(a * c, max(a * d, max(b * c, b * d))) << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
63
#include <bits/stdc++.h> using namespace std; int main() { double a, b, c, d; cin >> a >> b >> c >> d; double ans = a * c; if (ans < a * d) { ans = a * d; } if (ans < b * d) { ans = b * d; } if (ans < b * c) { ans = b * c; } cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; long long ans = a * c; if (ans < a * d) { ans = a * d; } if (ans < b * d) { ans = b * d; } if (ans < b * c) { ans = b * c; } cout << ans << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
95
#include <algorithm> #include <iostream> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << max({a * c, a * d, b * c, b * d}); return 0; }
#include <algorithm> #include <iostream> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; cout << max({a * c, a * d, b * c, b * d}); return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
59
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << max(b * d, max(a * c, max(a * d, b * c))) << endl; return 0; }
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; cout << (long long)max(b * d, max(a * c, max(a * d, b * c))) << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 24], ["+", 31, 16, 12, 74, 39, 77, 39, 86, 0, 96], ["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 25]]
1
65
#include <bits/stdc++.h> #define rep(i, a, ...) \ for (int i = (a) * (strlen(#__VA_ARGS__) != 0); \ i < (int)(strlen(#__VA_ARGS__) ? __VA_ARGS__ : (a)); ++i) #define per(i, a, ...) ...
#include <bits/stdc++.h> #define rep(i, a, ...) \ for (int i = (a) * (strlen(#__VA_ARGS__) != 0); \ i < (int)(strlen(#__VA_ARGS__) ? __VA_ARGS__ : (a)); ++i) #define per(i, a, ...) ...
[["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 0, 43, 39, 344, 3, 347, 0, 77, 39, 78]]
1
760
function Main(input) { input = input.split(" "); var a = parseInt(input[0], 10); var b = parseInt(input[1], 10); var c = parseInt(input[2], 10); var d = parseInt(input[3], 10); var ans = a * c; if (a * d > ans) ans = a * d; if (b * c > ans) ans = b * c; if (b * d > ans) ans = b * d; co...
function Main(input) { input = input.split(" "); var a = BigInt(input[0], 10); var b = BigInt(input[1], 10); var c = BigInt(input[2], 10); var d = BigInt(input[3], 10); var ans = a * c; if (a * d > ans) ans = a * d; if (b * c > ans) ans = b * c; if (b * d > ans) ans = b * d; console.lo...
[["-", 8, 556, 0, 198, 0, 200, 51, 2, 63, 22], ["+", 8, 556, 0, 198, 0, 200, 51, 2, 63, 22]]
2
152
a,b,c,d = map(int, input()) print(max(a*c,a*d,b*c,b*d))
a,b,c,d = map(int, input().split()) print(max(a*c,a*d,b*c,b*d))
[["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
37
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d, ans = 0; cin >> a >> b >> c >> d; ans = max(a * c, (a * d, (b * c, b * d))); cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d, ans = 0; cin >> a >> b >> c >> d; ans = max(a * c, max(a * d, max(b * c, b * d))); cout << ans << endl; }
[["+", 0, 11, 12, 2, 3, 4, 0, 2, 63, 22], ["+", 3, 4, 0, 2, 3, 4, 0, 2, 63, 22]]
1
67
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { int i, N, K, x, count = 0, ans = 0; ll a, b, c, d, max1, max2; cin >> a >> b >> c >> d; max1 = a * c; if (a * d > max1) max1 = a * d; else if (b *...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { int i, N, K, x, count = 0, ans = 0; ll a, b, c, d, max1, max2; cin >> a >> b >> c >> d; max1 = a * c; if (a * d > max1) max1 = a * d; if (b * c > ...
[["-", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["-", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]]
1
132
#include <iostream> #define ll long long using namespace std; ll a, b, c, d; int main() { cin >> a >> b >> c >> d; ll t1 = a * c, t2 = a * d, t3 = b * c, t4 = c * d; cout << max(max(t1, t2), max(t3, t4)) << endl; return 0; }
#include <iostream> #define ll long long using namespace std; ll a, b, c, d; int main() { cin >> a >> b >> c >> d; ll t1 = a * c, t2 = a * d, t3 = b * c, t4 = b * d; cout << max(max(t1, t2), max(t3, t4)) << endl; return 0; }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 31, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 31, 22]]
1
83
#include <bits/stdc++.h> #define fint register int #define h 5001 #define p 4735894 #define int unsigned long long using namespace std; signed main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << max(max(a * c, b * d), max(a * d, b * c)); return 0; }
#include <bits/stdc++.h> #define fint register int #define h 5001 #define p 4735894 #define int long long using namespace std; signed main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << max(max(a * c, b * d), max(a * d, b * c)); return 0; }
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]]
1
73
#include <bits/stdc++.h> #define ll long long #define endl "\n" #define shalaby \ ios::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NU...
#include <bits/stdc++.h> #define ll long long #define endl "\n" #define shalaby \ ios::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NU...
[["-", 0, 16, 12, 2, 3, 4, 0, 83, 0, 21], ["+", 12, 2, 3, 4, 0, 83, 0, 16, 17, 48]]
1
356
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <vector> int main(void) { long a, b, c, d; std::cin >> a >> b >> c >> d; std::cout << (long)std::fmax(a * c, std::fmax(a * d, std::fmax(b * c, ...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <vector> int main(void) { long a, b, c, d; std::cin >> a >> b >> c >> d; std::cout << (long)std::max(a * c, std::max(a * d, std::max(b * c, b *...
[["-", 31, 16, 12, 74, 51, 2, 63, 343, 141, 22], ["+", 31, 16, 12, 74, 51, 2, 63, 343, 141, 22], ["-", 51, 2, 3, 4, 0, 2, 63, 343, 141, 22], ["+", 51, 2, 3, 4, 0, 2, 63, 343, 141, 22], ["-", 0, 2, 3, 4, 0, 2, 63, 343, 141, 22], ["+", 0, 2, 3, 4, 0, 2, 63, 343, 141, 22]]
1
93
#include <bits/stdc++.h> #define ll long long int #define db double #define pb push_back #define mpr make_pair #define andl "\n" #define f first #define s second #define mset(x, y) memset(x, y, sizeof(x)) #define fr(i, n) for (long long int i = 0; i < n; i++) #define trace(it, x) for (auto it = (x).begin(); it != (x).e...
#include <bits/stdc++.h> #define ll long long int #define db double #define pb push_back #define mpr make_pair #define andl "\n" #define f first #define s second #define mset(x, y) memset(x, y, sizeof(x)) #define fr(i, n) for (long long int i = 0; i < n; i++) #define trace(it, x) for (auto it = (x).begin(); it != (x).e...
[["+", 0, 11, 12, 2, 3, 4, 0, 83, 0, 21], ["+", 12, 2, 3, 4, 0, 83, 0, 16, 31, 22], ["+", 12, 2, 3, 4, 0, 83, 0, 16, 17, 48], ["+", 12, 2, 3, 4, 0, 83, 0, 16, 12, 22]]
1
200
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d; cin >> a, b, c, d; cout << max(max(a * c, a * d), max(b * c, b * d)) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; cout << max(max(a * c, a * d), max(b * c, b * d)) << endl; }
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 152], ["-", 8, 9, 0, 1, 0, 34, 12, 34, 0, 21], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["-", 0, 1, 0, 34, 12, 34, 12, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
61
/***********************/ // the_authur : helolololololololo // /***********************/ #include <bits/stdc++.h> using namespace std; namespace IO { void setIn(string s) { freopen(s.c_str(), "r", stdin); } void setOut(string s) { freopen(s.c_str(), "w", stdout); } void setIO(string s = "") { ios_base::sync_with_st...
/***********************/ // the_authur : helolololololololo // /***********************/ #include <bits/stdc++.h> using namespace std; namespace IO { void setIn(string s) { freopen(s.c_str(), "r", stdin); } void setOut(string s) { freopen(s.c_str(), "w", stdout); } void setIO(string s = "") { ios_base::sync_with_st...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
1,304