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
a,b = map(str,input().split()) a = int(a) b = 100*int(b[0])+10*int(b[2])+1*int(v[3]) print((a*b)//100)
a,b = map(str,input().split()) a = int(a) b = 100*int(b[0])+10*int(b[2])+1*int(b[3]) print((a*b)//100)
[["-", 12, 657, 12, 652, 3, 4, 0, 206, 51, 22], ["+", 12, 657, 12, 652, 3, 4, 0, 206, 51, 22]]
5
63
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <bitset> // bitset #include <cctype> // isupper, islower, isdigit, toupper, tolower #include <cstdint> // int64_t, int*_t #include <cstdio> // printf #include <deque> // deque #include <iomanip> // fixed, setprecis...
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <bitset> // bitset #include <cctype> // isupper, islower, isdigit, toupper, tolower #include <cstdint> // int64_t, int*_t #include <cstdio> // printf #include <deque> // deque #include <iomanip> // fixed, setprecis...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
119
A, B = map(float, input().split()) A = int(A) B = B*100 B = round(B) print(int(A*B/1000))
A, B = map(float, input().split()) A = int(A) B = B*100 B = round(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], ["-", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 676], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
44
import sys input = input().split() A = int(input[0]) B = int(input[1].replace('.','')) print(int(A*B))
import sys input = input().split() A = int(input[0]) B = int(input[1].replace('.','')) print((A*B // 100))
[["-", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 23, 0, 657, 17, 676], ["+", 0, 652, 3, 4, 0, 23, 0, 657, 12, 612]]
5
48
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); long long a; float b; cin >> a >> b; int B = b * 100; long long ans = (a * B) / 100; cout << ans; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); long long a; float b; cin >> a >> b; int B = b * 100 + 0.01; long long ans = (a * B) / 100; cout << ans; return 0; }
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
72
nums = [i for i in map(float, input().split())] A = int(nums[0]) B = int(nums[1]*100) print(int(A*B//100))
# N = int(input()) nums = [i for i in map(float, input().split())] A = int(nums[0]) B = int(nums[1]*100+0.1) print(int(A*B//100))
[["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 531]]
5
51
#include <iostream> using ull = unsigned long long; using namespace std; int main() { ull a; float b; cin >> a >> b; cout << static_cast<ull>(b * 100 + 0.000001) * a / 100; return 0; }
#include <iostream> using ull = unsigned long long; using namespace std; int main() { ull a; float b; cin >> a >> b; cout << static_cast<ull>(b * 100 + 0.01) * a / 100; return 0; }
[["-", 31, 16, 31, 2, 3, 4, 0, 16, 12, 13], ["+", 31, 16, 31, 2, 3, 4, 0, 16, 12, 13]]
1
52
#include <iostream> using ull = unsigned long long; using namespace std; int main() { ull a; float b; cin >> a >> b; cout << static_cast<ull>(b * 100) * a / 100; return 0; }
#include <iostream> using ull = unsigned long long; using namespace std; int main() { ull a; float b; cin >> a >> b; cout << static_cast<ull>(b * 100 + 0.5) * a / 100; return 0; }
[["+", 31, 16, 31, 2, 3, 4, 0, 16, 17, 72], ["+", 31, 16, 31, 2, 3, 4, 0, 16, 12, 13]]
1
50
#include <bits/stdc++.h> #define ll long long #define pb push_back #define FAST \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie...
#include <bits/stdc++.h> #define ll long long #define pb push_back #define FAST \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie...
[["-", 0, 43, 49, 50, 51, 74, 39, 77, 39, 40], ["+", 49, 50, 51, 74, 39, 77, 39, 86, 0, 96], ["+", 49, 50, 51, 74, 51, 23, 0, 16, 17, 72], ["+", 49, 50, 51, 74, 51, 23, 0, 16, 12, 13]]
1
96
a,b=input().split() print(int(a)*round(float(b)*100//100))
a,b=input().split() print(int(a)*round(float(b)*100)//100)
[["+", 0, 657, 31, 657, 12, 652, 3, 4, 0, 25], ["-", 3, 4, 0, 657, 12, 652, 3, 4, 0, 25]]
5
30
def main(): a, b = input().split() b = b[:1] + b[2:] a = int(a) b = int(b) print(int(a * b / 100)) return if __name__ == "__main__": main()
def main(): a, b = input().split() b = b[:1] + b[2:] a = int(a) b = int(b) print(a * b // 100) return if __name__ == "__main__": main()
[["-", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 676], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
63
def main(): a, b = input().split() b = b[:1] + b[2:] a = int(a) b = int(b) print(int(a * b / 100)) return if __name__ == "__main__": main()
def main(): a, b = input().split() b = b[:1] + b[2:] a = int(a) b = int(b) print(int(a * b // 100)) return if __name__ == "__main__": main()
[["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 85], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 676]]
5
63
#include <math.h> #include <stdio.h> #include <stdlib.h> typedef long long ll; int main(void) { ll a, result; double b; scanf("%lld", &a); scanf("%lf", &b); b *= 100; b = round(b); result = a * b / 100; printf("%lld", result); return 0; }
#include <math.h> #include <stdio.h> #include <stdlib.h> typedef long long ll; int main(void) { ll a, result; long double b; scanf("%lld", &a); scanf("%Lf", &b); b *= 100; b = round(b); result = a * b / 100; printf("%lld", result); return 0; }
[["+", 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]]
0
77
#include <bits/stdc++.h> #define ll long long using namespace std; /// Code starts from here int main() { double a, b; cin >> a >> b; b *= 1000; ll ans = a * b / 1000; cout << ans << endl; return 0; }
#include <bits/stdc++.h> #define ll long long using namespace std; /// Code starts from here int main() { long double a, b; cin >> a >> b; b *= 1000; ll ans = a * b / 1000; cout << ans << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
49
A,B=input().split() B_100=B.replace(".","") print(int(int(A)*int(B_100)/100))
A,B=input().split() B_100=B.replace(".","") print(int(A)*int(B_100)//100)
[["-", 3, 4, 0, 657, 31, 657, 31, 652, 63, 22], ["-", 0, 657, 31, 657, 31, 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
41
A, B = input().split() A = int(A) B = "".join(B.split(".")) B = int(B) result = str(A * B) result = result[:2] if result == "": result = 0 print(result)
A, B = input().split() A = int(A) B = "".join(B.split(".")) B = int(B) result = str(A * B) result = result[:-2] if result == "": result = 0 print(result)
[["+", 0, 662, 12, 206, 206, 663, 0, 664, 17, 33]]
5
67
from math import floor as f a = input().split() a[0] = int(a[0]) a[1] = int("".join(a[1].split("."))) print(f(a[0] * a[1] / 100))
from math import floor as f a = input().split() a[0] = int(a[0]) a[1] = int("".join(a[1].split("."))) print(a[0] * a[1] // 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
69
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define size_of_array(array) (sizeof(array) / sizeof(array[0])) #define MAX 100005 #define DEBUG 0 #define LIMIT (LONG_MAX / 10) #define POSITIVE_LAST_D (LONG_MAX % 10) using ll = long long; using namespace std; using Graph = vector<vector<int>>; ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define size_of_array(array) (sizeof(array) / sizeof(array[0])) #define MAX 100005 #define DEBUG 0 #define LIMIT (LONG_MAX / 10) #define POSITIVE_LAST_D (LONG_MAX % 10) using ll = long long; using namespace std; using Graph = vector<vector<int>>; ...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
94
#include <algorithm> #include <array> #include <bitset> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <iterator> #include <limits> #include <map> #include <numeric> #include <set> #include <string> #include <vector> int main() { long long a{}; double b{}; std::cin >> a >> b; ...
#include <algorithm> #include <array> #include <bitset> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <iterator> #include <limits> #include <map> #include <numeric> #include <set> #include <string> #include <vector> int main() { long long a{}; double b{}; std::cin >> a >> b; ...
[["-", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13]]
1
79
#include <bits/stdc++.h> using namespace std; int main() { long long int a; cin >> a; string b; cin >> b; long long int c = 100 * (b[0] - '0') + 10 * (b[1] - '0') + (b[2] - '0'); long long int ans = a * c; ans = ans / 100; cout << ans; }
#include <bits/stdc++.h> using namespace std; int main() { long long int a; cin >> a; string b; cin >> b; long long int c = 100 * (b[0] - '0') + 10 * (b[2] - '0') + (b[3] - '0'); long long int ans = a * c; ans = ans / 100; cout << ans; }
[["-", 12, 23, 0, 16, 31, 69, 341, 342, 0, 13], ["+", 12, 23, 0, 16, 31, 69, 341, 342, 0, 13]]
1
89
A, B = map(float, input().split()) print((int(A)*int(B*100))//100)
A, B = map(float, input().split()) print((int(A)*round(B*100))//100)
[["-", 0, 657, 31, 23, 0, 657, 12, 652, 63, 22], ["+", 0, 657, 31, 23, 0, 657, 12, 652, 63, 22]]
5
34
A,B=input().split() A = int(A) B1,B2 = B.split(".") t = A*(int(B1)*100 + int(B2)) print(int(t/100))
A,B=input().split() A = int(A) B1,B2 = B.split(".") t = A*(int(B1)*100 + int(B2)) print(int(t//100))
[["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 85], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 676]]
5
55
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "../debug.h" #else #define debug(x...) 141 #endif #define forn(i, x, n) for (int i = x; i < n; ++i) #define forit(it, m) for (auto it = m.begin(); it != m.end(); ++it) typedef long long ll; int main() { ios::sync_with_stdio(0); cin.tie(0); ll a...
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "../debug.h" #else #define debug(x...) 141 #endif #define forn(i, x, n) for (int i = x; i < n; ++i) #define forit(it, m) for (auto it = m.begin(); it != m.end(); ++it) typedef long long ll; int main() { ios::sync_with_stdio(0); cin.tie(0); ll a...
[["+", 0, 11, 12, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 11, 12, 2, 3, 4, 0, 16, 12, 13]]
1
106
#include <iostream> using namespace std; int main() { long long A; double B; cin >> A >> B; long long ans = (A * (long long)(B * 100.0)) / 100; cout << ans << endl; return 0; }
#include <iostream> using namespace std; int main() { long long A; double B; cin >> A >> B; long long ans = (A * (long long)(B * 100.0 + 0.5)) / 100; cout << ans << endl; return 0; }
[["+", 0, 16, 12, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 16, 12, 74, 51, 23, 0, 16, 12, 13]]
1
54
#include <bits/stdc++.h> using namespace std; int main() { long long A; double B; cin >> A >> B; long long ib = B * 100 + 0.5; A *= B; A /= 100; cout << A << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long A; double B; cin >> A >> B; long long ib = B * 100 + 0.5; A *= ib; A /= 100; cout << A << endl; }
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22]]
1
49
#include <bits/stdc++.h> #define ll long long int #define pb() push_back() #define INF 1000000000 using namespace std; const int mod = 1e9 + 7; int main() { ll x, y, t; char d; cin >> x >> y; cin >> d; cin >> t; ll res = x + 100 * y + t; cout << res / 100; return 0; }
#include <bits/stdc++.h> #define ll long long int #define pb() push_back() #define INF 1000000000 using namespace std; const int mod = 1e9 + 7; int main() { ll x, y, t; char d; cin >> x >> y; cin >> d; cin >> t; ll res = (x * (100 * y + t)); cout << res / 100; return 0; }
[["+", 8, 9, 0, 43, 49, 50, 51, 23, 0, 24], ["-", 0, 43, 49, 50, 51, 16, 31, 16, 17, 72], ["+", 0, 43, 49, 50, 51, 23, 0, 16, 17, 48], ["+", 49, 50, 51, 23, 0, 16, 12, 23, 0, 24], ["+", 49, 50, 51, 23, 0, 16, 12, 23, 0, 25], ["+", 8, 9, 0, 43, 49, 50, 51, 23, 0, 25]]
1
75
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define TEST \ int t; \ cin >> t; \ for (in...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define TEST \ int t; \ cin >> t; \ for (in...
[["+", 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
65
S = input().split() print(int(int(S[0])*int((float(S[1])*100 + 10**-8))/100))
S = input().split() print(int(int(S[0])*int((float(S[1])*100 + 10**-8))//100))
[["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 85], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 676]]
5
44
#include <iostream> using namespace std; typedef long long ll; int main() { ll A; double B; cin >> A; cin >> B; cout << ll(A * int(B * 100) / 100) << endl; }
#include <iostream> using namespace std; typedef long long ll; int main() { ll A; double B; cin >> A; cin >> B; cout << ll(A * int(B * 100 + 1e-8) / 100) << endl; }
[["+", 31, 16, 12, 2, 3, 4, 0, 16, 17, 72], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13]]
1
49
#include <bits/stdc++.h> using namespace std; long long a; double b; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cin >> a >> b; cout << a * int(b * 100) / 100 << endl; }
#include <bits/stdc++.h> using namespace std; long long a; double b; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cin >> a >> b; cout << a * int(b * 100 + 1e-8) / 100 << endl; }
[["+", 31, 16, 12, 2, 3, 4, 0, 16, 17, 72], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13]]
1
61
import math a, b = input().split() a = int(a) b = int(100*float(b)) print(a*b//100)
import math a, b = input().split() a = int(a) b = int(100*float(b)+0.5) 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
#include <iostream> using namespace std; typedef long long int64; int main() { int64 a, ans, c; double b; cin >> a >> b; c = int64(b * 100.0); ans = (a * c) / 100; cout << ans << endl; }
#include <iostream> using namespace std; typedef long long int64; int main() { int64 a, ans, c; double b; cin >> a >> b; c = int64(b * 100 + 0.5); ans = (a * c) / 100; cout << ans << endl; }
[["-", 0, 11, 12, 2, 3, 4, 0, 16, 12, 13], ["+", 12, 2, 3, 4, 0, 16, 31, 16, 12, 13], ["+", 0, 11, 12, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 11, 12, 2, 3, 4, 0, 16, 12, 13]]
1
58
#include <algorithm> //sort(a.begin(), a.end());reverse(a.begin(), a.end()); #include <bits/stdc++.h> #include <math.h> //pow(x,y)=x^y #define rep(i, n) for (int i = 0; i < (n); i++) #define ll long long using namespace std; int main() { double B; ll A; int C; cin >> A >> B; C = B * 100; ll R; R = A * C...
#include <algorithm> //sort(a.begin(), a.end());reverse(a.begin(), a.end()); #include <bits/stdc++.h> #include <math.h> //pow(x,y)=x^y #define rep(i, n) for (int i = 0; i < (n); i++) #define ll long long using namespace std; int main() { double B; ll A; int C; cin >> A >> B; C = B * 100 + 0.5; ll R; R =...
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
88
#include <algorithm> //sort(a.begin(), a.end());reverse(a.begin(), a.end()); #include <bits/stdc++.h> #include <math.h> //pow(x,y)=x^y #define rep(i, n) for (int i = 0; i < (n); i++) #define ll long long using namespace std; int main() { double B; ll A; int C; cin >> A >> B; C = B * 100; ll R; R = A * C...
#include <algorithm> //sort(a.begin(), a.end());reverse(a.begin(), a.end()); #include <bits/stdc++.h> #include <math.h> //pow(x,y)=x^y #define rep(i, n) for (int i = 0; i < (n); i++) #define ll long long using namespace std; int main() { double B; ll A; int C; cin >> A >> B; C = round(B * 100); ll R; R ...
[["+", 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
88
#include <algorithm> #include <cmath> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace ...
#include <algorithm> #include <cmath> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace ...
[["-", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22]]
1
135
#include <algorithm> #include <bitset> #include <iostream> #include <string> #include <tuple> #include <vector> #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; int b_int = b * 100; ll ans = (a ...
#include <algorithm> #include <bitset> #include <iostream> #include <string> #include <tuple> #include <vector> #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; int b_int = b * 100 + 0.5; ll ans...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
82
A, B = list(map(float, input().split())) result = A * B print(int(result))
from decimal import Decimal A, B = list(map(Decimal, input().split())) result = A * B print(int(result))
[["+", 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, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
31
#include <bits/stdc++.h> using namespace std; int main() { long a; double b; cin >> a >> b; int c = 100 * b; long d = a * c / 100; cout << d << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long a; double b; cin >> a >> b; int c = 100 * (b + 0.001); long d = a * c / 100; cout << d << endl; }
[["+", 0, 43, 49, 50, 51, 16, 12, 23, 0, 24], ["+", 49, 50, 51, 16, 12, 23, 0, 16, 17, 72], ["+", 49, 50, 51, 16, 12, 23, 0, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 12, 23, 0, 25]]
1
46
<?php fscanf(STDIN, "%d %f", $a, $b); $c = floor($b * 100 + 0.5); echo intdiv($a * $c, 100); ?>
<?php fscanf(STDIN, "%d %f", $a, $b); $c = intval($b * 100 + 0.5); echo intdiv($a * $c, 100); ?>
[["-", 0, 493, 0, 1, 0, 11, 12, 613, 63, 141], ["+", 0, 493, 0, 1, 0, 11, 12, 613, 63, 141]]
6
42
temp = input().split() A = int(temp[0]) B = str(temp[1][0] + temp[1][2] + temp[1][3]) B = int(B) print(int(A * B / 100))
temp = input().split() A = int(temp[0]) B = str(temp[1][0] + temp[1][2] + temp[1][3]) 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
63
#include <algorithm> #include <iomanip> #include <iostream> #include <math.h> #include <sstream> #include <string.h> #include <string> #include <vector> using namespace std; #define IOS \ ios::sync_with_stdio(0); ...
#include <algorithm> #include <iomanip> #include <iostream> #include <math.h> #include <sstream> #include <string.h> #include <string> #include <vector> using namespace std; #define IOS \ ios::sync_with_stdio(0); ...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
88
nums = [x for x in input().split()] a,b = int(nums[0]), float(nums[1]) b = int(b*100) res = (a*b) // 100 print(res)
nums = [x for x in input().split()] a,b = int(nums[0]), float(nums[1]) b = round(b*100) res = (a*b) // 100 print(res)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
55
from math import floor inp = input() a, b = inp.split() a = int(a) b = float(b) b100 = int(b * 100) ans100 = a * b100 ans = ans100 // 100 print(ans)
from math import floor inp = input() a, b = inp.split() b += '00000001' a = int(a) b = float(b) b100 = int(b * 100) ans100 = a * b100 ans = ans100 // 100 print(ans)
[["+", 36, 36, 0, 656, 0, 1, 0, 677, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 677, 17, 107], ["+", 0, 656, 0, 1, 0, 677, 12, 557, 0, 654], ["+", 0, 656, 0, 1, 0, 677, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 677, 12, 557, 0, 655]]
5
52
#include <bits/stdc++.h> using namespace std; int main() { long long a; float b; cin >> a >> b; cout << (a * (int)(b * 100)) / 100 << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long a; double b; cin >> a >> b; cout << (a * (int)(b * 100 + 0.5)) / 100 << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 16, 12, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 16, 12, 74, 51, 23, 0, 16, 12, 13]]
1
47
#include <bits/stdc++.h> using namespace std; int main() { long long a; float b; cin >> a >> b; cout << (a * (int)(b * 100)) / 100 << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long a; float b; cin >> a >> b; cout << (a * (long long)(b * 100 + 0.5)) / 100 << endl; return 0; }
[["-", 31, 23, 0, 16, 12, 74, 39, 77, 39, 40], ["+", 0, 16, 12, 74, 39, 77, 39, 86, 0, 96], ["+", 0, 16, 12, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 16, 12, 74, 51, 23, 0, 16, 12, 13]]
1
47
#include <bits/stdc++.h> using namespace std; using ll = unsigned long long; int main() { ll a; double b; cin >> a >> b; cout << (a * (ll)(b * 100)) / 100 << endl; return 0; }
#include <bits/stdc++.h> using namespace std; using ll = unsigned long long; int main() { ll a; double b; cin >> a >> b; cout << (a * (ll)(b * 100 + 0.5)) / 100 << endl; return 0; }
[["+", 0, 16, 12, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 16, 12, 2, 3, 4, 0, 16, 12, 13]]
1
53
#include <bits/stdc++.h> using namespace std; const int mxn = 1e5; unsigned long long a[mxn + 11]; const long long mm = 1e18; int main() { long long a; double b; scanf("%lld %lf", &a, &b); int c = b * 100.0; long long ans = a * c; ans = ans / 100; printf("%lld\n", ans); return 0; }
#include <bits/stdc++.h> using namespace std; const int mxn = 1e5; unsigned long long a[mxn + 11]; const long long mm = 1e18; int main() { long long a; double b; scanf("%lld %lf", &a, &b); int c = b * 100.0 + 0.5; long long ans = a * c; ans = ans / 100; printf("%lld\n", ans); return 0; }
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
89
#include <bits/stdc++.h> using namespace std; #define ll long long const int MOD = 1e9 + 7; const long double Pi = acos(-1); int main() { ll A; double B; cin >> A >> B; ll ans = A * B / 1; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; #define ll long long const int MOD = 1e9 + 7; const long double Pi = acos(-1); int main() { long double A; long double B; cin >> A >> B; ll ans = A * B / 1; cout << ans << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40]]
1
60
A, B = input().split() A = int(A) # B = int(B.replace(".", "")) B = (int(B[0]) - 0) * 100 + (int(B[2]) - 0) * 10 + (int(B[3]) - 0) print(int(A * B / 100))
A, B = input().split() A = int(A) # B = int(B.replace(".", "")) B = (int(B[0]) - 0) * 100 + (int(B[2]) - 0) * 10 + (int(B[3]) - 0) 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
70
#include <bits/stdc++.h> using namespace std; int main() { long long int a; double b; cin >> a >> b; long long int bll = round(100.0 * b); cout << (long long int)((a * b) / 100) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long int a; double b; cin >> a >> b; long long int bll = round(100 * b); cout << (long long int)((a * bll) / 100) << endl; return 0; }
[["-", 49, 50, 51, 2, 3, 4, 0, 16, 31, 13], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 31, 13], ["-", 51, 23, 0, 16, 31, 23, 0, 16, 12, 22], ["+", 51, 23, 0, 16, 31, 23, 0, 16, 12, 22]]
1
60
#include <stdio.h> int main(void) { long long a; double b; scanf("%lld %lf", &a, &b); int c = b * 100 + 0.5; printf("%lld\n", (long long)(a * (c / 100))); return 0; }
#include <stdio.h> int main(void) { long long a; double b; scanf("%lld %lf", &a, &b); int c = b * 100 + 0.5; printf("%lld\n", (long long)(a * c / 100)); return 0; }
[["-", 0, 74, 51, 23, 0, 16, 12, 23, 0, 24], ["-", 0, 74, 51, 23, 0, 16, 12, 23, 0, 25]]
0
63
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; #define INF 1e18 typedef long long ll; typedef pair<int, int> P; const ll MX = 1e18; int main() { ll a; double b; cin >> a >> b; ll ib = b * 100 + 0.5; a *= ib; a /= 100; printf("%long long d\n", a); return 0...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; #define INF 1e18 typedef long long ll; typedef pair<int, int> P; const ll MX = 1e18; int main() { ll a; double b; cin >> a >> b; ll ib = b * 100 + 0.5; a *= ib; a /= 100; printf("%lld\n", a); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
85
import decimal a, b = input().split() a = Decimal(a) # print(b) b = Decimal(b) # print(b) print(int(a*b))
import decimal a, b = input().split() a = decimal.Decimal(a) # print(b) b = decimal.Decimal(b) # print(b) print(int(a*b))
[["+", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131]]
5
36
#include <bits/stdc++.h> using namespace std; typedef unsigned long long ull; typedef long long ll; typedef long double ld; const double pi = 3.14159265358979323846; #define speed \ ios_base::sync_with_stdio(0); ...
#include <bits/stdc++.h> using namespace std; typedef unsigned long long ull; typedef long long ll; typedef long double ld; const double pi = 3.14159265358979323846; #define speed \ ios_base::sync_with_stdio(0); ...
[["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22], ["-", 0, 16, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 17, 48]]
1
83
i=input().split() i[0]=int(i[0]) i[1]=int(float(i[1])*100) print(int(i[0]*i[1]//100))
i=input().split() i[0]=int(i[0]) i[1]=int(float(i[1])*100+0.01) print(int(i[0]*i[1]//100))
[["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 531]]
5
55
#include <bits/stdc++.h> using namespace std; #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define endl "\...
#include <bits/stdc++.h> using namespace std; #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define endl "\...
[["+", 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
69
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int acs(const void *a, const void *b) { return *(int *)a - *(int *)b; } /* 1,2,3,4.. */ int des(const void *a, const void *b) { return *(int *)b - *(int *)a; } /* 8,7,6,5.. */ int cmp_char(const void *a, const void *b) { return *(char *)...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int acs(const void *a, const void *b) { return *(int *)a - *(int *)b; } /* 1,2,3,4.. */ int des(const void *a, const void *b) { return *(int *)b - *(int *)a; } /* 8,7,6,5.. */ int cmp_char(const void *a, const void *b) { return *(char *)...
[["-", 31, 23, 0, 16, 12, 2, 63, 23, 0, 22], ["+", 31, 23, 0, 16, 12, 74, 39, 77, 39, 40], ["+", 0, 16, 12, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 16, 12, 74, 51, 23, 0, 16, 12, 13]]
0
239
a = input().split() b = int(a[0]) c = float(a[1]) c = c*100 ans = b*c // 100 print(int(ans))
a = input().split() b = int(a[0]) c = float(a[1]) c = round(c*100) ans = b*c // 100 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]]
5
46
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <iterator> #include <limits> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <ti...
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <iterator> #include <limits> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <ti...
[["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 24], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 25]]
1
322
#include <stdio.h> int main(void) { long long a; double b; scanf("%lld %lf", &a, &b); printf("%lld", a * (long long)(b * 100) / 100); return 0; }
#include <stdio.h> int main(void) { long long a; double b; scanf("%lld %lf", &a, &b); printf("%lld", a * (long long)(b * 100 + 0.5) / 100); return 0; }
[["+", 31, 16, 12, 74, 51, 23, 0, 16, 17, 72], ["+", 31, 16, 12, 74, 51, 23, 0, 16, 12, 13]]
0
53
#include <iostream> using namespace std; int main() { long long i; double d; cin >> i >> d; long long di = (d + 0.01) * 100; cout << (i * di) / 100 << '\n'; return 0; }
#include <iostream> using namespace std; int main() { long long i; double d; cin >> i >> d; long long di = (d + 0.0001) * 100; cout << (i * di) / 100 << '\n'; return 0; }
[["-", 49, 50, 51, 16, 31, 23, 0, 16, 12, 13], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 12, 13]]
1
54
#include <stdio.h> int main(void) { long long a; double b; scanf("%lld", &a); scanf("%lf", &b); int integerB = (int)(b * (double)100); long long result = a * integerB; printf("%lld\n", result / 100); return 0; }
#include <stdio.h> int main(void) { long long a; double b; scanf("%lld", &a); scanf("%lf", &b); int integerB = (int)((b + 0.005) * (double)100); long long result = a * integerB; printf("%lld\n", result / 100); return 0; }
[["+", 51, 74, 51, 23, 0, 16, 31, 23, 0, 24], ["+", 51, 23, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 51, 23, 0, 16, 31, 23, 0, 16, 12, 13], ["+", 51, 74, 51, 23, 0, 16, 31, 23, 0, 25]]
0
74
#include <bits/stdc++.h> #include <cmath> using namespace std; int main() { long long a, b; double d; cin >> a >> b; b = round(d * 100); a *= b; cout << a / 100 << "\n"; }
#include <bits/stdc++.h> #include <cmath> using namespace std; int main() { long long a, b; double d; cin >> a >> d; b = round(d * 100); a *= b; cout << a / 100 << "\n"; }
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
52
A,B = input().split() a = int(A) b = B.replace(".","") import math print(math.floor(a*int(b)/100))
A,B = input().split() a = int(A) b = B.replace(".","") import math print(math.floor(a*int(b)//100))
[["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 85], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 676]]
5
48
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); long value1 = scan.nextLong(); long value2 = (long)(scan.nextDouble() * 100); long sum = value1 * value2 / 100; scan.close(); System.out.println(sum); } }
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); long value1 = scan.nextLong(); long value2 = (long)(scan.nextDouble() * 100 + 0.001); long sum = value1 * value2 / 100; scan.close(); System.out.println(sum); } }
[["+", 49, 200, 51, 74, 51, 23, 0, 16, 17, 72], ["+", 49, 200, 51, 74, 51, 23, 0, 16, 12, 515]]
3
84
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define PB push_back #define REP(i, x, n) for (int i = x; i < n; i++) int main() { ios::sync_with_stdio(0); cin.tie(0); ll a; double b; cin >> a >> b; cout << a * (ll)(b * 100) / 100ll << endl; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define PB push_back #define REP(i, x, n) for (int i = x; i < n; i++) int main() { ios::sync_with_stdio(0); cin.tie(0); ll a; long double b; cin >> a >> b; cout << a * (ll)(b * 100 + 1e-10) / 100ll << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 17, 72], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13]]
1
76
A, B = input().split() A = int(A) B = float(B) C = A * B C = int(C) print(C)
import decimal A, B = input().split() A = int(A) B = decimal.Decimal(B) C = A * B C = int(C) print(C)
[["+", 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
A,B=input().split() n,m=0,0 for c in B: m*=10 if c!='.': n=n*10+int(c) m=1 print((int(A)*n)//m)
A,B=input().split() n,m=0,0 for c in B: m*=10 if c!='.': n=n*10+int(c) else: m=1 print((int(A)*n)//m)
[["+", 0, 7, 8, 196, 0, 57, 75, 76, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 76, 0, 102]]
5
59
#include <bits/stdc++.h> #define rep(i, n) \ ; \ for (int i = 0; i < n; i++) using namespace std; int main() { long long a; double b; cin >> a >> b; long long ib = b * 100...
#include <bits/stdc++.h> #define rep(i, n) \ ; \ for (int i = 0; i < n; i++) using namespace std; int main() { long long a; double b; cin >> a >> b; long long ib = b * 100...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
1
59
import math sta,stb=[str(i) for i in input().split()] a = int(sta) b=int(stb[0])*100 if stb[1] == '.': #小数 if len(stb) == 3: b+=int(stb[2])*10 elif len(stb) == 4: b+=int(stb[3]) print(int(a*b/100))
import math sta,stb=[str(i) for i in input().split()] a = int(sta) b = int(stb[0])*100 if stb[1] == '.': #小数 if len(stb) >= 3: b+=int(stb[2])*10 if len(stb) == 4: b+=int(stb[3]) print(a*b//100)
[["-", 0, 57, 64, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 57, 64, 196, 0, 57, 15, 666, 667, 20], ["-", 0, 57, 64, 196, 0, 57, 75, 665, 0, 683], ["+", 0, 656, 0, 57, 64, 196, 0, 57, 0, 121], ["-", 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], ["...
5
97
import math L = list(input().split()) A = int(L[0]) B = float(L[1]) M = math.floor(A*B) print(M)
import math from decimal import Decimal L = list(input().split()) A = int(L[0]) B = Decimal(L[1]) M = math.floor(A*B) print(M)
[["+", 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
46
#include <bits/stdc++.h> using namespace std; #define ull unsigned long long int int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); ull a; double b; cin >> a >> b; ull x = a * (ull)(b * 100); cout << x / 100; return 0; }
#include <bits/stdc++.h> using namespace std; #define ull unsigned long long int int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); ull a; double b; cin >> a >> b; ull x = a * (ull)(round((b * 100))); cout << x / 100; return 0; }
[["+", 51, 16, 12, 2, 3, 4, 0, 2, 63, 22], ["+", 12, 2, 3, 4, 0, 2, 3, 4, 0, 24], ["+", 3, 4, 0, 2, 3, 4, 0, 23, 0, 24], ["+", 3, 4, 0, 2, 3, 4, 0, 23, 0, 25], ["+", 12, 2, 3, 4, 0, 2, 3, 4, 0, 25]]
1
64
#include <iostream> #include <vector> using namespace std; int main() { long long a; double b; cin >> a >> b; int b1 = b * 100; long long ans = a * b1 / 100; cout << ans << endl; }
#include <iostream> #include <vector> using namespace std; int main() { long long a; double b; cin >> a >> b; int b1 = b * 100 + 0.5; long long ans = a * b1 / 100; cout << ans << endl; }
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
50
# coding: utf-8 import math a,b = (float(x) for x in input().split()) print(math.floor(a*b))
# coding: utf-8 from decimal import Decimal import math a,b = (Decimal(x) for x in input().split()) 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, 1, 0, 662, 12, 668, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 668, 8, 652, 63, 22]]
5
34
#include <bits/stdc++.h> using namespace std; int main() { long long a; double b; cin >> a >> b; long long c = 100 * b; long long s = a * c / 100; cout << s << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long a; double b; cin >> a >> b; long long c = 100 * b + 0.1; long long s = a * c / 100; cout << s << endl; }
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
49
#include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { int n, i; int x = 0; cin >> n; string s; cin >> s; int t = 1; int s1 = s[s.size() - 4] - '0'; for (i = s.size() - 1; i >= s.size() - 2; i--) { x += (s[i] - '0') * t; t = 10; } s1 += x; i = (n * s1) / 100; ...
#include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { int n, i; int x = 0; cin >> n; string s; cin >> s; int t = 1; int s1 = s[s.size() - 4] - '0'; for (i = s.size() - 1; i >= s.size() - 2; i--) { x += (s[i] - '0') * t; t = 10; } s1 = s1 * 100 + x; i = (n * s...
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 107], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72]]
1
123
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); long a = scan.nextLong(); double b = scan.nextDouble(); double b2 = b * 100; long re = (long)b2; System.out.println((long)(a * re) / 100); scan.close(); }...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); long a = scan.nextLong(); double b = scan.nextDouble(); double b2 = Math.round(b * 100); long re = (long)b2; System.out.println((long)(a * re) / 100); scan....
[["+", 8, 196, 0, 503, 49, 200, 51, 492, 500, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 0, 131], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["+", 0, 503, 49, 200, 51, 492, 3, 4, 0, 24], ["+", 0, 503, 49, 200, 51, 492, 3, 4, 0, 25]]
3
92
#include <stdio.h> int main() { long long int a; float b; scanf("%lld %f", &a, &b); printf("%lld", (a * (int)(100 * b)) / 100); }
#include <stdio.h> int main() { long long int a; float b; scanf("%lld %f", &a, &b); printf("%lld", (a * (int)(100 * b + 0.5)) / 100); }
[["+", 0, 16, 12, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 16, 12, 74, 51, 23, 0, 16, 12, 13]]
0
51
#include <cmath> #include <iostream> using namespace std; int main(void) { long long A; double B; cin >> A >> B; int B100 = 100 * B; long long result = A * B100 / 100; cout << result << endl; return 0; }
#include <cmath> #include <iostream> using namespace std; int main(void) { long long A; double B; cin >> A >> B; int B100 = 100 * B + 0.1; long long result = A * B100 / 100; cout << result << endl; return 0; }
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
54
#include <cmath> #include <iostream> using namespace std; int main(void) { long long A; double B; cin >> A >> B; int B100 = int(100 * B); long long result = A * B100; result /= 100; cout << result << endl; return 0; }
#include <cmath> #include <iostream> using namespace std; int main(void) { long long A; double B; cin >> A >> B; int B100 = 100 * B + 0.1; long long result = A * B100; result /= 100; cout << result << endl; return 0; }
[["-", 8, 9, 0, 43, 49, 50, 51, 2, 63, 40], ["-", 0, 43, 49, 50, 51, 2, 3, 4, 0, 24], ["-", 0, 43, 49, 50, 51, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
59
def main(): str_num = input() num_list = str_num.split() A = int(num_list[0]) B = float(num_list[1]) answer = int(A*B) print(answer) main()
from decimal import Decimal def main(): str_num = input() num_list = str_num.split() A = int(num_list[0]) B = Decimal(num_list[1]) answer = int(A*B) print(answer) main()
[["+", 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], ["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22]]
5
50
#include <stdio.h> int main() { long int a; double b; scanf("%ld %lf", &a, &b); // printf("%d %f\n", a, b); long double tmp = a * b; // printf("%Lf\n", tmp); long int ans = tmp; printf("%ld\n", ans); return 0; }
#include <stdio.h> int main() { long int a; long double b; scanf("%ld %Lf", &a, &b); // printf("%d %f\n", a, b); long double tmp = a * b; // printf("%Lf\n", tmp); long int ans = tmp; printf("%ld\n", ans); return 0; }
[["+", 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]]
0
57
import math NUM=input().split() A=int(NUM[0]) B=round(float(NUM[1])*100) S=A*int(B) print(int(S/100))
import math NUM=input().split() A=int(NUM[0]) B=round(float(NUM[1])*100) S=A*B print(int(S//100))
[["-", 0, 1, 0, 662, 12, 657, 12, 652, 63, 22], ["-", 0, 662, 12, 657, 12, 652, 3, 4, 0, 24], ["-", 0, 662, 12, 657, 12, 652, 3, 4, 0, 25], ["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 85], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 676]]
5
51
#include <stdio.h> int main(void) { long long a, r; double b; scanf("%lld", &a); scanf("%lf", &b); r = (long long)(b * 100); r *= a; r /= 100; printf("%lld", r); return 0; }
#include <stdio.h> int main(void) { long long a, r; double b; scanf("%lld", &a); scanf("%lf", &b); r = (long long)(b * 100 + 0.5); r *= a; r /= 100; printf("%lld", r); return 0; }
[["+", 0, 11, 12, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 11, 12, 74, 51, 23, 0, 16, 12, 13]]
0
70
// ABC_169_C #include <bits/stdc++.h> using namespace std; using ll = long long; #define forn(i, n) for (int i = 0; i < (int)n; ++i) int main() { ll a; double b; cin >> a >> b; ll tmp = b * (ll)100; ll ans = (a * tmp) / (ll)100; cout << ans << "\n"; return 0; }
// ABC_169_C #include <bits/stdc++.h> using namespace std; using ll = long long; #define forn(i, n) for (int i = 0; i < (int)n; ++i) int main() { ll a; double b; cin >> a >> b; ll tmp = b * (ll)100 + 0.001; ll ans = (a * tmp) / (ll)100; cout << ans << "\n"; return 0; }
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
74
#include <bits/stdc++.h> #define int long long using namespace std; double a, b; signed main() { cin >> a >> b; cout << (int)(a * b) << endl; return 0; }
#include <bits/stdc++.h> #define int long long using namespace std; long double a, b; signed main() { cin >> a >> b; cout << (int)(a * b) << endl; return 0; }
[["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96]]
1
42
#include <bits/stdc++.h> using namespace std; int main() { long long a; double b; cin >> a >> b; cout << (long long)(a * b); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long a; long double b; cin >> a >> b; cout << (long long)(a * b); return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
40
#include "bits/stdc++.h" #define MOD 1000000007 #define rep(i, n) for (ll i = 0; i < (n); i++) #define rrep(i, n) for (ll i = (n)-1; i >= 0; i--) #define ALL(v) v.begin(), v.end() #define rALL(v) v.rbegin(), v.rend() #define FOR(i, j, k) for (ll i = j; i < k; i++) #define DUMP(i, v) ...
#include "bits/stdc++.h" #define MOD 1000000007 #define rep(i, n) for (ll i = 0; i < (n); i++) #define rrep(i, n) for (ll i = (n)-1; i >= 0; i--) #define ALL(v) v.begin(), v.end() #define rALL(v) v.rbegin(), v.rend() #define FOR(i, j, k) for (ll i = j; i < k; i++) #define DUMP(i, v) ...
[["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["-", 8, 9, 0, 1, 0, 16, 12, 2, 63, 22], ["-", 0, 1, 0, 16, 12, 2, 3, 4, 0, 24], ["-", 0, 16, 12, 2, 3, 4, 0, 16, 12, 13], ["-", 0, 1, 0, 16, 12, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]]
1
111
#include <bits/stdc++.h> using namespace std; int main() { long int i; float t; cin >> i >> t; i *= (int)(t * 100); cout << i / 100; }
#include <bits/stdc++.h> using namespace std; int main() { long int i; float t; cin >> i >> t; i *= (int)(t * 100 + .1); cout << i / 100; }
[["+", 0, 11, 12, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 11, 12, 74, 51, 23, 0, 16, 12, 13]]
1
42
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <string> #include <utility> #include <vector> using namespace std; using ll = long long; using ld = long double; const long long INF = 1LL << 60; typedef pair<ll, ll> Pair; int main() { dou...
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <string> #include <utility> #include <vector> using namespace std; using ll = long long; using ld = long double; const long long INF = 1LL << 60; typedef pair<ll, ll> Pair; int main() { dou...
[["-", 0, 1, 0, 11, 12, 16, 12, 2, 63, 22], ["-", 0, 11, 12, 16, 12, 2, 3, 4, 0, 24], ["-", 0, 11, 12, 16, 12, 2, 3, 4, 0, 22], ["-", 0, 11, 12, 16, 12, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]]
1
117
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) int main() { long long a; double b; cin >> a >> b; a *= b * 100 + .1; cout << a / 100 << endl; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) int main() { long long a; double b; cin >> a >> b; a *= (int)(b * 100 + .1); cout << a / 100 << endl; }
[["+", 8, 9, 0, 1, 0, 11, 12, 74, 0, 24], ["+", 0, 1, 0, 11, 12, 74, 39, 77, 39, 40], ["+", 8, 9, 0, 1, 0, 11, 12, 74, 0, 25], ["+", 0, 1, 0, 11, 12, 74, 51, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 74, 51, 23, 0, 25]]
1
49
#include <bits/stdc++.h> typedef long long int ll; using namespace std; int main() { ll a; double b; cin >> a >> b; ll x = b * 100; cout << (a * x) / 100 << endl; return 0; }
#include <bits/stdc++.h> typedef long long int ll; using namespace std; int main() { ll a; long double b; cin >> a >> b; ll x = b * 100 + 0.2; cout << (a * x) / 100 << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
52
// // Created by admin on 2020/6/7. // #include <bits/stdc++.h> using namespace std; long long a, re, b1; long double b; int main() { cin >> a >> b; b1 = b * 100; re = a * b1 / 100; cout << re << endl; return 0; }
// // Created by admin on 2020/6/7. // #include <bits/stdc++.h> using namespace std; unsigned long long a, re, b1; long double b; int main() { cin >> a >> b; b1 = b * 100 + 0.5; re = a * b1 / 100; cout << re << endl; return 0; }
[["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 87], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
56
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); long long a, b; double c; cin >> a >> c; b = c * 100; cout << a * b / 100; }
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); long long a, b; double c; cin >> a >> c; b = c * 100 + 0.5; cout << a * b / 100; }
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
55
A, B = input().split() A = int(A) B = float(B) B = (B*100).round() print((A*B)//100)
A, B = input().split() A = int(A) B = float(B) B = round((B*100)) print((A*B)//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, 63, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24]]
5
44
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ll a; double b; cin >> a >> b; ll ib = b * 100; a *= ib; a /= 100; printf("%lld\n", a); return 0; }
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ll a; double b; cin >> a >> b; ll ib = b * 100 + 0.5; a *= ib; a /= 100; printf("%lld\n", a); return 0; }
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
58
#include <algorithm> #include <cmath> #include <ctime> #include <iostream> #include <queue> #include <vector> using namespace std; using ll = long long; using vi = vector<int>; using vvi = vector<vector<int>>; using pii = pair<int, int>; using ppi = pair<pii, int>; int main() { cin.tie(0); ios::sync_with_stdio(fa...
#include <algorithm> #include <cmath> #include <ctime> #include <iostream> #include <queue> #include <vector> using namespace std; using ll = long long; using vi = vector<int>; using vvi = vector<vector<int>>; using pii = pair<int, int>; using ppi = pair<pii, int>; int main() { cin.tie(0); ios::sync_with_stdio(fa...
[["+", 0, 16, 12, 2, 3, 4, 0, 2, 63, 22], ["+", 12, 2, 3, 4, 0, 2, 3, 4, 0, 24], ["+", 12, 2, 3, 4, 0, 2, 3, 4, 0, 25]]
1
120
// Author- Vaibhav singh #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define ordered_multiset \ tree<long long, null_type, less_equal<long long>, rb_tree_tag, \ ...
// Author- Vaibhav singh #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define ordered_multiset \ tree<long long, null_type, less_equal<long long>, rb_tree_tag, \ ...
[["-", 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
243
nums = gets.split(" "); puts (nums[0].to_i * nums[1].to_f).floor
nums = gets.split(" "); puts (nums[0].to_i * nums[1].to_r).floor
[["-", 0, 652, 486, 739, 0, 738, 12, 652, 735, 22], ["+", 0, 652, 486, 739, 0, 738, 12, 652, 735, 22]]
4
29
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; typedef pair<int, int> P; int main() { ll a; cin >> a; float b; cin >> b; ll b100 = b * 100; ll ans = a * b100 / 100; cout << ans << endl; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; typedef pair<int, int> P; int main() { ll a; cin >> a; float b; cin >> b; ll b100 = b * 100 + 0.5; ll ans = a * b100 / 100; cout << ans << endl; }
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
70