buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
#include <bits/stdc++.h> using namespace std; int main() { long long i, j, k, l; double a, b; while (cin >> b >> a) { j = floor(b * a + .005); cout << j << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long i, j, k, l; long double a, b; while (cin >> b >> a) { j = floor(b * a + 0.005); cout << j << endl; } return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 11, 12, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 11, 12, 2, 3, 4, 0, 16, 12, 13]]
1
57
IN = gets.split A = IN[0].to_i B = ((IN[1].to_f * 100)).to_i mul = ((B*A).to_i) / 100 puts mul
IN = gets.split A = IN[0].to_i B = ((IN[1].to_f * 100)+0.001).to_i mul = ((B*A).to_i) / 100 puts mul
[["+", 0, 662, 12, 652, 486, 739, 0, 738, 17, 72], ["+", 0, 662, 12, 652, 486, 739, 0, 738, 12, 531]]
4
44
IN = gets.split A = IN[0].to_i B = IN[1].to_f mul = (B*A).floor.to_i dec = (B*A) - (B*A).floor if dec > 0.999 mul += 1 end puts mul
IN = gets.split A = IN[0].to_i B = IN[1].to_r mul = (B*A).floor.to_i dec = (B*A) - (B*A).floor if dec > 0.999 mul += 1 end puts mul
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
57
IN = gets.split A = IN[0].to_i B = IN[1].to_f mul = (B*A).floor dec = (B*A) - (B*A).floor if dec > 0.999 mul += 1 end puts mul
IN = gets.split A = IN[0].to_i B = IN[1].to_f.rationalize mul = (B*A).floor.to_i dec = (B*A) - (B*A).floor if dec > 0.999 mul += 1 end puts mul
[["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
55
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < n; i++) #define PI 3.14159265358979323846 #define vl vector<long long> using namespace std; using ll = long long; using ld = long double; // ----本問について---- // 問題: // 問題文URL: // ------------------ // ----ここから本問のソースコード---- // グローバル変数(入力) ld a, b; void solv...
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < n; i++) #define PI 3.14159265358979323846 #define vl vector<long long> using namespace std; using ll = long long; using ld = long double; // ----本問について---- // 問題: // 問題文URL: // ------------------ // ----ここから本問のソースコード---- // グローバル変数(入力) ld a, b; void solv...
[["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 24], ["+", 0, 16, 31, 16, 12, 74, 39, 77, 39, 78], ["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 25]]
1
79
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL_DEBUG #include "LOCAL_DEBUG.hpp" #endif #define int long long const int INF = 1LL << 60; signed main() { int a; double b; cin >> a >> b; int ans = a * (int)(b * 100) + 0.5; ans /= 100; cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL_DEBUG #include "LOCAL_DEBUG.hpp" #endif #define int long long const int INF = 1LL << 60; signed main() { int a; double b; cin >> a >> b; int ans = a * (int)(b * 100 + 0.5); ans /= 100; cout << ans << endl; return 0; }
[["-", 51, 16, 31, 16, 12, 74, 51, 23, 0, 25], ["+", 49, 50, 51, 16, 12, 74, 51, 23, 0, 25]]
1
71
#include <cstdio> #include <iostream> #include <math.h> #include <string> using namespace std; int main(void) { long a; double b; cin >> a >> b; cout << a * (long)(b * 100) / 100; return 0; }
#include <cstdio> #include <iostream> #include <math.h> #include <string> using namespace std; int main(void) { long a; double b; cin >> a >> b; cout << a * (long)(b * 100 + 0.1) / 100; return 0; }
[["+", 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> #define rep(i, N) for (int i = 0; i < (N); i++) #define FOR(i, a, b) for (int i = (a); i < (b); i++) using namespace std; const long long MOD = 1e9 + 7; const long long INF = 1e12; const int inf = 1e9; const int mod = 1e9 + 7; typedef long long ll; typedef pair<ll, int> P; typedef set<int> S; i...
#include <bits/stdc++.h> #define rep(i, N) for (int i = 0; i < (N); i++) #define FOR(i, a, b) for (int i = (a); i < (b); i++) using namespace std; const long long MOD = 1e9 + 7; const long long INF = 1e12; const int inf = 1e9; const int mod = 1e9 + 7; typedef long long ll; typedef pair<ll, int> P; typedef set<int> S; i...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 16, 31, 16, 12, 74, 51, 2, 63, 22]]
1
118
#include <bits/stdc++.h> using namespace std; typedef long long ll; /* clang-format off */ #define INF (INT_MAX / 4) #define REP(i, n) for (ll i = 0, i##_len = (n); i < i##_len; ++i) #define ALL(a) (a).begin(), (a).end() #define __DEBUG__ #ifdef __DEBUG__ #define CH_P(a) cout <<"check_point("<<#a<<")" << "\n"; #define ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; /* clang-format off */ #define INF (INT_MAX / 4) #define REP(i, n) for (ll i = 0, i##_len = (n); i < i##_len; ++i) #define ALL(a) (a).begin(), (a).end() #define __DEBUG__ #ifdef __DEBUG__ #define CH_P(a) cout <<"check_point("<<#a<<")" << "\n"; #define ...
[["+", 49, 50, 51, 74, 51, 23, 0, 16, 17, 72], ["+", 49, 50, 51, 74, 51, 23, 0, 16, 12, 13]]
1
186
#include <bits/stdc++.h> using namespace std; int main() { unsigned long long A; double B; cin >> A >> B; unsigned long long c = A * B; cout << c << endl; }
#include <bits/stdc++.h> using namespace std; int main() { unsigned long long A; long double B; cin >> A >> B; unsigned long long c = A * B; cout << c << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
41
#include "bits/stdc++.h" using namespace std; #define REP(i, n) for (ll i = 0; i < n; i++) #define ll long long #define MOD 1000000007LL #define llMAX 9223372036854775807LL #define llMIN -9223372036854775808LL using vi = vector<ll>; // intの1次元の型に vi という別名をつける using vvi = vector<vi>; // intの2次元の型に vvi という別名をつける ll n, ...
#include "bits/stdc++.h" using namespace std; #define REP(i, n) for (ll i = 0; i < n; i++) #define ll long long #define MOD 1000000007LL #define llMAX 9223372036854775807LL #define llMIN -9223372036854775808LL using vi = vector<ll>; // intの1次元の型に vi という別名をつける using vvi = vector<vi>; // intの2次元の型に vvi という別名をつける ll n, ...
[["+", 0, 43, 49, 50, 51, 23, 0, 16, 17, 72], ["+", 0, 43, 49, 50, 51, 23, 0, 16, 12, 13]]
1
103
#include <bits/stdc++.h> using namespace std; int main(void) { double a, b; unsigned long long int ans; cin >> a >> b; ans = a * b; cout << ans; }
#include <bits/stdc++.h> using namespace std; int main(void) { long double a, b; unsigned long long int ans; cin >> a >> b; ans = a * b; cout << ans; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
40
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stdio.h> #include <string.h> #include <vector> #define REP(i, n) for (int i = 0; (i) < (n); ++(i)) #define FOR(i, n) for (int i = 1; (i) <= (n); ++(i)) #define dump(x) cout << #x << " =...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stdio.h> #include <string.h> #include <vector> #define REP(i, n) for (int i = 0; (i) < (n); ++(i)) #define FOR(i, n) for (int i = 1; (i) <= (n); ++(i)) #define dump(x) cout << #x << " =...
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]]
1
130
a,b=map(float,input().split()) a=int(a) print(int((a*(b*100))//100))
from decimal import Decimal a,b=map(Decimal,input().split()) a=int(a) print(int((a*(b*100))//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
39
#include <bits/stdc++.h> using namespace std; #define DEBUG(x) cerr << #x << ": " << x << endl; #define DEBUG_VEC(v) \ cerr << #v << ":"; \ for (int i = 0; i < v.size(); i++) ...
#include <bits/stdc++.h> using namespace std; #define DEBUG(x) cerr << #x << ": " << x << endl; #define DEBUG_VEC(v) \ cerr << #v << ":"; \ for (int i = 0; i < v.size(); i++) ...
[["+", 12, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 12, 13], ["+", 12, 2, 3, 4, 0, 16, 31, 23, 0, 25]]
1
542
#include <algorithm> #include <cstring> #include <iostream> #include <map> #include <numeric> #include <string> #include <vector> using namespace std; typedef long long ll; typedef unsigned long long ull; int main(int argc, char const *argv[]) { //ポイントはdoubleは15桁までしか表現できないので,15桁×3桁は無理 //なので,小数を整数にするためにかけて,その後割ればよ...
#include <algorithm> #include <cstring> #include <iostream> #include <map> #include <numeric> #include <string> #include <vector> using namespace std; typedef long long ll; typedef unsigned long long ull; int main(int argc, char const *argv[]) { //ポイントはdoubleは15桁までしか表現できないので,15桁×3桁は無理 //なので,小数を整数にするためにかけて,その後割ればよ...
[["+", 49, 50, 51, 2, 3, 4, 0, 16, 17, 72], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 12, 13]]
1
81
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using vl = vector<ll>; template <class T> using vc = vector<T>; template <class T> using vvc = vector<vector<T>>; #define eb emplace_back #define all(x) (x).begin(), (x).end() #define rep(i, n) for (ll i = 0; i < (n); i++) #def...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using vl = vector<ll>; template <class T> using vc = vector<T>; template <class T> using vvc = vector<vector<T>>; #define eb emplace_back #define all(x) (x).begin(), (x).end() #define rep(i, n) for (ll i = 0; i < (n); i++) #def...
[["+", 0, 11, 12, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 11, 12, 2, 3, 4, 0, 16, 12, 22]]
1
433
from decimal import Decimal a,b = map(float,input().split()) a = Decimal(a) b = Decimal(b) c = a*b c = int(c) print(c)
from decimal import Decimal a,b = map(str,input().split()) a = Decimal(a) b = Decimal(b) c = a*b c = int(c) print(c)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
47
#include <algorithm> #include <cmath> #include <cstdint> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) #define FOR(i, m, n) for (int(i)...
#include <algorithm> #include <cmath> #include <cstdint> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) #define FOR(i, m, n) for (int(i)...
[["-", 0, 43, 49, 50, 51, 74, 51, 2, 63, 22], ["+", 0, 43, 49, 50, 51, 74, 51, 2, 63, 22]]
1
163
#include <bits/stdc++.h> #include <cmath> using namespace std; int main() { unsigned long long ina, ans; double inb; cin >> ina >> inb; int int_inb = static_cast<int>(inb * 100); ans = (ina * int_inb) / 100; cout << ans << endl; }
#include <bits/stdc++.h> #include <cmath> using namespace std; int main() { unsigned long long ina, ans; double inb; cin >> ina >> inb; int int_inb = round(inb * 100); ans = (ina * int_inb) / 100; cout << ans << endl; }
[["-", 0, 43, 49, 50, 51, 2, 63, 346, 141, 22], ["-", 49, 50, 51, 2, 63, 346, 3, 347, 0, 18], ["-", 51, 2, 63, 346, 3, 347, 0, 77, 39, 40], ["-", 49, 50, 51, 2, 63, 346, 3, 347, 0, 47], ["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22]]
1
59
#line 2 "lib/template.cpp" #ifndef LOCAL #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #pragma GCC target("avx") #endif #include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <functional> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set...
#line 2 "lib/template.cpp" #ifndef LOCAL #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #pragma GCC target("avx") #endif #include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <functional> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 17, 72], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13]]
1
2,432
import decimal A, B = map(decimal.Decimal, input().split()) print((A*B))
import decimal A, B = map(decimal.Decimal, input().split()) print(int(A*B))
[["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22]]
5
28
#include <algorithm> #include <bitset> #include <cctype> #include <cmath> #include <complex> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <unordered_map> #include <utility> #inc...
#include <algorithm> #include <bitset> #include <cctype> #include <cmath> #include <complex> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <unordered_map> #include <utility> #inc...
[["-", 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, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
494
a,b=input().split() a=int(a) b.replace('.','') b=int(b) print((a*b)//100)
a,b=input().split() a=int(a) b=b.replace('.','') b=int(b) print((a*b)//100)
[["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22]]
5
44
# -*- coding: utf-8 -*- import math a, b = map(float,input().split()) print(math.floor(a * b))
# -*- coding: utf-8 -*- import math from decimal import Decimal a, b = map(Decimal,input().split()) print(math.floor(a * b))
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
30
a, b = input().strip().split() a = int(a) b100 = int(float(b) * 100.) ans = int(a * b100//100) print(ans)
a, b = input().strip().split() a = int(a) b100 = int(float(b) * 100. + 0.5) ans = int(a * b100//100) print(ans)
[["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 531]]
5
46
import sys, re, os from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, acos, atan, asin, log, log10, gcd, floor from itertools import permutations, combinations, product, accumulate, combinations_with_replacement from operator import itemgetter, mul ...
import sys, re, os from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, acos, atan, asin, log, log10, gcd, floor from itertools import permutations, combinations, product, accumulate, combinations_with_replacement from operator import itemgetter, mul ...
[["+", 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
347
#include <bits/stdc++.h> using namespace std; int mod = 1000000007; int64_t large = 9223372036854775807; double PI = 3.141592653589793; int main() { int64_t A; long double B; cin >> A >> B; cout << (A * B * 100) / 100; }
#include <bits/stdc++.h> using namespace std; int mod = 1000000007; int64_t large = 9223372036854775807; double PI = 3.141592653589793; int main() { int64_t A; long double B; cin >> A >> B; cout << (int64_t)(A * B * 100) / 100; }
[["+", 0, 16, 12, 16, 31, 74, 39, 77, 39, 40], ["+", 0, 1, 0, 16, 12, 16, 31, 74, 0, 25], ["+", 0, 16, 12, 16, 31, 74, 51, 23, 0, 24]]
1
52
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll a; double b; cin >> a >> b; ll ans = a * b / 1; cout << ans; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll a; long double b; cin >> a >> b; ll ans = a * b / 1; cout << ans; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
42
#pragma GCC optimize("O3") #include <bits/stdc++.h> using namespace std; using ll = long long; typedef unsigned long long int ull; using P = pair<ll, ll>; template <class T> using V = vector<T>; #define fi first #define se second #define all(v) (v).begin(), (v).end() const ll inf = (1e18); // const ll mod=998244353; co...
#pragma GCC optimize("O3") #include <bits/stdc++.h> using namespace std; using ll = long long; typedef unsigned long long int ull; using P = pair<ll, ll>; template <class T> using V = vector<T>; #define fi first #define se second #define all(v) (v).begin(), (v).end() const ll inf = (1e18); // const ll mod=998244353; co...
[["-", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22]]
1
269
#include <algorithm> #include <bitset> #include <chrono> #include <cmath> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <unordered_map> #include <vector> #def...
#include <algorithm> #include <bitset> #include <chrono> #include <cmath> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <unordered_map> #include <vector> #def...
[["-", 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
229
#include <algorithm> #include <bitset> #include <cctype> #include <cmath> #include <cstdio> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <vector> using namespace std; int main() { double a, b; ci...
#include <algorithm> #include <bitset> #include <cctype> #include <cmath> #include <cstdio> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <vector> using namespace std; int main() { long double a, b;...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
74
import math A,B=map(float, input().split()) A=int(A) B=100*B a=math.ceil(A*B//100) print(a)
import math A,B=map(float, input().split()) A=int(A) B=round(100*B) a=(A*B//100) print(a)
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["-", 0, 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
45
#include <bits/stdc++.h> #define ll long long #define MX 1e18 using namespace std; int main() { ll n; cin >> n; double m; cin >> m; printf("%lld\n", n * (m * 100 + 0.5) / 100); }
#include <bits/stdc++.h> #define ll long long #define MX 1e18 using namespace std; int main() { ll n; cin >> n; double m; cin >> m; printf("%lld\n", n * (int)(m * 100 + 0.5) / 100); }
[["+", 0, 16, 31, 16, 12, 74, 39, 77, 39, 40], ["+", 3, 4, 0, 16, 31, 16, 12, 74, 0, 25], ["+", 0, 16, 31, 16, 12, 74, 51, 23, 0, 24]]
1
52
#include <bits/stdc++.h> #define ll long long #define MX 1e18 using namespace std; int main() { ll n; cin >> n; double m; cin >> m; m *= 100 + 0.5; int mm = (int)m; printf("%lld\n", n * mm / 100); }
#include <bits/stdc++.h> #define ll long long #define MX 1e18 using namespace std; int main() { ll n; cin >> n; double m; cin >> m; m = m * 100 + 0.5; int mm = m; printf("%lld\n", n * mm / 100); }
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 108], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["-", 8, 9, 0, 43, 49, 50, 51, 74, 0, 24], ["-", 0, 43, 49, 50, 51, 74, 39, 77, 39, 40], ["-", 8, 9, 0, 43, 49, 50, 51, 74, 0, 25]]
1
60
#include <cmath> #include <iostream> #include <vector> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using p = pair<int, int>; int main() { ll ans = 1; ll a; double b; cin >> a >> b; // ll ib = b * // 100;としてしまうと、llへのキャストが行われ(キャストが行われると切り捨てられる)、bが1.17999のような値だった...
#include <cmath> #include <iostream> #include <vector> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using p = pair<int, int>; int main() { ll ans = 1; ll a; double b; cin >> a >> b; // ll ib = b * // 100;としてしまうと、llへのキャストが行われ(キャストが行われると切り捨てられる)、bが1.17999のような値だった...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
80
A,B=input().split() print(int(int(A)*int(B[:1]+B[-2:])/100))
A,B=input().split() print(int(A)*int(B[:1]+B[-2:])//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
39
def solve() : a, b = input().split() a = int(a) b = b.replace('.', '') b100 = int(b[0])*100 + int(b[1])*10 + int(b[2]) print(b100) print(a*b100//100) return if __name__ == "__main__" : solve()
def solve() : a, b = input().split() a = int(a) b = b.replace('.', '') b100 = int(b[0])*100 + int(b[1])*10 + int(b[2]) print(a*b100//100) return if __name__ == "__main__" : solve()
[["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 0, 14, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24]]
5
87
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define ALL(a) (a).begin(), (a).end() #define RALL(a) (a).rbegin(), (a).rend() #define pb push_back using ll = long long; using P = pair<int, int>; int main() { ll a; cin >> a; string b; cin >> b; ll c = (b[0] - '0'...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define ALL(a) (a).begin(), (a).end() #define RALL(a) (a).rbegin(), (a).rend() #define pb push_back using ll = long long; using P = pair<int, int>; int main() { ll a; cin >> a; string b; cin >> b; ll c = (b[0] - '0'...
[["-", 31, 23, 0, 16, 31, 69, 341, 342, 0, 13], ["+", 31, 23, 0, 16, 31, 69, 341, 342, 0, 13], ["-", 12, 23, 0, 16, 31, 69, 341, 342, 0, 13], ["+", 12, 23, 0, 16, 31, 69, 341, 342, 0, 13]]
1
115
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define ALL(a) (a).begin(), (a).end() #define RALL(a) (a).rbegin(), (a).rend() #define pb push_back using ll = long long; using P = pair<int, int>; int main() { ll a; cin >> a; double b; cin >> b; ll c = b * 100; ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define ALL(a) (a).begin(), (a).end() #define RALL(a) (a).rbegin(), (a).rend() #define pb push_back using ll = long long; using P = pair<int, int>; int main() { ll a; cin >> a; double b; cin >> b; ll c = b * 100 + 0...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
82
import math from decimal import Decimal n=input().split() a = int(n[0]) b=Decimal(n[1]) ans = a*b print(ans)
import math from decimal import Decimal n=input().split() a = int(n[0]) b=Decimal(n[1]) ans = a*b print(int(ans))
[["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
42
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); long long int a; double b; cin >> a >> b; cout << int64_t(trunc(a * b)) << "\n"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); long double a; long double b; cin >> a >> b; cout << int64_t(floor(a * b)) << "\n"; return 0; }
[["-", 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], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 31, 16, 12, 2, 3, 4, 0, 2, 63, 22], ["+", 31, 16, 12, 2, 3, 4, 0, 2, 63, 22]]
1
66
#include <algorithm> #include <cctype> #include <cmath> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <unordered_map> #include <vector> using namespace std; typedef long long ll; typedef pair<ll,...
#include <algorithm> #include <cctype> #include <cmath> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <unordered_map> #include <vector> using namespace std; typedef long long ll; typedef pair<ll,...
[["+", 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
1,906
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; int main() { double a, b; cin >> a >> b; ll ans = a * b; cout << ans << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; int main() { ll a; long double b; cin >> a >> b; ll ans = a * b; cout << ans << endl; return 0; }
[["-", 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
53
#include <bits/stdc++.h> #define int long long #define quickie \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); #define rep(i, a, b) for (int i = a; i < b; i++) #define rep1(i, a, b) for (int i = a; i <= b;...
#include <bits/stdc++.h> #define int long long #define quickie \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); #define rep(i, a, b) for (int i = a; i < b; i++) #define rep1(i, a, b) for (int i = a; i <= b;...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
237
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <sstream> #include <stack> #include <stdio.h> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; typedef unsigned long long ll; ...
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <sstream> #include <stack> #include <stdio.h> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; typedef unsigned long long ll; ...
[["+", 0, 16, 31, 16, 12, 74, 51, 23, 0, 24], ["+", 0, 16, 31, 16, 12, 74, 51, 23, 0, 25]]
1
75
from decimal import Decimal as de a,b=map(float,input().split()) print(int(de(a)*de(b)))
from decimal import Decimal as de a,b=input().split() print(int(de(a)*de(b)))
[["-", 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
37
#include <bits/stdc++.h> #define mod 1000000007 #define rep(i, n) for (int i = 0; i < n; ++i) using namespace std; typedef long long ll; const long long INF = 1LL << 60; int main(void) { long double A, B; cin >> A >> B; cout << (ll)A * B << endl; return 0; }
#include <bits/stdc++.h> #define mod 1000000007 #define rep(i, n) for (int i = 0; i < n; ++i) using namespace std; typedef long long ll; const long long INF = 1LL << 60; int main(void) { long double A, B; cin >> A >> B; cout << (ll)(A * B) << endl; return 0; }
[["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 25]]
1
64
#include <bits/stdc++.h> using namespace std; typedef long long int lli; typedef long int li; int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); long double a, b; cin >> a >> b; cout << floor(a * b) << '\n'; } /* check for corner cases. When using log check for zeros. ...
#include <bits/stdc++.h> using namespace std; typedef long long int lli; typedef long int li; int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); long double a, b; cin >> a >> b; cout << (long long)floor(a * b) << '\n'; } /* check for corner cases. When using log check for zero...
[["+", 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
70
#include <bits/stdc++.h> using namespace std; int main() { long long A; long double B; cin >> A >> B; long long s = 0; s = B * 100; long long ans = 0; // ans = A * s / 100; long long d = 0; long long e = 0; d = A / 100; e = A % 100; ans = d * s + e * s / 100; // cout << d << " "<< e << end...
#include <bits/stdc++.h> using namespace std; int main() { long long A; long double B; cin >> A >> B; long long s = 0; s = B * 100; long long ans = 0; // ans = A * s / 100; long long d = 0; long long e = 0; d = A / 100; e = A % 100; ans = d * s + e * s / 100; ans = A * B; // cout << d <...
[["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 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], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
91
import math from decimal import * a,b = map(float, input().split()) a = Decimal(a) b = Decimal(b) b = b*100 ans = a*b #Decimal(ans) #ans_i = math.floor(a*b_i) # ans = math.floor(Decimal(a)*Decimal(b)) print(ans//100)
import math from decimal import * a,b = map(float, input().split()) a = Decimal(a) b = Decimal(b) b = b*100 b = round(b) ans = a*b print(ans//100)
[["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 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, 25]]
5
53
a, b = input().split() a = int(a) b = int(100*float(b)) print((a*b)//100)
a, b = input().split() a = int(a) b = round(100*float(b)) print((a*b)//100)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
38
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long int; int main() { // Input ll A; double B; cin >> A >> B; // Process ll ans = (ll)(A * B); // Output cout << ans << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long int; int main() { // Input ll A; long double B; cin >> A >> B; // Process ll ans = (ll)(A * B); // Output cout << ans << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
63
#include <stdio.h> #include <string.h> int main() { long long a; double b; scanf("%lld %lf", &a, &b); printf("%lld", (long long)(a * b)); return 0; }
#include <stdio.h> #include <string.h> int main() { long long a; long double b; scanf("%lld %Lf", &a, &b); printf("%lld", (long long)(a * b)); 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
50
#include <bits/stdc++.h> using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < n; i++) int main() { ll x; double y; cin >> x >> y; cout << (ll)floorl(x * y) << endl; }
#include <bits/stdc++.h> using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < n; i++) int main() { long double x; long double y; cin >> x >> y; // ll a=x*(ll)floor(y); // ll b=(x*100*(y-floorl(y)))/100; cout << (ll)(x * y) << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["-", 0, 16, 31, 16, 12, 74, 51, 2, 63, 22]]
1
49
#include <iostream> #include <string> int main() { long long A; double B; std::cin >> A >> B; std::string ans = std::to_string(A * B); for (char x : ans) { if (x == '.') break; std::cout << x; } std::cout << std::endl; return 0; }
#include <iostream> #include <string> int main() { long long A; long double B; std::cin >> A >> B; std::string ans = std::to_string(A * B); for (char x : ans) { if (x == '.') break; std::cout << x; } std::cout << std::endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
75
############################################################################### #Imports import collections import itertools from functools import lru_cache import sys import math ############################################################################### #Constants MOD = int(1e9)+7 ################################...
############################################################################### #Imports import collections import itertools from functools import lru_cache import sys import math from decimal import Decimal ############################################################################### #Constants MOD = int(1e9)+7 ####...
[["+", 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, 432, 0, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 432, 0, 652, 63, 22]]
5
92
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep_(i, n, m) for (int i = n; i < (int)(m); i++) #define all(v) v.begin(), v.end() #define int long long #define stoi stoll //#define _GLIBCXX_DEBUG signed main() { long double A, B; cin >> A >> B; cout <<...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep_(i, n, m) for (int i = n; i < (int)(m); i++) #define all(v) v.begin(), v.end() #define int long long #define stoi stoll //#define _GLIBCXX_DEBUG signed main() { long double A, B; cin >> A >> B; cout <<...
[["-", 0, 16, 31, 16, 12, 2, 63, 23, 0, 22], ["+", 31, 16, 12, 74, 39, 77, 39, 86, 0, 96]]
1
68
#include <bits/stdc++.h> using namespace std; #define F first #define S second #define ll long long #define ret return #define PB push_back #define lc 2 * v #define rc 2 * v + 1 #define mid (s + e) / 2 #define pii pair<int, int> #define pll pair<long long, long long> #define FAST ...
#include <bits/stdc++.h> using namespace std; #define F first #define S second #define ll long long #define ret return #define PB push_back #define lc 2 * v #define rc 2 * v + 1 #define mid (s + e) / 2 #define pii pair<int, int> #define pll pair<long long, long long> #define FAST ...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
84
#include <bits/stdc++.h> using namespace std; int main() { double A, B, x; cin >> A >> B; x = A * B; int y; y = x; cout << y << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long double A, B, x; cin >> A >> B; x = A * B; long int y; y = x; cout << y << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
44
#include <bits/stdc++.h> using namespace std; #define debug(x) cout << #x << " " << x << "\n"; #define lli long long int int main() { lli a, x; double b, ans; cin >> a >> b; ans = floor(a * b); x = ans; cout << x << endl; ; return 0; }
#include <bits/stdc++.h> using namespace std; #define debug(x) cout << #x << " " << x << "\n"; #define lli long long int int main() { lli a, x; long double b, ans; cin >> a >> b; ans = a * b; x = ans; cout << x << endl; ; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22], ["-", 0, 1, 0, 11, 12, 2, 3, 4, 0, 24], ["-", 0, 1, 0, 11, 12, 2, 3, 4, 0, 25]]
1
60
#include <bits/stdc++.h> using namespace std; #define debug(x) cout << #x << " " << x << "\n"; #define lli long long int int main() { lli a, x; double b, ans; cin >> a >> b; ans = floor(a * b); x = ans; cout << x << endl; ; return 0; }
#include <bits/stdc++.h> using namespace std; #define debug(x) cout << #x << " " << x << "\n"; #define lli long long int int main() { lli a, x; long double b, ans; cin >> a >> b; ans = floor(a * b); x = ans; cout << x << endl; ; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
60
#include <bits/stdc++.h> #define PI 3.14159265359 using namespace std; int main() { int64_t a; double b; cin >> a >> b; int64_t bb = floor(100 * b); int64_t ans = (a * bb) / 100; cout << ans << endl; return 0; }
#include <bits/stdc++.h> #define PI 3.14159265359 using namespace std; int main() { int64_t a; double b; cin >> a >> b; int64_t bb = floor(100 * b + 0.01); int64_t ans = (a * bb) / 100; cout << ans << endl; return 0; }
[["+", 49, 50, 51, 2, 3, 4, 0, 16, 17, 72], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 12, 13]]
1
57
#include <bits/stdc++.h> using namespace std; int main() { long long ans; double a, b; cin >> a >> b; ans = a * b; cout << ans << '\n'; }
#include <bits/stdc++.h> using namespace std; int main() { long long ans; long double a, b; cin >> a >> b; ans = a * b; cout << ans << '\n'; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
41
#include <bits/stdc++.h> using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < (n); i++) #define REP(i, l, r) for (int i = (l); i < (r); i++) int main() { ll A; double B; cin >> A >> B; ll ans = A * B; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < (n); i++) #define REP(i, l, r) for (int i = (l); i < (r); i++) int main() { ll A; long double B; cin >> A >> B; ll ans = A * B; cout << ans << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
58
#include <bits/stdc++.h> using namespace std; int main() { double a; double b; scanf("%lf %lf", &a, &b); long long c = (long long)(a * b); cout << c << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long double a; long double b; scanf("%Lf %Lf", &a, &b); long long c = (long long)(a * b); cout << c << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
54
import java.math.BigDecimal; import java.math.RoundingMode; 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(); BigDecimal ans = new BigDecimal(a); ans.multiply(BigDecimal.valueOf...
import java.math.BigDecimal; import java.math.RoundingMode; 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(); BigDecimal a1 = new BigDecimal(a); BigDecimal ans = a1.multiply(Big...
[["-", 0, 195, 8, 196, 0, 503, 49, 200, 141, 22], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 141, 22], ["+", 8, 498, 0, 195, 8, 196, 0, 503, 39, 78], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 0, 32], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 500, 22]]
3
101
#include <bits/stdc++.h> using namespace std; int main() { long double A, B; cin >> A >> B; cout << floor(A * B) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long double A, B; cin >> A >> B; cout << setprecision(30) << floor(A * B) << endl; }
[["+", 0, 16, 31, 16, 31, 16, 12, 2, 63, 22], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]]
1
35
#include <bits/stdc++.h> using namespace std; struct expand_type { template <typename... T> expand_type(T &&...) {} }; template <typename... ArgTypes> void print(ArgTypes... args) { expand_type{0, (cerr << args << ", ", 0)...}; cerr << "\b\b \n"; } #define printv(x) ...
#include <bits/stdc++.h> using namespace std; struct expand_type { template <typename... T> expand_type(T &&...) {} }; template <typename... ArgTypes> void print(ArgTypes... args) { expand_type{0, (cerr << args << ", ", 0)...}; cerr << "\b\b \n"; } #define printv(x) ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 16, 31, 16, 12, 74, 51, 2, 63, 22]]
1
149
a, b = map(str, input().split()) a = int(a) b = int(b.replace('.', '')) print(a*b%100)
a, b = map(str, input().split()) a = int(a) b = int(b.replace('.', '')) print(a*b//100)
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 109], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 676]]
5
46
from decimal import * from math import * getcontext().prec = 10000 a, b = map(Decimal, map(float, input().split())) print(floor(a * b))
from decimal import * from math import * getcontext().prec = 10000 a, b = map(Decimal, input().split()) print(floor(a * b))
[["-", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
45
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; #define pri(str) cout << str << endl using ll = long long; using P = pair<int, int>; int main() { double a; double b; cin >> a >> b; ll ans = a * b; pri(ans); return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; #define pri(str) cout << str << endl using ll = long long; using P = pair<int, int>; int main() { long double a; long double b; cin >> a >> b; ll ans = a * b; pri(ans); return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
69
#include <bits/stdc++.h> #define ll long long #define pb push_back #define mp make_pair using namespace std; const int MOD = 1000000007; const ll INF = 1LL << 60; int main() { cin.tie(0); ios::sync_with_stdio(false); ll a; double b; cin >> a >> b; cout << (long)floor(a * b) << endl; }
#include <bits/stdc++.h> #define ll long long #define pb push_back #define mp make_pair using namespace std; const int MOD = 1000000007; const ll INF = 1LL << 60; int main() { cin.tie(0); ios::sync_with_stdio(false); long double a; long double b; cin >> a >> b; cout << (long)(a * b) << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["-", 0, 16, 31, 16, 12, 74, 51, 2, 63, 22]]
1
75
import math l = input().split() a = int(l[0]) b = float(l[1]) print(math.floor(a*b))
import math from decimal import Decimal l = input().split() a = int(l[0]) b = Decimal(l[1]) print(math.floor(a*b))
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
40
#include <bits/stdc++.h> using namespace std; #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define M1 1000000007 #define M2 998244353 #define ll long long int #define pll pair<ll, ll> #define mll map<ll, ll> #define F first #define S second #define PB push_ba...
#include <bits/stdc++.h> using namespace std; #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define M1 1000000007 #define M2 998244353 #define ll long long int #define pll pair<ll, ll> #define mll map<ll, ll> #define F first #define S second #define PB push_ba...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21]]
1
1,179
#include <bits/stdc++.h> using namespace std; static const long long MOD = 1000000000 + 7; static const double PI = 3.141592653589793; vector<long long> vecmodfact(2, 1); long long modpow(long long x, long long n, long long mod = 0) { if (mod == 0) { long long res = 1; while (n > 0) { if (n % 2 == 1) {...
#include <bits/stdc++.h> using namespace std; static const long long MOD = 1000000000 + 7; static const double PI = 3.141592653589793; vector<long long> vecmodfact(2, 1); long long modpow(long long x, long long n, long long mod = 0) { if (mod == 0) { long long res = 1; while (n > 0) { if (n % 2 == 1) {...
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
427
#include <algorithm> #include <climits> #include <cmath> #include <cstring> #include <iostream> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> #define rep(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define rep1(i, n) for (int i = 1, i##_len = (n); i ...
#include <algorithm> #include <climits> #include <cmath> #include <cstring> #include <iostream> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> #define rep(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define rep1(i, n) for (int i = 1, i##_len = (n); i ...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
113
#include <bits/stdc++.h> #include <numeric> using namespace std; #define ll long long #define mod 1000000007 #define rep(i, n) for (int i = 0; i < n; ++i) using Graph = vector<vector<int>>; #define grepq priority_queue<double, std::vector<double>, std::greater<double>> #define all(v) v.begin(), v.end() #define PI acos(...
#include <bits/stdc++.h> #include <numeric> using namespace std; #define ll long long #define mod 1000000007 #define rep(i, n) for (int i = 0; i < n; ++i) using Graph = vector<vector<int>>; #define grepq priority_queue<double, std::vector<double>, std::greater<double>> #define all(v) v.begin(), v.end() #define PI acos(...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
411
#include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define mk make_pair int main() { ll a; double b; cin >> a >> b; double ans = (double)a * b; // cout<<ans<<endl; cout << (ll)ans << endl; }
#include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define mk make_pair int main() { ll a; long double b; cin >> a >> b; long double ans = (long double)a * b; // cout<<ans<<endl; cout << (ll)ans << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 51, 16, 31, 74, 39, 77, 39, 86, 0, 96]]
1
53
#include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define mk make_pair int main() { ll a; double b; cin >> a >> b; double ans = (double)a * b * 1.0; // cout<<ans<<endl; cout << (ll)ans << endl; }
#include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define mk make_pair int main() { ll a; long double b; cin >> a >> b; long double ans = (long double)a * b * 1.0; // cout<<ans<<endl; cout << (ll)ans << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 31, 16, 31, 74, 39, 77, 39, 86, 0, 96]]
1
55
import math from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN r = list(map(float,input().split())) x = Decimal(str(r[1])).quantize(Decimal('0'),rounding=ROUND_HALF_UP) y = Decimal(str(r[1])).quantize(Decimal('0.01'),rounding=ROUND_HALF_UP) z = x * y z = math.floor(z) print(z)
import math from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN r = list(map(float,input().split())) x = Decimal(str(r[0])).quantize(Decimal('0'),rounding=ROUND_HALF_UP) y = Decimal(str(r[1])).quantize(Decimal('0.01'),rounding=ROUND_HALF_UP) z = x * y z = math.floor(z) print(z)
[["-", 3, 4, 0, 652, 3, 4, 0, 206, 206, 612], ["+", 3, 4, 0, 652, 3, 4, 0, 206, 206, 612]]
5
96
A, B = map(float, input().split()) a = int(A) b = int(B * 100) print(a * b // 100)
A, B = map(float, input().split()) a = int(A) b = round(B * 100) print(a * b // 100)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
38
#include <bits/stdc++.h> using namespace std; #define _GLIBCXX_DEBUG #define rep(i, n) for (int i = 0; i < (n); i++) #define mp(x, y) make_pair(x, y) #define all(x) (x).begin(), (x).end() using ll = long long; using vll = vector<ll>; using P = pair<int, int>; const int inf = 1e9 + 7; const ll INF = 1e18; template <type...
#include <bits/stdc++.h> using namespace std; #define _GLIBCXX_DEBUG #define rep(i, n) for (int i = 0; i < (n); i++) #define mp(x, y) make_pair(x, y) #define all(x) (x).begin(), (x).end() using ll = long long; using vll = vector<ll>; using P = pair<int, int>; const int inf = 1e9 + 7; const ll INF = 1e18; template <type...
[["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 25]]
1
153
from decimal import Decimal a, b = map(str,input().split()) c = Decimal(a) d = Decimal(b) e = c * d print(e)
from decimal import Decimal a, b = map(str,input().split()) c = Decimal(a) d = Decimal(b) e = c * d print(int(e))
[["+", 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
41
import math a = input().split() s1 = a[0] s2 = a[1] num1 = int(s1) num2 = int(s[0])*100 + int(s[2]+s[3]) print((num1*num2)//100)
a = input().split() s1 = a[0] s2 = a[1] num1 = int(s1) num2 = int(s2[0])*100 + int(s2[2]+s2[3]) print((num1*num2)//100)
[["-", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["-", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 31, 657, 31, 652, 3, 4, 0, 206, 51, 22], ["+", 31, 657, 31, 652, 3, 4, 0, 206, 51, 22], ["-", 12, 652, 3, 4, 0, 657, 31, 206, 51, 22], ["+", 12, 652, 3, 4, 0, 657, 31, 206, 51, 22], ["-", 12, 652, 3, 4, 0, 657, 12, 206...
5
63
/* Author: ankrypt */ #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; template <class T> using oset = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>; #define MOD 1000000007...
/* Author: ankrypt */ #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; template <class T> using oset = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>; #define MOD 1000000007...
[["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96], ["+", 8, 9, 0, 43, 49, 50, 51, 74, 0, 24], ["+", 0, 43, 49, 50, 51, 74, 39, 77, 39, 78], ["+", 8, 9, 0, 43, 49, 50, 51, 74, 0, 25]]
1
218
#include <bits/stdc++.h> using namespace std; main() { double a, b; cin >> a >> b; double result = a * b; double res = floor(result); long long int ans = res; cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; main() { long double a, b; cin >> a >> b; long double result = a * b; long double res = floor(result); long long int ans = res; cout << ans << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
53
#include <bits/stdc++.h> using namespace std; int main() { double a, b, c; cin >> a >> b; c = a * b; cout << (long long)(c); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long double a, b, c; cin >> a >> b; c = a * b; cout << (long long)(c); return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
44
from decimal import Decimal, ROUND_FLOOR a, b = input().split() a = float(a) b = float(b) ans = a * b val_floor_d = Decimal(ans).quantize(Decimal('0'), rounding=ROUND_FLOOR) print(val_floor_d)
from decimal import Decimal, ROUND_FLOOR a, b = input().split() a = int(a) b = Decimal(b) ans = a * b val_floor_d = ans.quantize(Decimal('0'), rounding=ROUND_FLOOR) print(val_floor_d)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 662, 12, 652, 63, 319, 500, 652, 63, 22], ["-", 12, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["-", 12, 652, 63, 319, 500, 652, 3, 4, 0, 25]]
5
58
A,B=input().split() tmpA = int(A) tmpB = int(float(B)*100.0) ans = str(tmpA*tmpB) ans=ans[:len(ans)-2] if len(ans)==0: ans=0 print(ans)
A,B=input().split() tmpA = int(A) tmpB = int(float(B)*100.0+0.5) ans = str(tmpA*tmpB) ans=ans[:len(ans)-2] if len(ans)==0: ans=0 print(ans)
[["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 531]]
5
63
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) int main() { long a; double b; cin >> a >> b; long ans = b * a; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) int main() { long a; long double b; cin >> a >> b; long ans = b * a; cout << ans << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
45
/*--------------------------------- *File name: B.cpp *Creation date: 2020-05-31 20:52 *-------------------------------*/ #include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> #define fi first ...
/*--------------------------------- *File name: B.cpp *Creation date: 2020-05-31 20:52 *-------------------------------*/ #include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> #define fi first ...
[["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 85], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
1
116
a, b = input().split() A = int(a) B = float(b) B100 = int(100*B) C=A*B100 print(C//100)
a, b = input().split() A = int(a) B = float(b) B100 = round(100*B) C=A*B100 print(str(C//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, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
42
require 'bigdecimal' require 'bigdecimal/util' #<= to_d メソッドが使えるようになる a, b = gets.chomp.split(' ') a = a.to_d b = b.to_d puts a*b puts (a*b).floor
require 'bigdecimal' require 'bigdecimal/util' #<= to_d メソッドが使えるようになる a, b = gets.chomp.split(' ') a = a.to_d b = b.to_d puts (a*b).floor
[["-", 0, 493, 0, 652, 3, 4, 0, 738, 31, 22], ["-", 0, 493, 0, 652, 3, 4, 0, 738, 17, 48], ["-", 0, 493, 0, 652, 3, 4, 0, 738, 12, 22], ["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
45
import math line = input().rstrip() line = line.split(' ') A = int(line[0]) B = line[1].split('.') if len(B) == 1: B = int(B[0]) * 100 elif len(B[1]) == 1: B = int(B[0]) * 100 + int(B[1]) * 10 else: B = int(B[0]) * 100 + int(B[1]) C = A * B / 100 print(math.floor(C))
import math line = input().rstrip() line = line.split(' ') A = int(line[0]) B = line[1].split('.') if len(B) == 1: B = int(B[0]) * 100 elif len(B[1]) == 1: B = int(B[0]) * 100 + int(B[1]) * 10 else: B = int(B[0]) * 100 + int(B[1]) C = A * B // 100 print(C)
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 500, 22], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
131
/*Points to be noted : 1)Don't be afraid to fail. 2)Never give up easily,keep trying. 3)Don't care about other ppl's progress. 4)Spend much time on each problem & keep trying. I WILL DO IT!💯*/ // Mere bas ka nahi hai // still i'm trying // apna time aayega // // .--------------. // | Try First One| // ...
/*Points to be noted : 1)Don't be afraid to fail. 2)Never give up easily,keep trying. 3)Don't care about other ppl's progress. 4)Spend much time on each problem & keep trying. I WILL DO IT!💯*/ // Mere bas ka nahi hai // still i'm trying // apna time aayega // // .--------------. // | Try First One| // ...
[["-", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22]]
1
390
#include <bits/stdc++.h> #define forr(i, a, b) for (int i = (a); i < (b); i++) #define rep(i, n) for (int i = 0; i < (n); i++) #define rrep(i, n) for (int i = 1; i <= (n); i++) #define ALL(a) (a.begin()), (a.end()) using namespace std; typedef long long ll; typedef pair<int, int> P; typedef pair<ll, ll> LP; const ll LI...
#include <bits/stdc++.h> #define forr(i, a, b) for (int i = (a); i < (b); i++) #define rep(i, n) for (int i = 0; i < (n); i++) #define rrep(i, n) for (int i = 1; i <= (n); i++) #define ALL(a) (a.begin()), (a.end()) using namespace std; typedef long long ll; typedef pair<int, int> P; typedef pair<ll, ll> LP; const ll LI...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
125
a,b = map(float, input().split()) a=int(a) #print(a) b2=int(b*100) #print(b2) ans=a*b2 #print(ans) ans=int(ans/100) print(ans)
from decimal import * a,b = map(Decimal, input().split()) a=int(a) #print(a) b2=int(b*100) #print(b2) ans=a*b2 #print(ans) ans=int(ans//100) print(ans)
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 0, 690, 0, 48], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["-", 0, 662, 12, 652, 3, 4, 0, 657, 17, 85],...
5
50
import math from decimal import Decimal a,b = map(float,input().split()) b = Decimal(b) print(math.floor(int(a)*b))
import math from decimal import Decimal a,b = map(Decimal,input().split()) b = Decimal(b) print(math.floor(int(a)*b))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
42
/* lllllll tttt l:::::l ttt:::t l:::::l t:::::t l:::::l t:::::t ssssssssss ooooooooooo l::::l ooooooooooo cccccccccccccccc aaaaaaaaaaaaa ttttttt:::::ttttttt ss::::::::::s oo:::::::::::oo l::::l oo:::::::::::oo cc::::::::...
/* lllllll tttt l:::::l ttt:::t l:::::l t:::::t l:::::l t:::::t ssssssssss ooooooooooo l::::l ooooooooooo cccccccccccccccc aaaaaaaaaaaaa ttttttt:::::ttttttt ss::::::::::s oo:::::::::::oo l::::l oo:::::::::::oo cc::::::::...
[["+", 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, 22], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25]]
1
106