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>
#define FOR(i, a, n) for (ll i = (ll)a; i < (ll)n; i++)
#define FORR(i, n) for (ll i = (ll)n - 1LL; i >= 0LL; i--)
#define rep(i, n) FOR(i, 0, n)
#define ALL(x) begin(x), end(x)
using namespace std;
using ll = long long;
template <typename T> using V = vector<T>;
constexpr ll Mod = 998244353;
c... | #include <bits/stdc++.h>
#define FOR(i, a, n) for (ll i = (ll)a; i < (ll)n; i++)
#define FORR(i, n) for (ll i = (ll)n - 1LL; i >= 0LL; i--)
#define rep(i, n) FOR(i, 0, n)
#define ALL(x) begin(x), end(x)
using namespace std;
using ll = long long;
template <typename T> using V = vector<T>;
constexpr ll Mod = 998244353;
c... | [["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 78], ["-", 31, 16, 12, 23, 0, 41, 15, 16, 12, 13], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 12, 22]] | 1 | 299 |
n = int(input())
a = list(map(int,input().split()))
ans = 1
for i in range(n):
ans *= a[i]
if ans > 10**18:
print(-1)
quit()
print(ans) | n = int(input())
a = list(map(int,input().split()))
ans = 1
a.sort()
for i in range(n):
ans *= a[i]
if ans > 10**18:
print(-1)
quit()
print(ans) | [["+", 0, 656, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 61 |
n = int(input())
a_n = map(int, input().split())
LIMIT = 10 ** 18
result = 1
for a_i in list(a_n):
result = result * a_i
if result > LIMIT:
result = -1
break
print(result)
| n = int(input())
a_n = map(int, input().split())
LIMIT = 10 ** 18
result = 1
for a_i in sorted(list(a_n)):
result = result * a_i
if result > LIMIT:
result = -1
break
print(result)
| [["+", 36, 36, 0, 656, 0, 7, 12, 652, 63, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 57 |
n = int(input())
a = map(int, input().split())
for k in a:
if k == 0:
print(0)
exit()
maxn = 10**18
ans = 1
for k in a:
ans *= k
if ans > maxn:
ans = -1
break
print(ans)
| n = int(input())
a = map(int, input().split())
a = list(a)
for k in a:
if k == 0:
print(0)
exit()
maxn = 10**18
ans = 1
for k in a:
ans *= k
if ans > maxn:
ans = -1
break
print(ans)
| [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 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, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 69 |
n = int(input())
a = list(map(int, input().split()))
s = 1
l=10**18
for i in a:
s *= i
if s > l:
print(-1)
exit()
print(s) | n = int(input())
a = sorted(list(map(int, input().split())))
s = 1
l=10**18
for i in a:
s *= i
if s > l:
print(-1)
exit()
print(s) | [["+", 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 | 58 |
#include <cstdio>
#include <iostream>
using namespace std;
int n;
long long now = 1;
long long a[100010];
int main() {
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> a[i];
if (a[i] == 0) {
cout << 0;
return 0;
}
}
for (int i = 1; i <= n; i++) {
now *= a[i];
if (now < 0 || now > ... | #include <cstdio>
#include <iostream>
using namespace std;
int n;
long double now = 1;
long double a[100010];
int main() {
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> a[i];
if (a[i] == 0) {
cout << 0;
return 0;
}
}
for (int i = 1; i <= n; i++) {
now *= a[i];
if (now < 0 || no... | [["-", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96], ["+", 36, 36, 0, 30, 0, 43, 39, 86, 39, 40], ["+", 8, 9, 0, 1, 0, 16, 12, 74, 0, 24], ["+", 0, 16, 12, 74, 39, 77, 39, 86, 0, 96], ["+", 8, 9, 0, 1, 0, 16, 12, 74, 0, 25]] | 1 | 127 |
n = int(input())
l = []
ans = 1
z = False
l = input().split(' ')
for x in l:
x = int(x)
if x == 0:
print(0)
exit(0)
for i in range(n):
x = int(l[i])
ans *= x
if ans > 1e18:
ans = -1
print(ans) | n = int(input())
l = []
ans = 1
z = False
l = input().split(' ')
for x in l:
x = int(x)
if x == 0:
print(0)
exit(0)
for i in range(n):
x = int(l[i])
ans *= x
if ans > 1e18:
ans = -1
break
print(ans) | [["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 87 |
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long
ull; // -9,223,372,036,854,775,808 から 9,223,372,036,854,775,807
template <class T> using vec = std::vector<T>;
template <class T> using vec2 = vec<vec<T>>;
template <class T> using vec3 = vec<vec<vec<T>>>;
#define DEBUG
void solve(long lon... | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long
ull; // -9,223,372,036,854,775,808 から 9,223,372,036,854,775,807
template <class T> using vec = std::vector<T>;
template <class T> using vec2 = vec<vec<T>>;
template <class T> using vec3 = vec<vec<vec<T>>>;
#define DEBUG
void solve(long lon... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 48], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 85], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 232 |
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define ll long long
using namespace std;
// typedef vector<unsigned int>vec;
// typedef vector<ll>vec;
// typedef vector<vec> mat;
typedef pair<int, int> P;
typedef pair<ll, ll> LP;
const int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1};
const int dy[8] = {... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define ll long long
using namespace std;
// typedef vector<unsigned int>vec;
// typedef vector<ll>vec;
// typedef vector<vec> mat;
typedef pair<int, int> P;
typedef pair<ll, ll> LP;
const int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1};
const int dy[8] = {... | [["-", 64, 9, 0, 1, 0, 16, 31, 16, 12, 13], ["+", 64, 9, 0, 1, 0, 16, 31, 16, 12, 13]] | 1 | 264 |
input()
l = map(int, input().split())
n = 1
lim = 10**18
for e in l:
n *= e
if n > lim:
print(-1)
break
else:
print(n) | input()
l = map(int, input().split())
n = 1
lim = 10**18
for e in l:
n *= e
if n > lim:
print(0 if 0 in l else -1)
break
else:
print(n)
| [["+", 0, 1, 0, 652, 3, 4, 0, 41, 0, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 41, 0, 121], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 0, 612], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 267], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 0, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 41, 0, 95]] | 5 | 50 |
n = int(input())
a = list(map(int, input().split()))
ans = 1
x_min = min(a)
if x_min == 0:
print(0)
else:
for x in a:
ans *= x
if ans >= 10 ** 18:
print(-1)
break
else:
print(ans) | n = int(input())
a = list(map(int, input().split()))
ans = 1
x_min = min(a)
if x_min == 0:
print(0)
else:
for x in a:
ans *= x
if ans > 10 ** 18:
print(-1)
break
else:
print(ans) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47]] | 5 | 72 |
N = int(input())
A = [int(x) for x in input().split()]
INF = 10**18
ans = 1
A.sort()
for i in range(N):
ans *= A[i]
if ans > INF:
ans = -1
print(ans) | N = int(input())
A = [int(x) for x in input().split()]
INF = 10**18
ans = 1
A.sort()
for i in range(N):
ans *= A[i]
if ans > INF:
ans = -1
break
print(ans) | [["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 66 |
from math import log10
N = int(input())
A = map(int, input().split())
if 0 in A:
print(0)
exit()
s = 1
for a in A:
s *= a
if s > 10 ** 18:
print('-1')
exit()
print(s) | from math import log10
N = int(input())
A = list(map(int, input().split()))
if 0 in A:
print(0)
exit()
s = 1
for a in A:
s *= a
if s > 10 ** 18:
print('-1')
exit()
print(s) | [["+", 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 | 69 |
N = int(input())
arr = [int(x) for x in input().split()]
found = false
for x in arr:
if x == 0:
found = True
if found:
print(0)
exit(0)
res = 1
MAX = 10 ** 18
for x in arr:
res *= x
if res > MAX:
print(-1)
exit(0)
print(res) | N = int(input())
arr = [int(x) for x in input().split()]
found = False
for x in arr:
if x == 0:
found = True
if found:
print(0)
exit(0)
res = 1
MAX = 10 ** 18
for x in arr:
res *= x
if res > MAX:
print(-1)
exit(0)
print(res)
| [["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 147]] | 5 | 87 |
N=int(input())
s=list(map(int,input().split()))
a=1
b=0
mod=10**18
for i in range(N):
a*=s[i]
if a>mod:
b=1
break
if b==1:
print(-1)
else:
print(a) | N=int(input())
s=list(map(int,input().split()))
a=1
b=0
s.sort()
mod=10**18
for i in range(N):
a*=s[i]
if a>mod:
b=1
break
if b==1:
print(-1)
else:
print(a) | [["+", 0, 656, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 75 |
n = int(input())
a = list(map(int,input().split()))
ans = 1
for i in a:
ans *= i
if ans > 10**18:
ans = -1
break
print(ans) | n = int(input())
a = list(map(int,input().split()))
a.sort()
ans = 1
for i in a:
ans *= i
if ans > 10**18:
ans = -1
break
print(ans) | [["+", 0, 656, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 52 |
#include <bits/stdc++.h>
using namespace std;
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
#define lli long long int
#define tc ... | #include <bits/stdc++.h>
using namespace std;
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
#define lli long long int
#define tc ... | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13]] | 1 | 176 |
#include <bits/stdc++.h>
using namespace std;
#define DEBUG(x) cerr << #x << ": " << x << endl;
#define DEBUG_VEC(v) \
cerr << #v << ":"; \
for (int i = 0; i < v.size(); i++) ... | #include <bits/stdc++.h>
using namespace std;
#define DEBUG(x) cerr << #x << ": " << x << endl;
#define DEBUG_VEC(v) \
cerr << #v << ":"; \
for (int i = 0; i < v.size(); i++) ... | [["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 650 |
N = int(input())
A = list(map(int, input().split()))
ans = 1
if 0 in A:
print(0)
else:
for a in A:
ans *= a
if ans > 10 ** 18:
ans = -1
print(ans)
| N = int(input())
A = list(map(int, input().split()))
ans = 1
if 0 in A:
print(0)
else:
for a in A:
ans *= a
if ans > 10 ** 18:
ans = -1
break
print(ans)
| [["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 62 |
n,*a=map(int,open(0).read().split())
ans=1
for ai in a:
ans*=ai
if ans>10**18:
print(-1)
exit()
print(ans) | n,*a=map(int,open(0).read().split())
a.sort()
ans=1
for ai in a:
ans*=ai
if ans>10**18:
print(-1)
exit()
print(ans) | [["+", 0, 656, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 52 |
N = int(input())
A = list(map(int, input().split()))
lim = 10**18
ans = 1
if 0 in A:
print("0")
for i in A:
ans *= i
if ans > lim:
print("-1")
quit()
print(ans) | N = int(input())
A = list(map(int, input().split()))
lim = 10**18
ans = 1
if 0 in A:
print(0)
quit()
for i in A:
ans *= i
if ans > lim:
print("-1")
quit()
print(ans) | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25], ["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24]] | 5 | 70 |
#include <assert.h>
#include <bits/stdc++.h>
#include <time.h>
using namespace std;
#define For(i, x, n) for (long long i = x; i < n; i++)
#define rFor(i, x, n) for (long long i = x; i >= n; i--)
#define itFor(it, st) for (auto it = st.begin(); it != st.end(); it++)
#define MOD 1000000007
#define PI 3.141592653589793... | #include <assert.h>
#include <bits/stdc++.h>
#include <time.h>
using namespace std;
#define For(i, x, n) for (long long i = x; i < n; i++)
#define rFor(i, x, n) for (long long i = x; i >= n; i--)
#define itFor(it, st) for (auto it = st.begin(); it != st.end(); it++)
#define MOD 1000000007
#define PI 3.141592653589793... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20]] | 1 | 310 |
N = int(input())
Alist = [int(x) for x in input().split(" ")]
if len(Alist) != N:
print("-1")
exit()
result = 1
for a in Alist:
result *= a
if result > 10**18:
print("-1")
exit()
print(result)
|
N = int(input())
Alist = sorted([int(x) for x in input().split(" ")])
if len(Alist) != N:
print("-1")
exit()
result = 1
for a in Alist:
result *= a
# print(result)
if result > 10**18:
print("-1")
exit()
print(result)
| [["+", 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, 3, 4, 0, 25]] | 5 | 77 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#define ll long long
using namespace std;
const int N = 101101;
ll a[N];
int T, n, k;
int tot;
int main() {
scanf("%d", &n);
for (int i = 1; i <= n; i++)
scanf("%lld", &a[i]);
sort(a + 1, a + 1 + n);
if (a[1] == 0) {
printf("-1\n... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#define ll long long
using namespace std;
const int N = 101101;
ll a[N];
int T, n, k;
int main() {
scanf("%d", &n);
for (int i = 1; i <= n; i++)
scanf("%lld", &a[i]);
sort(a + 1, a + 1 + n);
if (a[1] == 0) {
printf("0\n");
re... | [["-", 36, 36, 36, 36, 0, 30, 0, 43, 49, 22], ["-", 36, 36, 36, 36, 0, 30, 0, 43, 0, 35], ["-", 36, 36, 36, 36, 0, 30, 0, 14, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 209 |
#include <bits/stdc++.h>
using namespace std;
#define LL long long int
#define DL double
#define MLL map<LL, LL>::iterator
#define MSL map<string, LL>::iterator
#define MLS map<LL, string>::iterator
#define MSS map<string, string>::iterator
#define MCL map<char, LL>::iterator
#define SL set<LL>::iterator
#define SS set... | #include <bits/stdc++.h>
using namespace std;
#define LL long long int
#define DL double
#define MLL map<LL, LL>::iterator
#define MSL map<string, LL>::iterator
#define MLS map<LL, string>::iterator
#define MSS map<string, string>::iterator
#define MCL map<char, LL>::iterator
#define SL set<LL>::iterator
#define SS set... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18]] | 1 | 397 |
import sys
N = int(input())
As = list(map(int, input().split()))
if(0 in As):
print(0)
sys.exit()
ans = 1
for A in As:
ans = ans * A
if ans >= 10**18:
print(-1)
sys.exit()
print(ans) | import sys
N = int(input())
As = list(map(int, input().split()))
if(0 in As):
print(0)
sys.exit()
ans = 1
for A in As:
ans = ans * A
if ans > 10**18:
print(-1)
sys.exit()
print(ans) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47]] | 5 | 77 |
#include <algorithm>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
int n;
ll *a;
cin >> n;
a = new ll[n];... | #include <algorithm>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
int n;
ll *a;
cin >> n;
a = new ll[n];... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 48], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 85], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 173 |
#整数の入力
N = int(input())
#スペース区切りの整数の入力リスト
A_list = list(map(int, input().split()))
if((0 in A_list) ==True):
print("0")
exit()
ans = 1
for i in range(N):
if(ans<10**18):
ans = ans * A_list[i]
else:
print("-1")
exit()
if(ans<10**18):
print(ans)
else:
print("-1") | #整数の入力
N = int(input())
#スペース区切りの整数の入力リスト
A_list = list(map(int, input().split()))
if((0 in A_list) ==True):
print("0")
exit()
ans = 1
for i in range(N):
if(ans<=10**18):
ans = ans * A_list[i]
else:
print("-1")
exit()
if(ans<=10**18):
print(ans)
else:
print("-1") | [["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 19], ["-", 0, 656, 0, 57, 15, 23, 0, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 23, 0, 666, 667, 19]] | 5 | 107 |
n=int(input())
arr=list(map(int,input().split()))
c=1
arr.sort()
d=0
for i in arr:
c=c*i
if(c>10**18):
d=1
print(-1)
if(d==0):
print(c) | n=int(input())
arr=list(map(int,input().split()))
c=1
arr.sort()
d=0
for i in arr:
c=c*i
if(c>10**18):
d=1
print(-1)
break
if(d==0):
print(c) | [["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 74 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vl = vector<ll>;
using vvl = vector<vl>;
using pii = pair<int, int>;
using pli = pair<ll, int>;
using pll = pair<ll, ll>;
using vpii = vector<pii>;
using vpli = vector<pli>;
using vpll = vector<pll>... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vl = vector<ll>;
using vvl = vector<vl>;
using pii = pair<int, int>;
using pli = pair<ll, int>;
using pll = pair<ll, ll>;
using vpii = vector<pii>;
using vpli = vector<pli>;
using vpll = vector<pll>... | [["+", 8, 9, 0, 1, 0, 11, 12, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 23, 0, 16, 17, 79], ["+", 0, 1, 0, 11, 12, 23, 0, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 23, 0, 25]] | 1 | 229 |
N= int(input())
A = list(map(int, input().split()))
res = 1
max_res = 10**18
if 0 in A:
res=0
for i in range(0,N):
res = res * A[i]
if res ==0:
break
elif res>max_res:
print(res)
res = -1
break
print(res) | N= int(input())
A = list(map(int, input().split()))
res = 1
max_res = 10**18
if 0 in A:
res=0
for i in range(0,N):
res = res * A[i]
if res ==0:
break
elif res>max_res:
res = -1
break
print(res) | [["-", 75, 665, 64, 196, 0, 1, 0, 652, 63, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 83 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef tree<int, null_type, less<int>, rb_tree_tag,
tree_order_statistics_node_update>
ordered_set;
#define num1 1000000007
#define num2 998244353
#de... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef tree<int, null_type, less<int>, rb_tree_tag,
tree_order_statistics_node_update>
ordered_set;
#define num1 1000000007
#define num2 998244353
#de... | [["+", 0, 57, 15, 339, 51, 16, 31, 91, 17, 111], ["+", 0, 57, 15, 339, 51, 16, 31, 91, 28, 22], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 852 |
import sys
n = int(input())
a = list(map(int, input().split()))
ans=1
for i in range(n):
ans *= a[i]
if ans > 10**18:
print('-1')
sys.exit()
print(ans) | import sys
n = int(input())
a = list(map(int, input().split()))
a.sort()
ans=1
for i in range(n):
ans *= a[i]
if ans > 10**18:
print('-1')
sys.exit()
print(ans) | [["+", 0, 656, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 66 |
N = int(input())
A = [int(i) for i in input().split()]
A.sort(reverse=True)
print(A)
ans = 1
u = 10 ** 18
if A[-1] == 0:
ans = 0
else:
for a in A:
ans *= a
if ans > u:
ans = -1
break
print(ans) | N = int(input())
A = [int(i) for i in input().split()]
A.sort(reverse=True)
ans = 1
u = 10 ** 18
if A[-1] == 0:
ans = 0
else:
for a in A:
ans *= a
if ans > u:
ans = -1
break
print(ans) | [["-", 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 | 82 |
N = int(input())
*A, = map(int, input().split())
if 0 in A: print(0)
else:
ans = 1
for a in A:
ans *= a
if ans > 10**18: ans = -1
print(ans) | N = int(input())
*A, = map(int, input().split())
if 0 in A: print(0)
else:
ans = 1
for a in A:
ans *= a
if ans > 10**18: ans = -1; break
print(ans) | [["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 61 |
N = int(input())
A = list(map(int, input().split()))
ans = 1
A.sort()
if A[0] == 0:
print(-1)
else:
for i in range(N):
ans *= A[i]
if ans > 10**18:
print(-1)
exit(0)
print(ans)
| N = int(input())
A = list(map(int, input().split()))
ans = 1
A.sort()
if A[0] == 0:
print(0)
else:
for i in range(N):
ans *= A[i]
if ans > 10**18:
print(-1)
exit(0)
print(ans)
| [["-", 0, 1, 0, 652, 3, 4, 0, 664, 17, 33], ["-", 0, 1, 0, 652, 3, 4, 0, 664, 28, 612], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 612]] | 5 | 82 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define MV 200001
#define LMV 21
#define ff first
#define ss second
#define pb push_back
#define eb emplace_back
#define emp emplace
#define mp make_pair
#define ins in... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define MV 200001
#define LMV 21
#define ff first
#define ss second
#define pb push_back
#define eb emplace_back
#define emp emplace
#define mp make_pair
#define ins in... | [["-", 51, 16, 12, 23, 0, 16, 31, 16, 17, 72], ["-", 51, 16, 12, 23, 0, 16, 31, 16, 12, 22], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 17, 33], ["-", 51, 16, 12, 23, 0, 16, 12, 16, 31, 13]] | 1 | 820 |
n = int(input())
a = list(map(int,input().split()))
ans = a[0]
if a.count(0) == 0:
for i in range(1,n):
ans *= a[i]
if ans > 10**18:
ans = -1
break
else:
ans = -1
print(ans) | n = int(input())
a = list(map(int,input().split()))
ans = a[0]
if a.count(0) == 0:
for i in range(1,n):
ans *= a[i]
if ans > 10**18:
ans = -1
break
else:
ans = 0
print(ans) | [["-", 8, 196, 0, 1, 0, 662, 12, 664, 17, 33], ["-", 8, 196, 0, 1, 0, 662, 12, 664, 28, 612], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 12, 612]] | 5 | 79 |
N = int(input())
A = map(int, input().split())
ans = 1
if 0 in A:
ans = 0
else:
for a in A:
ans *= a
if ans > pow(10, 18):
ans = -1
break
print(ans)
| N = int(input())
A = list(map(int, input().split()))
ans = 1
if 0 in A:
ans = 0
else:
for a in A:
ans *= a
if ans > pow(10, 18):
ans = -1
break
print(ans)
| [["+", 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 | 62 |
import sys
N = int(input())
As = map(int, input().split())
if 0 in As:
print(0)
sys.exit(0)
ans = 1
for a in As:
ans *= a
if ans > 10**18:
print(-1)
sys.exit(0)
print(ans)
| import sys
N = int(input())
As = list(map(int, input().split()))
if 0 in As:
print(0)
sys.exit(0)
ans = 1
for a in As:
ans *= a
if ans > 10**18:
print(-1)
sys.exit(0)
print(ans)
| [["+", 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 | 72 |
import math
def main():
i = int(input())
j = list(map(int, input().split()))
res = 1
if 0 in j:
print(0)
return
for jj in j:
res *= jj
if math.pow(10, 18) < res:
print(-1)
print(res)
if __name__ == "__main__":
main() | import math
def main():
i = int(input())
j = list(map(int, input().split()))
res = 1
if 0 in j:
print(0)
return
for jj in j:
res *= jj
if math.pow(10, 18) < res:
print(-1)
return
print(res)
if __name__ == "__main__":
main() | [["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38]] | 5 | 84 |
N=int(input())
A= list(map(int, input().split()))
sum = 1
for i in range(N):
sum *= A[i]
if sum > 1000000000000000000:
print(-1)
exit()
print(sum) | N=int(input())
A= list(map(int, input().split()))
A.sort()
sum = 1
for i in range(N):
sum *= A[i]
if sum > 1000000000000000000:
print(-1)
exit()
print(sum) | [["+", 0, 656, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 59 |
N = int(input())
A = list(map(int,input().split(" ")))
ans = A[0]
max_ans = 10 ** 18
if 0 in A:
ans = 0
else:
for i in range(1,len(A)):
ans *= A[i]
if ans >= max_ans:
ans = -1
break
print(ans) | N = int(input())
A = list(map(int,input().split(" ")))
ans = A[0]
max_ans = 10 ** 18
if 0 in A:
ans = 0
else:
for i in range(1,len(A)):
ans *= A[i]
if ans > max_ans:
ans = -1
break
print(ans) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47]] | 5 | 82 |
n = int(input())
a = tuple(map(int,input().split()))
ans = 1
for ai in a:
if ai == 0:
print(0)
exit()
for ai in a:
print(ans)
ans *= ai
if ans > 10**18:
print(-1)
exit()
print(ans)
| n = int(input())
a = tuple(map(int,input().split()))
ans = 1
for ai in a:
if ai == 0:
print(0)
exit()
for ai in a:
ans *= ai
if ans > 10**18:
print(-1)
exit()
print(ans)
| [["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 76 |
N = int(input())
List = list(map(int, input().split()))
ans = 1
for i in List:
ans *= i
if ans > 10**18:
print(-1)
break
else:
print(ans) | N = int(input())
List = list(map(int, input().split()))
List.sort()
ans = 1
for i in List:
ans *= i
if ans > 10**18:
print(-1)
break
else:
print(ans) | [["+", 0, 656, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 55 |
N = int(input())
A = [int(x) for x in input().split()]
ans = 1
if 0 in A:
print(0)
else:
for a in A:
ans *= a
print(a)
if ans > 10**18:
print(-1)
break
else:
print(ans) | N = int(input())
A = [int(x) for x in input().split()]
ans = 1
if 0 in A:
print(0)
else:
for a in A:
ans *= a
if ans > 10**18:
print(-1)
break
else:
print(ans) | [["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 71 |
n=int(input())
l = list(map(int,input().split()))
s=1
if 0 in l:
print(0)
else:
for i in l:
s*=i
print(s)
if s>10**18:
s=-1
break
print(s) | n=int(input())
l = list(map(int,input().split()))
s=1
if 0 in l:
print(0)
else:
for i in l:
s*=i
if s>10**18:
s=-1
break
print(s) | [["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 67 |
#pragma GCC optimize("O3")
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define fs first
#define se second
#define pi 2 * acos(0)
#define PI 3.14159265358979323846264338
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
typedef pair<ll, ll> pl... | #pragma GCC optimize("O3")
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define fs first
#define se second
#define pi 2 * acos(0)
#define PI 3.14159265358979323846264338
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
typedef pair<ll, ll> pl... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 353 |
N = int(input())
A = list(map(int, input().split()))
res = 1
for a in A:
res *= a
if res > pow(10, 18):
print(-1)
exit()
print(res)
| N = int(input())
A = sorted(list(map(int, input().split())))
res = 1
for a in A:
res *= a
if res > pow(10, 18):
print(-1)
exit()
print(res)
| [["+", 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 | 58 |
M=10**18
n,*as=$<.read.split.map &:to_i
puts as.reduce(1){|s,e| s*=e; break -1 if s>M; s } | M=10**18
n,*as=$<.read.split.map &:to_i
puts as.sort.reduce(1){|s,e| s*=e; break -1 if s>M; s } | [["+", 0, 652, 3, 4, 0, 652, 486, 652, 735, 22], ["+", 0, 493, 0, 652, 3, 4, 0, 652, 17, 131]] | 4 | 46 |
N=int(input())
A=list(map(int,input().split()))
if 0 in A:
print(0)
c=1
for i in range(len(A)):
c*=A[i]
if c>10**18:
print(-1)
exit()
print(c)
| N=int(input())
A=list(map(int,input().split()))
if 0 in A:
print(0)
exit()
c=1
for i in range(len(A)):
c*=A[i]
if c>10**18:
print(-1)
exit()
print(c)
| [["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 73 |
N = int(input())
A = list(map(int, input().split()))
A = sorted(A)
ans = 1
for i in range(N):
ans *= A[i]
if (ans >= 10 ** 18):
print(-1)
exit()
break
print(ans) | N = int(input())
A = list(map(int, input().split()))
A = sorted(A)
ans = 1
for i in range(N):
ans *= A[i]
if (ans > 10 ** 18):
print(-1)
exit()
break
print(ans)
| [["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 20], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 47]] | 5 | 70 |
N = int(input())
A = list(map(int, input().split()))
border = pow(10, 18)
if 0 in A:
print(0)
exit()
ans = 1
for i in range(N):
ans *= A[i]
print(ans)
if ans > border:
print(-1)
exit()
print(ans) | N = int(input())
A = list(map(int, input().split()))
border = pow(10, 18)
if 0 in A:
print(0)
exit()
ans = 1
for i in range(N):
ans *= A[i]
if ans > border:
print(-1)
exit()
print(ans) | [["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 83 |
#ifndef Local
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math,O3")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,sse4.2,popcnt,abm,mmx,avx")
#endif
#include <bits/stdc++.h>
#include <ext/numeric>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace __gnu_cxx;
using... | #ifndef Local
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math,O3")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,sse4.2,popcnt,abm,mmx,avx")
#endif
#include <bits/stdc++.h>
#include <ext/numeric>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace __gnu_cxx;
using... | [["-", 12, 23, 0, 16, 12, 2, 3, 4, 0, 13], ["+", 12, 23, 0, 16, 12, 2, 3, 4, 0, 13]] | 1 | 199 |
#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
#define FOR(i, m, n) for (int i = (m); i < (n); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(v) (v).begin(), (v).end()
using ll = long long;
const int INF = 0x3f3f3f3f;
const ll LINF = 0x3f3f3f3f3f3f3f3fLL;
const double EPS = 1e-8;
const int MOD... | #define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
#define FOR(i, m, n) for (int i = (m); i < (n); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(v) (v).begin(), (v).end()
using ll = long long;
const int INF = 0x3f3f3f3f;
const ll LINF = 0x3f3f3f3f3f3f3f3fLL;
const double EPS = 1e-8;
const int MOD... | [["-", 31, 16, 12, 23, 0, 41, 15, 16, 17, 20], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 47]] | 1 | 377 |
N=int(input())
L=list(map(int,input().split()))
ans=1
flag=False
for i in L:
ans=ans*i
if ans>10**18:
ans=-1
break
print(ans) | N=int(input())
L=list(map(int,input().split()))
ans=1
L.sort()
flag=False
for i in L:
ans=ans*i
if ans>10**18:
ans=-1
break
print(ans) | [["+", 0, 656, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 57 |
#!/usr/bin/env python3
from collections import defaultdict,deque
from heapq import heappush, heappop
from bisect import bisect_left, bisect_right
import sys, random, itertools, math
sys.setrecursionlimit(10**5)
input = sys.stdin.readline
sqrt = math.sqrt
def LI(): return list(map(int, input().split()))
def LF(): return... | #!/usr/bin/env python3
from collections import defaultdict,deque
from heapq import heappush, heappop
from bisect import bisect_left, bisect_right
import sys, random, itertools, math
sys.setrecursionlimit(10**5)
input = sys.stdin.readline
sqrt = math.sqrt
def LI(): return list(map(int, input().split()))
def LF(): return... | [["+", 8, 196, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 8, 196, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 8, 196, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 368 |
import sys
input = sys.stdin.readline
INF = 10 ** 18
def main():
N = int(input())
A = list(map(int, input().split()))
if 0 in A:
ans = -1
else:
ans = 1
for a in A:
ans *= a
if ans > INF:
ans = -1
break
print(ans)
... | import sys
input = sys.stdin.readline
INF = 10 ** 18
def main():
N = int(input())
A = list(map(int, input().split()))
if 0 in A:
ans = 0
else:
ans = 1
for a in A:
ans *= a
if ans > INF:
ans = -1
break
print(ans)
i... | [["-", 64, 196, 0, 1, 0, 662, 12, 664, 17, 33], ["-", 64, 196, 0, 1, 0, 662, 12, 664, 28, 612], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 12, 612]] | 5 | 90 |
N = int(input())
A = [int(a) for a in input().split()]
ans = 1
for a in A:
ans *= a
if ans > 10**18:
ans = -1
break
print(ans) | N = int(input())
A = [int(a) for a in input().split()]
A.sort()
ans = 1
for a in A:
ans *= a
if ans > 10**18:
ans = -1
break
print(ans) | [["+", 0, 656, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 53 |
N = int(input())
A = list(map(int, input().split()))
ans = 1
for i in A:
ans *= i
if ans > 10**18:
print(-1)
exit()
print(ans) | N = int(input())
A = list(map(int, input().split()))
ans = 1
A.sort()
for i in A:
ans *= i
if ans > 10**18:
print(-1)
exit()
print(ans) | [["+", 0, 656, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 55 |
N=int(input())
A=list(map(int,input().split()))
ans=1
flg=0
for i in A:
ans=ans*i
if ans>10**18:
flg=1
print(-1)
break
if flg==0:
print(ans) | N=int(input())
A=list(map(int,input().split()))
A.sort()
ans=1
flg=0
for i in A:
ans=ans*i
if ans>10**18:
flg=1
print(-1)
break
if flg==0:
print(ans) | [["+", 0, 656, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 66 |
N=int(input())
A=list(map(int,input().split()))
ans=1
for i in range(N):
ans*=A[i]
if ans>10**18:
print("-1")
exit()
print(ans) | N=int(input())
A=list(map(int,input().split()))
A.sort()
ans=1
for i in range(N):
ans*=A[i]
if ans>10**18:
print("-1")
exit()
print(ans) | [["+", 0, 656, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 62 |
/* winners never quit and quitters never win.
#swap */
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#pragma GCC optimize("-O3")
using ll = long long;
using ld = long double;
... | /* winners never quit and quitters never win.
#swap */
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#pragma GCC optimize("-O3")
using ll = long long;
using ld = long double;
... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 355]] | 1 | 485 |
#include <bits/stdc++.h>
#define ll long long
#define fastIO \
cout << fixed << setprecision(12), ios::sync_with_stdio(false), \
cin.tie(nullptr), cout.tie(nullptr)
using namespace std;
bool overflow(long double a, long double b) {
... | #include <bits/stdc++.h>
#define ll long long
#define fastIO \
cout << fixed << setprecision(12), ios::sync_with_stdio(false), \
cin.tie(nullptr), cout.tie(nullptr)
using namespace std;
bool overflow(long double a, long double b) {
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 91, 17, 111], ["+", 8, 9, 0, 57, 15, 339, 51, 91, 28, 22]] | 1 | 175 |
n=int(input())
l=list(map(int,input().split()))
ans=1
for i in range(n):
ans*=l[i]
if ans>10**18:
ans=-1
break
print(ans) | n=int(input())
l=list(map(int,input().split()))
l.sort()
ans=1
for i in range(n):
ans*=l[i]
if ans>10**18:
ans=-1
break
print(ans) | [["+", 0, 656, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 58 |
//#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops")
//#pragma GCC target("avx,avx2")
//#pragma GCC target("avx2")
//#pragma GCC optimize("O3")
//# include <x86intrin.h>
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using... | //#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops")
//#pragma GCC target("avx,avx2")
//#pragma GCC target("avx2")
//#pragma GCC optimize("O3")
//# include <x86intrin.h>
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using... | [["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 78]] | 1 | 464 |
#include <bits/stdc++.h>
#include <stdlib.h>
#include <sys/time.h>
#include <unistd.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
typedef pair<P, ll> T;
typedef pair<long double, ll> Ps;
const ll INF = 2e18;
const ll fact_table = 3200008;
long double Pi = 3.1415926535897932384626;
priority_q... | #include <bits/stdc++.h>
#include <stdlib.h>
#include <sys/time.h>
#include <unistd.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
typedef pair<P, ll> T;
typedef pair<long double, ll> Ps;
const ll INF = 2e18;
const ll fact_table = 3200008;
long double Pi = 3.1415926535897932384626;
priority_q... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 778 |
A,B = input().split()
print(int((int(A)*round(100*float(B)))/100)) | A,B = input().split()
print((int(A)*round(100*float(B)))//100) | [["-", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 676], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 35 |
a, b = input().split()
a = int(a)
b = int(b.replace('.', ''))
print(int(a * b) // 10) | a, b = input().split()
a = int(a)
b = int(b.replace('.', ''))
print(a * b // 100)
| [["-", 0, 652, 3, 4, 0, 657, 31, 652, 63, 22], ["-", 3, 4, 0, 657, 31, 652, 3, 4, 0, 24], ["-", 3, 4, 0, 657, 31, 652, 3, 4, 0, 25], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 44 |
a, b = input().split()
a = int(a)
b = int(b.replace('.', ''))
print(int(a * b) // 10) | a, b = input().split()
a = int(a)
b = int(b.replace('.', ''))
print(int(a * b) // 100) | [["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 44 |
A, B =map(float,input().split())
A = int(A)
B = int(B*100)
ans = A*B//100
print(ans)
| A, B =map(float,input().split())
A = int(A)
B = int(B*100+0.5)
ans = A*B//100
print(ans) | [["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 531]] | 5 | 41 |
A, B =map(float,input().split())
A = int(A)
B = int(B*100)
ans = A*B//100
print(ans)
| import sys
A, B =map(float,input().split())
A = int(A)
B = int(B*100+0.5)
ans = A*B//100
print(ans)
| [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 531]] | 5 | 41 |
import sys
A, B =map(float,input().split())
A = int(A)
B = (B+sys.float_info.epsilon*5)*100
ans = A*B
print(ans)
| import sys
A, B =map(float,input().split())
A = int(A)
B = int((B+sys.float_info.epsilon*5)*100)
ans = A*B//100
print(ans)
| [["+", 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, 3, 4, 0, 25], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 48 |
A,B=map(float,input().split())
A =int(A)
B=int(100*B)
print(A*B//100) | A,B=map(float,input().split())
A =int(A)
B=round(100*B)
print(A*B//100) | [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]] | 5 | 38 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
//入力
ll A;
long double B;
cin >> A >> B;
cout << (ll)(A * B) + 0.001 << endl;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
//入力
ll A;
long double B;
cin >> A >> B;
cout << (ll)(A * B + 0.001) << endl;
} | [["-", 31, 16, 12, 16, 31, 2, 3, 4, 0, 25], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 25]] | 1 | 46 |
/*
ID: anonymo14
TASK: wormhole
LANG: C++
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<pair<int, int>> vpii;
#define F first
#define S second
#define PU push
#define PUF push_front
#define PUB pus... | /*
ID: anonymo14
TASK: wormhole
LANG: C++
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<pair<int, int>> vpii;
#define F first
#define S second
#define PU push
#define PUF push_front
#define PUB pus... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 43, 49, 50, 51, 74, 51, 2, 63, 22], ["+", 49, 50, 51, 74, 51, 2, 3, 4, 0, 24], ["+", 49, 50, 51, 74, 51, 2, 3, 4, 0, 25]] | 1 | 174 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int a;
double b;
double seki;
cin >> a >> b;
long long int c = ((b + 0.001) * 100);
seki = (a * c) / 100;
cout << (long long int)(seki) << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int a;
double b;
long long int seki;
cin >> a >> b;
long long int c = ((b + 0.001) * 100);
seki = (a * c) / 100;
cout << (long long int)(seki) << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40]] | 1 | 67 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
typedef long long ll;
typedef pair<int, int> P;
int main() {
ll a, c;
double b;
cin >> a >> b;
int b_ = b * 100;
c = a * b_ / 100;
cout << c << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
typedef long long ll;
typedef pair<int, int> P;
int main() {
ll a, c;
double b;
cin >> a >> b;
int b_ = b * 100 + 0.00001;
c = a * b_ / 100;
cout << c << endl;
} | [["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]] | 1 | 69 |
import re
a,b,c=map(int, re.split("[ .]",input()))
print(int(a*(b*100+c)/100)) | import re
a,b,c=map(int, re.split("[ .]",input()))
print(a*(b*100+c)//100) | [["-", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 676], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 42 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b, c;
cin >> a;
string s;
cin >> s;
s.erase(1);
b = stoi(s);
long long int ans = (a * b) / 100;
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b, c;
cin >> a;
string s;
cin >> s;
s.erase(1, 1);
b = stoi(s);
long long int ans = (a * b) / 100;
cout << ans << endl;
}
| [["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 65 |
package main
import "fmt"
func main() {
var A, B float64
fmt.Scan(&A, &B)
a := int64(A)
b := int64(B * 100)
fmt.Println(int64(a * b / int64(100)))
}
| package main
import "fmt"
func main() {
var A, B float64
fmt.Scan(&A, &B)
a := int64(A)
b := int64(B*100 + 1e-9)
fmt.Println(int64(a * b / int64(100)))
}
| [["+", 12, 432, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 12, 432, 0, 2, 3, 4, 0, 16, 12, 445]] | 7 | 65 |
#include <cmath>
#include <iostream>
using namespace std;
int main() {
long long a;
double b;
cin >> a >> b;
cout << (long long)(a * (__float128)nextafter(b, 1e9)) << endl;
}
| #include <cmath>
#include <iostream>
using namespace std;
int main() {
long long a;
long double b;
cin >> a >> b;
cout << (long long)(a * (__float128)nextafter(b, 1e9)) << endl;
}
| [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 49 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll A;
double B;
cin >> A >> B;
ll ans = (A * (ll)(B * 100)) / 100;
cout << ans << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll A;
double B;
cin >> A >> B;
ll ans = (A * (ll)(B * 100 + 0.1)) / 100;
cout << ans << endl;
return 0;
}
| [["+", 0, 16, 12, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 16, 12, 2, 3, 4, 0, 16, 12, 13]] | 1 | 56 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vb = vector<bool>;
using vvb = vector<vb>;
using vd = vector<double>;
using vvd = vector<vd>;
using vi = vector<int>;
using vvi = vector<vi>;
using vl = vector<ll>;
using vvl = vector<vl>;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
usi... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vb = vector<bool>;
using vvb = vector<vb>;
using vd = vector<double>;
using vvd = vector<vd>;
using vi = vector<int>;
using vvi = vector<vi>;
using vl = vector<ll>;
using vvl = vector<vl>;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
usi... | [["+", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22], ["+", 0, 1, 0, 11, 12, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 11, 12, 2, 3, 4, 0, 25]] | 1 | 780 |
line = input().split()
a = int(line[0])
b = int(float(line[1])*100)
print(int(a*b//100)) | line = input().split()
a = int(line[0])
b = round(float(line[1])*100)
print(a*b//100) | [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 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 | 43 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using namespace std;
int main() {
ll a;
double b;
cin >> a >> b;
ll ib = 100 * b; //一旦bを100倍
a *= ib; //整数同士で演算
a /= 100; // 1/100で元に戻す
cout << a << endl;
}
| #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using namespace std;
int main() {
ll a;
double b;
cin >> a >> b;
ll ib = 100 * b +
0.5; //一旦bを100倍 doubleからllの変換で微妙な誤差が切り捨てられる?
// cout<<ib<<endl;
a *= ib; //整数同士で演算
a /= 100; // 1... | [["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]] | 1 | 62 |
A, B = map(int, input().replace('.', '').split())
print(A, B)
print(A*B//100) | A, B = map(int, input().replace('.', '').split())
print(A*B//100) | [["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 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], ["-", 0, 652, 3, 4, 0, 657, 31, 657, 31, 22]] | 5 | 40 |
import math
a, b = input().split()
a = int(a)
b = float(b)
print(math.floor(a*b)) | import math
import decimal
a, b = input().split()
a = int(a)
b = decimal.Decimal(b)
print(math.floor(a*b)) | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22]] | 5 | 36 |
// Rafiqul Islam, MBSTU,ICT
#include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <queue>
#include <set>
#include <vector>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define pb push_back
#defi... | // Rafiqul Islam, MBSTU,ICT
#include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <queue>
#include <set>
#include <vector>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define pb push_back
#defi... | [["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 24], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 25]] | 1 | 684 |
import math
A,B = input().split(' ')
answer = math.floor(int(A)*float(B))
print(answer)
| import math
import decimal
A,B = input().split(' ')
answer = math.floor(int(A)*decimal.Decimal(B))
print(answer)
| [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 12, 652, 3, 4, 0, 657, 12, 652, 63, 22], ["+", 3, 4, 0, 657, 12, 652, 63, 319, 500, 22], ["+", 3, 4, 0, 657, 12, 652, 63, 319, 0, 131], ["+", 3, 4, 0, 657, 12, 652, 63, 319, 319, 22]] | 5 | 36 |
def main():
A, B = input().split()
A = int(A)
B100 = int(B[0] + B[2:])
print(int(A*B100/100))
if __name__ == "__main__":
main()
| def main():
A, B = input().split()
A = int(A)
B100 = int(B[0] + B[2:])
print(A*B100//100)
if __name__ == "__main__":
main()
| [["-", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 676], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 58 |
import math
A, B = map(str, input().split())
A = int(A)
B = decimal.Decimal(B)
print(math.floor(A*B)) | import math
import decimal
A, B = map(str, input().split())
A = int(A)
B = decimal.Decimal(B)
print(math.floor(A*B)) | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]] | 5 | 43 |
#include <stdio.h>
int main() {
long long int a, x;
double b;
scanf("%lld", &a);
scanf("%lf", &b);
x = b * 100;
printf("%lld", a * x / 100);
return 0;
}
| #include <stdio.h>
int main() {
long long int a, x;
double b;
scanf("%lld", &a);
scanf("%lf", &b);
x = b * 100 + 0.00001;
printf("%lld", a * x / 100);
return 0;
}
| [["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 0 | 60 |
#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, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["-", 0, 43, 49, 50, 51, 16, 31, 16, 12, 22], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 12, 22]] | 1 | 176 |
#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) { \
... | [["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]] | 1 | 246 |
A, B = input().split()
A = int(A)
B = int(''.join([b for b in B if b != '.']))
print(int((A * B) / 100)) | A, B = input().split()
A = int(A)
B = int(''.join([b for b in B if b != '.']))
print(A * B // 100) | [["-", 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, 657, 31, 23, 0, 24], ["-", 0, 652, 3, 4, 0, 657, 31, 23, 0, 25], ["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 676], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 54 |
import math
#x, y = map(float, input().split())
x, y = input().split()
y = float(y) * 100
ans = int(x) * int(y)
print(ans//100) | x, y = input().split()
y = float(y) * 100 + 0.01
ans = int(x) * int(y)
print(ans//100) | [["-", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["-", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 531]] | 5 | 39 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)n; ++i)
#define repi(i, a, b) for (int i = int(a); i < int(b); ++i)
#define repr(i, n) for (int i = (int)n - 1; i >= 0; --i)
#define ALL(a) (a).begin(), (a).end()
using ll = long long;
// using Graph = vector<vector<int>>;
using P ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)n; ++i)
#define repi(i, a, b) for (int i = int(a); i < int(b); ++i)
#define repr(i, n) for (int i = (int)n - 1; i >= 0; --i)
#define ALL(a) (a).begin(), (a).end()
using ll = long long;
// using Graph = vector<vector<int>>;
using P ... | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 158 |
a, b = input().split()
a = int(a)
b = int(100*float(b))
ans = a*b
print(int(ans//100)) | a, b = input().split()
a = int(a)
b = round(100*float(b))
ans = a*b
print(int(ans//100)) | [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]] | 5 | 42 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define INF 999999999
#define rep(i, n) for (int i = 0; i < n; i++)
const ll MOD = 1000000007;
ll cnt = 0, ans = 0;
const int MAX = 510000;
int main() {
ll a;
float b;
cin >> a >> b;
ll c = b * 100;
ans = (a * c) / 100;
cout << ans << endl... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define INF 999999999
#define rep(i, n) for (int i = 0; i < n; i++)
const ll MOD = 1000000007;
ll cnt = 0, ans = 0;
const int MAX = 510000;
int main() {
ll a;
double b;
cin >> a >> b;
ll c = b * 100 + 0.5;
ans = (a * c) / 100;
cout << ans <... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]] | 1 | 82 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.