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 <algorithm>
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
long long int A, B, C, D, AB, CD, ans;
cin >> a >> b >> c >> d;
A = a * c;
B = b * d;
C = c * b;
D = d * a;
AB = max(A, B);
CD = max(C, D);
ans = max(AB, CD);
cout << ans;
} | #include <algorithm>
#include <cmath>
#include <iostream>
using namespace std;
int main() {
long long int a, b, c, d;
long long int A, B, C, D, AB, CD, ans;
cin >> a >> b >> c >> d;
A = a * c;
B = b * d;
C = c * b;
D = d * a;
AB = max(A, B);
CD = max(C, D);
ans = max(AB, CD);
cout << ans;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 107 |
#include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
long long a, b, c, d, x, y, max1;
int main() {
scanf("%lld%lld%lld%lld", &a, &b, &c, &d);
max1 = max(max(a * b, a * c), max(b * c, b * d));
printf("%lld", max1);
return 0;
} | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
long long a, b, c, d, x, y, max1;
int main() {
scanf("%lld%lld%lld%lld", &a, &b, &c, &d);
max1 = max(max(a * c, a * d), max(b * c, b * d));
printf("%lld", max1);
return 0;
} | [["-", 3, 4, 0, 2, 3, 4, 0, 16, 12, 22], ["+", 3, 4, 0, 2, 3, 4, 0, 16, 12, 22]] | 1 | 90 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll ans = -1e-18 - 1;
ans = max(ans, a * c);
ans = max(ans, a * d);
ans = max(ans, b * c);
ans = max(ans, b * d);
cout << ans << endl... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll ans = -9223372036854775807;
ans = max(ans, a * c);
ans = max(ans, a * d);
ans = max(ans, b * c);
ans = max(ans, b * d);
cout << a... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 31, 13], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 105 |
a,b,c,d = list(map(int,input().split()))
max = a*c
if max < a*d:
max = a*d
if max < b*c:
max = b*c
if max < b*d:
max < b*d
print(max) | a,b,c,d = list(map(int,input().split()))
max = a*c
if max < a*d:
max = a*d
if max < b*c:
max = b*c
if max < b*d:
max = b*d
print(max) | [["-", 0, 57, 64, 196, 0, 1, 0, 666, 667, 18], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 0, 32]] | 5 | 68 |
a, b, c, d = map(int, input().split())
x_max = max(a, b)
x_min = min(a, b)
y_max = max(c, d)
y_min = min(c, d)
ans = max(x_max * y_max, x_max * x_min, x_min * y_max, x_min * y_min)
if (x_max >= 0 and x_min <= 0) or (y_max >= 0 and y_min <= 0):
ans = max(ans, 0)
print(ans) | a, b, c, d = map(int, input().split())
x_max = max(a, b)
x_min = min(a, b)
y_max = max(c, d)
y_min = min(c, d)
ans = max(x_max * y_max, x_max * y_min, x_min * y_max, x_min * y_min)
if (x_max >= 0 and x_min <= 0) or (y_max >= 0 and y_min <= 0):
ans = max(ans, 0)
print(ans) | [["-", 0, 662, 12, 652, 3, 4, 0, 657, 12, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 22]] | 5 | 105 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, ans;
cin >> a >> b >> c >> d;
ans = a * c;
if (ans < a * d) {
ans = a * d;
}
if (ans < b * c) {
ans = b * c;
}
if (ans < b * d) {
ans = b * d;
}
cout << ans;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b, c, d, ans;
cin >> a >> b >> c >> d;
ans = a * c;
if (ans < a * d) {
ans = a * d;
}
if (ans < b * c) {
ans = b * c;
}
if (ans < b * d) {
ans = b * d;
}
cout << ans;
return 0;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 94 |
#include <bits/stdc++.h>
using namespace std;
#define ld long double
#define pb push_back
#define mp make_pair
#define fi(i, start, end) for (int i = start; i < end; ++i)
#define Fastio \
ios_base::sync_with_stdio(false); ... | #include <bits/stdc++.h>
using namespace std;
#define ld long double
#define pb push_back
#define mp make_pair
#define fi(i, start, end) for (int i = start; i < end; ++i)
#define Fastio \
ios_base::sync_with_stdio(false); ... | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 103 |
#include <stdio.h>
int main() {
long long a, b, c, d, max;
scanf("%lld %lld %lld %lld", a, b, c, d);
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", max);
return 0;
} | #include <stdio.h>
int main() {
long long a, b, c, d, max;
scanf("%lld %lld %lld %lld", &a, &b, &c, &d);
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", max);
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 95 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = a * c, y = a * d, j = b * c, k = b * d;
cout << max(x, max(y, max(j, k))) << 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 x = a * c, y = a * d, j = b * c, k = b * d;
cout << max(x, max(y, max(j, k))) << endl;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 80 |
#include <bits/stdc++.h>
#include <cmath>
#include <math.h>
#define fio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);... | #include <bits/stdc++.h>
#include <cmath>
#include <math.h>
#define fio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 115 |
#include <iostream>
using namespace std;
int main() {
long long a, b, c, d;
cin >> a;
cin >> b;
cin >> c;
cin >> 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;
}
cout << max << endl;
} | #include <iostream>
using namespace std;
int main() {
long long a, b, c, d;
cin >> a;
cin >> b;
cin >> c;
cin >> 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 << endl;
} | [["-", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["-", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]] | 1 | 102 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, c, d;
cin >> a >> b >> c >> d;
int a1 = max(a * c, a * d);
int a2 = max(b * c, b * d);
cout << max(a1, a2);
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, c, d;
cin >> a >> b >> c >> d;
long long a1 = max(a * c, a * d);
long long a2 = max(b * c, b * d);
cout << max(a1, a2);
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 72 |
#include <stdio.h>
int main(void) {
long a, b, c, d;
scanf("%ld%ld%ld%ld", &a, &b, &c, &d);
long calc[] = {a * c, a * d, b * c, b * d};
long ret = calc[0];
for (int i = 0; i < 4; i++) {
if (ret < calc) {
ret = calc;
}
}
printf("%ld\n", ret);
return 0;
} | #include <stdio.h>
int main(void) {
long a, b, c, d;
scanf("%ld%ld%ld%ld", &a, &b, &c, &d);
long calc[] = {a * c, a * d, b * c, b * d};
long ret = calc[0];
for (int i = 0; i < 4; i++) {
if (ret < calc[i]) {
ret = calc[i];
}
}
printf("%ld\n", ret);
return 0;
}
| [["+", 0, 57, 15, 23, 0, 16, 12, 69, 0, 70], ["+", 0, 57, 15, 23, 0, 16, 12, 69, 71, 22], ["+", 0, 57, 15, 23, 0, 16, 12, 69, 0, 73], ["+", 64, 9, 0, 1, 0, 11, 12, 69, 0, 70], ["+", 64, 9, 0, 1, 0, 11, 12, 69, 71, 22], ["+", 64, 9, 0, 1, 0, 11, 12, 69, 0, 73]] | 0 | 109 |
a,b,c,d=input().split()
a=int(a)
b=int(b)
c=int(c)
d=int(d)
list1=[]
list1.append(a*c)
list1.append(a*d)
list1.append(b*c)
list1.append(b*c)
list1.sort()
print(list1[3]) | a,b,c,d=input().split()
a=int(a)
b=int(b)
c=int(c)
d=int(d)
list1=[]
list1.append(a*c)
list1.append(a*d)
list1.append(b*c)
list1.append(b*d)
list1.sort()
print(list1[3]) | [["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]] | 5 | 87 |
/* Jai Shree Ram
ॐ नमो भगवते वासुदेवाय नमः*/
#include <bits/stdc++.h>
#define endl "\n"
#define FIXED_FLOAT(x, pres) std::fixed << std::setprecision(pres) << (x)
#define pb push_back
#define all(a) a.begin(), a.end()
using namespace std;
typedef long long ll;
template <typename T> class Range {
public:
Range(const ... | /* Jai Shree Ram
ॐ नमो भगवते वासुदेवाय नमः*/
#include <bits/stdc++.h>
#define endl "\n"
#define FIXED_FLOAT(x, pres) std::fixed << std::setprecision(pres) << (x)
#define pb push_back
#define all(a) a.begin(), a.end()
using namespace std;
typedef long long ll;
template <typename T> class Range {
public:
Range(const ... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 30, 0, 14, 8, 9, 0, 338, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 338, 39, 78], ["-", 8, 9, 0, 338, 8, 9, 0, 338, 39, 40], ["+", 8, 9, 0, 338, 8, 9, 0, 338, 39, 78]] | 1 | 628 |
a,b,c,d = map(int,input().split())
res1 = a*c
res2 = a*d
res3 = b*c
res4 = c*d
x =[]
y =[]
z =[]
l =[]
x.append(res1)
y.append(res2)
z.append(res3)
l.append(res4)
res0 = x+y+z+l
m = max(res0)
print(m) | a,b,c,d = map(int,input().split())
res1 = a*c
res2 = a*d
res3 = b*c
res4 = b*d
x =[]
y =[]
z =[]
l =[]
x.append(res1)
y.append(res2)
z.append(res3)
l.append(res4)
res0 = x+y+z+l
m = max(res0)
print(m)
| [["-", 0, 656, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 31, 22]] | 5 | 99 |
arr = list(map(int,input().split()))
for i in range(2):
for j in range(2,4):
if i == 0:
ans = arr[i]*arr[j]
else:
ans = max(ans, arr[i]*arr[j])
print(ans) | arr = list(map(int,input().split()))
for i in range(2):
for j in range(2,4):
if i == 0 and j == 2:
ans = arr[i]*arr[j]
else:
ans = max(ans, arr[i]*arr[j])
print(ans) | [["+", 0, 7, 8, 196, 0, 57, 15, 679, 17, 355], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 667, 60], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 0, 612]] | 5 | 73 |
#include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int p = max({(a * c), (a * d), (b * c), (b * d)});
cout << p << endl;
} | #include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main() {
long long int a, b, c, d;
cin >> a >> b >> c >> d;
long long int p = max({(a * c), (a * d), (b * c), (b * d)});
cout << p << endl;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 79 |
a,b,c,d=list(map(int,input().split()))
charo=[a*c,a*d,b*c,b*d]
print(max) | a,b,c,d=list(map(int,input().split()))
charo=[a*c,a*d,b*c,b*d]
print(max(charo))
| [["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 46 |
a,b,c,d=map(int,input().spit())
p=a*c
q=a*d
r=b*c
s=b*d
print(max(p,q,r,s))
| a,b,c,d=map(int,input().split())
p=a*c
q=a*d
r=b*c
s=b*d
print(max(p,q,r,s))
| [["-", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22]] | 5 | 53 |
listA=list(map(int,input().split()))
print(listA)
x_list = []
for i in [0,1]:
x_list.append(listA[i])
y_list = []
for i in [2,3]:
y_list.append(listA[i])
i_list = []
for x in x_list:
for y in y_list:
i_list.append(x*y)
print(max(i_list)) | listA=list(map(int,input().split()))
x_list = []
for i in [0,1]:
x_list.append(listA[i])
y_list = []
for i in [2,3]:
y_list.append(listA[i])
i_list = []
for x in x_list:
for y in y_list:
i_list.append(x*y)
print(max(i_list)) | [["-", 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 | 94 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, f, g, h;
cin >> a >> b >> c >> d;
e = a * c;
f = a * d;
g = b * c;
h = b * d;
cout << max(e, max(f, max(g, h)));
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b, c, d, e, f, g, h;
cin >> a >> b >> c >> d;
e = a * c;
f = a * d;
g = b * c;
h = b * d;
cout << max(e, max(f, max(g, h)));
return 0;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 85 |
#include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ll a, b, c, d;
ll ans;
ll count1 = -100000000000000000000;
cin >> a >> b >> c >> d;
ans = b * d;
count1 = max(count1, ans);
ans = a * d;
count1 = max(count1, ans);
ans = c * d;
count1 = max(count1, ans);
ans = ... | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ll a, b, c, d;
ll ans;
ll count1 = -100000000000000000000;
cin >> a >> b >> c >> d;
ans = b * d;
count1 = max(count1, ans);
ans = a * d;
count1 = max(count1, ans);
ans = c * b;
count1 = max(count1, ans);
ans = ... | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]] | 1 | 108 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
ll a[2], c[2];
cin >> a[0] >> a[1] >> c[0] >> c[1];
ll max = a[0] * c[0];
for (int i = 0; i < 2; i++) {
for (int j = 0; j < 2; j++) {
max = (max < a[i] * a[j] ? a[i... | #include <bits/stdc++.h>
using namespace std;
using ll = long long int;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
ll a[2], c[2];
cin >> a[0] >> a[1] >> c[0] >> c[1];
ll max = a[0] * c[0];
for (int i = 0; i < 2; i++) {
for (int j = 0; j < 2; j++) {
max = (max < a[i] * c[j] ? a[i... | [["-", 0, 41, 15, 16, 12, 16, 12, 69, 28, 22], ["+", 0, 41, 15, 16, 12, 16, 12, 69, 28, 22], ["-", 12, 23, 0, 41, 64, 16, 12, 69, 28, 22], ["+", 12, 23, 0, 41, 64, 16, 12, 69, 28, 22]] | 1 | 150 |
#include <bits/stdc++.h>
#define f(i, a, b) for (ll i = a; i < b; i++)
#define af(i, a, b) for (ll i = a; i >= b; i--)
#define rep(i, a, b, k) for (ll i = a; i < b; i += k)
#define arep(i, a, b, k) for (ll i = a; i >= b; i -= k)
#define ones(x) (ll) __builtin_popcount(x)
#define fs first
#define sc second
#define pb p... | #include <bits/stdc++.h>
#define f(i, a, b) for (ll i = a; i < b; i++)
#define af(i, a, b) for (ll i = a; i >= b; i--)
#define rep(i, a, b, k) for (ll i = a; i < b; i += k)
#define arep(i, a, b, k) for (ll i = a; i >= b; i -= k)
#define ones(x) (ll) __builtin_popcount(x)
#define fs first
#define sc second
#define pb p... | [["-", 31, 16, 12, 2, 3, 4, 0, 16, 31, 22], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 31, 22]] | 1 | 222 |
#include <bits/stdc++.h>
using namespace std;
int main() {
vector<long> A(4);
for (int i = 0; i < 4; i++)
cin >> A.at(i);
priority_queue<long> X;
for (int i = 0; i < 4; i++) {
for (int j = i; j < 4; j++) {
long Y = A.at(i) * A.at(j);
X.push(Y);
}
}
cout << X.top() << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<long> A(4);
for (int i = 0; i < 4; i++)
cin >> A.at(i);
priority_queue<long> X;
for (int i = 0; i < 2; i++) {
for (int j = 2; j < 4; j++) {
long Y = A.at(i) * A.at(j);
X.push(Y);
}
}
cout << X.top() << endl;
}
| [["-", 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 | 116 |
/* � Ashiq Uddin Pranto
Department of Computer Science and Engineering
BATCH 27
University Of Rajshahi,Bangladesh
*/
#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define FOR(x, y) for (ll i = x; i <= y; i++)
#define pb(x) push_back(x)
#define mp make_pair
#define pii pair<int, int>
#de... | /* � Ashiq Uddin Pranto
Department of Computer Science and Engineering
BATCH 27
University Of Rajshahi,Bangladesh
*/
#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define FOR(x, y) for (ll i = x; i <= y; i++)
#define pb(x) push_back(x)
#define mp make_pair
#define pii pair<int, int>
#de... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 291 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, num1, num2, num3, num4, num5, num6;
cin >> a >> b >> c >> d;
num1 = a * c;
num2 = a * d;
num3 = b * c;
num4 = b * d;
if (num1 > num2) {
num5 = num1;
} else {
num5 = num2;
}
if (num3 > num4) {
num6 = num3;
} els... | #include <bits/stdc++.h>
using namespace std;
int main() {
long int a, b, c, d, num1, num2, num3, num4, num5, num6;
cin >> a >> b >> c >> d;
num1 = a * c;
num2 = a * d;
num3 = b * c;
num4 = b * d;
if (num1 > num2) {
num5 = num1;
} else {
num5 = num2;
}
if (num3 > num4) {
num6 = num3;
... | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 124 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rapido \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.ti... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define rapido \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.ti... | [["+", 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], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 1 | 145 |
a,b,c,d=map(int,input().split())
x=[]
x.append(max(a,b)*max(c,d))
x.append(max(a,b)*min(c,d))
x.append(min(a,b)*max(c,d))
x.append(min(a,b)*max(c,d))
print(max(x)) | a,b,c,d=map(int,input().split())
x=[]
x.append(max(a,b)*max(c,d))
x.append(max(a,b)*min(c,d))
x.append(min(a,b)*max(c,d))
x.append(min(a,b)*min(c,d))
print(max(x)) | [["-", 0, 652, 3, 4, 0, 657, 12, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 657, 12, 652, 63, 22]] | 5 | 103 |
#include <iostream>
using namespace std;
int main() {
long long int a, b, c, d;
cin >> a >> b >> c >> d;
long long int x[4];
x[0] = a * c;
x[1] = a * d;
x[2] = b * c;
x[3] = b * d;
int max = x[0];
for (int i = 1; i < 4; i++) {
if (x[i] > max)
max = x[i];
}
cout << max << endl;
} | #include <iostream>
using namespace std;
int main() {
long long int a, b, c, d;
cin >> a >> b >> c >> d;
long long int x[4];
x[0] = a * c;
x[1] = a * d;
x[2] = b * c;
x[3] = b * d;
long long int max = x[0];
for (int i = 1; i < 4; i++) {
if (x[i] > max) {
max = x[i];
}
}
cout << ... | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 123 |
#include <stdio.h>
int main() {
long long int a, b, c, d;
scanf("%lld %lld %lld %lld", &a, &b, &c, &d);
long long int ans = 0LL;
if (ans < a * c)
ans = a * c;
if (ans < b * c)
ans = b * c;
if (ans < a * d)
ans = a * d;
if (ans < b * d)
ans = b * d;
printf("%lld\n", ans);
return 0;
} | #include <stdio.h>
int main() {
long long int a, b, c, d;
scanf("%lld %lld %lld %lld", &a, &b, &c, &d);
long long int ans = a * c;
if (ans < a * c)
ans = a * c;
if (ans < b * c)
ans = b * c;
if (ans < a * d)
ans = a * d;
if (ans < b * d)
ans = b * d;
printf("%lld\n", ans);
return 0;
} | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 31, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 48], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 0 | 114 |
#include <stdio.h>
int main() {
long long int a, b, c, d;
scanf("%lld %lld %lld %lld\n", &a, &b, &c, &d);
long long int num = a * c;
if (b * c > num) {
num = b * c;
} else if (a * d > num) {
num = a * d;
} else if (b * d > num) {
num = b * d;
}
printf("%lld", num);
return 0;
}
| #include <stdio.h>
int main() {
long long int a, b, c, d;
scanf("%lld %lld %lld %lld\n", &a, &b, &c, &d);
long long int num = a * c;
if (b * c > num) {
num = b * c;
}
if (a * d > num) {
num = a * d;
}
if (b * d > num) {
num = b * d;
}
printf("%lld", num);
}
| [["-", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["-", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]] | 1 | 110 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
vector<long long> multi(4);
multi.at(0) = a * c;
multi.at(1) = a * d;
multi.at(2) = b * c;
multi.at(3) = b * d;
sort(multi.begin(), multi.end());
reverse(multi.begin(), multi.end());
cout << mul... | #include <bits/stdc++.h>
using namespace std;
int main() {
long a, b, c, d;
cin >> a >> b >> c >> d;
vector<long long> multi(4);
multi.at(0) = a * c;
multi.at(1) = a * d;
multi.at(2) = b * c;
multi.at(3) = b * d;
sort(multi.begin(), multi.end());
reverse(multi.begin(), multi.end());
cout << mu... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 126 |
a,b,c,d=map(int,input().split())
m = list()
list.append(a*c)
list.append(a*d)
list.append(b*c)
list.append(b*d)
print(max(m))
| a,b,c,d=map(int,input().split())
m = list()
m.append(a*c)
m.append(a*d)
m.append(b*c)
m.append(b*d)
print(max(m))
| [["-", 0, 656, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 500, 22]] | 5 | 64 |
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef pair<LL, LL> PII;
// chmax, chmin
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return 1;
}
retur... | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef pair<LL, LL> PII;
// chmax, chmin
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return 1;
}
retur... | [["-", 3, 4, 0, 2, 3, 4, 0, 16, 31, 22], ["+", 3, 4, 0, 2, 3, 4, 0, 16, 31, 22]] | 1 | 612 |
#include <bits/stdc++.h>
#define ll long long int
#define ul unsigned long long int
#define mp make_pair
#define endl "\n"
#define fio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define lb lower_b... | #include <bits/stdc++.h>
#define ll long long int
#define ul unsigned long long int
#define mp make_pair
#define endl "\n"
#define fio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define lb lower_b... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 78], ["+", 0, 43, 39, 344, 3, 347, 0, 77, 39, 78], ["-", 0, 2, 63, 346, 3, 347, 0, 77, 39, 78], ["+", 0, 2, 63, 346, 3, 347, 0, 77, 39, 78]] | 1 | 214 |
inp = list(map(int,input().split()))
ans = []
for i in range(4):
for j in range(i+1,4):
ans.append(inp[i] * inp[j])
print(max(ans)) | inp = list(map(int,input().split()))
ans = []
for i in range(2):
for j in range(2,4):
ans.append(inp[i] * inp[j])
print(max(ans)) | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 31, 22], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 62 |
a,b,c,d = map(int, input().split())
l = []
l.append(a*c)
l.append(a*d)
l.append(b*c)
l.append(b*d)
l.sort()
print(l)
print(max(l)) | a,b,c,d = map(int, input().split())
l = []
l.append(a*c)
l.append(a*d)
l.append(b*c)
l.append(b*d)
l.sort()
print(max(l)) | [["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24]] | 5 | 72 |
// Work should be challenging and challange should be fun
#include <bits/stdc++.h>
using namespace std;
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define pb push_back
#define ll long long
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define rep(i, ... | // Work should be challenging and challange should be fun
#include <bits/stdc++.h>
using namespace std;
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define pb push_back
#define ll long long
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define rep(i, ... | [["-", 0, 11, 12, 2, 3, 4, 0, 16, 12, 22], ["+", 0, 11, 12, 2, 3, 4, 0, 16, 12, 22]] | 1 | 353 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
typedef long long ll;
int main() {
ll a, b, c, d;
scanf("%lld %lld %lld %lld", &a, &b, &c, &d);
ll r1 = a * b, r2 = a * c, r3 = b * c, r4 = b * d;
ll res = max(max(max(r1, r2), r3), r4);
printf("%lld\n", res);
... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
typedef long long ll;
int main() {
ll a, b, c, d;
scanf("%lld %lld %lld %lld", &a, &b, &c, &d);
ll r1 = a * c, r2 = a * d, r3 = b * c, r4 = b * d;
ll res = max(max(max(r1, r2), r3), r4);
printf("%lld\n", res);
... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 1 | 109 |
#include <stdio.h>
#include <stdlib.h>
int main() {
long long int a, b, c, d;
long long int ans;
scanf("%lld %lld %lld %lld", &a, &b, &c, &d);
ans = a * c;
long long int ans2 = a * d;
long long int ans3 = b * c;
long long int ans4 = b * d;
if (ans2 < ans) {
ans = ans2;
}
if (ans3 < ans) {
a... | #include <stdio.h>
#include <stdlib.h>
int main() {
long long int a, b, c, d;
long long int ans;
scanf("%lld %lld %lld %lld", &a, &b, &c, &d);
ans = a * c;
long long int ans2 = a * d;
long long int ans3 = b * c;
long long int ans4 = b * d;
if (ans2 > ans) {
ans = ans2;
}
if (ans3 > ans) {
a... | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47]] | 0 | 123 |
#include <bits/stdc++.h>
using namespace std;
long long max(long long a, long long b) {
if (a > b)
return a;
else if (a < b)
return b;
return a;
}
int main() {
long long a, b, c, d;
cin >> a >> b >> c >> d;
int ans = -1e9;
ans = max(a * c, b * d);
ans = max(ans, a * d);
ans = max(ans, b * ... | #include <bits/stdc++.h>
using namespace std;
long long max(long long a, long long b) {
if (a > b)
return a;
else if (a < b)
return b;
return a;
}
int main() {
long long a, b, c, d;
cin >> a >> b >> c >> d;
long long ans = -1e9;
ans = max(a * c, b * d);
ans = max(ans, a * d);
ans = max(ans... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 115 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d, x, y, z, t;
cin >> a >> b >> c >> d;
x = a * c;
y = a * d;
z = b * c;
t = b * d;
cout << max(x, max(y, max(z, t)));
} | #include <iostream>
using namespace std;
int main() {
long long a, b, c, d, x, y, z, t;
cin >> a >> b >> c >> d;
x = a * c;
y = a * d;
z = b * c;
t = b * d;
cout << max(x, max(y, max(z, t)));
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 82 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
long long ac, ad, bc, bd, m;
ac = a * c;
ad = a * d;
bc = b * c;
bd = b * d;
m = ac;
m = max(m, ad);
m = max(m, bc);
m = max(m, bd);
cout << m << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, c, d;
cin >> a >> b >> c >> d;
long long ac, ad, bc, bd, m;
ac = a * c;
ad = a * d;
bc = b * c;
bd = b * d;
m = ac;
m = max(m, ad);
m = max(m, bc);
m = max(m, bd);
cout << m << endl;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 104 |
#include <bits/stdc++.h>
using namespace std;
#define A(x) (x).begin(), (x).end()
#define sz(x) ((int)(x).size())
void _read();
#define int long long
main() {
_read();
int a, b, c, d;
cin >> a >> b >> c >> d;
int ans = a * c;
for (int x : {a, b}) {
for (int y : {c, d}) {
ans = max({ans, x * y, 0LL... | #include <bits/stdc++.h>
using namespace std;
#define A(x) (x).begin(), (x).end()
#define sz(x) ((int)(x).size())
void _read();
#define int long long
main() {
_read();
int a, b, c, d;
cin >> a >> b >> c >> d;
int ans = a * c;
for (int x : {a, b}) {
for (int y : {c, d}) {
ans = max({ans, x * y});
... | [["-", 0, 11, 12, 2, 3, 4, 0, 83, 0, 21], ["-", 0, 11, 12, 2, 3, 4, 0, 83, 0, 13]] | 1 | 150 |
#include <bits/stdc++.h>
using namespace std;
// 5
int main() {
int a, b, c, d, x, y, w, z;
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;
// 5
int main() {
long a, b, c, d, x, y, w, z;
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 | 69 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
int P1, P2, P3, P4;
cin >> a >> b >> c >> d;
P1 = a * c;
P2 = a * d;
P3 = b * c;
P4 = b * d;
cout << max(max(P1, P2), max(P3, P4)) << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, c, d;
long long P1, P2, P3, P4;
cin >> a >> b >> c >> d;
P1 = a * c;
P2 = a * d;
P3 = b * c;
P4 = b * d;
cout << max(max(P1, P2), max(P3, P4)) << 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 <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
typedef long long ll;
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;
#define rep(i, n) for (int i = 0; i < (n); i++)
typedef long long ll;
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;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 73 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
typedef long long ll;
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
cout << max({a * c, a * d, b * c, c * d}) << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
typedef long long ll;
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
cout << max({a * c, a * d, b * c, b * d}) << endl;
} | [["-", 12, 2, 3, 4, 0, 83, 0, 16, 31, 22], ["+", 12, 2, 3, 4, 0, 83, 0, 16, 31, 22]] | 1 | 69 |
a,b,c,d=(int(x) for x in input().split())
ac=a*c
ad=a*d
bc=b*c
bd=b*d
if(ac>ad):
if(ac>bc):
if(ac>bd):
print(ac)
else:
print(bd)
else:
if(bc>bd):
print(bd)
else:
print(bd)
else:
if(ad>bc):
if(ad>bd):
print(a... | a,b,c,d=(int(x) for x in input().split())
ac=a*c
ad=a*d
bc=b*c
bd=b*d
if(ac>ad):
if(ac>bc):
if(ac>bd):
print(ac)
else:
print(bd)
else:
if(bc>bd):
print(bc)
else:
print(bd)
else:
if(ad>bc):
if(ad>bd):
print(a... | [["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22]] | 5 | 139 |
#include <cstring>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b, c, d, ans, ab, bc, cd, ad, bd, ac;
cin >> a >> b >> c >> d;
bc = b * c;
ac = a * c;
ad = a * d;
bd = b * d;
ans = bc;
if (ac > ans) {
ans = ac;
}
if (ad > ans) {
ans = ad;
... | #include <cstring>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
long long a, b, c, d, ans, bc, ad, bd, ac;
cin >> a >> b >> c >> d;
bc = b * c;
ac = a * c;
ad = a * d;
bd = b * d;
ans = bc;
if (ac > ans) {
ans = ac;
}
if (ad > ans) {
ans = ad;
... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21]] | 1 | 122 |
#include <algorithm>
#include <bits/stdc++.h>
#include <cstdio>
#include <iostream>
#include <math.h>
#include <queue>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using namespace std;
using P = pair<int, int>;
int main() {
ll a, b, c, d;
cin >> a >> b >... | #include <algorithm>
#include <bits/stdc++.h>
#include <cstdio>
#include <iostream>
#include <math.h>
#include <queue>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using namespace std;
using P = pair<int, int>;
int main() {
ll a, b, c, d;
cin >> a >> b >... | [["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20], ["-", 15, 339, 51, 16, 31, 16, 31, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 20]] | 1 | 174 |
#include <bits/stdc++.h>
#define io \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define N 10000
#define nl "\n"
#define f first
#define s second
#define pi acos(-1.0)
#define MOD 1000000007
#defi... | #include <bits/stdc++.h>
#define io \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define N 10000
#define nl "\n"
#define f first
#define s second
#define pi acos(-1.0)
#define MOD 1000000007
#defi... | [["-", 0, 43, 49, 50, 51, 2, 3, 4, 0, 22], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 22]] | 1 | 138 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, m) for (int i = 0; i < (int)(m); i++)
int main() {
long long a, b, c, d;
cin >> a >> b >> c >> d;
long long max;
max = 0;
if (a * c > max) {
max = a * c;
}
if (a * d > max) {
max = a * d;
}
if (b * c > max) {
max = b * c;
}
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, m) for (int i = 0; i < (int)(m); i++)
int main() {
long long a, b, c, d;
cin >> a >> b >> c >> d;
long long max = -1e30;
if (a * c > max) {
max = a * c;
}
if (a * d > max) {
max = a * d;
}
if (b * c > max) {
max = b * c;
}
if... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 116 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;
using p = pair<int, int>;
using ll = long long;
int main() {
double a, b, c, d;
cin >> a >> b >> c >> d;
double z;
double max_value = a * c;
z = a * d;
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;
using p = pair<int, int>;
using ll = long long;
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll z;
ll max_value = a * c;
z = a * d;
max_value = ... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 129 |
#include <bits/stdc++.h>
#define lln long long int
#define llu unsigned lln
#define sc(n) scanf("%d", &n);
#define scl(n) scanf("%lld", &n);
#define scd(n) scanf("%lf", &n);
#define pf(res) printf("%d\n", res);
#define pfl(res) printf("%lld\n", res);
#define pfd(res) printf("%lf\n", res);
#define pb(n) push_back(n);
#... |
#include <bits/stdc++.h>
#define lln long long int
#define llu unsigned lln
#define sc(n) scanf("%d", &n);
#define scl(n) scanf("%lld", &n);
#define scd(n) scanf("%lf", &n);
#define pf(res) printf("%d\n", res);
#define pfl(res) printf("%lld\n", res);
#define pfd(res) printf("%lf\n", res);
#define pb(n) push_back(n);
#... | [["-", 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 | 730 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
using namespace std;
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll ac, ad, bc, bd, max;
ac = a * c;
ad = a * d;
bc = b * d;
bd = b * d;
max = ac;
if (max < ad) {
max = ad;
}
if (max < ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
using namespace std;
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll ac, ad, bc, bd, max;
ac = a * c;
ad = a * d;
bc = b * c;
bd = b * d;
max = ac;
if (max < ad) {
max = ad;
}
if (max < ... | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]] | 1 | 126 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
int main() {
ll a, b, c, d;
ll max = -1000000000000000001;
cin >> a >> b >> c >> d;
max = a * c;
if (max < a * d)
max = a * d;
else if (max < b * c)
max = b * c;
else if (max < b... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
int main() {
ll a, b, c, d;
ll max = -1000000000000000001;
cin >> a >> b >> c >> d;
max = a * c;
if (max < a * d)
max = a * d;
if (max < b * c)
max = b * c;
if (max < b * d)
... | [["-", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["-", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]] | 1 | 108 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d; /*a<=x<=b,c<=y<=d*/
int ac, ad, bc, bd;
cin >> a >> b >> c >> d;
ac = a * c;
ad = a * d;
bc = b * c;
bd = b * d;
if (ac >= ad && ac >= bc && ac >= bd && ac >= 0) {
cout << ac << endl;
} else if (ad >= ac && ad >= bc && ad >= b... | #include <iostream>
using namespace std;
int main() {
long a, b, c, d; /*a<=x<=b,c<=y<=d*/
long ac, ad, bc, bd;
cin >> a >> b >> c >> d;
ac = a * c;
ad = a * d;
bc = b * c;
bd = b * d;
if (ac >= ad && ac >= bc && ac >= bd && ac >= 0) {
cout << ac << endl;
} else if (ad >= ac && ad >= bc && ad >=... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 292 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, ac, ad, bc, bd;
cin >> a >> b >> c >> d;
ac = a * c;
ad = a * d;
bc = b * c;
bd = b * d;
cout << max(ac, max(ad, max(bc, bd)));
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, c, d, ac, ad, bc, bd;
cin >> a >> b >> c >> d;
ac = a * c;
ad = a * d;
bc = b * c;
bd = b * d;
cout << max(ac, max(ad, max(bc, bd)));
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 85 |
#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c, d, A, B, C, D;
cin >> a >> b >> c >> d;
A = a * c;
B = a * d;
C = b * c;
D = b * d;
cout << max({A, B, C, D});
return 0;
} | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
long int a, b, c, d, A, B, C, D;
cin >> a >> b >> c >> d;
A = a * c;
B = a * d;
C = b * c;
D = b * d;
cout << max({A, B, C, D});
return 0;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 85 |
#include <bits/stdc++.h>
#define int long long
using namespace std;
signed main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
cout << max(max(b * d, a * c), max(a * c, b * d)) << '\n';
} | #include <bits/stdc++.h>
#define int long long
using namespace std;
signed main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
cout << max(max(b * d, a * c), max(a * d, b * c)) << '\n';
} | [["-", 3, 4, 0, 2, 3, 4, 0, 16, 12, 22], ["+", 3, 4, 0, 2, 3, 4, 0, 16, 12, 22]] | 1 | 65 |
#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 << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b, c, d;
cin >> a >> b >> c >> d;
long long 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 << endl;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 86 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll e = a * c;
ll f = a * d;
ll g = b * e;
ll h = b * f;
ll A = max(e, f);
ll B = max(g, h);
cout << max(A, B) << endl;
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll e = a * c;
ll f = a * d;
ll g = b * c;
ll h = b * d;
ll A = max(e, f);
ll B = max(g, h);
cout << max(A, B) << endl;
}
| [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 1 | 104 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef vector<int> vi;
#if !defined(M_PI)
#define M_E 2.71828182845904523536
#define M_LOG2E 1.44269504088896340736
#define M_LOG10E 0.434294481903251827651
#define M_LN2 0.693147180559945309417
#d... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef vector<int> vi;
#if !defined(M_PI)
#define M_E 2.71828182845904523536
#define M_LOG2E 1.44269504088896340736
#define M_LOG10E 0.434294481903251827651
#define M_LN2 0.693147180559945309417
#d... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 377 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b, c, d;
cin >> a >> b >> c >> d;
long long int u = a * c;
long long int v = a * d;
long long int w = b * c;
long long int x = b * c;
cout << max({u, v, w, x});
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b, c, d;
cin >> a >> b >> c >> d;
long long int u = a * c;
long long int v = a * d;
long long int w = b * c;
long long int x = b * d;
cout << max({u, v, w, x});
}
| [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 1 | 84 |
#include <bits/stdc++.h>
using namespace std;
double pi = 3.14159265358979323846264338;
inline void ex() {
cout << "NO" << endl;
exit(0);
}
long long a, b, c, d;
int main() {
cin >> a >> b >> c >> d;
long long n = a * c;
n = min(n, a * d);
n = min(n, b * c);
n = min(n, b * d);
cout << n << endl;
re... |
#include <bits/stdc++.h>
using namespace std;
double pi = 3.14159265358979323846264338;
inline void ex() {
cout << "NO" << endl;
exit(0);
}
long long a, b, c, d;
int main() {
cin >> a >> b >> c >> d;
long long n = a * c;
n = max(n, a * d);
n = max(n, b * c);
n = max(n, b * d);
cout << n << endl;
re... | [["-", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22]] | 1 | 107 |
#ifdef LOCAL
#include <header.hpp>
#else
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/priority_queue.hpp>
#endif
#define lp(i, l, r) for (auto i = regu(l); i <= decltype(i)(r); ++i)
#define rp(i, r, l) for (auto i = regu(r); i >= decltype(i)(l); --i)
#define lv(i, a) for (int i ... | #ifdef LOCAL
#include <header.hpp>
#else
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/priority_queue.hpp>
#endif
#define lp(i, l, r) for (auto i = regu(l); i <= decltype(i)(r); ++i)
#define rp(i, r, l) for (auto i = regu(r); i >= decltype(i)(l); --i)
#define lv(i, a) for (int i ... | [["-", 3, 4, 0, 2, 3, 4, 0, 191, 39, 78], ["+", 3, 4, 0, 2, 3, 4, 0, 191, 39, 78]] | 1 | 3,284 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
using vl = vector<ll>;
using vvl = vector<vl>;
#define mp make_pair
#define pb push_back
#define _overload3(_1, _2, _3, name, ...) name
#define _rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for (int i = int(a); i < int(b); i+... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
using vl = vector<ll>;
using vvl = vector<vl>;
#define mp make_pair
#define pb push_back
#define _overload3(_1, _2, _3, name, ...) name
#define _rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for (int i = int(a); i < int(b); i+... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 557 |
a, b, c, d = map(int, input().split())
A = a*c
B = a*d
C = b*c
D = b*d
max([A, B, C, D]) | a, b, c, d = map(int, input().split())
A = a*c
B = a*d
C = b*c
D = b*d
print(max([A, B, C, D])) | [["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 52 |
#include <iostream>
using namespace std;
int main() {
unsigned long a, b, c, d;
cin >> a >> b >> c >> d;
unsigned long aa, bb, cc, dd;
aa = a * c;
bb = b * c;
dd = a * d;
cc = b * d;
cout << max(aa, max(bb, max(cc, dd)));
} | #include <iostream>
using namespace std;
int main() {
long a, b, c, d;
cin >> a >> b >> c >> d;
long aa, bb, cc, dd;
aa = a * c;
bb = b * c;
dd = a * d;
cc = b * d;
cout << max(aa, max(bb, max(cc, dd)));
} | [["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 87]] | 1 | 85 |
a, b, c, d = map(int, input().split())
ans1 = a*c
ans2 = a*d
ans3 = b*c
ans4 = b*d
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)) | [["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 50 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define m 1000000007
/*ll binpow(ll a,ll b,ll mod)
{
ll res=1;
a%=mod;
while (b > 0)
{
if(b & 1)
{
res = (res * a)%mod;
}
a=(a*a)%mod;
b >>= 1;
}
return res;
}*/
int main... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define m 1000000007
/*ll binpow(ll a,ll b,ll mod)
{
ll res=1;
a%=mod;
while (b > 0)
{
if(b & 1)
{
res = (res * a)%mod;
}
a=(a*a)%mod;
b >>= 1;
}
return res;
}*/
int main... | [["-", 31, 23, 0, 16, 31, 23, 0, 16, 12, 22], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 12, 22], ["-", 12, 23, 0, 16, 31, 23, 0, 16, 31, 22], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 31, 22]] | 1 | 143 |
#include <bits/stdc++.h>
#include <chrono>
#include <ext/pb_ds/assoc_container.hpp>
#define pb push_back
#define INF 0x3f3f3f3f
#define LINF 0x3f3f3f3f3f3f3f3f
#define endl '\n'
#define ll long long
#define f first
#define fin cin
#define fout cout
#define s second
#define FAST cin.tie(0), cout.tie(0), ios::sync_with_s... | #include <bits/stdc++.h>
#include <chrono>
#include <ext/pb_ds/assoc_container.hpp>
#define pb push_back
#define INF 0x3f3f3f3f
#define LINF 0x3f3f3f3f3f3f3f3f
#define endl '\n'
#define ll long long
#define f first
#define fin cin
#define fout cout
#define int long long
#define s second
#define FAST cin.tie(0), cout.ti... | [["+", 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 | 283 |
#include <bits/stdc++.h>
using namespace std;
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define fr(i, a, b) for (int i = (a), _b = (b); i <= _b; i++)
#define rep(i, n) for (int i = 0... | #include <bits/stdc++.h>
using namespace std;
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define fr(i, a, b) for (int i = (a), _b = (b); i <= _b; i++)
#define rep(i, n) for (int i = 0... | [["-", 0, 11, 12, 2, 3, 4, 0, 16, 12, 22], ["+", 0, 11, 12, 2, 3, 4, 0, 16, 12, 22]] | 1 | 221 |
#include <bits/stdc++.h>
using namespace std;
// typedef
typedef long long ll;
typedef pair<int, int> PII;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<bool> VB;
typedef vector<VB> VVB;
typedef vector<string> VS;
// repetition
#define FOR(i, a, b) for (int i = int(a); i < int(b); ++i)
#define FORD(i, ... | #include <bits/stdc++.h>
using namespace std;
// typedef
typedef long long ll;
typedef pair<int, int> PII;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<bool> VB;
typedef vector<VB> VVB;
typedef vector<string> VS;
// repetition
#define FOR(i, a, b) for (int i = int(a); i < int(b); ++i)
#define FORD(i, ... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 14, 8, 9, 0, 43, 39, 344, 141, 78], ["+", 8, 9, 0, 43, 39, 344, 3, 347, 0, 18], ["+", 0, 43, 39, 344, 3, 347, 0, 77, 39, 78], ["+", 8, 9, 0, 43, 39, 344, 3, 347, 0, 47]] | 1 | 240 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int compare(const void *a, const void *b) { return *(int *)a - *(int *)b; }
int main() {
long long int n, t, x, a, b, c, d, ans = 0, r[200010] = {0};
char s[1000], T[1000];
scanf("%lld%lld%lld%lld", &a, &b, &c, &d);
// scanf("%s", T);
// for (int i ... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int compare(const void *a, const void *b) { return *(int *)a - *(int *)b; }
int main() {
long long int n, t, x, a, b, c, d, ans = 0, r[200010] = {0};
char s[1000], T[1000];
scanf("%lld%lld%lld%lld", &a, &b, &c, &d);
// scanf("%s", T);
// for (int i ... | [["-", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 0 | 175 |
#include <algorithm>
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
ll ans = a * c;
if (ans < a * d)
ans = (ll)a * d;
if (ans < b * c)
ans = (ll)b * c;
if (ans < b * d)
ans = (ll)b * d;
cout << ans << endl;
return 0;
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll ans = a * c;
if (ans < a * d)
ans = (ll)a * d;
if (ans < b * c)
ans = (ll)b * c;
if (ans < b * d)
ans = (ll)b * d;
cout << ans << endl;
return 0;
}
| [["-", 36, 36, 36, 36, 0, 30, 0, 135, 136, 137], ["-", 36, 36, 36, 36, 0, 30, 0, 135, 0, 138], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 106 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl "\n"
#define pb push_back
#define mp make_pair
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
vector<int> v = {a * c, a * d, b * c, b * d};
int mx = *max_element(v.begin(), v.end());
cout << mx;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl "\n"
#define pb push_back
#define mp make_pair
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
vector<ll> v = {a * c, a * d, b * c, b * d};
ll mx = *max_element(v.begin(), v.end());
cout << mx;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 0, 43, 39, 344, 3, 347, 0, 77, 39, 78]] | 1 | 93 |
#include <algorithm>
#include <climits>
#include <cmath>
#include <iostream>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <variant>
#include <vector>
using namespace std;
int main(void) {
long long int dat[4], max = LLONG_MIN;
cin >> dat[0] >> dat[1] >> dat[2] >> dat[3];
for (int ... | #include <algorithm>
#include <climits>
#include <cmath>
#include <iostream>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <variant>
#include <vector>
using namespace std;
int main(void) {
long long int dat[4], max = LLONG_MIN;
cin >> dat[0] >> dat[1] >> dat[2] >> dat[3];
for (int ... | [["-", 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, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 138 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i, (n); ++i)
using ll = long long;
using namespace std;
int sum(int n) {
if (n == 0) {
return 0;
}
int s = sum(n - 1);
return s + n;
}
int main() {
int A, B, C, D;
ll ans = -1000000000000000000... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i, (n); ++i)
using ll = long long;
using namespace std;
int sum(int n) {
if (n == 0) {
return 0;
}
int s = sum(n - 1);
return s + n;
}
int main() {
ll A, B, C, D;
ll ans = -1000000000000000000;... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 158 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
const int MOD = (int)1e9 + 7;
const double PI = 3.14159265358979323846;
template <class T, class U> void chmin(T &t, const U &u) {
if (t > u)
t = u;
}
template <class T, class U> void chmax(T &t, co... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
const int MOD = (int)1e9 + 7;
const double PI = 3.14159265358979323846;
template <class T, class U> void chmin(T &t, const U &u) {
if (t > u)
t = u;
}
template <class T, class U> void chmax(T &t, co... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 176 |
//
// main.c
// atcoder
//
// Created by k20043kk on 2020/09/13.
// Copyright © 2020 AIT. All rights reserved.
//
#include <stdio.h>
int main(int argc, const char *argv[]) {
long long int a, b, c, d;
scanf("%lld %lld %lld %lld", &a, &b, &c, &d);
long long int box[4];
box[0] = a * c;
box[1] = a * d;
bo... | //
// main.c
// atcoder
//
// Created by k20043kk on 2020/09/13.
// Copyright © 2020 AIT. All rights reserved.
//
#include <stdio.h>
int main(int argc, const char *argv[]) {
long long int a, b, c, d;
scanf("%lld %lld %lld %lld", &a, &b, &c, &d);
long long int box[4];
box[0] = a * c;
box[1] = a * d;
bo... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 0 | 153 |
// Stan EXO
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x, y, z, m, f, k;
x = a * c;
y = a * d;
z = b * c;
m = b * d;
f = max(x, y);
k = max(z, m);
cout << max(f, k);
return 0;
} | // Stan EXO
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll x, y, z, m, f, k;
x = a * c;
y = a * d;
z = b * c;
m = b * d;
f = max(x, y);
k = max(z, m);
cout << max(f, k);
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 104 |
#include <algorithm>
#include <array>
#include <atomic>
#include <bitset>
#include <chrono>
#include <complex>
#include <condition_variable>
#include <deque>
#include <exception>
#include <forward_list>
#include <fstream>
#include <functional>
#include <future>
#include <initializer_list>
#include <iomanip>
#include <i... | #include <algorithm>
#include <array>
#include <atomic>
#include <bitset>
#include <chrono>
#include <complex>
#include <condition_variable>
#include <deque>
#include <exception>
#include <forward_list>
#include <fstream>
#include <functional>
#include <future>
#include <initializer_list>
#include <iomanip>
#include <i... | [["-", 31, 11, 31, 2, 63, 2, 63, 2, 63, 13], ["+", 31, 11, 31, 2, 63, 2, 63, 2, 63, 13]] | 1 | 4,771 |
a, b, c, d = map(int, input().split())
max = b * d
if max < a * c:
max = a * c
elif max < a * d:
max = a * d
elif max < b * c:
max = b * c
print(max) | a, b, c, d = map(int, input().split())
max = b * d
if max < a * c:
max = a * c
if max < a * d:
max = a * d
if max < b * c:
max = b * c
print(max) | [["-", 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;
int main() {
long long a, b, c, d;
cin >> a >> b >> c >> d;
long long r1 = a * c, r2 = a * d, r3 = b * c, r4 = b * d;
long long res = min(min(r1, r2), min(r3, r4));
cout << res;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, c, d;
cin >> a >> b >> c >> d;
long long r1 = a * c, r2 = a * d, r3 = b * c, r4 = b * d;
long long res = max(max(r1, r2), max(r3, r4));
cout << res;
return 0;
} | [["-", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["-", 49, 50, 51, 2, 3, 4, 0, 2, 63, 22], ["+", 49, 50, 51, 2, 3, 4, 0, 2, 63, 22]] | 1 | 86 |
a,b,c,d = map(int, input().split())
ans = max(a*c, b*c, b*d)
print(ans) | a,b,c,d = map(int, input().split())
ans = max(a*c, b*c, b*d, a*d)
print(ans) | [["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 48], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 22]] | 5 | 40 |
#include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int hasil = a * c;
hasil = max(hasil, a * d);
hasil = max(hasil, b * c);
hasil = max(hasil, b * d);
cout << hasil << '\n';
return 0;
} | #include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
using namespace std;
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll hasil = a * c;
hasil = max(hasil, a * d);
hasil = max(hasil, b * c);
hasil = max(hasil, b * d);
cout << hasil << '\n';
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 88 |
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
// #define int long long
template <class T> bool INRANGE(T x, T a, T b) { return a <= x && x <= b; }
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chma... | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
// #define int long long
template <class T> bool INRANGE(T x, T a, T b) { return a <= x && x <= b; }
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chma... | [["-", 0, 43, 49, 50, 51, 16, 31, 74, 0, 24], ["-", 49, 50, 51, 16, 31, 74, 39, 77, 39, 40], ["-", 0, 43, 49, 50, 51, 16, 31, 74, 0, 25]] | 1 | 309 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int s = max({a * c, a * d, b * c, b * d});
cout << 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 s = max({a * c, a * d, b * c, b * d});
cout << 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 | 64 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
long long ans = 0;
cin >> a >> b >> c >> d;
ans = a * c;
if (a * d > ans) {
ans = a * d;
}
if (b * c > ans) {
ans = b * c;
}
if (b * d > ans) {
ans = b * d;
}
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, c, d;
long long ans = 0;
cin >> a >> b >> c >> d;
ans = a * c;
if (a * d > ans) {
ans = a * d;
}
if (b * c > ans) {
ans = b * c;
}
if (b * d > ans) {
ans = 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 | 100 |
a, b, c, d = map(int, input().split())
max_value = max([a*c, a*d, b*c, b*d]) | a, b, c, d = map(int, input().split())
max_value = max([a*c, a*d, b*c, b*d])
print(max_value) | [["+", 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 | 42 |
_list = list(map(int, input().split()))
print(_list)
_list_multi = [_list[0]*_list[2], _list[0]*_list[3], _list[1]*_list[2], _list[1]*_list[3]]
print(max(_list_multi)) | _list = list(map(int, input().split()))
_list_multi = [_list[0]*_list[2], _list[0]*_list[3], _list[1]*_list[2], _list[1]*_list[3]]
print(max(_list_multi)) | [["-", 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 | 71 |
#include <bits/stdc++.h>
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 * c)) << endl;
return 0;
} | #include <bits/stdc++.h>
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 | 69 |
// atcoder contests //
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define nl "\n";
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
// problem statements implementation
int a, b, c, d;
cin >> a >> b >> c >> d;
vector<ll> v;
// v.push_back(a*b);
v.push_back... | // atcoder contests //
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define nl "\n";
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
// problem statements implementation
ll a, b, c, d;
cin >> a >> b >> c >> d;
vector<ll> v;
// v.push_back(a*b);
v.push_back(... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 129 |
a,b,c,d=map(int,input().split())
ans = a*b
for i in [a,b]:
for j in [c,d]:
ans = max(ans, i*j)
print(ans)
| a,b,c,d=map(int,input().split())
ans = a*c
for i in [a,b]:
for j in [c,d]:
ans = max(ans, i*j)
print(ans)
| [["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22]] | 5 | 57 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
typedef vector<ll> vl;
typedef pair<ll, ll> pll;
typedef set<ll> sl;
typedef map<ll, ll> mll;
typedef vector<pll> vll;
#define pb push_back
#define F first
#define S second
#define mp make_pair
#define endl '\n'
#define loop(i, a, b) for (ll i = a; i <... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
typedef vector<ll> vl;
typedef pair<ll, ll> pll;
typedef set<ll> sl;
typedef map<ll, ll> mll;
typedef vector<pll> vll;
#define pb push_back
#define F first
#define S second
#define mp make_pair
#define endl '\n'
#define loop(i, a, b) for (ll i = a; i <... | [["-", 0, 7, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 7, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 241 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
long long int x = a * c, y = a * d, z = b * c, l = b * d;
cout << max(x, max(y, max(z, l)));
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b, c, d;
cin >> a >> b >> c >> d;
long long int x = a * c, y = a * d, z = b * c, l = b * d;
cout << max(x, max(y, max(z, l)));
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 77 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.