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 = input().split() b = b.replace('.', '') int(a) int(b) print((a*b)//100)
a, b = input().split() b = b.replace('.', '') a = int(a) b = int(b) print((a*b)//100)
[["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32]]
5
42
/*!enjoy karo yaar!*/ // CF,CC,AtC,SPOJ: hp1999 // HE: hemant269 // HR: hemant2132 #include <bits/stdc++.h> using namespace std; #define int long long int #define fast() \ ios::sync_with_stdio(0); \ ...
/*!enjoy karo yaar!*/ // CF,CC,AtC,SPOJ: hp1999 // HE: hemant269 // HR: hemant2132 // ref: https://codeforces.com/blog/entry/78168?#comment-633466 #include <bits/stdc++.h> using namespace std; #define int long long int #define fast() \ ios::sync_with...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
265
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); double B = sc.nextDouble(); int b = (int)Math.floor(B * 100); System.out.println(A * (b / 100) + (A * (b % 100)) / 100); } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); double B = sc.nextDouble(); int b = (int)Math.floor(B * 100 + 0.5); System.out.println(A * (b / 100) + (A * (b % 100)) / 100); } }
[["+", 51, 74, 51, 492, 3, 4, 0, 16, 17, 72], ["+", 51, 74, 51, 492, 3, 4, 0, 16, 12, 515]]
3
95
#include <bits/stdc++.h> using namespace std; int main() { string sa, sb; cin >> sa >> sb; unsigned long sum, c, a = stol(sa); double b = stod(sb); c = (unsigned long)(b * 100); sum = c * a / 100; cout << to_string(sum) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string sa, sb; cin >> sa >> sb; unsigned long sum, c, a = stol(sa); double b = stod(sb); c = (unsigned long)(b * 100 + 0.5); sum = c * a / 100; cout << to_string(sum) << endl; return 0; }
[["+", 0, 11, 12, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 11, 12, 74, 51, 23, 0, 16, 12, 13]]
1
76
a,b = input().split() a = int(a) b = float(b) ab = a * (b*100)//100 print(int(ab))
a,b = input().split() a = int(a) b = float(b) ab = a * round(b*100)//100 print(int(ab))
[["+", 0, 662, 12, 657, 31, 657, 12, 652, 63, 22]]
5
41
#include <iostream> using namespace std; int main() { long long a; double b; cin >> a >> b; cout << (a * static_cast<long long>(b * 100)) / 100LL << endl; }
#include <iostream> using namespace std; int main() { long long a; double b; cin >> a >> b; cout << (a * static_cast<long long>(b * 100 + 0.1)) / 100LL << endl; }
[["+", 0, 16, 12, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 16, 12, 2, 3, 4, 0, 16, 12, 13]]
1
46
A,B = input().split() A = int(A) B = float(B)*100 print(int(A*B//100))
A,B = input().split() A = int(A) B = round(float(B)*100) print(int(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
36
#include <bits/stdc++.h> using namespace std; int main() { long long a; cin >> a; cin >> a; string b; cin >> b; string bd; for (int i = 0; i < b.size(); i++) { if (b.at(i) != '.') { bd += b.at(i); } } cout << stoi(bd) * a / 100 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long a; cin >> a; string b; cin >> b; string bd; // cout << a << endl; for (int i = 0; i < b.size(); i++) { if (b.at(i) != '.') { bd += b.at(i); } } // cout << bd << endl; cout << stoi(bd) * a / 100 << endl; }
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
91
A,B = map(str,input().split()) A = int(A) B = int(B.replace(".","")) ans = A*B/100 print(int(ans))
A,B = map(str,input().split()) A = int(A) B = int(B.replace(".","")) ans = A*B//100 print(ans)
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676], ["-", 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
52
#include <bits/stdc++.h> using namespace std; int main() { long long A; double B; cin >> A >> B; long long C = B * 100 + 0.9; cout << (A + C) / 100 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long A; double B; cin >> A >> B; long long C = B * 100 + 0.9; cout << (A * C) / 100 << endl; }
[["-", 31, 16, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 17, 48]]
1
47
#include <math.h> #include <stdio.h> int main(void) { unsigned long long A; double B; unsigned long long result; scanf("%lld %lf", &A, &B); unsigned long long BLL = (unsigned long long)floor(B * 100.0); result = A * BLL / 100ULL; printf("%lld\n", result); return 0; }
#include <math.h> #include <stdio.h> int main(void) { unsigned long long A; double B; unsigned long long result; scanf("%lld %lf", &A, &B); unsigned long long BLL = (unsigned long long)floor(B * 100.0 + 0.5); result = A * BLL / 100ULL; printf("%lld\n", result); return 0; }
[["+", 51, 74, 51, 2, 3, 4, 0, 16, 17, 72], ["+", 51, 74, 51, 2, 3, 4, 0, 16, 12, 13]]
0
75
a,b=input().split() a=int(a) c="" for i in range(len(b)): if not b[i]==".": c+=b[i] b=int(c) ans=float(a*b) ans=int(ans/100) print(ans)
a,b=input().split() a=int(a) c="" for i in range(len(b)): if not b[i]==".": c+=b[i] b=int(c) ans=int(a*b) ans=int(ans//100) print(ans)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 662, 12, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 676]]
5
75
require 'bigdecimal' require 'bigdecimal/util' a,b = gets.split x = a.to_d y = b.to_d puts (a * b).to_i
require 'bigdecimal' require 'bigdecimal/util' a,b = gets.split x = a.to_d y = b.to_d puts (y * x).to_i
[["-", 3, 4, 0, 652, 486, 739, 0, 738, 31, 22], ["+", 3, 4, 0, 652, 486, 739, 0, 738, 31, 22], ["-", 3, 4, 0, 652, 486, 739, 0, 738, 12, 22], ["+", 3, 4, 0, 652, 486, 739, 0, 738, 12, 22]]
4
33
A,B = input().split() A = int(a) B = int(B[0]+B[2:]) print(A*B//100)
A,B = input().split() A = int(A) B = int(B[0]+B[2:]) print(A*B//100)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
40
#include <bits/stdc++.h> using namespace std; typedef long long ll; template <typename T> ostream &operator<<(ostream &os, vector<T> &v) { string sep = " "; if (v.size()) os << v[0]; for (int i = 1; i < v.size(); i++) os << sep << v[i]; return os; } #ifdef DBG void debug_() { cout << endl; } template ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; template <typename T> ostream &operator<<(ostream &os, vector<T> &v) { string sep = " "; if (v.size()) os << v[0]; for (int i = 1; i < v.size(); i++) os << sep << v[i]; return os; } #ifdef DBG void debug_() { cout << endl; } template ...
[["+", 0, 43, 49, 50, 51, 16, 12, 74, 0, 24], ["+", 49, 50, 51, 16, 12, 74, 39, 77, 39, 40], ["+", 0, 43, 49, 50, 51, 16, 12, 74, 0, 25], ["+", 49, 50, 51, 16, 12, 74, 51, 2, 63, 22], ["+", 51, 16, 12, 74, 51, 2, 3, 4, 0, 24], ["+", 51, 16, 12, 74, 51, 2, 3, 4, 0, 25]]
1
210
#include <bits/stdc++.h> using namespace std; int main() { long a; float b; cin >> a >> b; cout << setprecision(20) << (a * (long)(b * 100)) / 100; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long a; float b; cin >> a >> b; cout << setprecision(20) << a * (long)(b * 100 + 0.9) / 100; return 0; }
[["-", 0, 1, 0, 16, 12, 16, 31, 23, 0, 24], ["-", 31, 23, 0, 16, 12, 74, 51, 23, 0, 25], ["+", 31, 16, 12, 74, 51, 23, 0, 16, 17, 72], ["+", 31, 16, 12, 74, 51, 23, 0, 16, 12, 13]]
1
49
#include <bits/stdc++.h> using namespace std; long long a, c; double b; int main() { cin >> a >> b; c = 100 * b; cout << (a * c / 100) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; long long a, c; double b; int main() { cin >> a >> b; c = 100 * b + 0.1; cout << (a * c / 100) << endl; return 0; }
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
48
#include <bits/stdc++.h> using namespace std; int main() { double b; long long a; cin >> a >> b; // long long B = floor(b); double tmp = a * b; long long ans = floor(tmp); cout << ans; }
#include <bits/stdc++.h> using namespace std; int main() { long double b; long long a; cin >> a >> b; // long long B = floor(b); long double tmp = a * b; long long ans = floor(tmp); cout << ans; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
46
A,B=input().split() A=int(A) B=B.replace(".","") print(A*B//100)
A,B=input().split() A=int(A) B=B.replace(".","") print(A*int(B)//100)
[["+", 3, 4, 0, 657, 31, 657, 12, 652, 63, 22], ["+", 0, 657, 31, 657, 12, 652, 3, 4, 0, 24], ["+", 0, 657, 31, 657, 12, 652, 3, 4, 0, 25]]
5
38
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll a; string b; cin >> a >> b; b.erase(1); cout << a * stoi(b) / 100 << endl; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll a; string b; cin >> a >> b; b.erase(1, 1); cout << a * stoi(b) / 100 << endl; return 0; }
[["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]]
1
52
# 初期入力 from decimal import Decimal import sys input = sys.stdin.readline A,B = (str(x) for x in input().split()) a =Decimal(A) b =Decimal(B) ans =int(A *B) print(ans)
# 初期入力 from decimal import Decimal import sys input = sys.stdin.readline A,B = (str(x) for x in input().split()) a =Decimal(A) b =Decimal(B) ans =int(a *b) print(ans)
[["-", 0, 662, 12, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 31, 22], ["-", 0, 662, 12, 652, 3, 4, 0, 657, 12, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 22]]
5
58
#include <iostream> using namespace std; int main() { long long i; double d; cin >> i >> d; long long i2 = d * 100; i *= i2; i /= 100; cout << i; return 0; }
#include <iostream> using namespace std; int main() { long long i; double d; cin >> i >> d; long long i2 = (d + 0.001) * 100; i *= i2; i /= 100; cout << i; return 0; }
[["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 17, 72], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25]]
1
48
from decimal import Decimal A, B = map(float, input().split()) ans = int(A*Decimal(str(B))) print(ans)
from decimal import Decimal A, B = map(float, input().split()) ans = int(int(A)*Decimal(str(B))) print(ans)
[["+", 12, 652, 3, 4, 0, 657, 31, 652, 63, 22], ["+", 3, 4, 0, 657, 31, 652, 3, 4, 0, 24], ["+", 3, 4, 0, 657, 31, 652, 3, 4, 0, 25]]
5
38
from decimal import Decimal A, B = map(float, input().split()) ans = int(Decimal(A)*Decimal(B)) print(ans)
from decimal import Decimal A, B = map(float, input().split()) ans = int(Decimal(str(A))*Decimal(str(B))) print(ans)
[["+", 0, 657, 31, 652, 3, 4, 0, 652, 63, 22], ["+", 31, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 31, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 24], ["+", 0, 657, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
38
#include <bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; using vll = vector<ll>; using vi = vector<int>; using vb = vector<bool>; using vs = vector<string>; using pll = pair<ll, ll>; using pii = pair<int, int>; using vpii = vector<pii>; using vpll = vector<pll>; const ll LIN...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; using vll = vector<ll>; using vi = vector<int>; using vb = vector<bool>; using vs = vector<string>; using pll = pair<ll, ll>; using pii = pair<int, int>; using vpii = vector<pii>; using vpll = vector<pll>; const ll LIN...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 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
1,456
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<ll, ll>; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define mod 1000000007 #define pi 3.141592653589793 typedef vector<ll> vcl; ll gcd(ll a, ll b) { if (b > a) swap(a, b); if (b == 0) return a; return gcd(b, a % b)...
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<ll, ll>; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define mod 1000000007 #define pi 3.141592653589793 typedef vector<ll> vcl; ll gcd(ll a, ll b) { if (b > a) swap(a, b); if (b == 0) return a; return gcd(b, a % b)...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
235
#include <bits/stdc++.h> using namespace std; int main() { int64_t A; double B; cin >> A >> B; int64_t C = B * 100; int64_t ans = A * C; ans /= 100; cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int64_t A; long double B; cin >> A >> B; int64_t C = B * 100 + 0.5; int64_t ans = A * C; ans /= 100; cout << ans << 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
51
#include <bits/stdc++.h> using namespace std; int main() { int64_t A; double B; cin >> A >> B; int64_t C = B * 100; int64_t ans = A * C; ans /= 100; cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int64_t A; double B; cin >> A >> B; int64_t C = B * 100 + 0.5; int64_t ans = A * C; ans /= 100; cout << ans << endl; return 0; }
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
51
a, b = input().split() a, b_100 = int(a), int(b.replace('.', '')) print(a * b // 100)
a, b = input().split() a, b_100 = int(a), int(b.replace('.', '')) print(a * b_100 // 100)
[["-", 0, 652, 3, 4, 0, 657, 31, 657, 12, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 22]]
5
42
a, b = input().split() print(int(a) * int(float(b) * 100) // 100)
a, b = input().split() print(int(a) * round(float(b) * 100) // 100)
[["-", 3, 4, 0, 657, 31, 657, 12, 652, 63, 22], ["+", 3, 4, 0, 657, 31, 657, 12, 652, 63, 22]]
5
30
import sys input = sys.stdin.readline if __name__ == "__main__": a,b = input().split() ai = int(a) bf = int(float(b)*100) print(ai*bf//100)
import sys input = sys.stdin.readline if __name__ == "__main__": a,b = input().split() ai = int(a) bf = round(float(b)*100) print(ai*bf//100)
[["-", 64, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 662, 12, 652, 63, 22]]
5
52
a, b = map(str, input().split()) b = b[:-3] + b[-2:] print(int(int(a)*int(b) / 100))
a, b = map(str, input().split()) b = b[:-3] + b[-2:] print(int(a)*int(b) // 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
48
import sys import math from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN from collections import deque from bisect import bisect_left from itertools import product def I(): return int(sys.stdin.readline()) def MI(): return map(int, sys.stdin.readline().split()) def LI(): return list(map(int, sys.stdin.readlin...
import sys import math from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN from collections import deque from bisect import bisect_left from itertools import product def I(): return int(sys.stdin.readline()) def MI(): return map(int, sys.stdin.readline().split()) def LI(): return list(map(int, sys.stdin.readlin...
[["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 531]]
5
462
import math from decimal import * sa, sb = input().split() a = Decimal(sa) b = float(sb) lb = Decimal(b * 100) ans = Decimal(Decimal(a * lb) // Decimal(100)) print(int(ans))
import math from decimal import * sa, sb = input().split() a = Decimal(sa) b = Decimal(sb) lb = Decimal(b * Decimal(100)) ans = Decimal(Decimal(a * lb) // Decimal(100)) print(int(ans))
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 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
60
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(v) v.begin(), v.end() #define ll int64_t #define _GLIBCXX_DEBUG const int dx[4] = {1, 0, -1, 0}; const int dy[4] = {0, 1, 0, -1}; int main() { ll a; double b; cin >> a >> b; b *= 100; ll c = ll(b); ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(v) v.begin(), v.end() #define ll int64_t #define _GLIBCXX_DEBUG const int dx[4] = {1, 0, -1, 0}; const int dy[4] = {0, 1, 0, -1}; int main() { ll a; double b; cin >> a >> b; b *= 100; ll c = llround(...
[["-", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22]]
1
101
a,b=gets puts (a.to_r*b.to_r).to_i
a,b=gets.split puts (a.to_r*b.to_r).to_i
[["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
17
#!/usr/bin/env ruby a, b = gets.chomp.split(' ') a = a.to_i b = (b.to_f * 100 + 0.1).to_i puts ((a * b)/100.0).floor
#!/usr/bin/env ruby a, b = gets.chomp.split(' ') a = a.to_i b = (b.to_f * 100 + 0.1).to_i puts ((a * b)/100).floor
[["-", 3, 4, 0, 652, 486, 739, 0, 738, 12, 531], ["+", 3, 4, 0, 652, 486, 739, 0, 738, 12, 612]]
4
45
#include <iostream> using namespace std; int main(void) { long long A; double B; cin >> A >> B; // ここからアルゴリズム B *= 100; A *= (long long)B; A /= 100; cout << A << endl; }
#include <iostream> using namespace std; int main(void) { long long A; double B; cin >> A >> B; // ここからアルゴリズム B *= 100; A *= (long long)(B + 0.5); A /= 100; cout << A << endl; }
[["+", 0, 1, 0, 11, 12, 74, 51, 23, 0, 24], ["+", 0, 11, 12, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 11, 12, 74, 51, 23, 0, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 74, 51, 23, 0, 25]]
1
49
#include <bits/stdc++.h> using namespace std; int main() { long long int a, c, kotae, hyaku; double b; cin >> a >> b; hyaku = 100; c = b * 100; kotae = (a * c) / hyaku; cout << kotae; }
#include <bits/stdc++.h> using namespace std; int main() { long long int a, c, kotae, hyaku; double b; cin >> a >> b; hyaku = 100; c = round(b * 100.0); kotae = (a * c) / hyaku; cout << kotae; }
[["+", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22], ["+", 0, 1, 0, 11, 12, 2, 3, 4, 0, 24], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 0, 11, 12, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 2, 3, 4, 0, 25]]
1
56
a,b=map(str, input().split()) A = int(a) B = 100*int(b[0])+10*int(b[2])+ 1*int(b[3]) ans = A*B / 100 print(int(ans))
a,b=map(str, input().split()) A = int(a) B = 100*int(b[0])+10*int(b[2])+ 1*int(b[3]) ans = A*B // 100 print(ans)
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676], ["-", 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
67
#include <bits/stdc++.h> using namespace std; int main() { long long a; double b; int bb; cin >> a >> b; bb = b * 100 + 0.5; cout << bb * a << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long n, a; double b; int bb; cin >> a >> b; bb = b * 100 + 0.5; cout << bb * a / 100 << endl; }
[["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 85], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
44
#include <algorithm> #include <cmath> #include <cstring> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <tuple> #include <vector> using namespace std; typedef long long ll; typedef ...
#include <algorithm> #include <cmath> #include <cstring> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <tuple> #include <vector> using namespace std; typedef long long ll; typedef ...
[["+", 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
140
#include <bits/stdc++.h> using namespace std; typedef unsigned long long ll; const int MAXN = 1e3 + 5; const int MAXD = 1e6 + 5; const int MOD = 1e9 + 7; int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); unsigned long long a; cin >> a; long double b; cin >> b; long double fc = (b - (int...
#include <bits/stdc++.h> using namespace std; typedef unsigned long long ll; const int MAXN = 1e3 + 5; const int MAXD = 1e6 + 5; const int MOD = 1e9 + 7; int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); unsigned long long a; cin >> a; long double b; cin >> b; long double fc = (b - (int...
[["+", 51, 23, 0, 16, 12, 16, 31, 74, 0, 24], ["+", 0, 16, 12, 16, 31, 74, 39, 77, 39, 40], ["+", 51, 23, 0, 16, 12, 16, 31, 74, 0, 25], ["+", 49, 50, 51, 23, 0, 16, 12, 16, 17, 48], ["+", 49, 50, 51, 23, 0, 16, 12, 16, 12, 22]]
1
110
s = list(input().split()) a = int(s[0]); b = int(s[1][:1]+s[1][2:]) b *= 100 print(a*b//100)
s = list(input().split()) a = int(s[0]); b = int(s[1][:1]+s[1][2:]) print(a*b//100)
[["-", 36, 36, 0, 656, 0, 1, 0, 677, 31, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 677, 17, 108], ["-", 36, 36, 0, 656, 0, 1, 0, 677, 12, 612]]
5
55
from math import floor from decimal import Decimal A,B=input().split() A=int(A) B=Decimal(float(B)) print(floor(A*B))
from math import floor from decimal import Decimal A,B=input().split() A=int(A) B=Decimal(B) print(int(A*B))
[["-", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["-", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22]]
5
43
import math from decimal import Decimal a,b =map(float,input().split()) print(math.floor(Decimal(a)*Decimal(b)))
import math from decimal import Decimal a,b =map(str,input().split()) print(math.floor(Decimal(a)*Decimal(b)))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
39
/* Author : Aditya Gupta Team : TechTurtle Date : 02-06-2020 Time : 20:05:54 */ #include <bits/stdc++.h> #define ll long long int #define ld long double #define vll vector<ll> #define vvll vector<vll> #define vld vector<ld> #define vvld vector<vld> #define pll pair<ll, ll> #define vpll vector<pll> #define mp make_pair...
/* Author : Aditya Gupta Team : TechTurtle Date : 02-06-2020 Time : 20:05:54 */ #include <bits/stdc++.h> #define ll long long int #define ld long double #define vll vector<ll> #define vvll vector<vll> #define vld vector<ld> #define vvld vector<vld> #define pll pair<ll, ll> #define vpll vector<pll> #define mp make_pair...
[["+", 0, 1, 0, 11, 12, 74, 51, 2, 63, 22]]
1
1,197
/* Great things never come from comfort zones, "whatever the mind of a man can conceive and believe,it can achieve." */ #include <bits/stdc++.h> #define ll long long #define scf(n) scanf("%d", &n) #define lscf(n) scanf("%lld", &n) #define lpri(n) printf("%lld ", n) #define pri(n) printf("%d ", (int)n) #define prin(n)...
/* Great things never come from comfort zones, "whatever the mind of a man can conceive and believe,it can achieve." */ #include <bits/stdc++.h> #define ll long long #define scf(n) scanf("%d", &n) #define lscf(n) scanf("%lld", &n) #define lpri(n) printf("%lld ", n) #define pri(n) printf("%d ", (int)n) #define prin(n)...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
150
#include <bits/stdc++.h> using namespace std; int main() { double a, b; cin >> a >> b; cout << (long long)(a * b + 1e-3) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long double a, b; cin >> a >> b; cout << (long long)(a * b + 1e-3) << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
39
#include <bits/stdc++.h> #include <cstring> #include <limits> using namespace std; #define ll long long int #define X first #define Y second #define fw(i, start, end) for (ll i = start; i < end; ++i) #define fe(i, start, end) for (ll i = start; i <= end; ++i) #define L(T) ...
#include <bits/stdc++.h> #include <cstring> #include <limits> using namespace std; #define ll long long int #define X first #define Y second #define fw(i, start, end) for (ll i = start; i < end; ++i) #define fe(i, start, end) for (ll i = start; i <= end; ++i) #define L(T) ...
[["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13]]
1
99
import math A, B = map(float, input().split()) B *= 100 print(math.floor(A * B / 100))
import math from decimal import Decimal A, B = map(Decimal, input().split()) B *= 100 print(math.floor(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, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
34
def main(): a,b=input().split() print(int(int(a) * float(b))) main()
from decimal import Decimal def main(): a,b=input().split() print(int(int(a) * Decimal(b))) 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], ["-", 0, 652, 3, 4, 0, 657, 12, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 657, 12, 652, 63, 22]]
5
34
#include <bits/stdc++.h> // #include <ext/pb_ds/assoc_container.hpp> // #include <ext/pb_ds/tree_policy.hpp> // using namespace __gnu_pbds; using namespace std; // typedef tree<pair<int,int>, null_type, less<pair<int,int>>, rb_tree_tag, // tree_order_statistics_node_update> ordered_set; #define ll long long #define scn...
#include <bits/stdc++.h> // #include <ext/pb_ds/assoc_container.hpp> // #include <ext/pb_ds/tree_policy.hpp> // using namespace __gnu_pbds; using namespace std; // typedef tree<pair<int,int>, null_type, less<pair<int,int>>, rb_tree_tag, // tree_order_statistics_node_update> ordered_set; #define ll long long #define scn...
[["-", 0, 43, 49, 50, 51, 2, 63, 23, 0, 24], ["-", 0, 43, 49, 50, 51, 2, 63, 23, 0, 22], ["-", 0, 43, 49, 50, 51, 2, 63, 23, 0, 25], ["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22]]
1
147
# import math A, B = [x for x in input().split(" ")] A = int(A) B = int(float(B) * 100) # if A > 10**15 or A < 0: # exit(1) # if B < 0 or B > 10: # exit(1) print(A * B // 100)
# import math from decimal import Decimal A, B = [x for x in input().split(" ")] A = int(A) B = int(Decimal(B) * 100) # if A > 10**15 or A < 0: # exit(1) # if B < 0 or B > 10: # exit(1) print(A * B // 100)
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["-", 12, 652, 3, 4, 0, 657, 31, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 657, 31, 652, 63, 22]]
5
50
A,B = input().split() a = int(A) b = int(B[0]+B[2]+B[3]) print(int((a*b)/100))
A,B = input().split() a = int(A) b = int(B[0]+B[2]+B[3]) print((a*b)//100)
[["-", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 676], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
49
A, B= input().split() A = int(A) B = B.replace('.','') B = int(B) print(int(A*B/100))
A, B= input().split() A = int(A) B = B.replace('.','') 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
47
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); double B = sc.nextDouble(); long b = (long)(B * (double)100 + 0.5); System.out.println(A * b / (long)100); } }
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); double B = sc.nextDouble(); long b = (long)(B * (double)100 + 0.5); System.out.println(A * b / (long)100); } }
[["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22]]
3
85
a,b=map(float,input().split()) B=round(100*b) print(int(a*B)//100)
a,b=map(float,input().split()) B=round(100*b) print(int(a)*B//100)
[["+", 0, 657, 31, 657, 31, 652, 3, 4, 0, 25], ["-", 3, 4, 0, 657, 31, 652, 3, 4, 0, 25]]
5
35
import numpy as np A, B=map(float,input().split()) A_int=int(A) B_100int=int(B*int(100)) C=int(A_int*B_100int//int(100)) print(C)
from decimal import Decimal A, B=map(Decimal,input().split()) A_int=int(A) B_100int=int(B*int(100)) C=int(A_int*B_100int//int(100)) print(C)
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["-", 0, 656, 0, 596, 141, 704, 141, 673, 0, 22], ["-", 36, 36, 0, 656, 0, 596, 141, 704, 0, 272], ["-", 36, 36, 0, 656, 0, 596, 141, 704, 705, 22], ["+", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["-", 0, 1, 0, 662, 12, 652...
5
54
#include <bits/stdc++.h> using namespace std; int main() { long long a; double b; cin >> a >> b; long long ans; long long tmp = b * 100; ans = (a * tmp) / 100; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long a; double b; cin >> a >> b; long long ans; long long tmp = b * 100 + 1e-6; ans = (a * tmp) / 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
53
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define ordered_set \ tree<ll, null_type, less<ll>, rb_tree_tag, tree_order_statistics_node_update> #define...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define ordered_set \ tree<ll, null_type, less<ll>, rb_tree_tag, tree_order_statistics_node_update> #define...
[["+", 0, 42, 0, 124, 49, 65, 0, 42, 0, 22], ["+", 0, 42, 0, 124, 49, 65, 0, 42, 0, 24], ["+", 0, 30, 0, 42, 0, 124, 49, 65, 0, 25], ["+", 0, 30, 0, 42, 0, 124, 39, 78, 0, 120], ["-", 0, 53, 54, 55, 0, 56, 49, 84, 49, 22], ["+", 0, 124, 365, 16, 31, 23, 0, 16, 12, 22], ["-", 36, 36, 36, 36, 0, 30, 0, 42, 0, 151], ["+",...
1
382
import java.util.Scanner; public class Main { static long toLong(double N) { long num = (long)(N * 100); return num; } public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); double B = sc.nextDouble(); sc.close(); long result = Math.floo...
import java.util.Scanner; public class Main { static long toLong(double N) { long num = (long)(N * 100 + 0.001); return num; } public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); double B = sc.nextDouble(); sc.close(); long result = M...
[["+", 49, 200, 51, 74, 51, 23, 0, 16, 17, 72], ["+", 49, 200, 51, 74, 51, 23, 0, 16, 12, 515]]
3
109
NUM=list(input().split()) A=int(NUM[0]) B=float(NUM[1]) BB=int(B*100) ABB=A*BB ANS=ABB//100 print(int(ANS))
NUM=list(input().split()) A=int(NUM[0]) B=float(NUM[1]) BB=int(round(B*100)) ABB=A*BB ANS=ABB//100 print(int(ANS))
[["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
55
a,b = input().split() c = int(a) d = round(float(b)*100) print(c*d)
a,b = input().split() c = int(a) d = round(float(b)*100) print(c*d//100)
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 676], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
34
#include <iostream> using namespace std; #include <vector> int main() { unsigned long long int a, c; double b; cin >> a >> b; b = b * 100; c = static_cast<unsigned long long int>(b); a = a * c / 100; cout << a << endl; }
#include <iostream> using namespace std; #include <vector> int main() { unsigned long long int a, c; double b; cin >> a >> b; b = b * 100; c = static_cast<unsigned long long int>(b + 0.1); a = a * c / 100; cout << a << endl; }
[["+", 0, 11, 12, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 11, 12, 2, 3, 4, 0, 16, 12, 13]]
1
64
#from collections import deque,defaultdict from sys import stdin input = stdin.readline printn = lambda x: print(x,end='') inn = lambda : int(input()) inl = lambda: list(map(int, input().split())) inm = lambda: map(int, input().split()) ins = lambda : input().strip() DBG = True # and False BIG = 10**18 R = 10*...
#from collections import deque,defaultdict from sys import stdin input = stdin.readline printn = lambda x: print(x,end='') inn = lambda : int(input()) inl = lambda: list(map(int, input().split())) inm = lambda: map(int, input().split()) ins = lambda : input().strip() DBG = True # and False BIG = 10**18 R = 10*...
[["+", 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
148
#include <algorithm> #include <iostream> #include <math.h> using namespace std; int main() { long long ans, a; double b; cin >> a >> b; b = b * 100; ans = (a * (long long)b) / 100; cout << ans; }
#include <algorithm> #include <iostream> #include <math.h> using namespace std; int main() { long long ans, a; double b; cin >> a >> b; b = b * 100; ans = (a * (long long)round(b)) / 100; cout << ans; }
[["+", 31, 23, 0, 16, 12, 74, 51, 2, 63, 22], ["+", 0, 16, 12, 74, 51, 2, 3, 4, 0, 24], ["+", 0, 16, 12, 74, 51, 2, 3, 4, 0, 25]]
1
55
#include <algorithm> #include <cmath> #include <iostream> #include <limits> #include <numeric> #include <string> #include <vector> using namespace std; int main() { long long int a, b; cin >> a >> b; long long int t = a * b; cout << t << endl; }
#include <algorithm> #include <cmath> #include <iostream> #include <limits> #include <numeric> #include <string> #include <vector> using namespace std; int main() { long double a, b; cin >> a >> b; long long int t = a * b; cout << t << endl; }
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40]]
1
52
from math import floor a,b=input().split() a=int(a) b=float(b) print(floor(a*b))
from math import floor from fractions import Fraction a,b=input().split() a=int(a) b=Fraction(b) print(floor(a*b))
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
36
#include <bits/stdc++.h> using namespace std; int main() { long long a; double b; cin >> a >> b; long long c = (long long)(b * 100); cout << a * c / 100; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long a; double b; cin >> a >> b; long long c = (long long)(b * 100 + 0.5); cout << a * c / 100; return 0; }
[["+", 49, 50, 51, 74, 51, 23, 0, 16, 17, 72], ["+", 49, 50, 51, 74, 51, 23, 0, 16, 12, 13]]
1
50
// Jacker0031 // packages #if __has_include("extra.cpp") && __has_include(<stdint.h>) #include "extra.cpp" #else #include <algorithm> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <fstream> #include <functional> #include <iomanip>...
// Jacker0031 // packages #if __has_include("extra.cpp") && __has_include(<stdint.h>) #include "extra.cpp" #else #include <algorithm> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <fstream> #include <functional> #include <iomanip>...
[["-", 3, 4, 0, 16, 12, 2, 3, 4, 0, 13], ["+", 3, 4, 0, 16, 12, 2, 3, 4, 0, 13]]
1
643
a, b = gets.to_s.split.map{|t| t.to_f } puts((a.to_i * (b*1000) / 1000).floor)
a, b = gets.to_s.split.map{|t| t.to_f } puts((a.to_i * (b*1000).round / 1000).floor)
[["+", 486, 739, 0, 738, 31, 738, 12, 652, 17, 131], ["+", 486, 739, 0, 738, 31, 738, 12, 652, 735, 22]]
4
37
a, b = gets.to_s.split.map{|t| t.to_f } puts (a * (b*100).round / 100).floor
a, b = gets.to_s.split.map{|t| t.to_f } puts (a.to_i * (b*100).round / 100)
[["+", 0, 739, 0, 738, 31, 738, 31, 652, 17, 131], ["+", 0, 739, 0, 738, 31, 738, 31, 652, 735, 22], ["-", 0, 493, 0, 652, 3, 4, 0, 652, 17, 131], ["-", 0, 493, 0, 652, 3, 4, 0, 652, 735, 22]]
4
35
require 'BigDecimal' a,b = gets.chomp.split(" ") a = BigDecimal(a) b = BigDecimal(b) puts (a * b).floor
require 'bigdecimal' a,b = gets.chomp.split(" ") a = BigDecimal(a) b = BigDecimal(b) puts (a * b).floor
[["-", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6]]
4
38
#include <bits/stdc++.h> #include <unordered_map> using namespace std; using Graph = vector<vector<int>>; #define ll long long #define all(x) (x).begin(), (x).end() #define rep(i, n) for (ll i = 0; i < n; i++) const ll INF = 1LL << 60; int main() { double A, B; string str1, str2; cin >> A >> B; ll ans = floor(...
#include <bits/stdc++.h> #include <unordered_map> using namespace std; using Graph = vector<vector<int>>; #define ll long long #define all(x) (x).begin(), (x).end() #define rep(i, n) for (ll i = 0; i < n; i++) const ll INF = 1LL << 60; int main() { long double A, B; string str1, str2; cin >> A >> B; ll ans = f...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
82
#include <bits/stdc++.h> using namespace std; int main(void) { long long int a; double b; cin >> a >> b; cout << (long long int)floor(a * b) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { long long int a; long double b; cin >> a >> b; cout << (long long int)floor(a * b) << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
46
#include <bits/stdc++.h> using namespace std; int main() { unsigned long long a; double b; cin >> a >> b; int f = b * 100; unsigned long long ans = a * f; int h = ans % 100; ans = ans - h; cout << ans / 100 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { unsigned long long a; double b; cin >> a >> b; int f = b * 100 + 0.5; unsigned long long ans = a * f; int h = ans % 100; ans = ans - h; cout << ans / 100 << endl; }
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
63
#include <iostream> using namespace std; int main() { long long A; double B; cin >> A >> B; long long Bint = (B + 0.1) * 100; long long ans = A * Bint / 100; cout << ans << endl; return 0; }
#include <iostream> using namespace std; int main() { long long A; double B; cin >> A >> B; long long Bint = B * 100 + 0.1; long long ans = A * Bint / 100; cout << ans << endl; return 0; }
[["-", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["-", 49, 50, 51, 16, 31, 23, 0, 16, 17, 72], ["-", 49, 50, 51, 16, 31, 23, 0, 16, 12, 13], ["-", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
56
import math A,B = input().split() A = int(A) B = B.replace(".","") B = int(B) print(math.floor(A*B/100))
import math A,B = input().split() A = int(A) B = B.replace(".","") B = int(B) print(math.floor(A*B//100))
[["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 85], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 676]]
5
51
#include <bits/stdc++.h> using namespace std; int main() { long long a, ans; double b; cin >> a >> b; b = (b * 100.0) + 0.01; ans = (a * b) / 100; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, ans; double b; cin >> a >> b; ans = (b * 100.0) + 0.01; ans = (a * ans) / 100; cout << ans << endl; }
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 11, 12, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 22]]
1
53
#include <iostream> #include <math.h> using namespace std; #define ll long long ll a; double b; int main() { cin >> a >> b; ll ans = a * round(b * 100); cout << ans / 100; return 0; }
#include <iostream> #include <math.h> using namespace std; #define ll long long ll a; long double b; int main() { cin >> a >> b; ll ans = a * round(b * 100); cout << ans / 100; return 0; }
[["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96]]
1
50
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) #define chmax(x, y) x = max(x, y) #define chmin(x, y) x = min(x, y) using namespace std; using ll = long long; int main() { ll A; double B; cin >> A >> B; ll B2 = B * 100; cout << (A * B2) / 100ll << endl; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) #define chmax(x, y) x = max(x, y) #define chmin(x, y) x = min(x, y) using namespace std; using ll = long long; int main() { ll A; double B; cin >> A >> B; ll B2 = round(B * 100); cout << (A * B2) / 100ll << 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
73
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(v) v.begin(), v.end() #define rall(v) v.rbegin(), v.rend() typedef long long ll; #define _GLIBCXX_DEBUG typedef vector<int> vec; typedef vector<ll> lvec; typedef vector<char> cvec; typedef vector<double> dvec;...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(v) v.begin(), v.end() #define rall(v) v.rbegin(), v.rend() typedef long long ll; #define _GLIBCXX_DEBUG typedef vector<int> vec; typedef vector<ll> lvec; typedef vector<char> cvec; typedef vector<double> dvec;...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
142
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(v) v.begin(), v.end() #define rall(v) v.rbegin(), v.rend() typedef long long ll; #define _GLIBCXX_DEBUG typedef vector<int> vec; typedef vector<ll> lvec; typedef vector<char> cvec; typedef vector<double> dvec;...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(v) v.begin(), v.end() #define rall(v) v.rbegin(), v.rend() typedef long long ll; #define _GLIBCXX_DEBUG typedef vector<int> vec; typedef vector<ll> lvec; typedef vector<char> cvec; typedef vector<double> dvec;...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
144
A, B = input().split() A = int(A) B = float(B) print(int(A*int(B*100)//100))
A, B = input().split() A = int(A) B = float(B) print(int(A*int(round(B*100))//100))
[["+", 31, 657, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
39
#include <iostream> using namespace std; typedef long long ll; int main() { ll a; double b; cin >> a >> b; cout << (ll)((a * (ll)(b * 100)) / 100); }
#include <cmath> #include <iostream> using namespace std; typedef long long ll; int main() { ll a; double b; cin >> a >> b; cout << (ll)((a * (ll)round(b * 100)) / 100); }
[["+", 36, 36, 36, 36, 0, 30, 0, 135, 136, 137], ["+", 36, 36, 36, 36, 0, 30, 0, 135, 0, 138], ["+", 31, 23, 0, 16, 12, 74, 51, 2, 63, 22]]
1
51
A, B = gets.split(" ").map(&:to_f) puts (A * B).floor
A, B = gets.split(" ").map(&:to_r) puts (A * B).floor
[["-", 0, 662, 12, 652, 3, 4, 0, 752, 0, 753], ["+", 0, 662, 12, 652, 3, 4, 0, 752, 0, 753]]
4
26
a,b=input().split() print((int(a)*(100*int(b[0])+10*int(b[2]))+int(b[3]))//100)
a,b=input().split() print((int(a)*(100*int(b[0])+10*int(b[2])+int(b[3])))//100)
[["-", 31, 23, 0, 657, 31, 657, 12, 23, 0, 25], ["+", 12, 23, 0, 657, 12, 652, 3, 4, 0, 25]]
5
52
#include <cmath> #include <cstdint> #include <iostream> using namespace std; int main() { long long a; long double b; cin >> a >> b; cout << a * round(100 * b) / 100 << endl; return 0; }
#include <cmath> #include <cstdint> #include <iostream> using namespace std; int main() { long long a; double b; cin >> a >> b; cout << a * llround(100 * b) / 100 << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 31, 16, 12, 16, 31, 16, 12, 2, 63, 22], ["+", 31, 16, 12, 16, 31, 16, 12, 2, 63, 22]]
1
48
import math from decimal import * getcontext().prec = 50 A, B = map(float, input().split()) ans = Decimal(A) * Decimal(B) ans = int(ans) print(ans)
import math from decimal import * getcontext().prec = 50 A, B = map(Decimal, input().split()) ans = Decimal(A) * Decimal(B) ans = int(ans) print(ans)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
50
#include <cstdint> #include <iostream> #include <string> int main(int argc, char **argv) { double a; char b[4]; std::cin >> a >> b[0] >> b[1] >> b[2] >> b[3]; double ruleb = 0; ruleb = b[0] - '0'; ruleb *= 10; ruleb += b[2] - '0'; ruleb *= 10; ruleb += b[3] - '0'; long long ans = 0; ans = a * ru...
#include <cstdint> #include <iostream> #include <string> int main(int argc, char **argv) { long long a; char b[4]; std::cin >> a >> b[0] >> b[1] >> b[2] >> b[3]; long long ruleb = 0; ruleb = b[0] - '0'; ruleb *= 10; ruleb += b[2] - '0'; ruleb *= 10; ruleb += b[3] - '0'; long long ans = 0; ans = ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
127
#include <iostream> #include <math.h> using namespace std; int main() { long long A; double B; cin >> A >> B; double b = round(B * 100); cout << static_cast<long long>(A * b / 100.0); return 0; }
#include <iostream> #include <math.h> using namespace std; int main() { long long A; double B; cin >> A >> B; long b = round(B * 100); cout << static_cast<long long>(A * b / 100); return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 16, 12, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 16, 12, 2, 3, 4, 0, 16, 12, 13]]
1
55
#include <bits/stdc++.h> using namespace std; int main() { long long A; double B; int Bdash; cin >> A >> B; Bdash = (int)(B * 100); cout << A * Bdash / 100 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long A; double B; int Bdash; cin >> A >> B; Bdash = (int)(round(B * 100)); cout << A * Bdash / 100 << endl; }
[["+", 0, 11, 12, 74, 51, 23, 0, 2, 63, 22], ["+", 12, 74, 51, 23, 0, 2, 3, 4, 0, 24], ["+", 12, 74, 51, 23, 0, 2, 3, 4, 0, 25]]
1
49
#include <bits/stdc++.h> using namespace std; #define lli long long int #define rep(i, s, e) for (int i = s; i < e; i++) #define endl '\n' int main() { int A; cin >> A; double B; cin >> B; int res = (A * (int)(B * 100.0 + 0.5)) / 100; cout << (int)res << endl; }
#include <bits/stdc++.h> using namespace std; #define lli long long int #define rep(i, s, e) for (int i = s; i < e; i++) #define endl '\n' int main() { lli A; cin >> A; double B; cin >> B; lli res = (A * (lli)(B * 100.0 + 0.5)) / 100; cout << res << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 31, 23, 0, 16, 12, 74, 39, 77, 39, 40], ["+", 31, 23, 0, 16, 12, 2, 63, 23, 0, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 74, 0, 24], ["-", 0, 16, 31, 16, 12, 74, 39, 77, 39, 40], ["-", 0, 1, 0, 16, 31, 16, 12, 74, 0, 25]]
1
71
#include <bits/stdc++.h> using namespace std; using ull = unsigned long long; int main() { ull A; float b; cin >> A >> b; int B = (int)(b * 100.0); ull res = 0; if (A == 0 || B == 0) { res = 0; } else if (A * B >= A) { res = A * B / 100; } else { if ((ULLONG_MAX % 100 + (A * B + 1) % 100) ...
#include <bits/stdc++.h> using namespace std; using ull = unsigned long long; int main() { ull A; float b; cin >> A >> b; int B = (int)(b * 100 + 0.5); ull res = 0; if (A == 0 || B == 0) { res = 0; } else if (A * B >= A) { res = A * B / 100; } else { if ((ULLONG_MAX % 100 + (A * B + 1) % 1...
[["-", 49, 50, 51, 74, 51, 23, 0, 16, 12, 13], ["+", 51, 74, 51, 23, 0, 16, 31, 16, 12, 13], ["+", 49, 50, 51, 74, 51, 23, 0, 16, 17, 72], ["+", 49, 50, 51, 74, 51, 23, 0, 16, 12, 13]]
1
147
#include <bits/stdc++.h> using namespace std; #define int long long #define ll long long #define ld long double template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; ...
#include <bits/stdc++.h> using namespace std; #define int long long #define ll long long #define ld long double template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; ...
[["-", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22]]
1
389
#include <stdio.h> int main() { long long a; long long b, c; scanf("%lld %lld %lld", &a, &b, &c); long long d = b * 100 + c; printf("%lld\n", a * d / 100); return 0; }
#include <stdio.h> int main() { long long a; long long b, c; scanf("%lld %lld.%lld", &a, &b, &c); long long d = b * 100 + c; printf("%lld\n", (a * d) / 100); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 25]]
0
61
#include <bits/stdc++.h> #include <cmath> #include <cstdlib> #include <iostream> #include <math.h> #include <vector> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; using ll = long long; using vll = vector<ll>; using vvll = vector<vector<ll>>; int main() { int64_t a; cin >> a; long double b; ...
#include <bits/stdc++.h> #include <cmath> #include <cstdlib> #include <iostream> #include <math.h> #include <vector> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; using ll = long long; using vll = vector<ll>; using vvll = vector<vector<ll>>; int main() { int64_t a; cin >> a; long double b; ...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
96
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < n; ++i) ll cor_round(double x) { x += 0.5; return (ll)x; } int main() { ll a; double b; cin >> a >> b; cout << cor_round(a * b) << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < n; ++i) ll cor_round(double x) { x += 0.5; return (ll)x; } int main() { ll a; double b; cin >> a >> b; cout << a * cor_round(100 * b) / 100 << endl; }
[["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48], ["-", 31, 16, 12, 2, 3, 4, 0, 16, 31, 22], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 31, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 85], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
66
#!/usr/local/bin/python3 # coding: utf-8 ha = input() kita = ha.split(" ") a = int(kita[0]) b = int(kita[1].replace(".","")) m = a*b m = str(m) c = kita[1].split(".") try: co = len(c[1]) except: co = 0 print(m) if int(kita[0]) * float(kita[1]) < 1: print("0") elif co > 0: print(m[:-1*co]) else: pr...
#!/usr/local/bin/python3 # coding: utf-8 ha = input() kita = ha.split(" ") a = int(kita[0]) b = int(kita[1].replace(".","")) m = a*b m = str(m) c = kita[1].split(".") try: co = len(c[1]) except: co = 0 if int(kita[0]) * float(kita[1]) < 1: print("0") elif co > 0: print(m[:-1*co]) else: print(m)
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
136