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
import math ab = input().split() a = float(ab[0]) b = float(ab[1]) ans = int(a*b) print(ans)
from decimal import Decimal ab = input().split() a = Decimal(ab[0]) b = Decimal(ab[1]) ans = int(a*b) print(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
41
import math a,b = input().split() a = int(a) b = float(b) if a==0 or b==0: print(0) else: print(int(math.floor(a*b)))
import math from decimal import Decimal a,b = input().split() a = Decimal(a) b = Decimal(b) if a==0 or b==0: print(0) else: print(int(math.floor(a*b)))
[["+", 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
54
#define rep(i, n) for (int i = 0; i < n; i++) #include <bits/stdc++.h> #include <climits> #include <iostream> using namespace std; typedef long long ll; int main() { ll A; double B; cin >> A >> B; cout << (long int)(A * B) << endl; }
#define rep(i, n) for (int i = 0; i < n; i++) #include <bits/stdc++.h> #include <climits> #include <iostream> using namespace std; typedef long long ll; int main() { ll A; long double B; cin >> A >> B; cout << (long int)(A * B); }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
55
#include <bits/stdc++.h> using namespace std; int main() { double a, b; cin >> a >> b; cout << (long long)(a * b); }
#include <bits/stdc++.h> using namespace std; int main() { long double a, b; cin >> a >> b; cout << (long long)(a * b); }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
35
import java.lang.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); long A = scan.nextLong(); double B = scan.nextDouble(); long x = (long)B; double B1 = (B - x) * 10; long y = (long)B1; double B2 = (B1 - y) * 10; ...
import java.lang.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); long A = scan.nextLong(); double B = scan.nextDouble() + 0.001; long x = (long)B; double B1 = (B - x) * 10; long y = (long)B1; double B2 = (B1 - y) ...
[["+", 8, 196, 0, 503, 49, 200, 51, 16, 17, 72], ["+", 8, 196, 0, 503, 49, 200, 51, 16, 12, 515]]
3
136
#include <bits/stdc++.h> using namespace std; #define ll int64_t const ll M = 1e9 + 7, N = 1e6 + 5; int main() { long double a; long double b; cin >> a >> b; long double c = (long double)a * b; cout << (int)c; }
#include <bits/stdc++.h> using namespace std; #define ll int64_t const ll M = 1e9 + 7, N = 1e6 + 5; int main() { long double a; long double b; cin >> a >> b; long double c = (long double)a * b; cout << (ll)c; }
[["-", 0, 1, 0, 16, 12, 74, 39, 77, 39, 40], ["+", 0, 1, 0, 16, 12, 74, 39, 77, 39, 78]]
1
62
def main(): a,b = input().split() print(int(int(a)*float(b))) if __name__ == '__main__': main()
import decimal def main(): a,b = input().split() print(int(int(a)*decimal.Decimal(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], ["-", 0, 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
41
#include <bits/stdc++.h> using namespace std; int main() { long long a; string b; cin >> a >> b; long long result = 1; int mul = 100; for (long unsigned int i = 0; i < b.length(); i++) { if (b[i] == '.') continue; result += a * (b[i] - '0') * mul; mul /= 10; } cout << (result / 100...
#include <bits/stdc++.h> using namespace std; int main() { long long a; string b; cin >> a >> b; long long result = 0; int mul = 100; for (long unsigned int i = 0; i < b.length(); i++) { if (b[i] == '.') continue; result += a * (b[i] - '0') * mul; mul /= 10; } cout << (result / 100...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
102
# -*- coding: utf-8 -*- import sys l = list(map(lambda x: float(x), str(input()).split(" "))) print(int(l[0] * l[1]))
# -*- coding: utf-8 -*- import sys from decimal import * l = list(map(lambda x: Decimal(x), str(input()).split(" "))) print(int(l[0] * l[1]))
[["+", 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, 0, 690, 0, 48], ["-", 0, 652, 3, 4, 0, 670, 8, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 670, 8, 652, 63, 22]]
5
47
from decimal import * # a, b = map(str, input().split()) # print((int(a) * int(float(b)*100)) // 100) a, b = map(float, input().split()) print(Decimal(a) * Decimal(b) // 1)
from decimal import * # a, b = map(str, input().split()) # print((int(a) * int(float(b)*100)) // 100) a, b = map(str, input().split()) print(Decimal(a) * Decimal(b) // 1)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
36
#include <iostream> #include <vector> using namespace std; using LL = long long int; int main() { LL A; double B; cin >> A >> B; LL mod_b = (double)(B * 100); LL ans = A * mod_b / 100; cout << ans << endl; return 0; }
#include <iostream> #include <vector> using namespace std; using LL = long long int; int main() { LL A; double B; cin >> A >> B; LL mod_b = (double)(B * 100 + 0.1); LL ans = A * mod_b / 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]]
1
63
#include <bits/stdc++.h> using namespace std; int main() { unsigned long long YUNI = 0, OOT, KYR, JNY, OOTJNY = 10; double A, B, C; int D; cin >> A >> B; C = A * B; YUNI = C; cout << YUNI << endl; }
#include <bits/stdc++.h> using namespace std; int main() { unsigned long long int YUNI = 0, OOT, KYR, JNY, OOTJNY = 10; long double A, B, C; int D; cin >> OOT >> B; C = OOT * B; YUNI = C; cout << YUNI << endl; // cout << C << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22]]
1
61
#include <bits/stdc++.h> using namespace std; #define ll long long int int main() { ll a; double b; cin >> a >> b; double c = a * b; ll d = floor(c); cout << d << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define ll long long int int main() { ll a; long double b; cin >> a >> b; long double c = a * b; ll d = floor(c); cout << d << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
51
/// You just can't beat the person who never gives up /// ICPC next year #include <bits/stdc++.h> using namespace std; const int N = 1e5 + 5; const long long mx = 1e18; long long a, b; long double x; int main() { cin >> a >> x; b = x * 100; long long ans = a * b; cout << ans / 100; return 0; }
/// You just can't beat the person who never gives up /// ICPC next year #include <bits/stdc++.h> using namespace std; const int N = 1e5 + 5; const long long mx = 1e18; long long a, b; long double x; int main() { cin >> a >> x; b = (x + 0.009) * 100; long long ans = a * b; cout << ans / 100; return 0; }
[["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25]]
1
68
#include <bits/stdc++.h> using namespace std; double a, b; int main() { cin >> a >> b; double c = a * b; unsigned long long d = floor(c); cout << d << endl; }
#include <bits/stdc++.h> using namespace std; long double a, b; int main() { cin >> a >> b; long double c = a * b; unsigned long long d = floor(c); cout << d << endl; }
[["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
46
li=input().split() a = int(li[0]) b = float(li[1]) print(int(a*b))
import decimal li=input().split() a = int(li[0]) b = decimal.Decimal(li[1]) print(int(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
a,b = map(float,input().split()) import math from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN b = Decimal(str(b)).quantize(Decimal('0.01'), rounding=ROUND_HALF_UP) print(b) a = Decimal(a) ans = a*b print(math.floor(ans))
a,b = map(float,input().split()) import math from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN b = Decimal(str(b)).quantize(Decimal('0.01'), rounding=ROUND_HALF_UP) a = Decimal(a) ans = a*b print(math.floor(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
73
a,b = map(float, input().split()) a = round(a) b = round(100*b) c = a*b c = c/100 print(int(c))
a,b = map(float, input().split()) a = round(a) b = round(100*b) c = a*b c = c//100 print(int(c))
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676]]
5
47
#include <bits/stdc++.h> #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); using namespace std; int main() { ...
#include <bits/stdc++.h> #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); using namespace std; int main() { ...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
48
#include <bits/stdc++.h> #define hell 1000000007 #define fast \ ios::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define pb pu...
#include <bits/stdc++.h> #define hell 1000000007 #define fast \ ios::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define pb pu...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
215
import math as mt AB = input().split() a = int(AB[0]) b = float(AB[1]) c = a*b d = mt.floor(c) print(d)
import math as mt from decimal import Decimal AB = input().split() a = int(AB[0]) b = Decimal(AB[1]) c = a*b d = mt.floor(c) print(d)
[["+", 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
48
import math ab = input().split() a, b_f = int(ab[0]), float(ab[1]) b = int(b_f * 100) #print(a, b_f) #print(a, b) #print(a*b) a = a * b print(a // 100)
import math ab = input().split() a, b_f = int(ab[0]), float(ab[1]) b = round(b_f * 100) #a_a = a * b_f #print(a, b_f) #print(a, b) #print(a*b) a = a * b #print(a_a) print(a // 100)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
52
#include <iostream> using namespace std; int main() { double a, b; cin >> a >> b; long long int c; c = a * b; cout << c << endl; }
#include <iostream> using namespace std; int main() { long double a, b; cin >> a >> b; long long int c; c = a * b; cout << c << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
40
#!/usr/bin/python # -*- coding: utf-8 -*- import math A,B = input().split() A = int(A) B = int(float(B)*100) print((A*B)//100)
#!/usr/bin/python # -*- coding: utf-8 -*- A,B = input().split() A = int(A) B = round(float(B)*100) print((A*B)//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, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
42
#include <algorithm> #include <cassert> #include <cmath> #include <ctime> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <vector> using namespace std; typedef long long ll; typedef pair<ll, ll> p; #define rep(i, n) fo...
#include <algorithm> #include <cassert> #include <cmath> #include <ctime> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <vector> using namespace std; typedef long long ll; typedef pair<ll, ll> p; #define rep(i, n) fo...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
162
# C - Multiplication 3 A, B = map(str, input().split()) A = int(A) B = float(B) print(int(A*B))
# C - Multiplication 3 import decimal A, B = map(str, input().split()) A = int(A) B = decimal.Decimal(B) print(int(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
38
import fractions import decimal a,b = list(map(float,input().split())) a = int(a) b = decimal.Decimal(b) print(int(a*b))
import fractions import decimal a,b = list(map(float,input().split())) a = int(a) b = decimal.Decimal(str(b)) print(int(a*b))
[["+", 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
46
#include <bits/stdc++.h> #define ll long long #define pb push_back #define mp make_pair #define F first #define S second #define pii pair<int, int> #define pll pair<ll, ll> #define pcc pair<char, char> #define vi vector<int> #define vl vector<ll> #define sd(x) scanf("%d", &x) #define slld(x) scanf("%lld", &x) #define p...
#include <bits/stdc++.h> #define ll long long #define pb push_back #define mp make_pair #define F first #define S second #define pii pair<int, int> #define pll pair<ll, ll> #define pcc pair<char, char> #define vi vector<int> #define vl vector<ll> #define sd(x) scanf("%d", &x) #define slld(x) scanf("%lld", &x) #define p...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
240
temp1 = input().split(" ") a = float(temp1[0]) b = float(temp1[1]) ans = a * b print(int(ans))
from decimal import * temp1 = input().split(" ") a = Decimal(temp1[0]) b = Decimal(temp1[1]) 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, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 0, 690, 0, 48], ["-", 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> #pragma region Macro #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define FOR(i, m, n) for (int i = m; i < n; i++) #define SORT(v) sort(v.begin(), v.end()) #define pb(a) push_back(a) #define eb(a) emplace_back(a) #define vi vector<int> #define vvi vector<vector<int>> #define chmax(x, y...
#include <bits/stdc++.h> #pragma region Macro #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define FOR(i, m, n) for (int i = m; i < n; i++) #define SORT(v) sort(v.begin(), v.end()) #define pb(a) push_back(a) #define eb(a) emplace_back(a) #define vi vector<int> #define vvi vector<vector<int>> #define chmax(x, y...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 16, 31, 16, 12, 74, 51, 2, 63, 22]]
1
155
#include <bits/stdc++.h> using namespace std; int main() { long long a; double b; cin >> a >> b; cout << (long long)(b * a); }
#include <bits/stdc++.h> using namespace std; int main() { long long a; long double b; cin >> a >> b; cout << (long long)(b * a); }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
37
#include <algorithm> #include <assert.h> #include <climits> #include <cmath> #include <iostream> #include <queue> #include <unordered_map> #include <unordered_set> #include <vector> using namespace std; constexpr int64_t MOD = 1e9 + 7; int main() { std::cin.tie(0); std::ios::sync_with_stdio(false); double A, B...
#include <algorithm> #include <assert.h> #include <climits> #include <cmath> #include <iostream> #include <queue> #include <unordered_map> #include <unordered_set> #include <vector> using namespace std; constexpr int64_t MOD = 1e9 + 7; int main() { std::cin.tie(0); std::ios::sync_with_stdio(false); long double ...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
84
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); long long a; long double b; cin >> a >> b; cout << floor(a * b); }
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); long long a; long double b; cin >> a >> b; cout << (long long)floor(a * b); }
[["+", 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
49
import math from decimal import Decimal a,b = input().split(" ") # print(a,b) a = Decimal(int(a)) b = Decimal(float(b)) mul = a * b mul_floor = math.floor(a * b) # print(mul) print(mul_floor)
import math from decimal import Decimal a,b = input().split(" ") # print(a,b) a = Decimal(a) b = Decimal(b) mul = a * b mul_floor = math.floor(a * b) # print(mul) print(mul_floor)
[["-", 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], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24]]
5
59
import math from decimal import Decimal A,B = map(float, input().split()) print(int(math.floor(Decimal(A) * Decimal(B))))
import math from decimal import Decimal A,B = map(Decimal, input().split()) print(int(math.floor(Decimal(A) * Decimal(B))))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
42
#include <bits/stdc++.h> using namespace std; int main() { long long A; double B; cin >> A >> B; long long ans = A * B; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long A; long double B; cin >> A >> B; long long ans = A * B; cout << ans << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
39
#include <bits/stdc++.h> #include <iostream> #include <math.h> using namespace std; int main() { unsigned long long A; double B; cin >> A >> B; cout << fixed << setprecision(0) << floor(A * B) << endl; return 0; }
#include <bits/stdc++.h> #include <iostream> #include <math.h> using namespace std; int main() { long double A; long double B; cin >> A >> B; cout << fixed << setprecision(0) << floor(A * B) << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 87], ["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
51
#include <iostream> using namespace std; int main() { // unsigned long long a; long double a; long double b; long double res; cin >> a >> b; res = a * b; printf("%ll", (long long)res); cout << endl; }
#include <iostream> using namespace std; int main() { // unsigned long long a; long double a; long double b; long double res; cin >> a >> b; res = a * b; printf("%lld", (long long)res); cout << endl; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
54
import math from decimal import * A, B = map(float, input().split()) print(math.floor(Decimal(A*B)))
import math from decimal import * A, B = map(Decimal, input().split()) print(math.floor(Decimal(A*B)))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
36
A, B = input().split() A = int(A) B = int(float(B)*100) print(int(A*B//100))
A, B = input().split() A = int(A) B = int(float(B)*100.0+0.5) print(int(A*B//100))
[["-", 0, 662, 12, 652, 3, 4, 0, 657, 12, 612], ["+", 12, 652, 3, 4, 0, 657, 31, 657, 12, 531], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 531]]
5
39
#include <iostream> using namespace std; int main() { long long a; double b; long long ans = 0; cin >> a >> b; ans = a * b; cout << ans << endl; return 0; }
#include <iostream> using namespace std; int main() { long double a, b; long ans = 0; cin >> a >> b; ans = a * b; cout << ans << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21]]
1
46
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <utility> #include <vector> using namespace std; int main() { double a, b, ans; cin >> a >> b; ans = a * b; // cout << int(floor(ans)) << endl; // printf("%.5f\n", ans); ...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <utility> #include <vector> using namespace std; int main() { long double a, b, ans; cin >> a >> b; ans = a * b; // cout << int(floor(ans)) << endl; // cout << ans << endl;...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
68
#include <bits/stdc++.h> using namespace std; int main() { long double a; long double b; cin >> a >> b; cout << floor(a * b) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long double a; long double b; cin >> a >> b; cout << (long long)floor(a * b) << endl; return 0; }
[["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 24], ["+", 31, 16, 12, 74, 39, 77, 39, 86, 0, 96], ["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 25]]
1
40
#include <bits/stdc++.h> #define pb push_back #define mp make_pair #define inf 1000000007 #define fr first #define sc second #define eps 1e-9 #define clr(a) memset(a, 0, sizeof(a)) #define sz(x) x.size() #define sni(x) scanf("%d", &x) #define snl(x) scanf("%lld", &x) #define snc(x) scanf("%c", &c); #define rep(n) for (...
#include <bits/stdc++.h> #define pb push_back #define mp make_pair #define inf 1000000007 #define fr first #define sc second #define eps 1e-9 #define clr(a) memset(a, 0, sizeof(a)) #define sz(x) x.size() #define sni(x) scanf("%d", &x) #define snl(x) scanf("%lld", &x) #define snc(x) scanf("%c", &c); #define rep(n) for (...
[["+", 0, 52, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 52, 8, 9, 0, 43, 39, 86, 0, 87], ["-", 0, 52, 8, 9, 0, 43, 39, 86, 39, 40], ["+", 49, 50, 51, 74, 39, 77, 39, 86, 0, 87], ["+", 0, 43, 49, 50, 51, 74, 51, 2, 63, 22]]
1
830
import math input = list(map(float, input().split())) print(math.floor(input[0]*input[1]))
from decimal import * import math input = list(map(Decimal, input().split())) print(math.floor(input[0]*input[1]))
[["+", 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, 0, 690, 0, 48], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
36
a = input().split() print(int(int(a[0]) * float(a[1])))
from decimal import * a = input().split() print(int(int(a[0]) * Decimal(a[1])))
[["+", 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, 0, 690, 0, 48], ["-", 0, 652, 3, 4, 0, 657, 12, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 657, 12, 652, 63, 22]]
5
30
#include <bits/stdc++.h> using namespace std; int main() { long long a; double b; cin >> a >> b; cout << (long long)(a * b); }
#include <bits/stdc++.h> using namespace std; int main() { long long a; long double b; cin >> a >> b; cout << (long long)floor(a * b); }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 1, 0, 16, 12, 74, 51, 2, 63, 22]]
1
37
#include <bits/stdc++.h> using namespace std; using ll = long long; constexpr ll mod = 1e9 + 7; int main() { double a; double b; cin >> a >> b; cout << fixed << setprecision(0); cout << floor(a * b); }
#include <bits/stdc++.h> using namespace std; using ll = long long; constexpr ll mod = 1e9 + 7; int main() { long double a, b; cin >> a >> b; cout << fixed << setprecision(0); cout << floorl(a * b); }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["-", 8, 9, 0, 1, 0, 16, 12, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 16, 12, 2, 63, 22]]
1
56
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < n; i++) int main() { double a, b; cin >> a >> b; ll c = a * b; cout << (ll)c << endl; }
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < n; i++) int main() { long double a, b; cin >> a >> b; ll c = a * b; cout << (ll)c << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
53
import decimal a, b = map(float,input().split()) a = decimal.Decimal(a) b = decimal.Decimal(b) print(int(a*b))
import decimal a, b = map(str,input().split()) a = decimal.Decimal(a) b = decimal.Decimal(b) print(int(a*b))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
43
#include <iostream> using namespace std; long double a, b; int main() { cin >> a >> b; cout << (long long)a * b; return 0; }
#include <iostream> using namespace std; long double a, b; int main() { cin >> a >> b; cout << (long long)(a * b); return 0; }
[["+", 0, 1, 0, 16, 12, 74, 51, 23, 0, 24], ["+", 0, 1, 0, 16, 12, 74, 51, 23, 0, 25]]
1
37
A,B = input().split() a = int(A) b = float(B) X = (a * b)//1 print(int(X))
import decimal A,B = input().split() a = int(A) b = decimal.Decimal(B) X = (a * b)//1 print(int(X))
[["+", 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
39
#include <algorithm> #include <iostream> #include <math.h> #include <string.h> #include <string> #include <vector> using namespace std; typedef long long ll; int main() { ll A; double B; cin >> A >> B; cout << (ll)((double)A * B); }
#include <algorithm> #include <iostream> #include <math.h> #include <string.h> #include <string> #include <vector> using namespace std; typedef long long ll; int main() { ll A; long double B; cin >> A >> B; cout << (ll)((long double)A * B); }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 16, 31, 74, 39, 77, 39, 86, 0, 96]]
1
53
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main() { double a; double b; cin >> a >> b; ll ans = 0; ans = floor(a * b); cout << ans << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main() { long double a; long double b; cin >> a >> b; ll ans = 0; ans = floor(a * b); cout << ans << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
60
#include <bits/stdc++.h> using namespace std; #define M 1005 #define MOD 100000000 #define PI 3.14159265358979323846 #define ep emplace_back #define mk make_pair #define all(v) (v).begin(), (v).end() #define rall(v) (v).rbegin(), (v).rend() typedef long long int lli; typedef unsigned long long int ulli; typedef pair<...
#include <bits/stdc++.h> using namespace std; #define M 1005 #define MOD 100000000 #define PI 3.14159265358979323846 #define ep emplace_back #define mk make_pair #define all(v) (v).begin(), (v).end() #define rall(v) (v).rbegin(), (v).rend() typedef long long int lli; typedef unsigned long long int ulli; typedef pair<...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
118
input_list = input().split() A = int(input_list[0]) B = float(input_list[1]) B_100 = int(B * 100) result = A * B_100 // 100 print(result)
input_list = input().split() A = int(input_list[0]) B = float(input_list[1]) B_100 = int(round(B * 100)) result = A * B_100 // 100 print(result)
[["+", 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
46
from decimal import Decimal A,B = input().split() A=Decimal(A) B=Decimal(B) AB=math.floor(A*B) print(AB)
from decimal import Decimal import math A,B = input().split() A=Decimal(A) B=Decimal(B) AB=math.floor(A*B) print(AB)
[["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]]
5
41
#define _USE_MATH_DEFINES #include <algorithm> #include <iostream> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #include <vector> using namespace std; #define MAX(x, y) (x > y ? x : y) #define MIN(x, y) (x < y ? x : y) #define ABS(x) (x > 0 ? x : -(x)) #define INF 214...
#define _USE_MATH_DEFINES #include <algorithm> #include <iostream> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #include <vector> using namespace std; #define MAX(x, y) (x > y ? x : y) #define MIN(x, y) (x < y ? x : y) #define ABS(x) (x > 0 ? x : -(x)) #define INF 214...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
538
#include <stdio.h> int main(void) { // Your code here! long long int a; float b; scanf("%lld %f", &a, &b); int c = b * 100; printf("%lld", (long long int)((a * c) / 100)); return 0; }
#include <stdio.h> int main(void) { // Your code here! long long int a; float b; scanf("%lld %f", &a, &b); int c = b * 100.001; // printf("%lld %.2f %d\n",a,b*100,c); printf("%lld", (long long int)((a * c) / 100)); return 0; }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
0
63
import math from decimal import Decimal A, B = map(float, input().split()) ans = math.floor(Decimal(A) * Decimal(B)) print(ans)
import math from decimal import Decimal A, B = map(str, input().split()) ans = math.floor(Decimal(A) * Decimal(B)) print(ans)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
42
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) typedef long long ll; using namespace std; int main() { ll a; double b; cin >> a >> b; ll ans = floor(a * b); printf("%lld\n", ans); return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) typedef long long ll; using namespace std; int main() { ll a; long double b; cin >> a >> b; ll ans = floor(a * b); printf("%lld\n", ans); return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
60
import math a,b = input().split() a = int(a) b = float(b) print(int(math.floor(a*b)))
from decimal import * import math a,b = input().split() a = int(a) b = Decimal(b) print(int(math.floor(a*b)))
[["+", 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, 0, 690, 0, 48], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
39
a, b = input().split() a = int(a) b = int(float(b)*100) c = a*b print(c//100)
from decimal import Decimal a, b = input().split() a = int(a) b = int(Decimal(b)*100) c = a*b print(c//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
39
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define ll long long int #define pb push_back #define fi first #define se second #define all(x) x.begin(), x.end() #define mem(x, y) \ memset(x, y, ...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define ll long long int #define pb push_back #define fi first #define se second #define all(x) x.begin(), x.end() #define mem(x, y) \ memset(x, y, ...
[["-", 8, 9, 0, 52, 8, 9, 0, 43, 39, 78], ["+", 0, 52, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 52, 8, 9, 0, 43, 39, 86, 39, 40], ["-", 0, 1, 0, 11, 12, 16, 12, 74, 0, 24], ["-", 0, 11, 12, 16, 12, 74, 39, 77, 39, 40], ["-", 0, 1, 0, 11, 12, 16, 12, 74, 0, 25]]
1
275
import decimal A,B = map(float,input().split()) c = decimal.Decimal(A * B) d = c.quantize(decimal.Decimal('0'), rounding=decimal.ROUND_FLOOR) print(d)
import decimal A,B = map(decimal.Decimal,input().split()) c = decimal.Decimal(A * B) d = c.quantize(decimal.Decimal('0'), rounding=decimal.ROUND_FLOOR) print(d)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 319, 500, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 319, 0, 131], ["+", 0, 662, 12, 652, 3, 4, 0, 319, 319, 22]]
5
53
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); unsigned long long a; double b; cin >> a >> b; cout << (unsigned long long)(a * b) << "\n"; }
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); unsigned long long a; long double b; cin >> a >> b; cout << (unsigned long long)((long double)a * b) << "\n"; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 16, 31, 16, 12, 74, 51, 23, 0, 24], ["+", 0, 16, 31, 74, 39, 77, 39, 86, 0, 96], ["+", 0, 16, 31, 74, 39, 77, 39, 86, 39, 40], ["+", 12, 74, 51, 23, 0, 16, 31, 74, 0, 25]]
1
57
ab = input().split() a = int(ab[0]) b = ab[1] import math s = a*int(b[0]) ad = None if len(b) > 2: tmp = str(a*int(b[2])) if len(str(tmp)) > 1: s+=int(str(a*int(b[2]))[:-1]) ad = int(str(a*int(b[2]))[-1]) if len(b) > 3: tmp = str(a*int(b[3])) if len(str(tmp)) > 2: s+=int(str(a*int(b[3]))[:-2]) if le...
ab = input().split() a = int(ab[0]) b = ab[1] import math s = a*int(b[0]) ad = None if len(b) > 2: tmp = str(a*int(b[2])) if len(str(tmp)) > 1: s+=int(str(a*int(b[2]))[:-1]) ad = int(str(a*int(b[2]))[-1]) if len(b) > 3: tmp = str(a*int(b[3])) if len(str(tmp)) > 2: s+=int(str(a*int(b[3]))[:-2]) if le...
[["+", 0, 57, 64, 196, 0, 57, 15, 679, 17, 355], ["+", 0, 57, 64, 196, 0, 57, 15, 679, 12, 22], ["+", 0, 1, 0, 677, 12, 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, 656, 0, 1, 0, 652, 3, 4, 0, 22]]
5
230
#include <bits/stdc++.h> #define endl '\n' #define _USE_MATH_DEFINES using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); long long int ans, a; double b; cin >> a >> b; ans = a * b; cout << ans; return 0; }
#include <bits/stdc++.h> #define endl '\n' #define _USE_MATH_DEFINES using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); long long int ans, a; long double b, c; cin >> a >> b; ans = a * b; cout << ans; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22]]
1
60
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(float(b) * 100 + 0.1) print((a * b) // 100)
[["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 531]]
5
38
a, b = map(float, input().split()) print("{}".format(int(a*b)))
from decimal import * a, b = map(Decimal, input().split()) print("{}".format(int(a*b)))
[["+", 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, 0, 690, 0, 48], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
32
#include <iostream> #include <stdio.h> using namespace std; int main() { double a, b; cin >> a >> b; cout << (long long)(a * b) << endl; }
#include <iostream> #include <stdio.h> using namespace std; int main() { long double a, b; cin >> a >> b; cout << (long long)(a * b) << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
39
#include <bits/stdc++.h> using namespace std; using ll = unsigned long long; int main() { ll A; double B; cin >> A >> B; B *= 100; ll B1 = (ll)B; ll ans = A * B1; ans /= 100; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; using ll = unsigned long long; int main() { ll A; double B; cin >> A >> B; B *= 100.; ll B1 = round(B); ll ans = A * B1; ans /= 100; cout << ans << endl; }
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["-", 0, 43, 49, 50, 51, 74, 39, 77, 39, 78], ["-", 8, 9, 0, 43, 49, 50, 51, 74, 0, 25], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 25]]
1
60
a,b = gets.chomp.split puts (a.to_i * b.to_f).floor
a,b = gets.chomp.split puts (a.to_i * b.to_r).floor
[["-", 0, 652, 486, 739, 0, 738, 12, 652, 735, 22], ["+", 0, 652, 486, 739, 0, 738, 12, 652, 735, 22]]
4
21
#include <algorithm> #include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double int main() { ll a; double b; cin >> a >> b; ld s = a * b; cout << (ll)s; return 0; }
#include <algorithm> #include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double int main() { ld a, b; cin >> a >> b; ld s = (a * b); // cout<<s; cout << (ll)s; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 8, 9, 0, 43, 49, 50, 51, 23, 0, 24], ["+", 8, 9, 0, 43, 49, 50, 51, 23, 0, 25]]
1
49
A,B=input().split() A = int(A) B = B.replace('.','') B = int(B) ans = int(A*B/100) print(ans)
A,B=input().split() A = int(A) B = B.replace('.','') B = int(B) ans = int(A*B//100) print(ans)
[["-", 0, 662, 12, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 676]]
5
50
#include "bits/stdc++.h" using namespace std; typedef long long int lint; typedef pair<lint, lint> plint; typedef pair<double long, double long> pld; #define Alint(x) (x).begin(), (x).end() #define SZ(x) ((lint)(x).size()) #define POW2(n) (1ll << (n)) #define FOR(i, begin, end) ...
#include "bits/stdc++.h" using namespace std; typedef long long int lint; typedef pair<lint, lint> plint; typedef pair<double long, double long> pld; #define Alint(x) (x).begin(), (x).end() #define SZ(x) ((lint)(x).size()) #define POW2(n) (1ll << (n)) #define FOR(i, begin, end) ...
[["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 78], ["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96], ["+", 36, 36, 0, 30, 0, 43, 39, 86, 39, 40], ["+", 0, 1, 0, 16, 12, 2, 63, 23, 0, 24], ["+", 0, 1, 0, 16, 12, 2, 63, 23, 0, 22], ["+", 0, 1, 0, 16, 12, 2, 63, 23, 0, 25]]
1
385
import math temp = [i for i in input().split()] A = int(temp[0]) B = float(temp[1]) print(int(A*B))
import math import decimal temp = [i for i in input().split()] A = int(temp[0]) B = decimal.Decimal(temp[1]) print(int(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
44
import math s = input().split() a=int(s[0]);b=float(s[1]) print(int(a*b))
from decimal import Decimal s = input().split() a=int(s[0]);b=Decimal(s[1]) print(int(a*b))
[["+", 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
39
#include <bits/stdc++.h> using namespace std; #define ll long long int int main() { ll t, a; double b, c; cin >> a >> b; c = a * b; t = c; cout << t; return 0; }
#include <bits/stdc++.h> using namespace std; #define ll long long int int main() { ll t, a; long double b, c; cin >> a >> b; c = a * b; t = floor(c); cout << t; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 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
48
from sys import stdin import math A, B = input().split(" ") a = int(A) b = float(B) print (math.floor(a*b))
from sys import stdin import math from decimal import Decimal A, B = input().split(" ") a = int(A) b = Decimal(B) print (math.floor(a*b))
[["+", 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
43
if __name__=="__main__": A, B = input().split(' ') A = int(A) B = float(B) print(int(A*B))
from decimal import * if __name__=="__main__": A, B = input().split(' ') A = int(A) B = Decimal(B) print(int(A*B))
[["+", 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, 0, 690, 0, 48], ["-", 64, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 662, 12, 652, 63, 22]]
5
42
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); long double a; long double b; cin >> a >> b; long double ans = a * b; cout << floor(ans) << "\n"; return 0; }
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); long double a; long double b; cin >> a >> b; long double ans = a * b; cout << (long long int)ans << "\n"; return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22], ["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 22], ["+", 31, 16, 12, 74, 39, 77, 39, 86, 0, 96], ["+", 31, 16, 12, 74, 39, 77, 39, 86, 39, 40], ["+", 0, 1, 0, 16, 31, 16, 12, 74, 51, 22]]
1
65
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define rep1(i, n) for (int i = 1; i <= (n); i++) #define all(v) v.begin(), v.end() #define v vector #define vi vector<int> #define vi2 vector<vi> #define vl vector<long long> #define vl2 vector<vl> template <class T> T maxA...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define rep1(i, n) for (int i = 1; i <= (n); i++) #define all(v) v.begin(), v.end() #define v vector #define vi vector<int> #define vi2 vector<vi> #define vl vector<long long> #define vl2 vector<vl> template <class T> T maxA...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 12, 16, 31, 74, 39, 77, 39, 86, 0, 96]]
1
141
#include <bits/stdc++.h> using namespace std; int main() { long long a; long double b; cin >> a >> b; cout << a * b; }
#include <bits/stdc++.h> using namespace std; int main() { long long a; long double b; cin >> a >> b; cout << (long long)(a * b); }
[["+", 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], ["+", 0, 1, 0, 16, 12, 74, 51, 23, 0, 24], ["+", 0, 1, 0, 16, 12, 74, 51, 23, 0, 25]]
1
32
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { long double a, b, c; cin >> a >> b; c = a * b; cout << (int)c; }
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { long double a, b, c; cin >> a >> b; c = a * b; cout << (long long int)c; }
[["+", 0, 16, 12, 74, 39, 77, 39, 86, 0, 96]]
1
41
# -*- coding: utf-8 -*- # C import sys from collections import defaultdict, deque from heapq import heappush, heappop import math import bisect input = sys.stdin.readline # 再起回数上限変更 # sys.setrecursionlimit(1000000) a, b = input().split() print(int(float(a)*float(b)))
# -*- coding: utf-8 -*- # C import sys from decimal import Decimal from collections import defaultdict, deque from heapq import heappush, heappop import math import bisect input = sys.stdin.readline # 再起回数上限変更 # sys.setrecursionlimit(1000000) a, b = input().split() print(int(Decimal(a) * Decimal(b)))
[["+", 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], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["-", 0, 652, 3, 4, 0, 657, 31, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 657, 12, 652, ...
5
55
from decimal import * import math A,B = input().split() a = int(A) b = float(B) result = Decimal(str(a*b)).quantize(Decimal('.01'), rounding=ROUND_DOWN) print(math.floor(result))
from decimal import * import math A,B = input().split() a = Decimal(A) b = Decimal(B) result = Decimal(str(a*b)).quantize(Decimal('.01'), rounding=ROUND_DOWN) print(int(result))
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 500, 22], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22]]
5
63
#include <bits/stdc++.h> using namespace std; int main() { double a, b; cin >> a >> b; cout << int64_t(floor(a * b)) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long double a, b; cin >> a >> b; cout << (int64_t)(floor(a * b)) << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 24], ["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 25]]
1
37
#include <bits/stdc++.h> #define ll long long #define fastio ios::sync_with_stdio(0), cin.tie(0), cout.tie(0); using namespace std; int main() { fastio; ll a; double b; cin >> a >> b; ll ans = a * b; cout << ans; }
#include <bits/stdc++.h> #define ll long long #define fastio ios::sync_with_stdio(0), cin.tie(0), cout.tie(0); using namespace std; int main() { fastio; ll a; long double b; cin >> a >> b; ll ans = a * b; cout << ans; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
43
from fractions import Fraction for _ in range(1): a = list(input().split(' ')) A = int(a[0]) B = Fraction(a[1]) ans = str(A * B) idx = 0 for i in range(len(ans)): if ans[i] == '.': idx = i break print(ans[:i])
from decimal import Decimal for _ in range(1): a = list(input().split(' ')) A = int(a[0]) B = Decimal(a[1]) ans = str(A * B) idx = 0 for i in range(len(ans)): if ans[i] == '.': idx = i break print(ans[:i])
[["-", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["-", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["+", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22]]
5
89
#include <algorithm> #include <iostream> #include <sstream> #include <string> #include <vector> using namespace std; int main() { long long int a; double b, ans = 0; cin >> a >> b; ans = (double)a * b; cout << (long long int)ans; return 0; }
#include <algorithm> #include <iostream> #include <sstream> #include <string> #include <vector> using namespace std; int main() { long long int a; long double b, ans = 0; cin >> a >> b; ans = (long double)a * b; cout << (long long int)ans; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 12, 16, 31, 74, 39, 77, 39, 86, 0, 96]]
1
59
#include <bits/stdc++.h> using namespace std; int main() { long long a; double b; cin >> a >> b; long long c = a * b; cout << c << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long a; long double b; cin >> a >> b; long long c = (long long)a * b; cout << c << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 43, 49, 50, 51, 16, 31, 74, 0, 24], ["+", 51, 16, 31, 74, 39, 77, 39, 86, 0, 96], ["+", 0, 43, 49, 50, 51, 16, 31, 74, 0, 25]]
1
42
#include <bits/stdc++.h> using namespace std; constexpr long long kInf = 1e18; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); long long a; cin >> a; long double b; cin >> b; long long c = b * 100; cout << (a * c) / 100 << endl; }
#include <bits/stdc++.h> using namespace std; constexpr long long kInf = 1e18; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); long long a; cin >> a; long double b; cin >> b; long long c = b * 100 + 1e-5; cout << (a * c) / 100 << endl; }
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
69
import sys import decimal from decimal import Decimal sys.setrecursionlimit(10 ** 6) INF = float("inf") MOD = 10 ** 9 + 7 def input(): return sys.stdin.readline().strip() def main(): A, B = map(float, input().split()) A = Decimal(A) B = Decimal(B) ans = A * B ans = ans.quantize(decimal.Deci...
import sys import decimal from decimal import Decimal sys.setrecursionlimit(10 ** 6) INF = float("inf") MOD = 10 ** 9 + 7 def input(): return sys.stdin.readline().strip() def main(): A, B = input().split() A = Decimal(A) B = Decimal(B) ans = A * B ans = ans.quantize(decimal.Decimal("1"), ro...
[["-", 8, 196, 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, 21], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
121
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #define _USE_MATH_DEFINES #include <complex> #include <functional> #include <math.h> using namespace std; #define rep(i, x) for (ll i = 0; i < x; i++) #define r...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #define _USE_MATH_DEFINES #include <complex> #include <functional> #include <math.h> using namespace std; #define rep(i, x) for (ll i = 0; i < x; i++) #define r...
[["+", 49, 50, 51, 2, 3, 4, 0, 16, 17, 72], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 12, 13]]
1
721
#include <bits/stdc++.h> using namespace std; int main() { long double a; double b; cin >> a >> b; long double c = a * b; long long int ans = floor(c); cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long double a; long double b; cin >> a >> b; long double c = a * b; long long int ans = floor(c); cout << ans << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
49
import math a, b = input().split() a = int(a) b = float(b) ans = math.floor(a*b) print(ans)
import math from decimal import Decimal a, b = input().split() a = int(a) b = Decimal(b) ans = math.floor(a*b) print(ans)
[["+", 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
39
#include <algorithm> #include <cmath> #include <iostream> #include <string> #include <vector> using namespace std; typedef long long ll; #define REP(i, n) for (ll i = 0; i < n; i++) #define REPR(i, n) for (ll i = n; i >= 0; i--) #define FOR(i, m, n) for (ll i = m; i < n; i++) #define INF 2e9 #define ALL(v) v.begin(), ...
#include <algorithm> #include <cmath> #include <iostream> #include <string> #include <vector> using namespace std; typedef long long ll; #define REP(i, n) for (ll i = 0; i < n; i++) #define REPR(i, n) for (ll i = n; i >= 0; i--) #define FOR(i, m, n) for (ll i = m; i < n; i++) #define INF 2e9 #define ALL(v) v.begin(), ...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
91
#include <bits/stdc++.h> #define mod 1000000007 using namespace std; int main(void) { long double A; long double B; cin >> A >> B; long double ans = A * B; cout << ans << endl; return 0; }
#include <bits/stdc++.h> #define mod 1000000007 using namespace std; int main(void) { long double A; long double B; cin >> A >> B; long double ans = A * B; cout << (long long)ans << endl; return 0; }
[["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 24], ["+", 31, 16, 12, 74, 39, 77, 39, 86, 0, 96], ["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 25]]
1
47
#!/usr/bin/env python3 import sys input = sys.stdin.readline def S(): return input().rstrip() def I(): return int(input()) def MI(): return map(float, input().split()) a, b = input().split() a = int(a) b = float(b) print(int(a * b))
#!/usr/bin/env python3 import sys from decimal import Decimal input = sys.stdin.readline def S(): return input().rstrip() def I(): return int(input()) def MI(): return map(float, input().split()) a, b = input().split() a = Decimal(a) b = Decimal(b) print(int(a * b))
[["+", 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
85