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 <cmath> #include <iostream> using namespace std; int main() { long long a; double b; cin >> a >> b; long long intb = round(b * 100.0); cout << a * b / 100 << endl; return 0; }
#include <cmath> #include <iostream> using namespace std; int main() { long long a; double b; cin >> a >> b; long long intb = round(b * 100.0); cout << a * intb / 100 << endl; return 0; }
[["-", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22]]
1
51
#include <cmath> #include <deque> #include <iostream> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(x) (x).begin(), (x).end() #define ctoi(c) c - '0' #define tos(s) to_string(s) typedef long long ll; int main() { ll a; double b; cin >...
#include <cmath> #include <deque> #include <iostream> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(x) (x).begin(), (x).end() #define ctoi(c) c - '0' #define tos(s) to_string(s) typedef long long ll; int main() { ll a; double b; cin >...
[["+", 31, 16, 12, 2, 3, 4, 0, 16, 17, 72], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13]]
1
82
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); double b = sc.nextDouble(); System.out.println((a * (long)(b * 100)) / 100); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); double b = sc.nextDouble(); System.out.println((a * (long)(b * 100 + 0.01)) / 100); } }
[["+", 0, 16, 12, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 16, 12, 74, 51, 23, 0, 16, 12, 515]]
3
75
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <cfloat> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <iomanip> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unorde...
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <cfloat> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <iomanip> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unorde...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
447
#include <bits/stdc++.h> using namespace std; int main() { long long A; float B; cin >> A >> B; long long newB = B * 100; cout << A * newB / 100 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long A; float B; cin >> A >> B; long long newB = B * 100 + 0.5; cout << A * newB / 100 << endl; }
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
43
#include <bits/stdc++.h> using namespace std; #define int long long #define pb push_back #define x first #define y second #define sz(v) (int)v.size() #define all(x) (x).begin(), (x).end() #define PI 3.14159265358979 #define N 200005 int solve() { double a, b; cin >> a >> b; a = a * b + 0.001; int t = a; cout...
#include <bits/stdc++.h> using namespace std; #define int long long #define pb push_back #define x first #define y second #define sz(v) (int)v.size() #define all(x) (x).begin(), (x).end() #define PI 3.14159265358979 #define N 200005 int solve() { long double a, b; cin >> a >> b; a = a * b + 0.001; int t = a; ...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
120
#pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops") #include <bits/stdc++.h> using namespace std; #define ll long long void test_case() { double a, b; cin >> a >> b; cout << (ll)(a * b + 0.001) << endl; } int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int t = 1; // cin >...
#pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops") #include <bits/stdc++.h> using namespace std; #define ll long long void test_case() { long double a, b; cin >> a >> b; cout << (ll)(a * b + 0.001) << endl; } int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int t = 1; // ...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
83
#include <bits/stdc++.h> #define ll long long #define MODV 1000000007 #define INFLL LLONG_MAX // 9223372036854775807 #define EPS 1e-9 #define rep(i, n) for (ll i = 0, i##_len = (ll)(n); i < i##_len; i++) #define repf(i, n) for (ll i = 1, i##_len = (ll)(n + 1); i < i##_len; i++) #define all(v) v.begin(), v.end() #define...
#include <bits/stdc++.h> #define ll long long #define MODV 1000000007 #define INFLL LLONG_MAX // 9223372036854775807 #define EPS 1e-9 #define rep(i, n) for (ll i = 0, i##_len = (ll)(n); i < i##_len; i++) #define repf(i, n) for (ll i = 1, i##_len = (ll)(n + 1); i < i##_len; i++) #define all(v) v.begin(), v.end() #define...
[["+", 0, 1, 0, 11, 12, 2, 63, 23, 0, 22], ["+", 0, 1, 0, 11, 12, 2, 63, 23, 0, 25], ["+", 0, 1, 0, 11, 12, 2, 3, 4, 0, 24], ["+", 12, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 2, 3, 4, 0, 25]]
1
196
a,b = map(float,input().split()) print(int(a*round(100*b)//100))
a,b = map(float,input().split()) print(int(round(a)*round(100*b))//100)
[["+", 31, 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], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
32
#define _CRT_SECURE_NO_WARNINGS #pragma GCC target("avx") #pragma GCC optimize("O3") #include <algorithm> #include <bitset> #include <cassert> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <ctime> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <...
#define _CRT_SECURE_NO_WARNINGS #pragma GCC target("avx") #pragma GCC optimize("O3") #include <algorithm> #include <bitset> #include <cassert> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <ctime> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
601
#define _CRT_SECURE_NO_WARNINGS #pragma target("avx") #pragma optimize("O3") #pragma optimize("unroll-loops") #include <algorithm> #include <bitset> #include <cassert> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <ctime> #include <deque> #include <fstream> #include <functional> #inc...
#define _CRT_SECURE_NO_WARNINGS #pragma target("avx") #pragma optimize("O3") #pragma optimize("unroll-loops") #include <algorithm> #include <bitset> #include <cassert> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <ctime> #include <deque> #include <fstream> #include <functional> #inc...
[["-", 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
636
#include <bits/stdc++.h> using namespace std; int main() { long double B; long long A; cin >> A >> B; long long C = B + 0.00000001 * 100; cout << (A * (long long)C - (A * (long long)C) % 100) / 100 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long double B; long long A; cin >> A >> B; long long C = (B + 0.000001) * 100; cout << (A * (long long)C - (A * (long long)C) % 100) / 100 << endl; }
[["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["-", 0, 43, 49, 50, 51, 16, 12, 16, 31, 13], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25]]
1
64
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <bitset> // bitset #include <cctype> // isupper, islower, isdigit, toupper, tolower #include <cstdint> // int64_t, int*_t #include <cstdio> // printf #include <deque> // deque #include <iostream> // cout, endl, cin ...
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <bitset> // bitset #include <cctype> // isupper, islower, isdigit, toupper, tolower #include <cstdint> // int64_t, int*_t #include <cstdio> // printf #include <deque> // deque #include <iostream> // cout, endl, cin ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
124
#include <bits/stdc++.h> using namespace std; #define int long long typedef pair<int, int> P; int INF = 1e9 + 7; int mod = 1e9 + 7; int dx[4] = {1, 0, -1, 0}; int dy[4] = {0, 1, 0, -1}; signed main() { int A; string S; cin >> A >> S; cout << (A * (S[3] - '0') * 100 + A * (S[2] - '0') * 10 + A * (S[0] - '0')) / ...
#include <bits/stdc++.h> using namespace std; #define int long long typedef pair<int, int> P; int INF = 1e9 + 7; int mod = 1e9 + 7; int dx[4] = {1, 0, -1, 0}; int dy[4] = {0, 1, 0, -1}; signed main() { int A; string S; cin >> A >> S; cout << (A * (S[3] - '0') + A * (S[2] - '0') * 10 + A * (S[0] - '0') * 100) / ...
[["-", 31, 23, 0, 16, 31, 16, 31, 16, 17, 48], ["-", 31, 23, 0, 16, 31, 16, 31, 16, 12, 13], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 17, 48], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 12, 13], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
133
#include <bits/stdc++.h> using namespace std; int main() { long double A, B; cin >> A >> B; cout << long(float(A * B)) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long double A, B; cin >> A >> B; cout << long(floor(A * B)) << endl; }
[["-", 31, 16, 12, 2, 3, 4, 0, 2, 63, 40], ["+", 31, 16, 12, 2, 3, 4, 0, 2, 63, 22]]
1
38
#include <bits/stdc++.h> using namespace std; int main() { int64_t a; double b; cin >> a >> b; int64_t ans = a * b; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int64_t a; long double b; cin >> a >> b; int64_t ans = a * b; cout << ans << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
37
import java.io.*; import java.util.*; public class Main { public static void main(String[] main) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); PrintWriter out = new PrintWriter(System.out); long n =...
import java.io.*; import java.util.*; public class Main { public static void main(String[] main) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); PrintWriter out = new PrintWriter(System.out); long n =...
[["-", 8, 196, 0, 503, 49, 200, 51, 74, 0, 24], ["-", 0, 503, 49, 200, 51, 74, 39, 506, 0, 96], ["-", 8, 196, 0, 503, 49, 200, 51, 74, 0, 25], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 500, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 0, 131], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22]]
3
134
package main import ( "bufio" "fmt" "os" "strconv" ) func main() { A := nextInt64() B := nextFloat64() b := int64(B * 100) fmt.Println((A * b) / 100) } func nextInt() int { v, _ := strconv.Atoi(nextReader()) return v } func nextInt64() int64 { v, _ := strconv.ParseInt(nextReader(), 10, 64) return v } f...
package main import ( "bufio" "fmt" "os" "strconv" ) func main() { A := nextInt64() B := nextFloat64() b := int64(B*100 + 0.001) fmt.Println((A * b) / 100) } func nextInt() int { v, _ := strconv.Atoi(nextReader()) return v } func nextInt64() int64 { v, _ := strconv.ParseInt(nextReader(), 10, 64) return ...
[["+", 12, 432, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 12, 432, 0, 2, 3, 4, 0, 16, 12, 445]]
7
504
from decimal import * a,b=map(float,input().split()) print(int(Decimal(a)*Decimal(b)))
from decimal import * a,b=map(float,input().split()) print(int(Decimal(str(a))*Decimal(str(b))))
[["+", 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
35
#include <bits/stdc++.h> using namespace std; using ll = long long; using Field = vector<vector<ll>>; using Graph = vector<vector<ll>>; using VI = vector<int>; using VL = vector<ll>; using VVL = vector<vector<ll>>; using VC = vector<char>; using PI = pair<int, int>; #define FOR(i, s, n) for (int i = s; i < (n); i++) ...
#include <bits/stdc++.h> using namespace std; using ll = long long; using Field = vector<vector<ll>>; using Graph = vector<vector<ll>>; using VI = vector<int>; using VL = vector<ll>; using VVL = vector<vector<ll>>; using VC = vector<char>; using PI = pair<int, int>; #define FOR(i, s, n) for (int i = s; i < (n); i++) ...
[["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 78], ["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96], ["-", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13]]
1
241
#include <bits/stdc++.h> using namespace std; int main() { int64_t A; double B; cin >> A >> B; int C; C = (int)(B * 100); cout << (A * C) / 100 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int64_t A; double B; cin >> A >> B; int C; C = round(B * 100); cout << (A * C) / 100 << endl; }
[["-", 8, 9, 0, 1, 0, 11, 12, 74, 0, 24], ["-", 0, 1, 0, 11, 12, 74, 39, 77, 39, 40], ["-", 8, 9, 0, 1, 0, 11, 12, 74, 0, 25], ["+", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22]]
1
50
import numpy as np import math #from numba import njit def getVar(): return map(int, input().split()) def getVar(c): return map(c, input().split()) def getArray(): return list(map(int, input().split())) def getArray(c): return list(map(c, input().split())) def getNumpy(): return np.array(list(map(i...
import numpy as np import math from decimal import * #from numba import njit def getVar(): return map(int, input().split()) def getVar(c): return map(c, input().split()) def getArray(): return list(map(int, input().split())) def getArray(c): return list(map(c, input().split())) def getNumpy(): retu...
[["+", 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], ["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22]]
5
192
import math from decimal import decimal a,b=map(input().split()) #パソコンは数値は2進数で表現しますが、2進数では小数点を正確に表現することができないため #10進数表記に変える #小数点を文字列型で定義する a=decimal(a) b=decimal(b) print(math.floor(a*b))
import math from decimal import Decimal a,b=map(str,input().split()) #パソコンは数値は2進数で表現しますが、2進数では小数点を正確に表現することができないため #10進数表記に変える #小数点を文字列型で定義する a=Decimal(a) b=Decimal(b) print(math.floor(a*b))
[["-", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["+", 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, 21], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
46
words = input().split() a = int(words[0]) b = float(words[1]) bb = int(b * 100) abb = a * bb ans = abb // 100 print(ans)
words = input().split() a = int(words[0]) b = float(words[1]) bb = round(b * 100) abb = a * bb ans = abb // 100 print(ans)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
49
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; using ld = long double; #define ALL(x) x.begin(), x.end() #define P pair<int, int> #define MOD 1000000007 int main() { ll a, bi; ld bd; cin >> a >> bd; bi = bd * 100; cout << a * bi / 100 << e...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; using ld = long double; #define ALL(x) x.begin(), x.end() #define P pair<int, int> #define MOD 1000000007 int main() { ll a, bi; ld bd; cin >> a >> bd; bi = round(bd * 100); cout << a * bi / 1...
[["+", 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
77
# -*- codinf: utf-8 -*- A, B = map(float, input().split()) a = int(A) b = int(round(B * 100, 0)) print(b) x = a * b y = x // 100 print(y)
# -*- codinf: utf-8 -*- A, B = map(float, input().split()) a = int(A) b = int(round(B * 100, 0)) x = a * b y = x // 100 print(y)
[["-", 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
54
#include <bits/stdc++.h> #define int long long using namespace std; signed main() { double a, b; cin >> a >> b; cout << (int)(((int)a * (int)(b * 100LL)) / 100LL) << endl; return 0; }
#include <bits/stdc++.h> #define int long long using namespace std; signed main() { double a, b; cin >> a >> b; cout << (int)(((int)a * (int)(b * 100LL + 1e-8)) / 100LL) << endl; return 0; }
[["+", 0, 16, 12, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 16, 12, 74, 51, 23, 0, 16, 12, 13]]
1
56
// 69 #include <algorithm> #include <climits> #include <cmath> #include <iomanip> #include <iostream> #include <numeric> #include <queue> #include <string> #include <vector> using namespace std; using ll = long long; int main() { ll a, b_100, ans; long double b; cin >> a >> b; b_100 = b * 100; ans = a * b_...
// 69 #include <algorithm> #include <climits> #include <cmath> #include <iomanip> #include <iostream> #include <numeric> #include <queue> #include <string> #include <vector> using namespace std; using ll = long long; int main() { ll a, b_100, ans; long double b; cin >> a >> b; b_100 = b * 100 + 0.5; ans = ...
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
75
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { double b, b2; ll a, b1; ll ans; cin >> a >> b; b1 = b * 100.0; cout << (a * b1) / 100; return 0; }
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { double b, b2; ll a, b1; ll ans; cin >> a >> b; b1 = b * 100 + .1; cout << (a * b1) / 100; return 0; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
53
#include <algorithm> #include <bitset> #include <cassert> #include <complex> #include <cstdio> #include <cstring> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <vector> using namespace std; typedef long long...
#include <algorithm> #include <bitset> #include <cassert> #include <complex> #include <cstdio> #include <cstring> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <vector> using namespace std; typedef long long...
[["+", 12, 23, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 12, 23, 0, 2, 3, 4, 0, 16, 12, 13]]
1
2,452
#include <bits/stdc++.h> using namespace std; // 小数点以下桁数 // fixed << setprecision(i) int gcd(int a, int b) { return (a % b == 0 ? b : gcd(b, a % b)); } int64_t lcm(int a, int b) { return (int64_t)a * b / gcd(a, b); } int factorial(int a) { int b = 1; while (a) { b *= a--; } return b; } // 13以下対応 bool is_p...
#include <bits/stdc++.h> using namespace std; // 小数点以下桁数 // fixed << setprecision(i) int gcd(int a, int b) { return (a % b == 0 ? b : gcd(b, a % b)); } int64_t lcm(int a, int b) { return (int64_t)a * b / gcd(a, b); } int factorial(int a) { int b = 1; while (a) { b *= a--; } return b; } // 13以下対応 bool is_p...
[["+", 0, 37, 0, 16, 31, 74, 51, 2, 63, 22], ["+", 12, 16, 31, 16, 12, 74, 51, 2, 63, 22]]
1
236
package main import ( "bufio" "fmt" "math" "os" "strconv" "strings" ) var sc = bufio.NewReaderSize(os.Stdin, 1024*1024*10) func main() { list := getStdinArr() N, _ := strconv.Atoi(list[0]) M, _ := strconv.ParseFloat(list[1], 64) n := N m := int(math.Trunc(M * 100)) fmt.Printf("%d\n", (n*m)/100) } func g...
package main import ( "bufio" "fmt" "math" "os" "strconv" "strings" ) var sc = bufio.NewReaderSize(os.Stdin, 1024*1024*10) func main() { list := getStdinArr() N, _ := strconv.Atoi(list[0]) M, _ := strconv.ParseFloat(list[1], 64) n := N m := int(math.Round(M * 100)) fmt.Printf("%d\n", (n*m)/100) } func g...
[["-", 0, 2, 3, 4, 0, 2, 63, 438, 119, 120], ["+", 0, 2, 3, 4, 0, 2, 63, 438, 119, 120]]
7
415
#include <bits/stdc++.h> using namespace std; int main(void) { long long A; double B; cin >> A >> B; int B_ = B * 100 + 0.5; long long ans = A * B / 100; cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { long long A; double B; cin >> A >> B; int B_ = B * 100 + 0.5; long long ans = (A * B_) / 100; cout << ans << endl; return 0; }
[["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["-", 0, 43, 49, 50, 51, 16, 31, 16, 12, 22], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25]]
1
54
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) using ll = long long; using ull = unsigned long long; using P = pair<int, int>; using PP = pair<int, pair<int, int>>; using T = tuple<string, int, int>; const ll INF = 1LL << 60; int main() { ull a; cin >> a; double b; ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) using ll = long long; using ull = unsigned long long; using P = pair<int, int>; using PP = pair<int, pair<int, int>>; using T = tuple<string, int, int>; const ll INF = 1LL << 60; int main() { ull a; cin >> a; double b; ...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
119
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> P; typedef long long ll; #define int ll main() { ll a; double b; cin >> a >> b; b *= 100.11; ll b2 = (ll)b; ll ans = (ll)a * b2 / 100; printf("%lld\n", ans); return 0; }
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> P; typedef long long ll; #define int ll main() { ll a; double b; cin >> a >> b; b *= 100.1; ll b2 = (ll)b; ll ans = (ll)a * b2 / 100; printf("%lld\n", ans); return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]]
1
77
x=input().split() a=int(x[0]) b=round(x[1]*100) print(int(a*b//100))
x=input().split() a=int(x[0]) b=round(float(x[1])*100) print(int(a*b//100))
[["+", 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
40
from decimal import Decimal a, b = input().split() a = int(a) b = Decimal(b) ans = a * b print(ans) print(int(ans))
from decimal import Decimal a, b = input().split() a = int(a) b = Decimal(b) ans = a * b print(int(ans))
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24]]
5
43
import math line = input().split() a = int(line[0]) b = int(100 * float(line[1])) # c = round(a * b) = a * (b * 100) / 100 print(int(a*b//100))
import math line = input().split() a = int(line[0]) b = round(100 * float(line[1])) # c = round(a * b) = a * (b * 100) / 100 # for n in range(10): # for j in range(100): # b2 = n+j/100 # b2 = b2 * 100 # if round(b2) != math.floor(b2): # print('!?') # p...
[["-", 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, 657, 31, 23, 0, 25], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
46
import math line = input().split() a = int(line[0]) b = int(100 * float(line[1])) # c = round(a * b) = a * (b * 100) / 100 print(a*b//100)
import math line = input().split() a = int(line[0]) b = round(100 * float(line[1])) # c = round(a * b) = a * (b * 100) / 100 print(int(a*b//100))
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
43
import math line = input().split() a = int(line[0]) b = 100 * float(line[1]) # c = round(a * b) = a * (b * 100) / 100 print(a*b//100)
import math line = input().split() a = int(line[0]) b = round(100 * float(line[1])) # c = round(a * b) = a * (b * 100) / 100 print(a*b//100)
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 25]]
5
40
a,b=input().split() a=int(a) b=float(b) b*=100 b=int(b) c=a*b c//=100 print(c)
a,b=input().split() a=int(a) b=float(b) b*=100 b+=0.00000000001 b=int(b) c=a*b c//=100 print(c)
[["+", 36, 36, 0, 656, 0, 1, 0, 677, 17, 107], ["+", 36, 36, 0, 656, 0, 1, 0, 677, 12, 531], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22]]
5
44
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; int main() { // 制約見て!!!デカかったらlong longにすること! ll a; double b; ll b_; cin >> a >> b; b_ = b * 100; cout << (a * b_) / 100 << endl; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; int main() { // 制約見て!!!デカかったらlong longにすること! ll a; double b; ll b_; cin >> a >> b; b_ = round(b * 100); cout << a * b_ / 100 << endl; }
[["+", 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], ["-", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["-", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25]]
1
60
#include <algorithm> #include <iostream> #include <math.h> #include <string> #include <vector> using namespace std; #define INF 10000000000 int main() { long long a, bi, ans; double b; cin >> a >> b; bi = floor(b * 100); ans = a * bi; ans /= 100; cout << ans; return 0; }
#include <algorithm> #include <iostream> #include <math.h> #include <string> #include <vector> using namespace std; #define INF 10000000000 int main() { long long a, bi, ans; double b; cin >> a >> b; bi = round(b * 100); ans = a * bi; ans /= 100; cout << ans; return 0; }
[["-", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22]]
1
66
#include <bits/stdc++.h> using namespace std; inline int toInt(string s) { int v; istringstream sin(s); sin >> v; return v; } template <class T> inline string toString(T x) { ostringstream sout; sout << x; return sout.str(); } typedef long long ll; typedef vector<int> VI; typedef vector<VI> VVI; typedef...
#include <bits/stdc++.h> using namespace std; inline int toInt(string s) { int v; istringstream sin(s); sin >> v; return v; } template <class T> inline string toString(T x) { ostringstream sout; sout << x; return sout.str(); } typedef long long ll; typedef vector<int> VI; typedef vector<VI> VVI; typedef...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
403
#include <bits/stdc++.h> using namespace std; int main() { long long int a; cin >> a; string s; cin >> s; int b = 0; int p = (s[0] - '0'); int q = (s[2] - '0'); int r = (s[3] - '0'); b = b + ((p * 100) + (10 * q) + (1 * r)); b = (b * a); cout << (b / 100) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long int a; cin >> a; string s; cin >> s; long long int b = 0; int p = (s[0] - '0'); int q = (s[2] - '0'); int r = (s[3] - '0'); b = b + ((p * 100) + (10 * q) + (1 * r)); b = (b * a); cout << (b / 100) << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
117
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ll a; double b; cin >> a >> b; ll k = b * 100; // cout<<k<<endl; ll m = (a * k) / 100; cout << m << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ll a; double b; cin >> a >> b; ll k = b * 100 + 0.5; // cout<<k<<endl; ll m = (a * k) / 100; cout << m << endl; return 0; }
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
55
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ll a; double b; cin >> a >> b; long double k = b * 100 + 1e-4; // cout<<k<<endl; ll m = (a * k) / 100; cout << m << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ll a; double b; cin >> a >> b; ll k = b * 100 + 1e-4; // cout<<k<<endl; ll m = (a * k) / 100; cout << m << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
58
#include <cstdio> #include <iostream> using namespace std; long long a; double b; int main() { cin >> a >> b; cout << (a * (long long)(b * 100)) / 100 << endl; return 0; }
#include <cstdio> #include <iostream> using namespace std; long long a; double b; int main() { cin >> a >> b; cout << (a * (long long)(b * 100 + 1e-8)) / 100 << endl; return 0; }
[["+", 0, 16, 12, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 16, 12, 74, 51, 23, 0, 16, 12, 13]]
1
50
#include <bits/stdc++.h> using namespace std; int main(void) { long long int aint, bint, ans; double bdouble; cin >> aint >> bdouble; bint = bdouble * 100; ans = aint * bint / 100; cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { long long int aint, bint, ans; double bdouble; cin >> aint >> bdouble; bint = round(bdouble * 100); ans = aint * bint / 100; cout << ans << endl; return 0; }
[["+", 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
54
/* I have already deleted My old account because somebody stole my code and i have no idea how. If you are copying this code atleast make it look different Yours Faithfully Shobhit Yadav */ #include <bits/stdc++.h> using namespace std; #define ll long long long double A, B; /*ll freq[200005];*/ void solve() { /*mem...
/* I have already deleted My old account because somebody stole my code and i have no idea how. If you are copying this code atleast make it look different Yours Faithfully Shobhit Yadav */ #include <bits/stdc++.h> using namespace std; #define ll long long ll A; double B; /*ll freq[200005];*/ void solve() { /*memset...
[["-", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96], ["-", 36, 36, 0, 30, 0, 43, 39, 86, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 78], ["-", 36, 36, 36, 36, 0, 30, 0, 43, 0, 21], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 0, 35], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 3...
1
86
#include <algorithm> #include <bits/stdc++.h> #include <deque> #include <math.h> #include <queue> #include <string.h> #include <vector> #define ll long long #define M 1000000007 #define MM 998244353 #define INF (1LL << 60) - 1 using namespace std; ll prck(ll n) { ll f = 1; if (n == 1) f = 0; else if (n == 2)...
#include <algorithm> #include <bits/stdc++.h> #include <deque> #include <math.h> #include <queue> #include <string.h> #include <vector> #define ll long long #define M 1000000007 #define MM 998244353 #define INF (1LL << 60) - 1 using namespace std; ll prck(ll n) { ll f = 1; if (n == 1) f = 0; else if (n == 2)...
[["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 85], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
2,718
#define _USE_MATH_DEFINES #include <bits/stdc++.h> #define USE_LLONG_AS_INT #ifdef USE_LLONG_AS_INT #define int long long #define inf (1ll << 60) #else #define inf (1 << 30) #endif #define rep(i, n) for (int i = 0; i < (n); i++) #define Rep(i, a, b) for (int i = (a); i < (b); i++) #define REP(i, a, b) for (int i = (a);...
#define _USE_MATH_DEFINES #include <bits/stdc++.h> #define USE_LLONG_AS_INT #ifdef USE_LLONG_AS_INT #define int long long #define inf (1ll << 60) #else #define inf (1 << 30) #endif #define rep(i, n) for (int i = 0; i < (n); i++) #define Rep(i, a, b) for (int i = (a); i < (b); i++) #define REP(i, a, b) for (int i = (a);...
[["+", 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
234
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int a, b2; double b1; cin >> a >> b1; b2 = b1 * 100 + 0.5; cout << a * b2 / 100 << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll a, b2; double b1; cin >> a >> b1; b2 = b1 * 100 + 0.5; cout << a * b2 / 100 << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
49
#create date: 2020-06-30 09:34 import sys stdin = sys.stdin def ns(): return stdin.readline().rstrip() def ni(): return int(ns()) def na(): return list(map(int, stdin.readline().split())) def main(): a, b = ns().split() a = int(a) b = int(float(b)*100) print(a*b//100) if __name__ == "__main__": ...
#create date: 2020-06-30 09:34 import sys stdin = sys.stdin def ns(): return stdin.readline().rstrip() def ni(): return int(ns()) def na(): return list(map(int, stdin.readline().split())) def main(): a, b = ns().split() a = int(a) b = int(float(b)*100+0.5) print(a*b//100) if __name__ == "__main__": ...
[["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 531]]
5
109
#include <bits/stdc++.h> using namespace std; int main() { long long a; double b; cin >> a >> b; long double c = a * b; long long res = c; cout << res << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long double a, b; cin >> a >> b; long double c = a * b; long long res = c; cout << res << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21]]
1
48
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)n; i++) #define rep1(i, n) for (int i = 1; i <= (int)n; i++) #define sp(n) cout << fixed << setprecision(n) template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)n; i++) #define rep1(i, n) for (int i = 1; i <= (int)n; i++) #define sp(n) cout << fixed << setprecision(n) template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 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
148
A, B = input().split() A = int(A) B = float(B) * 100 + 0.5 print(A * B // 100)
A, B = input().split() A = int(A) B = int(float(B) * 100 + 0.05) print(A * B // 100)
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 531], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 531], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
35
A, B = map(float, input().split()) B = B * 100 + 1 B = int(B) print(int(A) * B // 100)
A, B = map(float, input().split()) B = B * 100 + 0.01 B = int(B) print(int(A) * B // 100)
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 531]]
5
40
A, B = map(float, input().split()) B = (B + 0.1)* 100 B = int(B) print(int(A) * B // 100)
A, B = map(float, input().split()) B = B * 100 + 0.1 B = int(B) print(int(A) * B // 100)
[["-", 0, 1, 0, 662, 12, 657, 31, 23, 0, 24], ["-", 0, 662, 12, 657, 31, 23, 0, 657, 17, 72], ["-", 0, 662, 12, 657, 31, 23, 0, 657, 12, 531], ["-", 0, 1, 0, 662, 12, 657, 31, 23, 0, 25], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 531]]
5
42
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <vector> using namespace std; using ll = long long; #define REP(i, n) for (int i = 0; i < n; ++i) constexpr ll MOD = 1e9 + 7; constexpr ll INF = 1LL << 60; constexpr int MAX = 22; vector<int> e; int main() { long dou...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <vector> using namespace std; using ll = long long; #define REP(i, n) for (int i = 0; i < n; ++i) constexpr ll MOD = 1e9 + 7; constexpr ll INF = 1LL << 60; constexpr int MAX = 22; vector<int> e; int main() { long dou...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
101
#include <bits/stdc++.h> using namespace std; typedef long long int ll; const ll mod = 1e9 + 7; int main() { double a, b; cin >> a >> b; int ans = a * b; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long int ll; const ll mod = 1e9 + 7; int main() { long double a, b; cin >> a >> b; ll ans = a * b; cout << ans << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
50
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { // 標準入力高速化のおまじない // scanfとの同期を切る。以降紛らわしいのでscanf使用不可。 ios::sync_with_stdio(false); // // cin前の自動flashをやめる cin.tie(nullptr); ll A; double B; cin >> A >> B; int _B = 100 * B; ll result = A * _B / 100; cout << result << ...
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { // 標準入力高速化のおまじない // scanfとの同期を切る。以降紛らわしいのでscanf使用不可。 ios::sync_with_stdio(false); // // cin前の自動flashをやめる cin.tie(nullptr); ll A; double B; cin >> A >> B; // double誤差対策 int _B = round(100 * B); ll result = A * _B / 10...
[["+", 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
72
#include <algorithm> #include <climits> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <set> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); ++i) #define REP(i, n) for (int i = 0; i <= (n); ++i) #define all(x) (x).begin(), (x).end() using namespace std; ty...
#include <algorithm> #include <climits> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <set> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); ++i) #define REP(i, n) for (int i = 0; i <= (n); ++i) #define all(x) (x).begin(), (x).end() using namespace std; ty...
[["+", 49, 50, 51, 2, 3, 4, 0, 16, 17, 72], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 12, 13]]
1
122
#include <bits/stdc++.h> using namespace std; int main() { int A; long double B; cin >> A >> B; long double e = A * B; int f = e; // ここでdouble型からint型への変換が起こる(小数点以下が切り捨てられて3になる) cout << f << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long A; long double B; cin >> A >> B; long double e = A * B; long long f = e; // ここでdouble型からint型への変換が起こる(小数点以下が切り捨てられて3になる) cout << f << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
45
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(); long c = (long)(b * 100.0); long ans = a * c / 100; System.out.println(ans); } }
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(); long c = (long)(b * 100.0 + 0.5); long ans = a * c / 100; System.out.println(ans); } }
[["+", 49, 200, 51, 74, 51, 23, 0, 16, 17, 72], ["+", 49, 200, 51, 74, 51, 23, 0, 16, 12, 515]]
3
83
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rfor(i, a, b) for (int i = a; i < (b); i++) #define zfor(i, a) for (int i = 0; i < (a); i++) #define brfor(i, a, b) for (int i = (b)-1; i >= a; i--) #define bzfor(i, a) for (int i = (a)-1; i >= 0; i--) int main() { double a, b; cin >> a >>...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rfor(i, a, b) for (int i = a; i < (b); i++) #define zfor(i, a) for (int i = 0; i < (a); i++) #define brfor(i, a, b) for (int i = (b)-1; i >= a; i--) #define bzfor(i, a) for (int i = (a)-1; i >= 0; i--) int main() { ll a; double b; cin >>...
[["-", 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
91
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)
[["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 3, 4, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 676]]
5
46
a,b = input().split() a = int(a) b = float(b) p = a*b % 1 ans = int(a*b - p) print(ans)
from decimal import Decimal a,b = input().split() a = int(a) b = Decimal(b) p = a*b % 1 ans = int(a*b - p) print(ans)
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
44
import math a,b=input().split() a=int(a) b=float(b) jou=a*b print(math.floor(jou))
import math import decimal a,b=input().split() a=int(a) b=decimal.Decimal(b) jou=a*b print(math.floor(jou))
[["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22]]
5
39
#include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> //#include <ext/pb_ds/tree_policy.hpp> //#include <functional> // for less // using namespace __gnu_pbds; using namespace std; typedef long long L; L n, m; double d; int main() { cin >> n >> d; m = (d * 100); n = (n * m) / 100; cout << n << en...
#include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> //#include <ext/pb_ds/tree_policy.hpp> //#include <functional> // for less // using namespace __gnu_pbds; using namespace std; typedef long long L; L n, m; double d; int main() { cin >> n >> d; m = d * 100 + .01; n = (n * m) / 100; cout << n <...
[["-", 8, 9, 0, 1, 0, 11, 12, 23, 0, 24], ["-", 8, 9, 0, 1, 0, 11, 12, 23, 0, 25], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
64
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef vector<ll> vll; typedef vector<vll> vvll; typedef pair<ll, ll> pll; #define fs first #define re resize #define sc second #define pb push_back #define eb emplace_back #define MP make_pair #define all(x) x.begin(), x.end()...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef vector<ll> vll; typedef vector<vll> vvll; typedef pair<ll, ll> pll; #define fs first #define re resize #define sc second #define pb push_back #define eb emplace_back #define MP make_pair #define all(x) x.begin(), x.end()...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]]
1
522
#include <bits/stdc++.h> using namespace std; int main() { long long A; long double B; cin >> A >> B; long long num = 100 * B; cout << A * num / 100; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long A; long double B; cin >> A >> B; long long num = (100 * B + 0.001); cout << A * num / 100; return 0; }
[["+", 8, 9, 0, 43, 49, 50, 51, 23, 0, 24], ["+", 0, 43, 49, 50, 51, 23, 0, 16, 17, 72], ["+", 0, 43, 49, 50, 51, 23, 0, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 23, 0, 25]]
1
45
import math from sys import stdin data = stdin.readline().rstrip() product = int(data.split()[0]) * float(data.split()[1]) print(math.floor(product))
import math from decimal import Decimal from sys import stdin data = stdin.readline().rstrip() product = Decimal(data.split()[0]) * Decimal(data.split()[1]) print(math.floor(product))
[["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["-", 0, 1, 0, 662, 12, 657, 31, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 657, 31, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 657, 12, 65...
5
51
a,b = map(float, input().split()) print(int(a*int(b*100))//100)
from decimal import Decimal a,b = map(Decimal,input().split()) print(int(a*int(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
32
#include <bits/stdc++.h> using namespace std; /********************************************************************/ #define M1 1000000007 #define M2 998244353 #define ll long long #define pll pair<ll, ll> #define REP(i, a, b) for (ll i = a; i < b; i++) #define REPR(i, a, b) for (ll i = b - 1; i >= a; i--) #define for...
#include <bits/stdc++.h> using namespace std; /********************************************************************/ #define M1 1000000007 #define M2 998244353 #define ll long long #define pll pair<ll, ll> #define REP(i, a, b) for (ll i = a; i < b; i++) #define REPR(i, a, b) for (ll i = b - 1; i >= a; i--) #define for...
[["+", 0, 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
200
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <string> using namespace std; typedef long long ll; typedef pair<ll, ll> P; ll inf = 1000000007; int main() { ll a; cin >> a; float b; cin >> b; ll ib = b * 100; a *= ib; a /= 100; cout << a << endl; return 0; }
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <string> using namespace std; typedef long long ll; typedef pair<ll, ll> P; ll inf = 1000000007; int main() { ll a; cin >> a; double b; cin >> b; ll ib = b * 100 + 0.5; a *= ib; a /= 100; cout << a << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
77
#include <bits/stdc++.h> using namespace std; #define int long long #define double long double #define SZ(x) ((int)(x).size()) #define rep(i, n) for (int i = 0; i < (n); ++i) #define fore(i, a) for (auto &i : a) #define min(...) min({__VA_ARGS__}) #define max(...) max({__VA_ARGS__}) #define Yes cout << "Yes" << endl; #...
#include <bits/stdc++.h> using namespace std; #define int long long #define double long double #define SZ(x) ((int)(x).size()) #define rep(i, n) for (int i = 0; i < (n); ++i) #define fore(i, a) for (auto &i : a) #define min(...) min({__VA_ARGS__}) #define max(...) max({__VA_ARGS__}) #define Yes cout << "Yes" << endl; #...
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
257
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) typedef long long ll; using namespace std; int main() { ll a; double b; cin >> a >> b; b *= 100 + 0.5; ll s; ll c; c = floor(b); s = c % 100; c /= 100; ll ans; ans = a * c + a * s / 100; cout << ans << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) typedef long long ll; using namespace std; int main() { ll a; double b; cin >> a >> b; b = b * 100 + 0.5; ll s; ll c; c = floor(b); s = c % 100; c /= 100; ll ans; ans = a * c + a * s / 100; cout << ans << endl; return 0; }...
[["-", 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]]
1
90
# -*- coding: utf-8 -*- from decimal import Decimal str_A,str_B = input().rstrip().split() A = int(str_A) B = Decimal(str_B) print(A*B)
# -*- coding: utf-8 -*- from decimal import Decimal str_A,str_B = input().rstrip().split() A = int(str_A) B = Decimal(str_B) print( int(A*B) )
[["+", 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
38
# -*- coding: utf-8 -*- str_A,str_B = input().rstrip().split() A = int(str_A) B = int(str_B.replace(".","")) # B * 100 print("ans",A*B//100)
# -*- coding: utf-8 -*- str_A,str_B = input().rstrip().split() A = int(str_A) B = int(str_B.replace(".","")) # B * 100 print(A*B//100)
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21]]
5
51
#include <bits/stdc++.h> using namespace std; #define all(v) (v).begin(), (v).end() #define lp(i, n) for (int i = 0; i < (n); ++i) #define sz(v) (ll)(v).size() #define int long long #define mod 1000000007 void solve() { int a; cin >> a; double b; cin >> b; int ans = (b * 100); cout << (a * ans) / 100 << "\...
#include <bits/stdc++.h> using namespace std; #define all(v) (v).begin(), (v).end() #define lp(i, n) for (int i = 0; i < (n); ++i) #define sz(v) (ll)(v).size() #define int long long #define mod 1000000007 void solve() { int a; cin >> a; long double b; cin >> b; int ans = round(b * 100); cout << (a * ans) /...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22]]
1
123
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long a = sc.nextInt(); int b = (int)(sc.nextDouble() * 100 + 0.5); System.out.println(a * b); } }
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = (long)(sc.nextDouble() * 100 + 0.5); System.out.println(a * b / 100); } }
[["-", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 0, 503, 49, 200, 51, 74, 39, 506, 0, 507], ["+", 0, 503, 49, 200, 51, 74, 39, 506, 0, 96], ["+", 0, 1, 0, 492, 3, 4, 0...
3
72
#include <bits/stdc++.h> using namespace std; int main(void) { unsigned long int A; double B; cin >> A >> B; int C = 100 * B; if (A == 0 || C == 0) { cout << 0 << endl; } else { cout << A * C / 100 << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { unsigned long int A; float B; cin >> A >> B; int C = 100 * B + 0.5; if (A == 0 || C == 0) { cout << 0 << endl; } else { cout << A * C / 100 << endl; } return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
68
input = gets.chomp.split(' ').map(&:to_f) answer = input[0]*input[1] p answer.floor
input = gets.chomp.split(' ').map(&:to_r) answer = input[0]*input[1] p answer.floor
[["-", 0, 662, 12, 652, 3, 4, 0, 752, 0, 753], ["+", 0, 662, 12, 652, 3, 4, 0, 752, 0, 753]]
4
33
require 'bigdecimal' a, b = gets.split (BigDecimal((a).to_s) * BigDecimal(b)).floor
require 'bigdecimal' a, b = gets.split print (BigDecimal((a).to_s) * BigDecimal(b)).floor
[["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
28
// Bismillah .Ya Allah... #include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef pair<int, int> PII; const int mod = 1e9 + 7, INF = 1e9; const ll mx = 1e18; int main() { ios::sync_with_stdio(0); cin.tie(0); ll a, ans; double b; cin >> a >> b; ll b1 = (b * 100) + 001; ans = (a * b1...
// Bismillah .Ya Allah... #include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef pair<int, int> PII; const int mod = 1e9 + 7, INF = 1e9; const ll mx = 1e18; int main() { ios::sync_with_stdio(0); cin.tie(0); ll a, ans; double b; cin >> a >> b; ll b1 = (b * 100) + 0.001; ans = (a * ...
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
105
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); int b = (int)(sc.nextDouble() * 100); System.out.println((a * b) / 100); sc.close(); } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); int b = (int)(sc.nextDouble() * 100 + 0.01); System.out.println((a * b) / 100); sc.close(); } }
[["+", 49, 200, 51, 74, 51, 23, 0, 16, 17, 72], ["+", 49, 200, 51, 74, 51, 23, 0, 16, 12, 515]]
3
81
a, b = input().split() a = int(a) b = float(b) print(int(a * b))
from decimal import * a, b = input().split() a = int(a) b = Decimal(b) print(int(a * b))
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 0, 690, 0, 48], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
32
import math A, B = map(str, input().split()) A = int(A) B = list(B) del B[1] B = ''.join(B) B_int = int(B) print(math.floor(A * B_int / 100))
import math A, B = map(str, input().split()) A = int(A) B = list(B) del B[1] B = ''.join(B) B_int = int(B) print((A * B_int) // 100)
[["-", 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], ["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 85], ["-", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 676], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
63
A, B = list(map(float, input().split())) print(int(A * B // 1))
from decimal import * A, B = list(map(Decimal, input().split())) print(int(A * B // 1))
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 0, 690, 0, 48], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
30
p gets.split.map(&:to_f).inject(:*).floor
p gets.split.map(&:to_r).inject(:*).floor
[["-", 486, 652, 486, 652, 3, 4, 0, 752, 0, 753], ["+", 486, 652, 486, 652, 3, 4, 0, 752, 0, 753]]
4
17
#include <bits/stdc++.h> using namespace std; using ll = long long; const int mod = 1e9 + 7; struct mint { ll x; // typedef long long ll; mint(ll x = 0) : x((x % mod + mod) % mod) {} mint operator-() const { return mint(-x); } mint &operator+=(const mint a) { if ((x += a.x) >= mod) x -= mod; r...
#include <bits/stdc++.h> using namespace std; using ll = long long; const int mod = 1e9 + 7; struct mint { ll x; // typedef long long ll; mint(ll x = 0) : x((x % mod + mod) % mod) {} mint operator-() const { return mint(-x); } mint &operator+=(const mint a) { if ((x += a.x) >= mod) x -= mod; r...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
787
#include <bits/stdc++.h> #define ll long long int using namespace std; int main() { ll a; double b; cin >> a >> b; ll ans = int(b * 100); ll result = (a * ans) / 100; cout << (result) << endl; return 0; }
#include <bits/stdc++.h> #define ll long long int using namespace std; int main() { ll a; double b; cin >> a >> b; ll ans = (b * 100) + 0.5; ll result = (a * ans) / 100; cout << (result) << endl; return 0; }
[["-", 8, 9, 0, 43, 49, 50, 51, 2, 63, 40], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
59
#include <algorithm> #include <iostream> #include <numeric> #include <string> #include <vector> using namespace std; int main() { long long a; double b; cin >> a >> b; long long handB = 100 * b; cout << a * handB / 100 << endl; }
#include <algorithm> #include <iostream> #include <numeric> #include <string> #include <vector> using namespace std; int main() { long long a; double b; cin >> a >> b; long long handB = 100 * b + 0.001; cout << a * handB / 100 << endl; }
[["+", 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 = int(A) B = float(B) B_ = round(B*100) C = A*B_ C_ = str(C) if C < 100: print(0) else: print(C[:-2])
#A,B = 664706138336385, 9.79 A, B = input().split() A = int(A) B = float(B) B_ = round(B*100) C = A*B_ C_ = str(C) if C < 100: print(0) else: print(C_[:-2])
[["-", 0, 1, 0, 652, 3, 4, 0, 206, 51, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 206, 51, 22]]
5
62
import math a_b = input().split() a = int(a_b[0]) b = int(a_b[1].replace('.', '')) print(int(a * b / 100))
a_b = input().split() a = int(a_b[0]) b = int(a_b[1].replace('.', '')) print(a * b // 100)
[["-", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["-", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 676], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
50
from decimal import Decimal A,B = input().split() b = Decimal(B) print(int(A*b))
from decimal import Decimal A,B = input().split() b = Decimal(B) print(int(int(A)*b))
[["+", 0, 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
30
#include <cmath> #include <iostream> using namespace std; int main() { // Input numbers long long a; double b; cin >> a >> b; long long b_100 = b * 100; // Output cout << (long long)(a * b_100 / 100) << endl; return 0; }
#include <cmath> #include <iostream> using namespace std; int main() { // Input numbers long long a; double b; cin >> a >> b; long long b_100 = round(b * 100); // Output cout << (long long)((a * b_100) / 100) << endl; return 0; }
[["+", 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], ["+", 12, 74, 51, 23, 0, 16, 31, 23, 0, 24], ["+", 12, 74, 51, 23, 0, 16, 31, 23, 0, 25]]
1
56
#include <cmath> #include <iostream> using namespace std; int main() { // Input numbers long long a; double b; cin >> a >> b; int b_100 = b * 100; // Output cout << (long long)(a * b_100) / 100 << endl; return 0; }
#include <cmath> #include <iostream> using namespace std; int main() { // Input numbers long long a; double b; cin >> a >> b; int b_100 = round(b * 100); // Output cout << (long long)((a * b_100) / 100) << endl; return 0; }
[["+", 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], ["+", 12, 74, 51, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 12, 74, 51, 23, 0, 25]]
1
55
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) typedef long long int ll; typedef pair<int, int> P; int main() { long double a, b; cin >> a >> b; cout << floor(a * b) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) typedef long long int ll; typedef pair<int, int> P; int main() { long double a, b; cin >> a >> b; // cout << floor(a * b) << endl; cout << setprecision(30) << floor(a * b) << endl; return 0; }
[["+", 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
61