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
ab = list(input().split()) a = int(ab[0]) b = float(ab[1]) ans = a * b print(int(ans))
from decimal import Decimal ab = list(input().split()) a = int(ab[0]) b = Decimal(ab[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, 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 <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (int)(n); i++) #define ll long long using namespace std; int main() { ll a; double b; cin >> a >> b; ll c = a * b; cout << c << endl; }
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (int)(n); i++) #define ll long long using namespace std; int main() { ll a; long double b; cin >> a >> b; ll c = a * b; cout << c << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
48
#include <bits/stdc++.h> using namespace std; #ifdef ENABLE_DEBUG_OUTPUT #define DEBUG_LOG(s) cout << s << endl; #else #define DEBUG_LOG(s) void(); #endif int main() { int64_t a; double b; cin >> a >> b; cout << (int64_t)floor(a * b) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #ifdef ENABLE_DEBUG_OUTPUT #define DEBUG_LOG(s) cout << s << endl; #else #define DEBUG_LOG(s) void(); #endif int main() { int64_t a; long double b; cin >> a >> b; cout << (int64_t)(a * b) << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 16, 31, 16, 12, 74, 51, 2, 63, 22]]
1
57
def main(): import sys import math a,b = map(str, input().split()) a = int(a) b = int(b.replace('.','')) c = math.floor(a*b/100) print(c) if __name__ == '__main__': main()
def main(): import sys import math a,b = map(str, input().split()) a = int(a) b = int(b.replace('.','')) c = a*b//100 print(c) if __name__ == '__main__': main()
[["-", 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], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 662, 12, 652, 3, 4, 0, 657, 17, 85], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 676], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25...
5
73
import math A, B = input().split() A = int(A) B = float(B) B = B * 100 ans = math.floor(A * B / 100) print(ans)
import math import decimal A, B = input().split() A = int(A) B = decimal.Decimal(B) B = B * 100 ans = math.floor(A * B / 100) print(ans)
[["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 0, 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
46
""" [a,b]=list(map(float,input().split())) import math a=int(a) b=int(b*100) ans=a*b ans=ans/100 ans=math.floor(ans) print(ans) """ [a,b]=list(input().split()) a=int(a) b12=list(b.split('.')) bkai=int(b12[0]*100+b12[1]) ans=a*bkai ans=ans//100 print(ans)
""" [a,b]=list(map(float,input().split())) import math a=int(a) b=int(b*100) ans=a*b ans=ans/100 ans=math.floor(ans) print(ans) """ [a,b]=list(input().split()) a=int(a) b12=list(b.split('.')) bkai=int(int(b12[0])*100+int(b12[1])) ans=a*bkai ans=ans//100 print(ans)
[["+", 3, 4, 0, 657, 31, 657, 31, 652, 63, 22], ["+", 0, 657, 31, 657, 31, 652, 3, 4, 0, 24], ["+", 0, 657, 31, 657, 31, 652, 3, 4, 0, 25], ["+", 12, 652, 3, 4, 0, 657, 12, 652, 63, 22], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 24], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 25]]
5
68
a, b = input().split() a = int(a) b = int(float(b) * 100) print(a * b // 100)
a, b = input().split() a = int(a) b = round(float(b) * 100) print(a * b // 100)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
36
#include <bits/stdc++.h> #include <stdio.h> #include <string.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; using ll = long long; using P = pair<int, int>; ll a, b, c, d, n, m, k; ll ans = 100000000000; string s; int main() { cin.tie(0); ios::sync_with_stdio(false); double bb; cin >> ...
#include <bits/stdc++.h> #include <stdio.h> #include <string.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; using ll = long long; using P = pair<int, int>; ll a, b, c, d, n, m, k; ll ans = 100000000000; string s; int main() { cin.tie(0); ios::sync_with_stdio(false); long double bb; ci...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
98
#include <bits/stdc++.h> using namespace std; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return 1; } return 0; } #define COUT(x) cout << #x << " = " << (x) << " (L" << __...
#include <bits/stdc++.h> using namespace std; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return 1; } return 0; } #define COUT(x) cout << #x << " = " << (x) << " (L" << __...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
403
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; int main() { long long a; double bb; cin >> a >> bb; long long b = bb * 100.0; cout << a * b / 100 << endl; }
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; int main() { long long a; double bb; cin >> a >> bb; long long b = (bb + 0.0001) * 100.0; cout << a * b / 100 << endl; }
[["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 17, 72], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25]]
1
55
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; template <typename T> bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <typename T> bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } #define rep(i, n) for (int i ...
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; template <typename T> bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <typename T> bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } #define rep(i, n) for (int i ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40]]
1
183
#include <bits/stdc++.h> #define rep(i, a, b) for (int i = a; i < b; i++) #define rrep(i, a, b) for (int i = a; i >= b; i--) #define fore(i, a) for (auto &i : a) #define all(x) (x).begin(), (x).end() // #pragma GCC optimize ("-O3") // using namespace std; void _main(); int main() { cin.tie(0); // ios::sync_with_stdio(f...
#include <bits/stdc++.h> #define rep(i, a, b) for (int i = a; i < b; i++) #define rrep(i, a, b) for (int i = a; i >= b; i--) #define fore(i, a) for (auto &i : a) #define all(x) (x).begin(), (x).end() // #pragma GCC optimize ("-O3") // using namespace std; void _main(); int main() { cin.tie(0); // ios::sync_with_stdio(f...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
82
import math A,B=input().split() A = int(A) N,F = B.split('.') print(N,F) ans = (A * 100 * int(N) + A * int(F)) //100 print(ans)
import math A,B=input().split() A = int(A) N,F = B.split('.') ans = (A * 100 * int(N) + A * int(F)) //100 print(ans)
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
62
from decimal import * getcontext().prec = 17 N = list(map(str, input().split())) A = Decimal(N[0]) B = Decimal(N[1]) print(int(A*B))
from decimal import * getcontext().prec = 19 N = list(map(str, input().split())) A = Decimal(N[0]) B = Decimal(N[1]) print(int(A*B))
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]]
5
55
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespac...
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespac...
[["+", 49, 50, 51, 16, 12, 74, 51, 23, 0, 24], ["+", 51, 16, 12, 74, 51, 23, 0, 16, 17, 72], ["+", 51, 16, 12, 74, 51, 23, 0, 16, 12, 13], ["+", 49, 50, 51, 16, 12, 74, 51, 23, 0, 25]]
1
145
#include <bits/stdc++.h> #define ll int64_t using namespace std; #include <cstdio> #include <cstdlib> #include <cstring> #include <math.h> #define FOR(I, A, B) for (int I = (A); I <= (B); I++) #define fo(i, n) for (int i = 0; i < n; i++) #define sz(a) int((a).size()) #define pb push_back #define all(c) (c).begin(), (...
#include <bits/stdc++.h> #define ll int64_t using namespace std; #include <cstdio> #include <cstdlib> #include <cstring> #include <math.h> #define FOR(I, A, B) for (int I = (A); I <= (B); I++) #define fo(i, n) for (int i = 0; i < n; i++) #define sz(a) int((a).size()) #define pb push_back #define all(c) (c).begin(), (...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
145
import math a,b=input().split() a=int(a) c=int(b[0]+b[2]+b[3]) print(int(a*c/100)) #print(a*b)
import math a,b=input().split() a=int(a) c=int(b[0]+b[2]+b[3]) print(a*c//100) #print(a*b)
[["-", 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
50
import math a,b=input().split() a=int(a) c=int(b[0]+b[2]+b[3]) print(int(a*c/100)) #print(a*b)
import math a,b=input().split() a=int(a) c=int(b[0]+b[2]+b[3]) print(int(a*c)//100) #print(a*b)
[["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 85], ["-", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 676], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
50
import math A, B = input().split() a = int(A) b = float(B) c = a * b p = math.floor(c) C = int(p) print(C)
import math import decimal A, B = input().split() a = int(A) b = decimal.Decimal(B) c = a * b p = math.floor(c) C = int(p) 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
48
def main(): a, b = input().split() a = int(a) b = int(float(b) * 100) print(a * b // 100) if __name__ == '__main__': main()
def main(): a, b = input().split() a = int(a) b = round(float(b) * 100) print(a * b // 100) if __name__ == '__main__': main()
[["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22]]
5
51
def main(): A,B = map(str,input().split()) A = int(A) B = B.replace(',','') B = int(B) C = A*B print(C//100) if __name__ == '__main__': main()
def main(): A,B = map(str,input().split()) A = int(A) B = B.replace('.','') B = int(B) C = A*B print(C//100) if __name__ == '__main__': main()
[["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6]]
5
67
#include <bits/stdc++.h> using namespace std; int main() { long long int a, res; double b; cin >> a >> b; cout << (long long int)(a * b) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, res; long double b; cin >> a >> b; cout << (long long)(a * b) << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 31, 16, 12, 74, 39, 77, 39, 86, 39, 40]]
1
46
#include <bits/stdc++.h> using namespace std; int main(void) { unsigned long long int a; double b; cin >> a >> b; cout << (unsigned long long int)(a * b) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { unsigned long long int a; long double b; cin >> a >> b; cout << (unsigned long long int)(a * b) << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
47
#include <bits/stdc++.h> #define MAX 100010 #define pb push_back #define ll long long using namespace std; ll val[1000003]; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int t = 1; // cin>>t; while (t--) { ll a; float b; cin >> a >> b; ll ans = a * b; cout << ans; } ...
#include <bits/stdc++.h> #define MAX 100010 #define pb push_back #define ll long long using namespace std; ll val[1000003]; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int t = 1; // cin>>t; while (t--) { ll a; long double b; cin >> a >> b; ll ans = a * b; cout << ans;...
[["-", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40], ["+", 0, 52, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 52, 8, 9, 0, 43, 39, 86, 39, 40]]
1
80
#include <bits/stdc++.h> using namespace std; int main() { double a, b; cin >> a >> b; cout << (long long)(a * b) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long double a, b; cin >> a >> b; cout << (long long)(a * b) << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
40
AB = list(input().split()) A = int(AB[0]) B = float(AB[1]) B = round(B * 100) ans = int(A * B / 100) print(ans)
AB = list(input().split()) A = int(AB[0]) B = float(AB[1]) B = round(B * 100) 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
52
#include <bits/stdc++.h> using namespace std; int main() { long long a; cin >> a; long double b; cin >> b; long long x = b * 100; cout << a * x / 100; }
#include <bits/stdc++.h> using namespace std; int main() { long long a; cin >> a; long double b; cin >> b; long long x = round(b * 100); cout << a * x / 100; }
[["+", 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
44
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define ordered_set \ tree<int, null_type, less<int>, rb_tree_tag, \ tree_order_statistic...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define ordered_set \ tree<int, null_type, less<int>, rb_tree_tag, \ tree_order_statistic...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
1,336
from math import floor a, b = input().split() a = int(a) b = int(float(b)*100) print(a*b//100)
a, b = input().split() a = int(a) b = round(float(b)*100) print(a*b//100)
[["-", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["-", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["-", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["-", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
40
from math import floor a, b = input().split() a = int(a) b = int(float(b)*100) print(a*b//100)
from math import floor a, b = input().split() a = int(a) b = int(float(b)*100+0.0001) 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
40
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; int main() { long double n; cin >> n; long double m; cin >> m; long long ans = n * m / 100; cout << ans << endl; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; int main() { long double n; cin >> n; long double m; cin >> m; long long ans = n * m; cout << ans << endl; }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 85], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
52
#include <cmath> #include <iomanip> #include <iostream> #include <queue> #include <stack> #include <string> #include <algorithm> #include <fstream> #include <vector> using namespace std; int main(void) { double a, b; cin >> a >> b; b *= 100; floor(b); b /= 100; cout << fixed << setprecision(0) << flo...
#include <cmath> #include <iomanip> #include <iostream> #include <queue> #include <stack> #include <string> #include <algorithm> #include <fstream> #include <vector> using namespace std; int main(void) { long double a, b; cin >> a >> b; b *= 100; floor(b); b /= 100; cout << fixed << setprecision(0) <...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
71
#include <algorithm> #include <climits> #include <cmath> #include <cstdlib> #include <ctype.h> #include <functional> #include <iostream> #include <map> #include <set> #include <string> #include <vector> using namespace std; #define REP(i, n) for (int i = 0; i < (int)(n); i++) int main() { long long a, b; double bi...
#include <algorithm> #include <climits> #include <cmath> #include <cstdlib> #include <ctype.h> #include <functional> #include <iostream> #include <map> #include <set> #include <string> #include <vector> using namespace std; #define REP(i, n) for (int i = 0; i < (int)(n); i++) int main() { long long a, b; double bi...
[["+", 12, 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], ["+", 12, 74, 51, 23, 0, 16, 31, 23, 0, 25]]
1
82
import math def main(): A, B = input().split() A = int(A) B = round(100 * (B)) out = (A * B) // 100 print(out) main()
import math def main(): A, B = input().split() A = int(A) B = round(100 * float(B)) out = (A * B) // 100 print(out) main()
[["+", 12, 652, 3, 4, 0, 657, 12, 652, 63, 22]]
5
50
a,b = input().split() a = int(a) b = 100*float(b)+0.5 print((a*b)//100)
a,b = input().split() a = int(a) b = int(100*float(b)+0.5) 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, 3, 4, 0, 25]]
5
37
a,b=input().split() a = int(a) b1,b2 = b.split('.') ans = a*(int(b1)*100+int(b2))//100 print(print(ans))
a,b=input().split() a = int(a) b1,b2 = b.split('.') ans = a*(int(b1)*100+int(b2))//100 print(ans)
[["-", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
55
#include <bits/stdc++.h> #define repz(i, z, n) for (decltype(n) i = (z); i < (n); i++) #define rep(i, n) for (decltype(n) i = 0; i < (n); i++) #define REPZ(i, z, n) for (decltype(n) i = (z); i <= (n); i++) #define REP(i, n) for (decltype(n) i = 0; i <= (n); i++) #define ALL(v) v.begin(), v.end() #define SIZE(v) ((ll)(...
#include <bits/stdc++.h> #define repz(i, z, n) for (decltype(n) i = (z); i < (n); i++) #define rep(i, n) for (decltype(n) i = 0; i < (n); i++) #define REPZ(i, z, n) for (decltype(n) i = (z); i <= (n); i++) #define REP(i, n) for (decltype(n) i = 0; i <= (n); i++) #define ALL(v) v.begin(), v.end() #define SIZE(v) ((ll)(...
[["-", 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], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22]]
1
335
A, B = map(float, input().split()) A = int(a) B = round(100*B) ans = int(int(A*B)//100) print(ans)
A, B = map(float, input().split()) A = int(A) B = round(100*B) ans = int(int(A*B)//100) print(ans)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
47
A,B = input().split() A = int(A) B1,B2 = map(float,B.split('.')) ans = A*(B1*100+B2) print(int(ans//100))
A,B = input().split() A = int(A) B1,B2 = map(int,B.split('.')) ans = A*(B1*100+B2) print(int(ans//100))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
54
#include <bits/stdc++.h> using namespace std; int main() { int64_t A; long double B; // int64_t ans; cin >> A >> B; B = B * 100.0; // cout << "B" << B << endl; int64_t C = B; // cout << "C" << C << endl; // cout << A*C << endl; cout << (A * C) / 100 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int64_t A; double B; // int64_t ans; cin >> A >> B; B = B * 100.0; // cout << "B" << B << endl; int64_t C = B + 0.000001; // cout << "C" << C << endl; // cout << A*C << endl; cout << (A * C) / 100 << endl; }
[["-", 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
import sys #import time import copy #from collections import deque, Counter, defaultdict #from fractions import gcd #import bisect from decimal import * import math input = sys.stdin.readline sys.setrecursionlimit(10**8) inf = 10**20 ri = lambda : int(input()) rs = lambda : input().strip() rl = lambda : list(map(str, i...
import sys #import time import copy #from collections import deque, Counter, defaultdict #from fractions import gcd #import bisect from decimal import * import math input = sys.stdin.readline sys.setrecursionlimit(10**8) inf = 10**20 ri = lambda : int(input()) rs = lambda : input().strip() rl = lambda : list(map(str, i...
[["-", 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
108
//“Make it work, make it right, make it fast.” – Kent Beck #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef double dd; int siz = 1e8 + 1; const int MOD = 1e9 + 7; #define endl '\n' #define deb(x) cout << #x << " = " << x << endl; void solve() { double a, b; cin >> a >> b; ll ans = ll(a...
//“Make it work, make it right, make it fast.” – Kent Beck #include <bits/stdc++.h> using namespace std; typedef unsigned long long ll; typedef double dd; int siz = 1e8 + 1; const int MOD = 1e9 + 7; #define endl '\n' #define deb(x) cout << #x << " = " << x << endl; void solve() { long double a, b; cin >> a >> b; ...
[["+", 36, 36, 0, 30, 0, 134, 39, 86, 0, 87], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
119
#include <stdio.h> int main() { long long a, c; double b; scanf("%lld %lf", &a, &b); c = a * b; printf("%lld", c); return 0; }
#include <stdio.h> int main() { long long a, c; long double b; scanf("%lld %llf", &a, &b); c = a * b; printf("%lld", c); 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
48
#include <algorithm> #include <cctype> #include <climits> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #incl...
#include <algorithm> #include <cctype> #include <climits> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #incl...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
191
#include <iostream> using namespace std; int main() { long long a; double b; long long ans; cin >> a >> b; ans = static_cast<long long>(a * b); cout << ans << endl; }
#include <iostream> using namespace std; int main() { long long a; long double b; long long ans; cin >> a >> b; ans = static_cast<long long>(a * b); cout << ans << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
48
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { ll a; double b; ll ans; cin >> a >> b; b = 100 * b; ans = int(b) * a / 100; cout << ll(ans) << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { ll a; double b; ll ans; cin >> a >> b; b = 100 * b + 0.5; ans = int(b) * a / 100; cout << ll(ans) << endl; return 0; }
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
80
#include <bits/stdc++.h> typedef long long ll; #define rep(i, a, n) for (ll i = a; i < n; i++) #define rrep(i, a, n) for (ll i = n; i >= a; i--) #define index_check(i, n) \ if (i > n - 1 || i < 0) \ continue;...
#include <bits/stdc++.h> typedef long long ll; #define rep(i, a, n) for (ll i = a; i < n; i++) #define rrep(i, a, n) for (ll i = n; i >= a; i--) #define index_check(i, n) \ if (i > n - 1 || i < 0) \ continue;...
[["+", 3, 4, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 3, 4, 0, 2, 3, 4, 0, 16, 12, 13]]
1
136
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <queue> #include <vector> using namespace std; typedef long long ll; int main() { int a; string b; cin >> a >> b; string bsub1 = b.substr(b.length() - 2); string bsub2 = b.substr(0, b.length() - 2); ll ans = a * stoi(bsub2) ...
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <queue> #include <vector> using namespace std; typedef long long ll; int main() { ll a; string b; cin >> a >> b; string bsub1 = b.substr(b.length() - 2); string bsub2 = b.substr(0, b.length() - 2); ll ans = a * stoi(bsub2) +...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
101
import java.math.BigDecimal; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); BigDecimal a = sc.nextBigDecimal(); BigDecimal b = sc.nextBigDecimal(); a.multiply(b); System.out.println(a.toBigInteger()); } }
import java.math.BigDecimal; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); BigDecimal a = sc.nextBigDecimal(); // Immutable class. BigDecimal b = sc.nextBigDecimal(); BigDecimal ans = a.multiply(b); System.out.printl...
[["+", 8, 498, 0, 195, 8, 196, 0, 503, 39, 78], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 141, 22], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 0, 32], ["-", 0, 1, 0, 492, 3, 4, 0, 492, 500, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 492, 500, 22]]
3
80
#pragma GCC optimize("O3") #pragma GCC target("avx") #include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); ++i) #define repr(i, n) for (int i = n; i > (int)(n); --i) #define rep1(i, n) for (int i = 1; i <= (int)(n); ++i) #define ALL(a) a.begin(), a.end() #define RSORT(a) sort(ALL(a), greater<>()) #de...
#pragma GCC optimize("O3") #pragma GCC target("avx") #include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); ++i) #define repr(i, n) for (int i = n; i > (int)(n); --i) #define rep1(i, n) for (int i = 1; i <= (int)(n); ++i) #define ALL(a) a.begin(), a.end() #define RSORT(a) sort(ALL(a), greater<>()) #de...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
264
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int MAXN = 1e5 + 5; const double eps = 1e-7; const double PI = acos(-1.0); #define DEBUG(x) cout << x << '\n' long double a, b; int main() { #ifdef Irene freopen("in.txt", "r", stdin); #endif // Irene ios::sync_with_stdio(false); cin >> a...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int MAXN = 1e5 + 5; const double eps = 1e-7; const double PI = acos(-1.0); #define DEBUG(x) cout << x << '\n' long double a, b; int main() { #ifdef Irene freopen("in.txt", "r", stdin); #endif // Irene ios::sync_with_stdio(false); cin >> a...
[["-", 8, 9, 0, 1, 0, 16, 12, 2, 63, 22], ["+", 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
91
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <memory> #include <queue> #include <set> #include <stdio.h> #include <stdlib.h> #include <string> #include <time.h> #include <vector> #define M_PI 3.14159265358979323846 #define ll long long #define int ll #define E exp(1.0) const int N =...
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <memory> #include <queue> #include <set> #include <stdio.h> #include <stdlib.h> #include <string> #include <time.h> #include <vector> #define M_PI 3.14159265358979323846 #define ll long long #define int ll #define E exp(1.0) const int N =...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
358
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG using namespace std; int main() { double a, b; cin >> a >> b; cout << (long long)(a * b) << endl; return 0; }
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG using namespace std; int main() { long double a, b; cin >> a >> b; cout << (long long)(a * b) << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
42
#include <algorithm> #include <cmath> #include <cstdlib> #include <functional> #include <iomanip> #include <iostream> #include <math.h> #include <numeric> #include <string> #include <vector> #define ll long long #define PI 3.14159265358979323846 #define rep(i, n) for (ll i = 0; i < (ll)n; i++) using namespace std; int...
#include <algorithm> #include <cmath> #include <cstdlib> #include <functional> #include <iomanip> #include <iostream> #include <math.h> #include <numeric> #include <string> #include <vector> #define ll long long #define PI 3.14159265358979323846 #define rep(i, n) for (ll i = 0; i < (ll)n; i++) using namespace std; int...
[["+", 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
87
# 検証と認識が甘かった def solve(A, B): _B = round(B * 100) print(A * _B // 100) if __name__ == '__main__': A, B = [float(i) for i in input().split()] A = int(A) sorted(A, B)
# 検証と認識が甘かった def solve(A, B): _B = round(B * 100) print(A * _B // 100) if __name__ == '__main__': A, B = [float(i) for i in input().split()] A = int(A) solve(A, B)
[["-", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22]]
5
64
#include <bits/stdc++.h> using namespace std; int main() { long long a; double b; cin >> a >> b; cout << (long long)(trunc(a * b)) << endl; 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) << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 16, 31, 16, 12, 74, 51, 23, 0, 24], ["-", 31, 16, 12, 74, 51, 23, 0, 2, 63, 22], ["-", 12, 74, 51, 23, 0, 2, 3, 4, 0, 25]]
1
45
#include <bits/stdc++.h> #include <bitset> #include <iostream> #include <math.h> #include <queue> #include <stdio.h> #define INF 100000000000 #define N 200000 #define ll long long using namespace std; int main() { double a, b; cin >> a >> b; double p = a * b; cout << fixed << setprecision(0) << floor(p) << en...
#include <bits/stdc++.h> #include <bitset> #include <iostream> #include <math.h> #include <queue> #include <stdio.h> #define INF 100000000000 #define N 200000 #define ll long long using namespace std; int main() { long double a, b; cin >> a >> b; long double p = a * b; cout << fixed << setprecision(0) << floo...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
65
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; #define REP(i, s, n) for (int i = s; i < (n); ++i) #define ALL(n) begin(n), end(n) using ll = long long; const ll INF = 1e18; template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } template <...
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; #define REP(i, s, n) for (int i = s; i < (n); ++i) #define ALL(n) begin(n), end(n) using ll = long long; const ll INF = 1e18; template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } template <...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
140
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; int main() { int64_t A, Bx100; double B; cin >> A >> B; Bx100 = B * 100.0; string ans = to_string(A * Bx100); if (A * B >= 100) { for (int64_t i = 0; i < ans.size() - 2; i++) { cout << ans[i]; } } else { cout << '0'; ...
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; int main() { int64_t A, Bx100; double B; cin >> A >> B; Bx100 = B * 100.1; string ans = to_string(A * Bx100); if (A * Bx100 >= 100) { for (int64_t i = 0; i < ans.size() - 2; i++) { cout << ans[i]; } } else { cout << '0...
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]]
1
99
a, b = map(str,input().split()) a, b = int(a), int(float(b)*100) ans = a * b print(ans//100)
a, b = map(str,input().split()) a, b = int(a), int((float(b)*100) + 0.001) ans = a * b print(ans//100)
[["+", 0, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["+", 0, 652, 3, 4, 0, 657, 31, 23, 0, 25], ["+", 12, 432, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 12, 432, 0, 652, 3, 4, 0, 657, 12, 531]]
5
45
from decimal import * A,B=input().split() print(Decimal(A)*Decimal(B))
from decimal import * A,B=input().split() print(int(Decimal(A)*Decimal(B)))
[["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 25]]
5
27
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = unsigned long long; using p = pair<int, int>; int main() { double A, B; cin >> A >> B; std::cout << static_cast<ll>(A * B) << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = unsigned long long; using p = pair<int, int>; int main() { long double A, B; cin >> A >> B; std::cout << static_cast<ll>(A * B) << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
67
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); String sB = sc.next(); long B = Integer.parseInt(sB.substring(0, 1)) * 100 + Integer.parseInt(sB.substring(2, 3)) * 100 + Inte...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); String sB = sc.next(); long B = Integer.parseInt(sB.substring(0, 1)) * 100 + Integer.parseInt(sB.substring(2, 3)) * 10 + Intege...
[["-", 49, 200, 51, 16, 31, 16, 12, 16, 12, 499], ["+", 49, 200, 51, 16, 31, 16, 12, 16, 12, 499], ["-", 0, 503, 49, 200, 51, 16, 12, 16, 17, 48], ["-", 0, 503, 49, 200, 51, 16, 12, 16, 12, 499]]
3
125
#include <bits/stdc++.h> using namespace std; int main() { long long int a, c; double b, d; cin >> a >> b; d = a * b; c = d; cout << c << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long int a, c; long double b, d; cin >> a >> b; d = a * b; c = d; cout << c << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
46
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> typedef long long ll; int main() { ll a; long double b; scanf("%lld %lf", &a, &b); a = a * b; printf("%lld\n", a); return 0; }
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> typedef long long ll; int main() { ll a; long double b; scanf("%lld %Lf", &a, &b); a = a * b; 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]]
0
58
a, b = input().split() a = int(a) b = int(b.replace(".", "")) ans = a*b//2 print(ans)
a, b = input().split() a = int(a) b = int(b.replace(".", "")) ans = a*b//100 print(ans)
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]]
5
44
import math import decimal A,B=input().split() print(Decimal(A)*Decimal(B)//1)
import math import decimal A,B=input().split() print(decimal.Decimal(A)*decimal.Decimal(B)//1)
[["+", 0, 657, 31, 657, 31, 652, 63, 319, 500, 22], ["+", 0, 657, 31, 657, 31, 652, 63, 319, 0, 131], ["+", 0, 657, 31, 657, 12, 652, 63, 319, 500, 22], ["+", 0, 657, 31, 657, 12, 652, 63, 319, 0, 131]]
5
29
#include <algorithm> #include <iostream> #include <math.h> using namespace std; typedef long long ll; int main(void) { ll a, b; long double c; ll ans = 0; cin >> a >> c; b = c * 100; ans = a * b; ans /= 100; cout << ans << endl; return 0; }
#include <algorithm> #include <iostream> #include <math.h> using namespace std; typedef long long ll; int main(void) { ll a, b; long double c; ll ans = 0; cin >> a >> c; b = (c + 0.00001) * 100; ans = a * b; ans /= 100; cout << ans << endl; 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
67
n,m=input().split() n = int(n) m = float(m) print(n*int(m*100)//100)
n,m=input().split() n = int(n) m = float(m) print(n*round(m*100)//100)
[["-", 3, 4, 0, 657, 31, 657, 12, 652, 63, 22], ["+", 3, 4, 0, 657, 31, 657, 12, 652, 63, 22]]
5
36
a,b=input().split() c,c = b.split(".") print(int(a)*int(b)+int(a)*int(c)//100)
a,b=input().split() b,c = b.split(".") print(int(a)*int(b)+int(a)*int(c)//100)
[["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22]]
5
47
import math from decimal import Decimal A,B = map(float,input().split()) C = Decimal(B) print(math.floor(int(A)*C))
import math from decimal import Decimal A,B = input().split() C = Decimal(B) print(math.floor(int(A)*C))
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
42
#include <bits/stdc++.h> using namespace std; #define FOR(i, l, n) for (int i = l; i < (int)(n); ++i) #define REP(i, n) FOR(i, 0, n) int main() { long long a; double b; cin >> a >> b; cout << (long long)(a * b) << endl; }
#include <bits/stdc++.h> using namespace std; #define FOR(i, l, n) for (int i = l; i < (int)(n); ++i) #define REP(i, n) FOR(i, 0, n) int main() { long long a; long double b; cin >> a >> b; cout << (long long)(a * b) << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
57
A, B = [s for s in input().split()] A = int(A) B = int(float(B) * 100) print( int(A * B // 100) )
#!/usr/bin/env python3 A, B = [s for s in input().split()] A = int(A) B = round(float(B) * 100) print(str(A * B // 100))
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22]]
5
45
#include <bits/stdc++.h> using namespace std; using ull = unsigned long long; int main() { ull a, nb; long double b, c; cin >> a >> b; c = b * 100; nb = ull(c); cout << (a * nb) / 100 << endl; }
#include <bits/stdc++.h> using namespace std; using ull = unsigned long long; int main() { ull a, nb; long double b, c; cin >> a >> b; c = b * 100 + 0.001; nb = ull(c); cout << (a * nb) / 100 << endl; }
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
61
A, B = input().split() A = int(A) B = int(B)*100 + int(B[-2:]) print(A*B // 100)
A, B = input().split() A = int(A) B = int(B[:-3])*100 + int(B[-2:]) print(A*B // 100)
[["+", 31, 657, 31, 652, 3, 4, 0, 206, 0, 70], ["+", 31, 652, 3, 4, 0, 206, 206, 663, 0, 102], ["+", 3, 4, 0, 206, 206, 663, 0, 664, 17, 33], ["+", 3, 4, 0, 206, 206, 663, 0, 664, 28, 612], ["+", 31, 657, 31, 652, 3, 4, 0, 206, 0, 73]]
5
43
#include <bits/stdc++.h> #include <cmath> #include <iostream> using namespace std; int main() { #ifdef LOCAL_EXEC #else ios_base::sync_with_stdio(false); cin.tie(NULL); #endif // LOCAL_EXEC double a, b, product; long long int result; cin >> a >> b; product = a * b; result = floor(product); cout << resu...
#include <bits/stdc++.h> #include <cmath> #include <iostream> using namespace std; int main() { #ifdef LOCAL_EXEC #else ios_base::sync_with_stdio(false); cin.tie(NULL); #endif // LOCAL_EXEC long double a, b, product; long long int result; cin >> a >> b; product = a * b; result = floor(product); cout <<...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
73
#include <bits/stdc++.h> #define D(x) cout << #x << "=" << x << endl; using namespace std; // int _; long double a, b; int main() { // for(scanf("%d",&_);_;_--) cin >> a >> b; cout << (long long)a * b << endl; return 0; }
#include <bits/stdc++.h> #define D(x) cout << #x << "=" << x << endl; using namespace std; // int _; long double a, b; int main() { // for(scanf("%d",&_);_;_--) cin >> a >> b; cout << (long long)(a * b) << endl; return 0; }
[["+", 0, 16, 31, 16, 12, 74, 51, 23, 0, 24], ["+", 0, 16, 31, 16, 12, 74, 51, 23, 0, 25]]
1
47
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> VI; ll mm = 1000000000; ll MM = mm + 7; #define rep(i, n) for (int i = 0; i < n; i++) #define PI 3.141592653589793 int main() { ll a; string b; cin >> a >> b; int B; B = (b.at(0) - 48) * 100 + (b.at(2) - 48) * 10 + b.at(...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> VI; ll mm = 1000000000; ll MM = mm + 7; #define rep(i, n) for (int i = 0; i < n; i++) #define PI 3.141592653589793 int main() { ll a; string b; cin >> a >> b; int B; B = (b.at(0) - 48) * 100 + (b.at(2) - 48) * 10 + b.at(...
[["-", 12, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 12, 16, 31, 16, 12, 2, 3, 4, 0, 13]]
1
114
#include <iostream> #include <map> #include <math.h> #include <memory> #include <string> #include <vector> using namespace std; int main() { unsigned long long A; double B; cin >> A >> B; unsigned long long ans = (unsigned long long)(A * B); cout << ans << endl; return 0; }
#include <iostream> #include <map> #include <math.h> #include <memory> #include <string> #include <vector> using namespace std; int main() { unsigned long long A; long double B; cin >> A >> B; unsigned long long ans = (unsigned long long)(A * B); cout << ans << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
61
#include <bits/stdc++.h> #include <unistd.h> using namespace std; #define nl cout << "\n" #define pb push_back #define se second #define fi first #define pi = 3.14159265358979323846264338327950L; typedef long long int ll; int mod = 1e9 + 7; int main() { ios_base ::sync_with_stdio(0); cin.tie(0); cout.tie(0); /...
#include <bits/stdc++.h> #include <unistd.h> using namespace std; #define nl cout << "\n" #define pb push_back #define se second #define fi first #define pi = 3.14159265358979323846264338327950L; typedef long long int ll; int mod = 1e9 + 7; int main() { ios_base ::sync_with_stdio(0); cin.tie(0); cout.tie(0); /...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
95
#include <bits/stdc++.h> #include <unistd.h> using namespace std; #define nl cout << "\n" #define pb push_back #define se second #define fi first typedef long long int ll; const ll mod = 998244353; int main() { ios_base ::sync_with_stdio(0); cin.tie(0); cout.tie(0); // freopen("input.txt", "r", stdin); // fr...
#include <bits/stdc++.h> #include <unistd.h> using namespace std; #define nl cout << "\n" #define pb push_back #define se second #define fi first typedef long long int ll; const ll mod = 998244353; int main() { ios_base ::sync_with_stdio(0); cin.tie(0); cout.tie(0); // freopen("input.txt", "r", stdin); // fr...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
89
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; using P = pair<int, int>; int main() { ll A; float B; cin >> A >> B; A = A * B; cout << A << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; using P = pair<int, int>; int main() { ll A, B1; long double B; cin >> A >> B; // B1 = B*100; // A *= B1; // string str; // str = to_string(A); // if(A == 0 || B1 == 0 || A < 100){ // ...
[["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40]]
1
63
import math if __name__ == "__main__": a, b = input().split() a = int(a) b = float(b) ans = a * b ans = math.floor(ans) print(ans)
import math import decimal if __name__ == "__main__": a, b = input().split() a = int(a) b = decimal.Decimal(b) #ans = a * b #ans = math.floor(ans) #print(ans) ans = a * b ans = math.floor(ans) print(ans)
[["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 64, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22]]
5
49
a,b=input().split() a=int(a) b=float(b) b=int(100*b) ans=int(int(a*b)//100) print(ans)
a,b=input().split() a=int(a) b=float(b) b=round(100*b) ans=int(int(a*b)//100) print(ans)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
48
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll A; double B; cin >> A >> B; cout << (ll)(A * B) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; int main() { ll A; ld B; cin >> A >> B; cout << (ll)(A * B) << endl; return 0; }
[["+", 36, 36, 36, 36, 0, 30, 0, 134, 0, 157], ["+", 36, 36, 0, 30, 0, 134, 39, 86, 0, 96], ["+", 36, 36, 0, 30, 0, 134, 39, 86, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 134, 49, 78], ["+", 36, 36, 36, 36, 0, 30, 0, 134, 0, 35], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
45
#include <iostream> #define INF 1000000000000000000LL using namespace std; using ll = long long; int main() { ll a; double b; cin >> a >> b; cout << (ll)(a * b) << endl; return 0; }
#include <iostream> #define INF 1000000000000000000LL using namespace std; using ll = long long; int main() { ll a; long double b; cin >> a >> b; cout << (ll)(a * b) << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
49
#include <iostream> #define INF 1000000000000000000LL using namespace std; using ll = long long; int main() { ll a; double b; cin >> a >> b; ll tmp = b * 100; cout << (ll)(a * tmp / 100) << endl; return 0; }
#include <iostream> #define INF 1000000000000000000LL using namespace std; using ll = long long; int main() { ll a; double b; cin >> a >> b; ll tmp = b * 100 + 0.5; cout << (ll)(a * tmp / 100) << endl; 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 <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<ll, ll>; const ll MOD = 1e9 + 7; const ll INF = 1ll << 60; #define FOR(i, a, b) for (ll i = (a); i < (ll)(b); ++i) #define REP(i, n) FOR(i, 0, n) #define ALL(v) (v).begin(), (v).end() int main(int argc, char **argv) { double a, b; ...
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<ll, ll>; const ll MOD = 1e9 + 7; const ll INF = 1ll << 60; #define FOR(i, a, b) for (ll i = (a); i < (ll)(b); ++i) #define REP(i, n) FOR(i, 0, n) #define ALL(v) (v).begin(), (v).end() int main(int argc, char **argv) { long double a...
[["+", 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, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40]]
1
111
A,B = input().split() C = B.split(".") print(int(A)*float(B[0])+int(A)*float(B[0])//100)
A,B = input().split() C = B.split(".") print(int(A)*int(C[0])+int(A)*int(C[1])//100)
[["-", 3, 4, 0, 657, 31, 657, 12, 652, 63, 22], ["+", 3, 4, 0, 657, 31, 657, 12, 652, 63, 22], ["-", 31, 657, 12, 652, 3, 4, 0, 206, 51, 22], ["+", 31, 657, 12, 652, 3, 4, 0, 206, 51, 22], ["-", 0, 657, 12, 657, 31, 657, 12, 652, 63, 22], ["+", 0, 657, 12, 657, 31, 657, 12, 652, 63, 22], ["-", 31, 657, 12, 652, 3, 4, 0...
5
51
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vec; typedef vector<vec> mat; typedef pair<ll, ll> pll; const ll mod = 1e9 + 7; // const ll mod=998244353; const ll inf = 1LL << 61; int main() { long double a, b, c; cin >> a >> b >> c; cout << (ll)c << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vec; typedef vector<vec> mat; typedef pair<ll, ll> pll; const ll mod = 1e9 + 7; // const ll mod=998244353; const ll inf = 1LL << 61; int main() { long double a, b, c; cin >> a >> b; c = a * b; cout << (ll)c << endl; }
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]]
1
82
#include <algorithm> #include <fstream> #include <iostream> #include <math.h> #include <sstream> #include <string> #include <vector> using namespace std; int main() { // std::ifstream in("input.txt"); // std::cin.rdbuf(in.rdbuf()); double N; double M; cin >> N >> M; double ans = N * M; int aa; aa = s...
#include <algorithm> #include <fstream> #include <iostream> #include <math.h> #include <sstream> #include <string> #include <vector> using namespace std; int main() { // std::ifstream in("input.txt"); // std::cin.rdbuf(in.rdbuf()); long double N; long double M; cin >> N >> M; long double ans = N * M; l...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
63
#include <bits/stdc++.h> using namespace std; int main() { long double A, B, ans; cin >> A >> B; ans = floor(A * B); cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long double A, B, ans; cin >> A >> B; ans = floor(A * B); cout << (long long)ans << endl; }
[["+", 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
41
from math import floor AB = input().split() A = int(AB[0]) B = float(AB[1]) c = floor(A * B) print(c)
from math import floor from decimal import Decimal AB = input().split() A = Decimal(AB[0]) B = Decimal(AB[1]) c = floor(A * B) print(c)
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
43
a,b = input().split() A = int(a) B = round(float(b)*100.0+0.5) exp = A*B//100 print(exp)
a,b = input().split() A = int(a) B = round(float(b)*100.0+0.1) exp = A*B//100 print(exp)
[["-", 0, 662, 12, 652, 3, 4, 0, 657, 12, 531], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 531]]
5
41
from decimal import * a,b = map(float,input().split()) exp = Decimal(a*b) print(int(exp))
from decimal import * a,b = map(Decimal,input().split()) exp = Decimal(a*b) print(int(exp))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
35
#include <bits/stdc++.h> using namespace std; #define PI 3.141592653589793238462 typedef long long ll; typedef double db; int main() { ll a; db b; cin >> a >> b; cout << (ll)(a * b); }
#include <bits/stdc++.h> using namespace std; #define PI 3.141592653589793238462 typedef long long ll; typedef double db; int main() { ll a; long double b; cin >> a >> b; cout << (ll)(a * b); }
[["-", 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
47
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { ll A; double B; cin >> A >> B; ll ans = ll(A * B * 100); cout << ans / 100 << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { ll A; long double B; cin >> A >> B; ll ans = ll(A * B * 100); cout << ans / 100 << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
71
A,B=input().split() A=int(A) B=float(B) print(int(A*B))
import decimal A,B=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
32
#include <iostream> #include <math.h> using namespace std; typedef long long ll; int main() { double a, b; cin >> a >> b; ll c = floor(a * b); cout << c << endl; }
#include <iostream> #include <math.h> using namespace std; typedef long long ll; int main() { long double a, b; cin >> a >> b; ll c = floor(a * b); cout << c << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
46
import math import decimal a,b=map(float,input().split()) print(math.floor(decimal.Decimal(a*b)))
import math import decimal a,b=map(decimal.Decimal,input().split()) print(math.floor(decimal.Decimal(a*b)))
[["-", 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
36