buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
#include <bits/stdc++.h> using namespace std; #define ll long long int int main() { double b, a; ll c; cin >> a >> b; a = (a * b) + .0001; c = a; cout << c << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define ll long long int int main() { long double b, a; ll c; cin >> a >> b; a = (a * b) + 0.001; c = a; cout << c << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
52
/********************************************************************************************** ******************************AUTHOR:********************************************************** ****************************ASHISH *RANJAN****************************************************** *******************************...
/********************************************************************************************** ******************************AUTHOR:********************************************************** ****************************ASHISH *RANJAN****************************************************** *******************************...
[["-", 31, 23, 0, 16, 31, 69, 341, 342, 0, 13], ["+", 31, 23, 0, 16, 31, 69, 341, 342, 0, 13], ["-", 12, 23, 0, 16, 31, 69, 341, 342, 0, 13], ["+", 12, 23, 0, 16, 31, 69, 341, 342, 0, 13]]
1
346
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); long B = (long)(sc.nextDouble() * 100); long res = A * B / 100; System.out.println(res); } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); long B = (long)(sc.nextDouble() * 100 + 0.9); long res = A * B / 100; System.out.println(res); } }
[["+", 49, 200, 51, 74, 51, 23, 0, 16, 17, 72], ["+", 49, 200, 51, 74, 51, 23, 0, 16, 12, 515]]
3
78
A, B = input().split() print(round(int(A) * float(B) * 100) // 100)
A, B = input().split() print(int(A) * round(float(B) * 100) // 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, 657, 12, 652, 63, 22], ["+", 0, 657, 31, 657, 12, 652, 3, 4, 0, 24]]
5
30
A,B=input().split() A=int(A) B=round(100*float(B)) print(int(A*B/100))
A,B=input().split() A=int(A) B=round(100*float(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], ["-", 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
39
import math def main() -> None: a, b = input().split() print((int(a)*int(b.replace('.', ''))*100) // 100) return if __name__ == '__main__': main()
import math def main() -> None: a, b = input().split() print((int(a)*int(b.replace('.', ''))) // 100) return if __name__ == '__main__': main()
[["-", 3, 4, 0, 657, 31, 23, 0, 657, 17, 48], ["-", 3, 4, 0, 657, 31, 23, 0, 657, 12, 612]]
5
59
#include <bits/stdc++.h> using namespace std; int main() { long long A; int C; double B; cin >> A >> B; C = 100 * B; cout << (long long)A * C / 100 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long A; int C; double B; cin >> A >> B; C = 100 * B + 0.001; cout << (long long)A * C / 100 << endl; }
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
48
#include <bits/stdc++.h> // #include<iostream> // #include<vector> // #include<cmath> // #include<iomanip> using namespace std; const double PI = acos(-1.0); int gcd_func(int a, int b) { return b ? gcd_func(b, a % b) : a; } int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); // freopen("i...
#include <bits/stdc++.h> // #include<iostream> // #include<vector> // #include<cmath> // #include<iomanip> using namespace std; const double PI = acos(-1.0); int gcd_func(int a, int b) { return b ? gcd_func(b, a % b) : a; } int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); // freopen("i...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 43, 49, 50, 51, 74, 51, 23, 0, 24], ["+", 49, 50, 51, 74, 51, 23, 0, 2, 63, 22], ["+", 51, 74, 51, 23, 0, 2, 3, 4, 0, 25]]
1
112
#define _USE_MATH_DEFINES #include <algorithm> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <sstream> #include <stack> #include <stdio.h> #include <stdlib.h> #include <string> #include <time.h> #include <vector> typed...
#define _USE_MATH_DEFINES #include <algorithm> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <sstream> #include <stack> #include <stdio.h> #include <stdlib.h> #include <string> #include <time.h> #include <vector> typed...
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 85], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
88
a, b = map(float, input().split()) a = int(a) b = int(b * 100) ans = a * b ans = ans // 100 print(ans)
import math a, b = map(float, input().split()) a = int(a) b = int(round(b * 100)) ans = a * b ans = ans // 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, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
44
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, ll> Pil; ll A; double B; int main() { cin >> A >> B; ll new_B = B * 100; cout << (A * new_B) / 100 << endl; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, ll> Pil; ll A; double B; int main() { cin >> A >> B; ll new_B = round(B * 100); cout << (A * new_B) / 100 << endl; return 0; }
[["+", 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
60
N=int(input()) a=list(map(int,input().split())) c=1 flag=True for i in range(N): c*=a[i] if c>10**18: flag=False break if flag: print(c) else: print(-1)
N=int(input()) a=list(map(int,input().split())) a.sort() c=1 flag=True for i in range(N): c*=a[i] if c>10**18: flag=False break if flag: print(c) else: print(-1)
[["+", 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
70
N = int(input()) A = map(int, input().split()) if 0 in A: print(0) exit(0) mul = 1 for a in A: if mul * a > 10 ** 18: print(-1) exit(0) mul *= a print(mul)
N = int(input()) A = list(map(int, input().split())) if 0 in A: print(0) exit(0) mul = 1 for a in A: if mul * a > 10 ** 18: print(-1) exit(0) mul *= a print(mul)
[["+", 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
68
import sys input = sys.stdin.readline def main(): n = int(input()) a = map(int, input().split()) ans = 1 for x in a: ans *= x if ans > 10 ** 18: print(-1) exit() print(ans) main()
import sys input = sys.stdin.readline def main(): n = int(input()) a = sorted(map(int, input().split())) ans = 1 for x in a: ans *= x if ans > 10 ** 18: print(-1) exit() print(ans) main()
[["+", 8, 196, 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
#exec({'RUBY_THREAD_VM_STACK_SIZE'=>'100000000'},'/usr/bin/ruby', $0) if !ENV['RUBY_THREAD_VM_STACK_SIZE'] require 'prime' def inpf() a=gets.chomp.split(" ").map(&:to_f)end def inps() a=gets.chomp.split(" ")end def copy(a) Marshal.load(Marshal.dump(a)) end def kaijo(n,r = 10**9+7)(n < 2)? 1 : (2..n).inject{|memo,u|...
#exec({'RUBY_THREAD_VM_STACK_SIZE'=>'100000000'},'/usr/bin/ruby', $0) if !ENV['RUBY_THREAD_VM_STACK_SIZE'] require 'prime' def inpf() a=gets.chomp.split(" ").map(&:to_f)end def inps() a=gets.chomp.split(" ")end def copy(a) Marshal.load(Marshal.dump(a)) end def kaijo(n,r = 10**9+7)(n < 2)? 1 : (2..n).inject{|memo,u|...
[["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
317
#define _USE_MATH_DEFINES #include <algorithm> #include <array> #include <bitset> #include <cassert> #include <chrono> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <...
#define _USE_MATH_DEFINES #include <algorithm> #include <array> #include <bitset> #include <cassert> #include <chrono> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <...
[["-", 12, 16, 31, 16, 12, 16, 31, 16, 17, 48], ["+", 0, 11, 12, 16, 31, 16, 12, 16, 17, 19]]
1
446
def main(): import sys input = sys.stdin.buffer.readline n = int(input()) a = list(map(int, input().split())) a = sorterd(a) limit = 10**18 ans = 1 for ai in a: ans *= ai if ans > limit: print(-1) exit(0) if ans == 0: break ...
def main(): import sys input = sys.stdin.buffer.readline n = int(input()) a = list(map(int, input().split())) a = sorted(a) limit = 10**18 ans = 1 for ai in a: ans *= ai if ans > limit: print(-1) exit(0) if ans == 0: break p...
[["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22]]
5
97
n=int(input()) a=list(map(int,input().split())) s=1 if 0 in a: print(0) else: for i in range(n): s=s*a[i] if s>10**18: print(-1) else: print(s)
n=int(input()) a=list(map(int,input().split())) s=1 if 0 in a: print(0) else: for i in range(n): s=s*a[i] if s>10**18: print(-1) break else: print(s)
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
5
73
#include <bits/stdc++.h> #define ll long long #define ld long double #define mk make_pair #define fi first #define se second #define vll vector<ll> #define pii pair<ll, ll> #define vvll vector<vector<ll>> #define pb push_back #define sz(v) (ll)(v).size() #define inf 1e18 #define md 1000000007 #define all(v) (v).begin()...
#include <bits/stdc++.h> #define ll long long #define ld long double #define mk make_pair #define fi first #define se second #define vll vector<ll> #define pii pair<ll, ll> #define vvll vector<vector<ll>> #define pb push_back #define sz(v) (ll)(v).size() #define inf 1e18 #define md 1000000007 #define all(v) (v).begin()...
[["+", 0, 57, 75, 76, 0, 9, 0, 93, 0, 94], ["+", 0, 57, 75, 76, 0, 9, 0, 93, 0, 35]]
1
346
n = int(input()) a = list(map(int, input().split())) a.sort(reverse=True) if min(a) == 0: print(0) exit() else: ans = a[0] for i in range(1, n, 1): ans = ans * a[i] if ans > 1e+18: print(-1) else: print(ans)
n = int(input()) a = list(map(int, input().split())) a.sort(reverse=True) if min(a) == 0: print(0) exit() else: ans = a[0] for i in range(1, n, 1): ans = ans * a[i] if ans > 1e+18: print(-1) exit() print(ans)
[["-", 0, 7, 8, 196, 0, 57, 75, 76, 0, 95], ["-", 0, 7, 8, 196, 0, 57, 75, 76, 0, 102], ["+", 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
92
N=int(input()) A=list(map(int, input().split())) ans=1 flag=0 if 0 in A: print(0) else: for a in A: ans*=a print(ans) if ans>10**18: flag=1 break print(ans if flag==0 else -1)
N=int(input()) A=list(map(int, input().split())) ans=1 flag=0 if 0 in A: print(0) else: for a in A: ans*=a if ans>10**18: flag=1 break print(ans if flag==0 else -1)
[["-", 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
import sys N = int(input()) A = list(map(int,input().split())) res = 1 for i in A: if res > 10**18: print(-1) sys.exit() res *= i if res > 10**18: print(-1) else: print(res)
import sys N = int(input()) A = sorted(list(map(int,input().split()))) res = 1 for i in A: if res > 10**18: print(-1) sys.exit() res *= i if res > 10**18: print(-1) else: 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
73
N = int(input()) A = list(map(int,input().split())) if 0 in A: print(0) else: ans = 1 for a in A: ans *= 1 if ans>10**18: ans = -1 break print(ans)
N = int(input()) A = list(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, 1, 0, 677, 12, 612], ["+", 0, 7, 8, 196, 0, 1, 0, 677, 12, 22]]
5
63
n=int(input()) a=list(map(int,input().split())) ans=1 for i in a: ans=ans*i if ans>10**18: print(-1) break else: print(ans)
n=int(input()) a=sorted(list(map(int,input().split()))) ans=1 for i in a: ans=ans*i if ans>10**18: print(-1) break else: 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
57
N = int(input()) A = list(map(int, input().split())) if A.count(0) <= 1: print(0) exit(0) L = 10**18 ans = A[0] for i in range(1, N): ans *= A[i] if ans > L: print(-1) exit(0) print(ans)
N = int(input()) A = list(map(int, input().split())) if A.count(0) >= 1: print(0) exit(0) L = 10**18 ans = A[0] for i in range(1, N): ans *= A[i] if ans > L: print(-1) exit(0) print(ans)
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20]]
5
88
import sys sys.setrecursionlimit(10 ** 7) f_inf = float('inf') mod = 10 ** 9 + 7 def resolve(): n = int(input()) A = list(map(int, input().split())) res = 1 for a in A: res *= a if res > 10 ** 18: print(-1) break else: print(res) if __name__ == '...
import sys sys.setrecursionlimit(10 ** 7) f_inf = float('inf') mod = 10 ** 9 + 7 def resolve(): n = int(input()) A = sorted(list(map(int, input().split()))) res = 1 for a in A: res *= a if res > 10 ** 18: print(-1) break else: print(res) if __nam...
[["+", 8, 196, 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
95
n=int(input()) li=list(map(int,input().split())) ans=1 if 0 in li: print('-1') import sys sys.exit() for l in li: ans*=l #print(ans) if ans > 10**18: print('-1') break else: print(ans)
n=int(input()) li=list(map(int,input().split())) ans=1 if 0 in li: print('0') import sys sys.exit() for l in li: ans*=l #print(ans) if ans > 10**18: print('-1') break else: print(ans)
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
75
n = int(input()) a = list(map(int, input().split())) ans = 1 for i in range(n): ans *= a[i] if ans > pow(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 > pow(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
64
N = int(input()) A = list(map(int, input().split())) ans = 1 if 0 in A: print('0') else: for a in A: ans *= a print(ans) if ans > 10**18: ans = -1 break 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)
[["-", 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
69
n = int(input()) A = list(map(int,input().split())) prod = 1 flag = 0 lim = 1e18 for num in A: prod = num*prod if prod > lim: flag = 1 break if flag == 1: print(-1) else: print(prod)
n = int(input()) A = list(map(int,input().split())) prod = 1 flag = 0 lim = 1e18 A.sort() for num in A: prod = num*prod if prod > lim: flag = 1 break if flag == 1: print(-1) else: print(prod)
[["+", 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
69
n = int(input()) a = list(map(int,input().split())) b= 1 c = 0 if a[0]==0: print(0) else: for i in range(n): b *=a[i] if b>10**18: print(-1) c =1 break if c ==0: print(b)
n = int(input()) a = list(map(int,input().split())) b= 1 c = 0 if min(a)==0: print(0) else: for i in range(n): b *=a[i] if b>10**18: print(-1) c =1 break if c ==0: print(b)
[["+", 0, 656, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 57, 15, 666, 0, 206, 0, 70], ["-", 0, 656, 0, 57, 15, 666, 0, 206, 206, 612], ["-", 0, 656, 0, 57, 15, 666, 0, 206, 0, 73], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25]]
5
84
def main(): from sys import setrecursionlimit, stdin from os import environ from collections import defaultdict, deque, Counter from math import ceil, floor, gcd from itertools import accumulate, combinations, combinations_with_replacement setrecursionlimit(10**6) dbg = (lambda *something: p...
def main(): from sys import setrecursionlimit, stdin from os import environ from collections import defaultdict, deque, Counter from math import ceil, floor, gcd from itertools import accumulate, combinations, combinations_with_replacement setrecursionlimit(10**6) dbg = (lambda *something: p...
[["+", 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
167
n = int(input()) a = list(map(int, input().split())) if 0 in a: print(-1) else: ans = 1 for i in a: if i == 0: ans = 0 break elif ans * i > 10 ** 18: ans = -1 break else: ans *= i print(ans)
n = int(input()) a = list(map(int, input().split())) if 0 in a: print(0) else: ans = 1 for i in a: if i == 0: ans = 0 break elif ans * i > 10 ** 18: ans = -1 break else: ans *= i 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
77
_ = gets.to_i a = gets.split.map(&:to_i) if a.include?(0) puts 0 exit end p = 1 a.each do |aa| p *= aa if p > 10*18 p = -1 break end end puts p
_ = gets.to_i a = gets.split.map(&:to_i) if a.include?(0) puts 0 exit end p = 1 a.each do |aa| p *= aa if p > 10**18 p = -1 break end end puts p
[["-", 8, 736, 0, 121, 15, 738, 12, 738, 17, 48], ["+", 8, 736, 0, 121, 15, 738, 12, 738, 17, 578]]
4
55
N = int(input()) A = [int(n) for n in input().split()] ans = 1 LIMIT = 1000000000 ** 2 for a in A: ans *= a if ans > LIMIT: print(-1) exit() print(ans)
N = int(input()) A = sorted([int(n) for n in input().split()]) ans = 1 LIMIT = 1000000000 ** 2 for a in A: ans *= a if ans > LIMIT: print(-1) exit() 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]]
5
59
n = int(input()) a = list(map(int, input().split())) res = 1 for i in range(n): res *= a[i] if res > 1e18: print(-1) exit(0) print(res)
n = int(input()) a = list(map(int, input().split())) a.sort() res = 1 for i in range(n): res *= a[i] if res > 1e18: print(-1) exit(0) print(res)
[["+", 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
60
#include <bits/stdc++.h> using namespace std; using ll = long long; typedef pair<int, int> P; ll Mod = 1000000007; int main() { int N; ll A[N]; ll inf = 1000000000000000000; for (int i = 0; i < N; i++) { cin >> A[i]; if (A[i] == 0) { cout << 0 << endl; return 0; } } ll ans = 1; for...
#include <bits/stdc++.h> using namespace std; using ll = long long; typedef pair<int, int> P; ll Mod = 1000000007; int main() { int N; cin >> N; ll A[N]; ll inf = 1000000000000000000; for (int i = 0; i < N; i++) { cin >> A[i]; if (A[i] == 0) { cout << 0 << endl; return 0; } } ll an...
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
168
n = int(input()) a = list(map(int, input().split())) ans = 1 for i in range(0, n): if ans * a[i] <= 1_000_000_000_000_000_000: ans *= a[i] else: ans = 1_000_000_000_000_000_001 break if ans <= 1_000_000_000_000_000_000: print(ans) else: print(-1)
n = int(input()) a = list(map(int, input().split())) ans = 1 a.sort() for i in range(0, n): if ans * a[i] <= 1_000_000_000_000_000_000: ans *= a[i] else: ans = 1_000_000_000_000_000_001 break if ans <= 1_000_000_000_000_000_000: print(ans) else: print(-1)
[["+", 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
76
import sys sys.setrecursionlimit(10**8) input = sys.stdin.readline N = int(input()) A = list(map(int,input().split())) ans = 1 for a in A: ans *= a if ans>10**18: print(-1) exit() if ans>10**18: print(-1) else: print(ans)
import sys sys.setrecursionlimit(10**8) input = sys.stdin.readline N = int(input()) A = list(map(int,input().split())) A.sort() ans = 1 for a in A: ans *= a if ans>10**18: print(-1) exit() if ans>10**18: print(-1) 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
86
import sys n = int(input()) a = list(map(int,input().split())) ans = 1 c = 10**18 if 0 in a: print(0) else: for i in a: ans *= i if ans > c: print(ans) print(-1) sys.exit() print(ans)
import sys n = int(input()) a = list(map(int,input().split())) ans = 1 c = 10**18 if 0 in a: print(0) else: for i in a: ans *= i if ans > c: print(-1) sys.exit() print(ans)
[["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 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
77
#include <bits/stdc++.h> using namespace std; #define sz(x) (int)((x).size()) #define forn(i, n) for (int i = 0; i < n; i++) #define forse(i, s, e) for (int i = s; i < e; i++) #define pb push_back #define fi first #define se second #define all(vec) vec.begin(), vec.end() #define time() ((double)clock() / CLOCKS_PER_SE...
#include <bits/stdc++.h> using namespace std; #define sz(x) (int)((x).size()) #define forn(i, n) for (int i = 0; i < n; i++) #define forse(i, s, e) for (int i = s; i < e; i++) #define pb push_back #define fi first #define se second #define all(vec) vec.begin(), vec.end() #define time() ((double)clock() / CLOCKS_PER_SE...
[["+", 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], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
227
#include <bits/stdc++.h> using namespace std; #define trace(...) __f(#__VA_ARGS__, __VA_ARGS__) template <typename Arg1> void __f(const char *name, Arg1 &&arg1) { cerr << name << " : " << arg1 << "\n"; } template <typename Arg1, typename... Args> void __f(const char *na, Arg1 &&arg1, Args &&...args) { const char *...
#include <bits/stdc++.h> using namespace std; #define trace(...) __f(#__VA_ARGS__, __VA_ARGS__) template <typename Arg1> void __f(const char *name, Arg1 &&arg1) { cerr << name << " : " << arg1 << "\n"; } template <typename Arg1, typename... Args> void __f(const char *na, Arg1 &&arg1, Args &&...args) { const char *...
[["-", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 38]]
1
395
n = int(input()) a = list(map(int,input().split())) ans = 1 inf = 10 ** 18 if 0 in a: print(0) exit() for x in a: ans *= x if ans >= inf: print(-1) exit() print(ans)
n = int(input()) a = list(map(int,input().split())) ans = 1 inf = 10 ** 18 + 1 if 0 in a: print(0) exit() for x in a: ans *= x if ans >= inf: print(-1) exit() print(ans)
[["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]]
5
70
#include <bits/stdc++.h> using namespace std; #define MOD 1000000007 int main() { long long a; double b; cin >> a >> b; int B = b * 100; a *= B; cout << a / 100 << endl; }
#include <bits/stdc++.h> using namespace std; #define MOD 1000000007 int main() { long long a; double b; cin >> a >> b; int B = b * 100 + 0.001; a *= B; cout << a / 100 << endl; }
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
47
a,b=map(input().split()) b.replace('.','') ans=int(a)*int(b)//100 print(ans)
a,b=map(str,input().split()) b=b.replace('.','') ans=int(a)*int(b)//100 print(ans)
[["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32]]
5
42
#include <iostream> using namespace std; int main() { long long a; double b; cin >> a >> b; cout << a * ((long long)(b * 100)) / 100 << endl; return 0; }
#include <iostream> using namespace std; int main() { long long a; double b; cin >> a >> b; cout << a * ((long long)(b * 100 + 0.5)) / 100 << endl; return 0; }
[["+", 12, 23, 0, 74, 51, 23, 0, 16, 17, 72], ["+", 12, 23, 0, 74, 51, 23, 0, 16, 12, 13]]
1
48
#include <algorithm> #include <cmath> #include <iostream> #include <string.h> #include <vector> using namespace std; int main() { long long A; double B; cin >> A >> B; long long tmp = B * 100; long long tmp2 = A * tmp / 100; cout << tmp2 << endl; return 0; }
#include <algorithm> #include <cmath> #include <iostream> #include <string.h> #include <vector> using namespace std; int main() { long long A; double B; cin >> A >> B; long long tmp = (B + 0.001) * 100; long long tmp2 = A * tmp / 100; cout << tmp2 << endl; return 0; }
[["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 17, 72], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25]]
1
60
#include <bits/stdc++.h> using namespace std; int main() { long long A; double B; cin >> A >> B; long long ans = (A * (long long)(B * 100)) / 100; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long A; double B; cin >> A >> B; long long ans = (A * (long long)(B * 100 + 0.00001)) / 100; cout << ans << endl; }
[["+", 0, 16, 12, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 16, 12, 74, 51, 23, 0, 16, 12, 13]]
1
51
a, b = input().split() a = int(a) b = str(b) b = int(b[0]+b[2]+b[3]) print(int(a*b/100))
a, b = input().split() a = int(a) b = str(b) b = int(b[0]+b[2]+b[3]) print(a*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
53
#include <algorithm> #include <bits/stdc++.h> #include <math.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; #define PI 3.14159265358979323846264338327950 #define INF 1e18 int main() { ll a; double b; cin >> a >> b; ll c = (ll)(b * 100); ...
#include <algorithm> #include <bits/stdc++.h> #include <math.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; #define PI 3.14159265358979323846264338327950 #define INF 1e18 int main() { ll a; double b; cin >> a >> b; ll c = (ll)(b * 100 + 0...
[["+", 49, 50, 51, 2, 3, 4, 0, 16, 17, 72], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 12, 13]]
1
85
import sys input = sys.stdin.readline #n = int(input()) #l = list(map(int, input().split())) ''' a=[] b=[] for i in range(): A, B = map(int, input().split()) a.append(A) b.append(B)''' a,b= input().split() a=int(a) b=int(float(b)*100) print(a*b//100)
import sys input = sys.stdin.readline #n = int(input()) #l = list(map(int, input().split())) ''' a=[] b=[] for i in range(): A, B = map(int, input().split()) a.append(A) b.append(B)''' from decimal import Decimal a,b= input().split() a=int(a) b=int(Decimal(b)*100) print(a*b//100)
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["-", 12, 652, 3, 4, 0, 657, 31, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 657, 31, 652, 63, 22]]
5
50
#include <bits/stdc++.h> using namespace std; #define ll long long template <typename T> bool PN(T x) { if (x <= 1) return false; if (x == 2) return true; for (int i = 2; i < sqrt(x) + 1; i++) if (x % i == 0) return false; return true; } const ll MOD = 1e9 + 7; long long Comb(int n, int i) { ...
#include <bits/stdc++.h> using namespace std; #define ll long long template <typename T> bool PN(T x) { if (x <= 1) return false; if (x == 2) return true; for (int i = 2; i < sqrt(x) + 1; i++) if (x % i == 0) return false; return true; } const ll MOD = 1e9 + 7; long long Comb(int n, int i) { ...
[["-", 0, 16, 31, 16, 12, 16, 31, 74, 0, 24], ["-", 31, 16, 12, 16, 31, 74, 39, 77, 39, 40], ["-", 0, 16, 31, 16, 12, 16, 31, 74, 0, 25]]
1
238
#include <bits/stdc++.h> int main() { int64_t a; double b; scanf("%lld %lf", &a, &b); __int128 aa = a; __int128 bb = (b * 100); printf("%lld\n", int64_t((aa * bb) / 100)); }
#include <bits/stdc++.h> int main() { int64_t a; double b; scanf("%lld %lf", &a, &b); __int128 aa = a; __int128 bb = round(b * 100); printf("%lld\n", int64_t((aa * bb) / 100)); }
[["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22]]
1
60
def main(): a, b = map(str, input().split()) a = int(a) b = float(b) print(int(a*b)) if __name__ == "__main__": main()
import fractions def main(): a, b = map(str, input().split()) a = int(a) b = fractions.Fraction(b) print(int(a*b)) if __name__ == "__main__": main()
[["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 8, 196, 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
52
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; using P = pair<int, int>; int main() { ll A, B; double x; cin >> A >> x; B = x * 100; ll ans = A * B / 100; cout << ans << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; using P = pair<int, int>; int main() { ll A, B; double x; cin >> A >> x; B = x * 100 + 0.5; ll ans = A * B / 100; cout << ans << endl; return 0; }
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
74
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) #define INF 1000000007 using namespace std; int main() { long long a; double b; cin >> a >> b; long long nb = (long long)(100.0 * b); long long ans = a * nb / 100; cout << ans << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) #define INF 1000000007 using namespace std; int main() { long long a; double b; cin >> a >> b; long long nb = (long long)(100.0 * b + 0.2); long long ans = (a * nb) / 100; cout << ans << endl; return 0; }
[["+", 49, 50, 51, 74, 51, 23, 0, 16, 17, 72], ["+", 49, 50, 51, 74, 51, 23, 0, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25]]
1
69
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<ll, ll>; #define rep(i, n) \ ; \ for (ll i = 0; i < (ll)n; i++) template <class T> inline bool ch...
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<ll, ll>; #define rep(i, n) \ ; \ for (ll i = 0; i < (ll)n; i++) template <class T> inline bool ch...
[["-", 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], ["-", 12, 2, 3, 4, 0, 16, 31, 16, 12, 22], ["+", 12, 16, 31, 2, 3, 4, 0, 16, 12, 22], ["+", 31, 16, 12, 16, 31, 2, 3, 4, 0, 25], ["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 25]]
1
145
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ll A; double B; cin >> A >> B; ll b = B * 100 + 0.5; cout << ll(A * B / 100) << endl; }
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ll A; double B; cin >> A >> B; ll b = B * 100 + 0.5; cout << ll(A * b / 100) << endl; }
[["-", 12, 2, 3, 4, 0, 16, 31, 16, 12, 22], ["+", 12, 2, 3, 4, 0, 16, 31, 16, 12, 22]]
1
52
#include <bits/stdc++.h> using namespace std; int main() { long long a, s; double b; cin >> a >> b; cout << (long long)(b * 100) * a / 100; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, s; double b; cin >> a >> b; cout << (long long)(b * 100 + 1e-10) * a / 100; }
[["+", 31, 16, 31, 74, 51, 23, 0, 16, 17, 72], ["+", 31, 16, 31, 74, 51, 23, 0, 16, 12, 13]]
1
43
#include <iostream> using namespace std; int main() { long long a; double b; cin >> a >> b; cout << (long long)(a * (b * 100 + 0.000001) / 100); return 0; }
#include <iostream> using namespace std; int main() { long long a; double b; cin >> a >> b; cout << (long long)(b * 100 + 0.000001) * a / 100; return 0; }
[["-", 12, 74, 51, 23, 0, 16, 31, 16, 31, 22], ["-", 12, 74, 51, 23, 0, 16, 31, 16, 17, 48], ["-", 51, 23, 0, 16, 31, 16, 12, 23, 0, 24], ["+", 0, 1, 0, 16, 12, 16, 31, 16, 17, 48], ["+", 0, 1, 0, 16, 12, 16, 31, 16, 12, 22], ["-", 0, 1, 0, 16, 12, 74, 51, 23, 0, 25]]
1
48
#include <bits/stdc++.h> #define syosu(x) fixed << setprecision(x) using namespace std; typedef long long ll; typedef unsigned int uint; typedef unsigned long long ull; typedef pair<int, int> P; typedef pair<double, double> pdd; typedef pair<ll, ll> pll; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<do...
#include <bits/stdc++.h> #define syosu(x) fixed << setprecision(x) using namespace std; typedef long long ll; typedef unsigned int uint; typedef unsigned long long ull; typedef pair<int, int> P; typedef pair<double, double> pdd; typedef pair<ll, ll> pll; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<do...
[["+", 31, 16, 31, 23, 0, 2, 63, 23, 0, 24], ["+", 31, 23, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 31, 23, 0, 2, 3, 4, 0, 16, 12, 22], ["+", 31, 16, 31, 23, 0, 2, 3, 4, 0, 25]]
1
247
package main import ( "bufio" "fmt" "os" "strconv" "strings" ) func main() { var a int var b float64 fmt.Scanf("%d %f", &a, &b) intB := int(b * 100) fmt.Printf("%d\n", (a*intB)/100) } func scanLongIntSlices(lines int, maxBufSize int) ([][]int, error) { res := [][]int{} sc := bufio.NewScanner(os.Stdin)...
package main import ( "bufio" "fmt" "os" "strconv" "strings" ) func main() { var a int var b float64 fmt.Scanf("%d %f", &a, &b) intB := int((b + 0.001) * 100) fmt.Printf("%d\n", (a*intB)/100) } func scanLongIntSlices(lines int, maxBufSize int) ([][]int, error) { res := [][]int{} sc := bufio.NewScanner...
[["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 12, 445], ["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 25]]
7
265
#include <bits/stdc++.h> #define loop(s, e, i) for (int i = s; i < e; ++i) #define print(s) cout << s << endl; using namespace std; using ll = long long; using lld = long long; /* 浮動小数点の入力 cout << fixed << setprecision(9) << endl; */ ll gcd(ll a, ll b) { if (a < b) { return gcd(b, a); } while (b != 0) { ...
#include <bits/stdc++.h> #define loop(s, e, i) for (int i = s; i < e; ++i) #define print(s) cout << s << endl; using namespace std; using ll = long long; using lld = long long; /* 浮動小数点の入力 cout << fixed << setprecision(9) << endl; */ ll gcd(ll a, ll b) { if (a < b) { return gcd(b, a); } while (b != 0) { ...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
132
a, b= input().split() a=int(a) b=float(b) c=int(a*b) print(c)
from decimal import Decimal a, b= input().split() a=int(a) b=Decimal(b) c=int(a*b) print(c)
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
35
a,b = input().split() a = int(a) b = int("".join(b.split("."))) print(int(a*b/100))
a,b = input().split() a = int(a) b = int("".join(b.split("."))) print(a*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
47
a, b = input().split() a = int(a) b = int(float(b) * 100) print(a * b // 100)
a, b = input().split() a = int(a) b = int(round(float(b) * 100)) print(a * b // 100)
[["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
36
#include <iostream> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using P = pair<int, int>; #include <algorithm> #include <map> #include <math.h> #include <queue> #include <set> int main() { ll a; double b; cin >> a >> b; ll c; c = 100 * b; cou...
#include <iostream> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using P = pair<int, int>; #include <algorithm> #include <map> #include <math.h> #include <queue> #include <set> int main() { ll a; double b; cin >> a >> b; ll c; c = 100 * b + 0.1;...
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
80
# coding: utf-8 # Your code here! A,B=map(float,input().split()) print(int(A*round(B*100))//100)
# coding: utf-8 # Your code here! A,B=map(float,input().split()) print((int(A)*int(round(B*100)))//100)
[["+", 0, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["+", 31, 23, 0, 657, 31, 652, 3, 4, 0, 25], ["+", 0, 657, 31, 23, 0, 657, 12, 652, 63, 22], ["+", 31, 23, 0, 657, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
34
# coding: utf-8 # Your code here! A,B=input().split() A=int(A) B=int(float(B)*100) print(A*B//100)
# coding: utf-8 # Your code here! A,B=input().split() A=int(A) B=round(float(B)*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]]
5
38
x,y=gets.split.map(&:to_f) puts (x*y).to_i
x,y=gets.split.map &:to_r puts (x*y).to_i
[["-", 0, 493, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 662, 12, 652, 3, 4, 0, 752, 0, 753], ["-", 0, 493, 0, 662, 12, 652, 3, 4, 0, 25], ["+", 0, 662, 12, 652, 3, 4, 0, 752, 0, 753]]
4
21
x,y=gets.split.map(&:to_r) puts x puts y puts (x*y).floor
x,y=gets.split.map(&:to_r) puts (x*y).floor
[["-", 36, 36, 0, 493, 0, 652, 3, 4, 0, 22], ["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
25
#include <bits/stdc++.h> using namespace std; int main() { long double a, b; cin >> a >> b; b = (long long int)(100 * b); cout << (long long int)(a * b / 100) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long double a, b; cin >> a >> b; b = (long long int)(100 * b + 0.001); cout << (long long int)(a * b / 100) << endl; }
[["+", 0, 11, 12, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 11, 12, 74, 51, 23, 0, 16, 12, 13]]
1
54
#include <bits/stdc++.h> using namespace std; int main() { long double a, b; cin >> a >> b; b = 100 * b; cout << (long long int)(a * b / 100 + 0.5) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long double a, b; cin >> a >> b; b = 100 * b; cout << (long long int)(a * b / 100 + 0.001) << endl; }
[["-", 31, 16, 12, 74, 51, 23, 0, 16, 12, 13], ["+", 31, 16, 12, 74, 51, 23, 0, 16, 12, 13]]
1
49
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { double A, B; long long ans, A_l, B_l; std::cin >> A >> B; A_l = (long long)A; B_l = (long long)(B * 100); // std::cout << A_l << " " << B_l << "\n"; // std::cout << A_l * B_l << "\n"; ans = (A_l * B_l - (A_l * B_...
#include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { double A, B; long long ans, A_l, B_l; std::cin >> A >> B; A_l = (long long)A; B_l = (long long)round(B * 100.0); // std::cout << A_l << " " << B_l << "\n"; // std::cout << A_l * B_l << "\n"; ans = (A_l * B_l - (A...
[["+", 0, 1, 0, 11, 12, 74, 51, 2, 63, 22], ["-", 0, 11, 12, 74, 51, 23, 0, 16, 12, 13], ["+", 12, 74, 51, 2, 3, 4, 0, 16, 12, 13]]
1
86
import math a,b = map(str,input().split()) a = int(a) b = float(b) ans = (a*b) print(int(ans))
from decimal import Decimal a,b = map(str,input().split()) a = Decimal(a) b = Decimal(b) ans = (a*b) print(int(ans))
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["-", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
44
#pragma GCC optimize(3, "Ofast", "inline") #include <bits/stdc++.h> #define ios std::ios::sync_with_stdio(false) #define rep(i, a, n) for (int i = a; i <= n; i++) #define per(i, n, a) for (int i = n; i >= a; i--) #define repp(i, a, b) for (int i = a; i < b; i++) #define mm(a, n) memset(a, n, sizeof(a)) #define pb push_...
#pragma GCC optimize(3, "Ofast", "inline") #include <bits/stdc++.h> #define ios std::ios::sync_with_stdio(false) #define rep(i, a, n) for (int i = a; i <= n; i++) #define per(i, n, a) for (int i = n; i >= a; i--) #define repp(i, a, b) for (int i = a; i < b; i++) #define mm(a, n) memset(a, n, sizeof(a)) #define pb push_...
[["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 108], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 48], ["-", 12, 2, 3, 4, 0, 16, 31, 16, 12, 22], ["+", 12, 2, 3, 4, 0, 16, 31, 16, 12, 22]]
1
255
in_ = list(input().split()) A = int(in_[0]) B = int(in_[1].replace(".", "")) ans = A * B ans = int(ans / 100) print(ans)
in_ = list(input().split()) A = int(in_[0]) B = int(in_[1].replace(".", "")) ans = A * B ans = ans // 100 print(ans)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 662, 12, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
57
from decimal import Decimal in_ = list(input().split()) A = int(in_[0]) B = Decimal(in_[1]) ans = Decimal(A * B) print(ans)
from decimal import Decimal in_ = list(input().split()) A = int(in_[0]) B = Decimal(in_[1]) ans = A * B print(int(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, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
46
from decimal import Decimal in_ = list(input().split()) A = int(in_[0]) B = Decimal(in_[1]) ans = Decimal(A * B) print(ans)
from decimal import Decimal in_ = list(input().split()) A = int(in_[0]) B = Decimal(in_[1]) ans = Decimal(A * B) print(int(ans))
[["+", 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
46
import math A,B = input().split() A = int(A) q = int(B[0]+B[2]+B[3]) print(int(A*q/100))
import math A,B = input().split() A = int(A) q = int(B[0]+B[2]+B[3]) print(int(A*q//100))
[["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 85], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 676]]
5
49
#include <algorithm> #include <cstddef> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <string> #include <vector> using namespace std; int main() { long long a, B, mult, ans; double b; cin >> a >> b; B = b * 100; mult = a * B; ans = mult / 100; cout << a...
#include <algorithm> #include <cstddef> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <string> #include <vector> using namespace std; int main() { long long a, B, mult, ans; double b; cin >> a >> b; B = b * 100 + 0.5; mult = a * B; ans = mult / 100; cou...
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
74
import math a,b = map(str, input().split()) b = b.replace(".","") a = int(a) b = int(b) print(int(a * b / 100))
import math a,b = map(str, input().split()) b = b.replace(".","") a = int(a) b = int(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], ["-", 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
#include <bits/stdc++.h> #define ll long long int #define rep(i, a, b) for (long long i = a; i < b; i += 1) #define repr(i, a, b) for (long long i = a; i <= b; i += 1) #define vec vector<ll> #define map map<char, int> #define repa(p, A) for (auto p : A) #define pb push_back #define sort(a) sort(a.begin(), a.end()) #def...
#include <bits/stdc++.h> #define ll long long int #define rep(i, a, b) for (long long i = a; i < b; i += 1) #define repr(i, a, b) for (long long i = a; i <= b; i += 1) #define vec vector<ll> #define map map<char, int> #define repa(p, A) for (auto p : A) #define pb push_back #define sort(a) sort(a.begin(), a.end()) #def...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
116
import math x, n = list(map(float, input().split())) #print(x,n) #print(n*x) n = round(100*n) print(int(x*n)//100)
import math x, n = list(map(float, input().split())) #print(x,n) #print(n*x) n = round(100*n) print(int(x)*n//100)
[["+", 0, 657, 31, 657, 31, 652, 3, 4, 0, 25], ["-", 3, 4, 0, 657, 31, 652, 3, 4, 0, 25]]
5
42
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); double b = sc.nextDouble(); long bb = (long)(b * 100); long ans = (a * bb) / 100; System.out.println(ans); } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); double b = sc.nextDouble(); long bb = (long)(b * 100.0 + 0.5); long ans = (a * bb) / 100; System.out.println(ans); } }
[["-", 49, 200, 51, 74, 51, 23, 0, 16, 12, 499], ["+", 51, 74, 51, 23, 0, 16, 31, 16, 12, 515], ["+", 49, 200, 51, 74, 51, 23, 0, 16, 17, 72], ["+", 49, 200, 51, 74, 51, 23, 0, 16, 12, 515]]
3
85
#include <bits/stdc++.h> using namespace std; using ll = long long; #define all(v) v.begin(), v.end() int main() { ll A; cin >> A; char a, b, c, d; cin >> a >> b >> c >> d; ll B = (a - '0') * 100 + (c - '0') * 10 + (d - '0'); cout << A * b / 100 << endl; }
#include <bits/stdc++.h> using namespace std; using ll = long long; #define all(v) v.begin(), v.end() int main() { ll A; cin >> A; char a, b, c, d; cin >> a >> b >> c >> d; ll B = (a - '0') * 100 + (c - '0') * 10 + (d - '0'); cout << A * B / 100 << endl; }
[["-", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22]]
1
91
#include <bits/stdc++.h> using namespace std; int main() { long long A; double B; cin >> A >> B; int C = B * 100; long long D = A * C; cout << D / 100 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long A; double B; cin >> A >> B; int C = B * 100 + 0.001; long long D = A * C; cout << D / 100 << endl; }
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
48
#define _USE_MATH_DEFIMES #include <algorithm> #include <array> #include <bitset> #include <cassert> #include <cctype> #include <climits> #include <clocale> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <ctime> #include <deque> #include <fstream> #include <functional> #include <ioman...
#define _USE_MATH_DEFIMES #include <algorithm> #include <array> #include <bitset> #include <cassert> #include <cctype> #include <climits> #include <clocale> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <ctime> #include <deque> #include <fstream> #include <functional> #include <ioman...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
237
#include <bits/stdc++.h> using namespace std; int main(void) { long long a; double b; cin >> a >> b; a *= (int)(b * 100); cout << (a / 100) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { long long a; double b; cin >> a >> b; a *= (int)(b * 100 + 0.5); cout << a / 100 << endl; return 0; }
[["+", 0, 11, 12, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 11, 12, 74, 51, 23, 0, 16, 12, 13], ["-", 0, 1, 0, 16, 31, 16, 12, 23, 0, 24], ["-", 0, 1, 0, 16, 31, 16, 12, 23, 0, 25]]
1
50
#include <bits/stdc++.h> using namespace std; using ll = long long; const ll INF = 1e18; const ll MOD = 1000000007; const ll MX = 0; //最大値 #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define ALL(x) (x).begin(), (x).end() #define MAX(x) *max_element(ALL(x)) #define PB push_back #define F first #define S second ...
#include <bits/stdc++.h> using namespace std; using ll = long long; const ll INF = 1e18; const ll MOD = 1000000007; const ll MX = 0; //最大値 #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define ALL(x) (x).begin(), (x).end() #define MAX(x) *max_element(ALL(x)) #define PB push_back #define F first #define S second ...
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
107
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { ll a; double b; cin >> a >> b; ll llb = b * 100; a *= llb; a /= 100; cout << a << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { ll a; double b; cin >> a >> b; ll llb = b * 100 + 0.1; a *= llb; a /= 100; cout << a << endl; return 0; }
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
72
#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 c = b * 100; cout << a * c / 100; }
#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 c = b * 100 + 0.5; cout << a * c / 100; }
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
53
a,b=input().split() ans=int(a)*int(float(b)*100)//100 print(int(ans))
a,b=input().split() ans=int(a)*round(float(b)*100)//100 print(int(ans))
[["-", 0, 662, 12, 657, 31, 657, 12, 652, 63, 22], ["+", 0, 662, 12, 657, 31, 657, 12, 652, 63, 22]]
5
36
#入力:N,M(int:整数) def input2(): return map(float,input().split()) a,b=input2() ans=int(a)*int(b*100) print(int(ans//100))
#入力:N,M(int:整数) def input2(): return map(float,input().split()) a,b=input2() ans=int(a)*round(b*100) print(int(ans//100))
[["-", 0, 1, 0, 662, 12, 657, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 657, 12, 652, 63, 22]]
5
48
#include <bits/stdc++.h> #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); ...
#include <bits/stdc++.h> #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); ...
[["+", 8, 9, 0, 1, 0, 16, 12, 74, 0, 24], ["+", 0, 1, 0, 16, 12, 74, 39, 77, 39, 78], ["+", 8, 9, 0, 1, 0, 16, 12, 74, 0, 25]]
1
59
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { ll a, ans; float b; cin >> a >> b; b *= 1000; ans = (a * b) / 1000; cout << ans << endl; return 0; }
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { ll a, ans; long double b; cin >> a >> b; b *= 1000; ans = (a * b) / 1000; 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], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40]]
1
52
a, b = input().split() a = int(a) b = int(b.replace('.', '')) print(int(a * b / 100))
a, b = input().split() a = int(a) b = int(b.replace('.', '')) print(a * 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
44
n, m = input().split() n = int(n) m = float(m) * 100 o = round(n * m) print(int(o//100))
n, m = input().split() n = int(n) m = round(float(m) * 100) o = n * m print(int(o//100))
[["+", 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, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
42
#include <bits/stdc++.h> using namespace std; typedef long long ll; // 10^19 < 9223372036854775807 typedef unsigned long long ull; // 10^20 < 18446744073709551615 #define REP(i, n) for (ll i = 0; i < ll(n); i++) #define REPD(i, n) for (ll i = n - 1; i >= 0; i--) #define FOR(i, a, b) for (ll i = a; i <= ll(b)...
#include <bits/stdc++.h> using namespace std; typedef long long ll; // 10^19 < 9223372036854775807 typedef unsigned long long ull; // 10^20 < 18446744073709551615 #define REP(i, n) for (ll i = 0; i < ll(n); i++) #define REPD(i, n) for (ll i = n - 1; i >= 0; i--) #define FOR(i, a, b) for (ll i = a; i <= ll(b)...
[["-", 12, 23, 0, 16, 31, 16, 31, 2, 63, 22], ["-", 0, 16, 31, 16, 31, 2, 3, 4, 0, 24], ["-", 31, 2, 3, 4, 0, 2, 63, 23, 0, 24], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 3, 4, 0, 16, 31, 16, 31, 2, 63, 22], ["-", 31, 2, 3, 4, 0, 2, 3, 4, 0, 25]]
1
125
#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; double b; cin >> a >> b; ll c = b * ll(100); cout << (a * c) / ll(100) << endl; return 0; }
#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; double b; cin >> a >> b; ll c = round(b * ll(100)); cout << (a * c) / ll(100) << endl; return 0; }
[["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 24], ["+", 3, 4, 0, 16, 12, 2, 3, 4, 0, 25]]
1
66