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> // #include <iostream> // cout, endl, cin // #include <string> // string, to_string, stoi // #include <vector> // vector // #include <algorithm> // min, max, swap, sort, reverse, lower_bound, // upper_bound #include <utility> // pair, make_pair #include <tuple> // tuple, // make_tuple #include...
#include <bits/stdc++.h> // #include <iostream> // cout, endl, cin // #include <string> // string, to_string, stoi // #include <vector> // vector // #include <algorithm> // min, max, swap, sort, reverse, lower_bound, // upper_bound #include <utility> // pair, make_pair #include <tuple> // tuple, // make_tuple #include...
[["+", 0, 16, 31, 16, 12, 74, 51, 23, 0, 24], ["+", 0, 16, 31, 16, 12, 74, 51, 23, 0, 25]]
1
1,318
#include <iostream> int main() { long long a; double b; std::cin >> a >> b; long long ans = a * b; std::cout << ans << std::endl; return 0; }
#include <iostream> int main() { long long a; long double b; std::cin >> a >> b; long long ans = a * b; std::cout << ans << std::endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
44
#include <bits/stdc++.h> using namespace std; int main() { double a, b; cin >> a >> b; cout << (long long)floor(a * b) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long double a, b; cin >> a >> b; cout << (long long)floor(a * b) << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
41
# require 'bigdecimal' # require 'bigdecimal/util' # a, b = gets.split.map(&:to_d) # puts (a*b).floor a, b = gets.split.map(&:to_s) a = a.to_i # そのまま(a*b).floorすると精度が足りずWAになる # bをb*100して整数にしてから100で割る # しかし,b*100するときにも誤差が出てしまう # bを文字列として扱い,小数点の前後でsplitして計算する # bを文字列にキャストして,小数点でsplitして,各要素をintegerに戻す bb = b.split(".")...
# require 'bigdecimal' # require 'bigdecimal/util' # a, b = gets.split.map(&:to_d) # puts (a*b).floor a, b = gets.split.map(&:to_s) a = a.to_i # そのまま(a*b).floorすると精度が足りずWAになる # bをb*100して整数にしてから100で割る # しかし,b*100するときにも誤差が出てしまう # bを文字列として扱い,小数点の前後でsplitして計算する # bを文字列にキャストして,小数点でsplitして,各要素をintegerに戻す bb = b.split(".")...
[["-", 36, 36, 0, 493, 0, 652, 3, 4, 0, 22], ["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
64
import math from decimal import Decimal from sys import stdin def get_result(data): A, B = data return A * int(B*100) // 100 if __name__ == '__main__': data = stdin.readline().rstrip().split(' ') data = [int(data[0]), float(data[1])] result = get_result(data) print(result)
import math from decimal import Decimal from sys import stdin def get_result(data): A, B = data return A * int(B * 100) // 100 if __name__ == '__main__': data = stdin.readline().rstrip().split(' ') data = [int(data[0]), Decimal(data[1])] result = get_result(data) print(result)
[["-", 0, 1, 0, 662, 12, 634, 0, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 634, 0, 652, 63, 22]]
5
86
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define MAX 1000000000000000000 int main() { long long A; int inte = 0; double B, few; cin >> A >> B; while (B - inte >= 1) inte++; few = B - inte; long long ans = few * A + inte * A; cout << ans << endl...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define MAX 1000000000000000000 int main() { long long A; int inte = 0; long double B, few; cin >> A >> B; while (B - inte >= 1) inte++; few = B - inte; long long ans = few * A + inte * A; cout << ans <<...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
78
#include <algorithm> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> #define repr...
#include <algorithm> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> #define repr...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 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
171
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { ll a; double b; cin >> a >> b; ll bn = b * 100; a *= bn; a /= 100; cout << a << endl; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { ll a; double b; cin >> a >> b; ll bn = b * 100 + 0.1; a *= bn; a /= 100; cout << a << endl; }
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
69
a=list(map(float,input().split())) m=1 for x in a: m=m*x print(int(m))
import decimal a=list(map(decimal.Decimal,input().split())) m=1 for x in a: m=m*x print(int(m))
[["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 3, 4, 0, 652, 3, 4, 0, 319, 500, 22], ["+", 3, 4, 0, 652, 3, 4, 0, 319, 0, 131], ["+", 3, 4, 0, 652, 3, 4, 0, 319, 319, 22]]
5
37
#include <iostream> using namespace std; typedef long long ll; int main() { ll A; cin >> A; double B; cin >> B; ll D = B * 100; A = A * D; A = A / 100; cout << A << endl; }
#include <iostream> using namespace std; typedef long long ll; int main() { ll A; cin >> A; double B; cin >> B; ll D = B * 100 + 0.2; A = A * D; A = A / 100; cout << A << endl; }
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
56
import math A, B = input().split() A = int(A) B = float(B) ans = A * B print(math.floor(ans))
import math from decimal import Decimal A, B = input().split() A = int(A) B = Decimal(B) ans = A * B print(math.floor(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
39
#include <bits/stdc++.h> using namespace std; #define ll long long int ll A; ll B; int main() { cin >> A; string B1; cin >> B1; int dotPos = -1; int p = 100; int B = 0; for (int i = 0; i < B1.size(); i++) { if (B1.at(i) == '.') { dotPos = i; continue; } B += stoi(B1.substr(i, 1)...
#include <bits/stdc++.h> using namespace std; #define ll long long int ll A; ll B; int main() { cin >> A; string B1; cin >> B1; int dotPos = -1; int p = 100; int B = 0; for (int i = 0; i < B1.size(); i++) { if (B1.at(i) == '.') { dotPos = i; continue; } B += stoi(B1.substr(i, 1)...
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151]]
1
124
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (n); ++i) using namespace std; typedef long long ll; typedef pair<ll, ll> P; int main() { ll a; string s; cin >> a >> s; double b; b = stod(s); int B = int(b); b -= double(B); ll ans = 0; ans += a * B; // cout<<ans<<endl; char s1 = s[...
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (n); ++i) using namespace std; typedef long long ll; typedef pair<ll, ll> P; int main() { ll a; string s; cin >> a >> s; double b; b = stod(s); int B = int(b); b -= double(B); ll ans = 0; ans += a * B; // cout<<ans<<endl; char s1 = s[...
[["-", 0, 43, 49, 50, 51, 16, 31, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 12, 13]]
1
160
#include <bits/stdc++.h> using namespace std; int main(void) { long a; double b; long double ans; cin >> a >> b; ans = (long double)((long)(a * (long)(b * 100))) / 100; // cout << "a = " << a << " b = " << b << " ans = " << ans << endl; cout << (long)ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { long a; double b; long double ans; cin >> a >> b; ans = (long double)((long)(a * (long)(b * 100 + 0.5))) / 100; // cout << "a = " << a << " b = " << b << " ans = " << ans << endl; cout << (long)ans << endl; return 0; }
[["+", 0, 16, 12, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 16, 12, 74, 51, 23, 0, 16, 12, 13]]
1
68
import java.math.BigDecimal; import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); BigDecimal A = sc.nextBigDecimal(); BigDecimal B = new BigDecimal(sc.nextDouble() * 100 + 0.5); BigDecimal ans = A.multiply(B); ans = ans.divide(BigDecimal.v...
import java.math.BigDecimal; import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); BigDecimal A = sc.nextBigDecimal(); BigDecimal B = new BigDecimal((int)(sc.nextDouble() * 100 + 0.5)); BigDecimal ans = A.multiply(B); ans = ans.divide(BigDe...
[["+", 49, 200, 51, 230, 3, 4, 0, 74, 0, 24], ["+", 51, 230, 3, 4, 0, 74, 39, 506, 0, 507], ["+", 49, 200, 51, 230, 3, 4, 0, 74, 0, 25], ["+", 51, 230, 3, 4, 0, 74, 51, 23, 0, 24], ["+", 51, 230, 3, 4, 0, 74, 51, 23, 0, 25]]
3
113
#include <bits/stdc++.h> using namespace std; int main() { long long a, c; double b; cin >> a >> b; c = 100.0 * b; cout << a * c / 100 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, c; double b; cin >> a >> b; c = 100 * b + 0.5; cout << a * c / 100 << endl; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
43
#include <bits/stdc++.h> using namespace std; int main() { double a = 0, b = 0; cin >> a >> b; cout << (int64_t)floor(a * b) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long double a = 0, b = 0; cin >> a >> b; cout << (int64_t)(a * b) << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 16, 31, 16, 12, 74, 51, 2, 63, 22]]
1
41
#include <bits/stdc++.h> using namespace std; signed main() { long long A; double B; cin >> A >> B; long long BB = (long long)(B * 100); long long ans = (A * BB) / 100LL; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; signed main() { long long A; double B; cin >> A >> B; long long BB = (long long)(B * 100 + 0.5); long long ans = A * BB / 100LL; cout << ans << endl; }
[["+", 49, 50, 51, 74, 51, 23, 0, 16, 17, 72], ["+", 49, 50, 51, 74, 51, 23, 0, 16, 12, 13], ["-", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["-", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25]]
1
57
# from math import factorial,sqrt,ceil #,gcd # from itertools import permutations,combinations,combinations_with_replacement # from collections import deque,Counter # from bisect import bisect_left # from heapq import heappush,heappop # from numba import njit # from functools import lru_cache # 簡単メモ化 @lru_cache(maxsize...
# from math import factorial,sqrt,ceil #,gcd # from itertools import permutations,combinations,combinations_with_replacement # from collections import deque,Counter # from bisect import bisect_left # from heapq import heappush,heappop # from numba import njit # from functools import lru_cache # 簡単メモ化 @lru_cache(maxsize...
[["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["+", 3, 4, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 3, 4, 0, 652, 3, 4, 0, 557, 0, 655]]
5
65
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/detail/standard_policies.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; typedef long long int ll; typedef unsigned long long int ull; typedef tree<int, null_type, less<int>, rb_tree_tag, ...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/detail/standard_policies.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; typedef long long int ll; typedef unsigned long long int ull; typedef tree<int, null_type, less<int>, rb_tree_tag, ...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 16, 31, 16, 12, 74, 51, 2, 63, 22], ["-", 31, 16, 12, 74, 51, 2, 3, 4, 0, 24], ["-", 31, 16, 12, 74, 51, 2, 3, 4, 0, 25]]
1
192
import java.math.BigDecimal; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); long A = Long.parseLong(scanner.next()); float B = Float.parseFloat(scanner.next()); scanner.close(); BigDecimal num = BigDecimal.valueOf...
import java.math.BigDecimal; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); long A = Long.parseLong(scanner.next()); double B = Double.parseDouble(scanner.next()); scanner.close(); BigDecimal num = BigDecimal.valu...
[["-", 0, 195, 8, 196, 0, 503, 39, 511, 0, 531], ["+", 0, 195, 8, 196, 0, 503, 39, 511, 0, 512], ["-", 8, 196, 0, 503, 49, 200, 51, 492, 500, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 500, 22], ["-", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22]]
3
126
import sys if __name__ == '__main__': str = input().strip() a, b = str.split() aval = int(a) bval = int(float(b) * 100) print(aval * bval // 100)
import sys if __name__ == '__main__': str = input().strip() a, b = str.split() aval = int(a) bval = round(float(b) * 100) print(aval * bval // 100)
[["-", 64, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 662, 12, 652, 63, 22]]
5
52
import sys import copy import math import bisect import pprint import bisect from functools import reduce from copy import deepcopy from collections import deque from decimal import * import numpy as np import math if __name__ == '__main__': a = [float(i) for i in input().split()] b= int(a[0]) c = int(...
import sys import copy import math import bisect import pprint import bisect from functools import reduce from copy import deepcopy from collections import deque from decimal import * import numpy as np import math if __name__ == '__main__': a = [str(i) for i in input().split()] b = int(a[0]) c = Decimal...
[["-", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["-", 64, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 657, 31, 652, 63, 22], ["+", 0, 662, 12, 657, 31, 652, 3, 4, 0, 25], ["+", 0, 1, 0, 662, 12, 657, 12, 652, 63, 22], ["+", 0, 662, 12, 657, 12, 652, 3, 4, 0,...
5
108
// include //------------------------------------------ #include <algorithm> #include <bitset> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include...
// include //------------------------------------------ #include <algorithm> #include <bitset> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include...
[["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96]]
1
811
ab=input().split() a=int(ab[0]) b=ab[1].replace('.','') ans=a*b//100 print(ans)
ab=input().split() a=int(ab[0]) b=ab[1].replace('.','') b=int(b) ans=a*b//100 print(ans)
[["+", 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
45
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (ll i = 0; i < (n); i++) typedef pair<ll, ll> P; ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } ll lcm(ll a, ll b) { return a / gcd(a, b) * b; } int main() { ll a; double b; cin >> a >> b; // a *= 100; ll lb = (...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (ll i = 0; i < (n); i++) typedef pair<ll, ll> P; ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } ll lcm(ll a, ll b) { return a / gcd(a, b) * b; } int main() { ll a; double b; cin >> a >> b; // a *= 100; ll lb = (...
[["+", 49, 50, 51, 2, 3, 4, 0, 16, 17, 72], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 12, 13]]
1
129
#include <stdio.h> int main(void) { unsigned long long a = 0; double b = 0; unsigned long long c = 0; unsigned long long aa = 0; scanf("%llu", &a); scanf("%lf", &b); aa = b * 1000; c = aa % 10; if (c >= 5) { c = aa / 100 + 1; } else if (c < 5) { c = aa / 100; } c = c * a; printf("...
#include <stdio.h> int main(void) { unsigned long long a = 0; double b = 0; unsigned long long c = 0; unsigned long long aa = 0; scanf("%llu", &a); scanf("%lf", &b); aa = b * 1000; c = aa % 10; if (c >= 5) { c = aa / 10 + 1; } else if (c < 5) { c = aa / 10; } c = c * a / 100; prin...
[["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13], ["-", 64, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
0
116
#include <algorithm> #include <bits/stdc++.h> #include <iomanip> #include <iostream> #include <queue> #include <stdio.h> #include <string> #include <vector> using namespace std; typedef long long ll; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define Q 1000000007 #define MAX 1000000000000000000 int main() { ...
#include <algorithm> #include <bits/stdc++.h> #include <iomanip> #include <iostream> #include <queue> #include <stdio.h> #include <string> #include <vector> using namespace std; typedef long long ll; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define Q 1000000007 #define MAX 1000000000000000000 int main() { ...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
94
a,b = input().split() a = int(a) b = float(b) ans = int((a * int(b * 100))) // 100 print(ans)
a,b = input().split() a = int(a) b = float(b) ans = int((a * int(b * 100 + 0.1))) // 100 print(ans)
[["+", 0, 657, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 657, 12, 652, 3, 4, 0, 657, 12, 531]]
5
44
#include <bits/stdc++.h> using namespace std; int main() { int64_t a; double b; int64_t c; cin >> a >> b; if (a == 0 || b == 0) { cout << 0 << endl; return 0; } c = (int64_t)a * b; cout << c << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int64_t a; long double b; int64_t c; cin >> a >> b; if (a == 0 || b == 0) { cout << 0 << endl; return 0; } c = (int64_t)a * b; cout << c << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
66
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define REP(i, n) for (int i = 1; i < (int)(n); i++) #define all(x) x.begin(), x.end() #define rall(x) x.rbegin(), x.rend() #define vout(x) rep(i, x.size()) cout << x[i] << " " template <class T> bool chmin(T &a, T b) { if (a > b) { a =...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define REP(i, n) for (int i = 1; i < (int)(n); i++) #define all(x) x.begin(), x.end() #define rall(x) x.rbegin(), x.rend() #define vout(x) rep(i, x.size()) cout << x[i] << " " template <class T> bool chmin(T &a, T b) { if (a > b) { a =...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
236
import java.math.BigDecimal; import java.math.RoundingMode; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); BigDecimal BigA = new BigDecimal(A); double B = sc.nextDouble(); BigDecimal BigB = new Bi...
import java.math.BigDecimal; import java.math.RoundingMode; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String A = sc.next(); BigDecimal BigA = new BigDecimal(A); String B = sc.next(); BigDecimal BigB = new BigDecimal...
[["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["+", 8, 498, 0, 195, 8, 196, 0, 503, 39, 78], ["-", 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, 511, 0, 512]]
3
114
import math s=input() a, b = s.split() b = int(b[0] + b[2:]) ans = math.floor((int(a) * b) / 100) print(ans)
import math s=input() a, b = s.split() b = int(b[0] + b[2:]) ans = (int(a) * b) // 100 print(ans)
[["-", 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], ["-", 12, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["-", 0, 662, 12, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, ...
5
52
#include <algorithm> #include <iostream> #include <math.h> #include <queue> #include <stdio.h> #include <string> #include <utility> using namespace std; int main(int argc, char *argv[]) { long long A; double B; long long pows[7] = {1000000000000000, 100000000000000, 10000000000000, 1000000...
#include <algorithm> #include <iostream> #include <math.h> #include <queue> #include <stdio.h> #include <string> #include <utility> using namespace std; int main(int argc, char *argv[]) { long long A; double B; long long pows[7] = {1000000000000000, 100000000000000, 10000000000000, 100000...
[["+", 49, 50, 51, 74, 51, 23, 0, 16, 17, 72], ["+", 49, 50, 51, 74, 51, 23, 0, 16, 12, 13]]
1
285
a,b = map(str,input().split()) #print(a,b) b = float(b) b = int(b*100) a = int(a) ans = (a*b)//100 print(ans)
a,b = map(str,input().split()) #print(a,b) b = float(b) b = round(b*100) a = int(a) ans = (a*b)//100 print(ans)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
50
from decimal import Decimal a,b = map(str,input().split()) #print(a,b) b = Decimal(b) a = int(a) ans = a*b print(round(ans))
from decimal import Decimal a,b = map(str,input().split()) #print(a,b) b = Decimal(b) a = int(a) ans = a*b print(int(ans))
[["-", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22]]
5
45
#include <bits/stdc++.h> using namespace std; int main() { long long A; double B; cin >> A >> B; long long C = floor(A * B); cout << C << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long A; long double B; cin >> A >> B; long long C = A * B; cout << C << endl; }
[["+", 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
42
#include <bits/stdc++.h> int main() { unsigned long long c, a; double b; std::cin >> a >> b; c = static_cast<double>(a) * b; std::cout << c; return 0; }
#include <bits/stdc++.h> int main() { unsigned long long c, a; long double b; std::cin >> a >> b; c = static_cast<double>(a) * b; std::cout << c; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
47
import numpy as np A,B = map(str,input().split()) A = int(A) B = int(B[0]+B[2]+B[3]) print(int(A*B/100))
import numpy as np A,B = map(str,input().split()) A = int(A) B = int(B[0]+B[2]+B[3]) print(int(A*B//100))
[["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 85], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 676]]
5
56
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll a; long double b; cin >> a >> b; cout << (a * (ll)(100 * b) / 100) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll a; long double b; cin >> a >> b; cout << (a * (ll)(100 * b + 0.000001)) / 100 << endl; return 0; }
[["+", 0, 16, 12, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 16, 12, 2, 3, 4, 0, 16, 12, 13], ["+", 31, 23, 0, 16, 12, 2, 3, 4, 0, 25], ["-", 0, 1, 0, 16, 31, 16, 12, 23, 0, 25]]
1
52
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (n); i++) #define pb push_back const int maxn = 10000; const int INF32 = 1'050'000'000; const long long INF64 = 4'000'000'000'000'000'000; const int MOD7 = 1'000'000'007; const int MOD9 = 1'000'000'009; const int m...
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (n); i++) #define pb push_back const int maxn = 10000; const int INF32 = 1'050'000'000; const long long INF64 = 4'000'000'000'000'000'000; const int MOD7 = 1'000'000'007; const int MOD9 = 1'000'000'009; const int m...
[["+", 51, 16, 31, 16, 12, 2, 63, 23, 0, 22], ["+", 51, 16, 31, 16, 12, 2, 63, 23, 0, 25], ["+", 51, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["-", 51, 16, 31, 16, 12, 23, 0, 16, 12, 13], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13]]
1
208
#include "cmath" #include "iostream" #include "vector" using namespace std; typedef long long ll; int main() { unsigned long long a; long double b; cin >> a >> b; unsigned long long bb = ll(b * 100); unsigned long long before = a * bb; // cout << bb << endl; // cout << before << endl; cout << before...
#include "cmath" #include "iostream" #include "vector" using namespace std; typedef long long ll; int main() { unsigned long long a; long double b; cin >> a >> b; unsigned long long bb = ll(b * 100 + 0.5); unsigned long long before = a * bb; // cout << bb << endl; // cout << before << endl; cout << ...
[["+", 49, 50, 51, 2, 3, 4, 0, 16, 17, 72], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 12, 13]]
1
78
a, b = input().split() ans = int(a)*int(float(b)*100) ans = ans//100 print(ans)
a, b = input().split() ans = int(a)*int(float(b)*100+0.01) ans = ans//100 print(ans)
[["+", 12, 657, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 12, 657, 12, 652, 3, 4, 0, 657, 12, 531]]
5
36
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ll a; float b; cin >> a >> b; ll z = a * b; cout << z; }
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ll a; long double b; cin >> a >> b; ll z = a * b; cout << z << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
38
a, b = map(float, input().split()) b = int(b * 100 + 0.5) ans = a * b // 100 print(int(ans))
a, b = map(float, input().split()) a = int(a) b = int(b * 100 + 0.5) ans = a * b // 100 print(int(ans))
[["+", 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
40
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(); long b = (long)(B * 100.0); final long ans = A * b; String ansstr = String.valueOf(ans); if (ansstr.length() <= 2...
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(); long b = (long)((B * 100.0) + 0.5); final long ans = A * b; String ansstr = String.valueOf(ans); if (ansstr.lengt...
[["+", 51, 74, 51, 23, 0, 16, 31, 23, 0, 24], ["+", 51, 74, 51, 23, 0, 16, 31, 23, 0, 25], ["+", 49, 200, 51, 74, 51, 23, 0, 16, 17, 72], ["+", 49, 200, 51, 74, 51, 23, 0, 16, 12, 515]]
3
131
import math a, b = map(float, input().split()) b *= 100 c = int(a) * int(b) print(c // 100)
a, b = map(float, input().split()) b *= 100 c = int(a) * int(b + 0.01) print(c // 100)
[["-", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["-", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 12, 657, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 12, 657, 12, 652, 3, 4, 0, 657, 12, 531]]
5
38
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); // ll a, c, i, j, k; double a; double b; cin >> a >> b; cout << (ll)floor(a * b) << '\n'; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); // ll a, c, i, j, k; long double a; long double b; cin >> a >> b; cout << (ll)floor(a * b) << '\n'; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
71
#include <bits/stdc++.h> using namespace std; int main() { long double a, b; cin >> a >> b; cout << (long long)a * b << '\n'; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long double a, b; cin >> a >> b; cout << (long long)(a * b) << '\n'; return 0; }
[["+", 0, 16, 31, 16, 12, 74, 51, 23, 0, 24], ["+", 0, 16, 31, 16, 12, 74, 51, 23, 0, 25]]
1
41
#include <iostream> #include <stdio.h> // standard input output using namespace std; int main() { long a, ans; double b; cin >> a >> b; ans = a * b; cout << ans << endl; return 0; }
#include <iostream> #include <stdio.h> // standard input output using namespace std; int main() { long a, ans; long double b; cin >> a >> b; ans = a * b; cout << ans << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
44
import math a,b = input().split() a = float(a) b = float(b) b = b*100 print(math.floor(a*b//100))
import math from decimal import * a,b = input().split() a = Decimal(a) b = Decimal(b) b = b*100 print(math.floor(a*b//100))
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 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
43
n = gets.split a = n.first.to_i b = n.last.to_s.delete(".").to_i puts (a*b).floor/10
n = gets.split a = n.first.to_i b = n.last.to_s.delete(".").to_i puts (a*b).floor/100
[["-", 0, 493, 0, 652, 3, 4, 0, 738, 12, 612], ["+", 0, 493, 0, 652, 3, 4, 0, 738, 12, 612]]
4
38
#include <bits/stdc++.h> using namespace std; int main() { long long A; double B; cin >> A >> B; long long C = (long long)A * B; cout << C << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long A; long double B; cin >> A >> B; long long C = A * B; cout << C << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 43, 49, 50, 51, 16, 31, 74, 0, 24], ["-", 51, 16, 31, 74, 39, 77, 39, 86, 0, 96], ["-", 0, 43, 49, 50, 51, 16, 31, 74, 0, 25]]
1
43
import math from decimal import * getcontext().prec = 100 a,b=input().split() a=int(a) A=round(Decimal(a)*Decimal(b)) print(math.floor(A))
import math from decimal import * getcontext().prec = 100 a,b=input().split() a=int(a) A=Decimal(a)*Decimal(b) print(math.floor(A))
[["-", 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
53
a,b=input().split() a=int(a) b=list(b) b=[int(b[0]),int(b[2]),int(b[3])] c=a*b[0]+a*b[1]//10+a*b[2]//100 print(c)
a,b=input().split() a=int(a) b=list(b) b=[int(b[0]),int(b[2]),int(b[3])] c=(a*b[0]*100+a*b[1]*10+a*b[2])//100 print(c)
[["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 24], ["+", 31, 23, 0, 657, 31, 657, 31, 657, 17, 48], ["+", 31, 23, 0, 657, 31, 657, 31, 657, 12, 612], ["-", 0, 662, 12, 657, 31, 657, 12, 657, 17, 676], ["+", 31, 23, 0, 657, 31, 657, 12, 657, 17, 48], ["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 25]]
5
80
import io,sys sys.setrecursionlimit(10**6) def main(): s = sys.stdin.readline().rstrip().split() a = int(s[0]) b = int(float(s[1])*100+0.1) print(ans=a*b//100) main()
import io,sys sys.setrecursionlimit(10**6) def main(): s = sys.stdin.readline().rstrip().split() a = int(s[0]) b = int(float(s[1])*100+0.1) print(a*b//100) main()
[["-", 0, 1, 0, 652, 3, 4, 0, 653, 141, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 653, 0, 32]]
5
72
#include <iostream> using namespace std; int main() { long long a; double b; cin >> a >> b; cout << a * (long long)(b * 100 + 0.5) / 1000 << endl; return 0; }
#include <iostream> using namespace std; int main() { long long a; double b; cin >> a >> b; cout << a * (long long)(b * 100 + 0.5) / 100 << endl; return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
48
#include <bits/stdc++.h> // include all standard C++ libraries using namespace std; // Loops #define _overload3(_1, _2, _3, name, ...) name #define _rep(i, n) repi(i, 0, n) #define repi(i, a, b) for (int i = int(a); i < int(b); ++i) #define _rrep(i, n) rrepi(i, n, 0) #define rrepi(i, a, b) for (int i = int(a) - 1; i ...
#include <bits/stdc++.h> // include all standard C++ libraries using namespace std; // Loops #define _overload3(_1, _2, _3, name, ...) name #define _rep(i, n) repi(i, 0, n) #define repi(i, a, b) for (int i = int(a); i < int(b); ++i) #define _rrep(i, n) rrepi(i, n, 0) #define rrepi(i, a, b) for (int i = int(a) - 1; i ...
[["+", 12, 16, 31, 16, 12, 23, 0, 74, 0, 24], ["+", 31, 16, 12, 23, 0, 74, 51, 2, 63, 22], ["+", 12, 23, 0, 74, 51, 2, 3, 4, 0, 25]]
1
508
#include <bits/stdc++.h> #define ll long long int #define pb push_back #define pp pop_back using namespace std; int main() { ll a; double b; cin >> a >> b; ll ans = a * b; cout << ans << "\n"; return 0; }
#include <bits/stdc++.h> #define ll long long int #define pb push_back #define pp pop_back using namespace std; int main() { ll a; long double b; cin >> a >> b; ll ans = a * b; cout << ans << "\n"; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
51
#include <algorithm> #include <bitset> #include <cmath> #include <cstdlib> #include <iomanip> #include <iostream> #include <math.h> #include <queue> #include <sstream> #include <string> #include <vector> using namespace std; #define ll long long #define vecll vector<long long> #define vec2ll vector<vector<long long>>...
#include <algorithm> #include <bitset> #include <cmath> #include <cstdlib> #include <iomanip> #include <iostream> #include <math.h> #include <queue> #include <sstream> #include <string> #include <vector> using namespace std; #define ll long long #define vecll vector<long long> #define vec2ll vector<vector<long long>>...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
107
import sys import math readline = sys.stdin.readline readall = sys.stdin.read ns = lambda: readline().rstrip() ni = lambda: int(readline().rstrip()) nm = lambda: map(int, readline().split()) nl = lambda: list(map(int, readline().split())) prl = lambda x: print(*x ,sep='\n') a,b = input().split(' ') ash_1 = int(a[-1])...
import sys import math readline = sys.stdin.readline readall = sys.stdin.read ns = lambda: readline().rstrip() ni = lambda: int(readline().rstrip()) nm = lambda: map(int, readline().split()) nl = lambda: list(map(int, readline().split())) prl = lambda x: print(*x ,sep='\n') a,b = input().split(' ') ash_1 = int(a[-1])...
[["-", 0, 662, 12, 657, 31, 657, 31, 23, 0, 25], ["-", 0, 1, 0, 662, 12, 657, 31, 657, 17, 676], ["+", 12, 657, 31, 23, 0, 657, 31, 657, 17, 48], ["-", 0, 662, 12, 657, 12, 657, 31, 23, 0, 24]]
5
272
#include <iostream> using namespace std; typedef long long li; #define rep(i, n) for (int i = 0; i < (n); i++) #define df 0 template <class T> void print(const T &t) { cout << t << "\n"; } template <class T, class... Ts> void print(const T &t, const Ts &...ts) { cout << t; if (sizeof...(ts)) cout << " "; prin...
#include <iostream> using namespace std; typedef long long li; #define rep(i, n) for (int i = 0; i < (n); i++) #define df 0 template <class T> void print(const T &t) { cout << t << "\n"; } template <class T, class... Ts> void print(const T &t, const Ts &...ts) { cout << t; if (sizeof...(ts)) cout << " "; prin...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
135
#include <iostream> using namespace std; typedef long long li; #define rep(i, n) for (int i = 0; i < (n); i++) #define df 0 template <class T> void print(const T &t) { cout << t << "\n"; } template <class T, class... Ts> void print(const T &t, const Ts &...ts) { cout << t; if (sizeof...(ts)) cout << " "; prin...
#include <iostream> using namespace std; typedef long long li; #define rep(i, n) for (int i = 0; i < (n); i++) #define df 0 template <class T> void print(const T &t) { cout << t << "\n"; } template <class T, class... Ts> void print(const T &t, const Ts &...ts) { cout << t; if (sizeof...(ts)) cout << " "; prin...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
130
#include <bits/stdc++.h> using namespace std; long long a; double b; int main() { // #ifndef ONLINE_JUDGE // freopen("input.txt", "r", stdin); // freopen("output.txt", "a", stdout); // #endif cin >> a >> b; cout << (long long)(a * b) << "\n"; return 0; }
#include <bits/stdc++.h> using namespace std; long long a; long double b; int main() { // #ifndef ONLINE_JUDGE // freopen("input.txt", "r", stdin); // freopen("output.txt", "a", stdout); // #endif cin >> a >> b; cout << (long long)(a * b) << "\n"; return 0; }
[["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96]]
1
48
import math a,b = list(map(float, input().split())) print(math.floor(a*b))
import decimal import math a,b = list(map(decimal.Decimal, input().split())) print(math.floor(a*b))
[["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 3, 4, 0, 652, 3, 4, 0, 319, 500, 22], ["+", 3, 4, 0, 652, 3, 4, 0, 319, 0, 131], ["+", 3, 4, 0, 652, 3, 4, 0, 319, 319, 22]]
5
32
#include <bits/stdc++.h> #define rep(i, n) for (int(i) = 0; (i) < (n); ++(i)) #define all(x) (x).begin(), (x).end() using namespace std; using ll = long long; int main() { double a, b; cin >> a >> b; cout << static_cast<ll>(a * b) << endl; }
#include <bits/stdc++.h> #define rep(i, n) for (int(i) = 0; (i) < (n); ++(i)) #define all(x) (x).begin(), (x).end() using namespace std; using ll = long long; int main() { long double a, b; cin >> a >> b; cout << static_cast<ll>(a * b) << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
57
import math l = input().split(" ") a = int(l[0]) b = float(l[1]) print(math.floor(a*b))
import math import decimal l = input().split(" ") a = int(l[0]) b = decimal.Decimal(l[1]) print(math.floor(a*b))
[["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22]]
5
43
#include <bits/stdc++.h> using namespace std; int main(void) { string a, b; cin >> a >> b; long long int sum = 0; int count = -1; for (int i = b.size() - 1; i >= 0; i--) { string tmp = ""; if (b[i] != '.') { count++; int kuriagari = 0; for (int j = a.size() - 1; j >= 0; j--) { ...
#include <bits/stdc++.h> using namespace std; int main(void) { string a, b; cin >> a >> b; long long int sum = 0; int count = -1; for (int i = b.size() - 1; i >= 0; i--) { string tmp = ""; if (b[i] != '.') { count++; int kuriagari = 0; for (int j = a.size() - 1; j >= 0; j--) { ...
[["+", 75, 76, 0, 9, 0, 1, 0, 11, 31, 22], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 17, 32], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 57, 75, 76, 0, 9, 0, 1, 0, 35]]
1
213
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <vector> using namespace std; typedef long long LL; #define me(a, b) memset(a, b, sizeof(a)) #define inf 0x3f3f3f3...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <vector> using namespace std; typedef long long LL; #define me(a, b) memset(a, b, sizeof(a)) #define inf 0x3f3f3f3...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21]]
1
99
#include <bits/stdc++.h> typedef long long ll; #define mod 1000000009 #define mk make_pair #define f first #define s second using namespace std; int main(int argc, char const *argv[]) { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); long double a; double b; cin >> a >> b; long double ans...
#include <bits/stdc++.h> typedef long long ll; #define mod 1000000009 #define mk make_pair #define f first #define s second using namespace std; int main(int argc, char const *argv[]) { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); long long a; long double b; cin >> a >> b; long double ...
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
93
#include <bits/stdc++.h> #define ll long long #define rep(i, begin, end) \ for (__typeof(end) i = (begin) - ((begin) > (end)); \ i != (end) - ((begin) > (end)); \ i += 1 - 2 * ((begin) > ...
#include <bits/stdc++.h> #define ll long long #define rep(i, begin, end) \ for (__typeof(end) i = (begin) - ((begin) > (end)); \ i != (end) - ((begin) > (end)); \ i += 1 - 2 * ((begin) > ...
[["+", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 25], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151]]
1
52
#include <iostream> using namespace std; int main() { double a; double b; cin >> a >> b; long long int ml; ml = a * b; cout << ml << endl; }
#include <iostream> using namespace std; int main() { long double a; long double b; cin >> a >> b; long long int ml; ml = a * b; cout << ml << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
41
from sys import stdin [a, b] = stdin.readline().split() b = int(float(b) * 100) print(int(int(a) * b // 100))
from sys import stdin [a, b] = stdin.readline().split() b = round(float(b) * 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], ["-", 3, 4, 0, 657, 31, 657, 31, 652, 63, 22], ["-", 0, 657, 31, 657, 31, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
44
import math s = input().split() A = float(s[0]) B = float(s[1]) c = math.floor(A * B) print(c)
import math from decimal import * s = input().split() A = Decimal(s[0]) B = Decimal(s[1]) c = math.floor(A * B) print(c)
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 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
43
#include <bits/stdc++.h> //短縮 #define rep(i, n) for (int i = 0; i < (n); ++i) // sort()用 #define all(v) v.begin(), v.end() #define PB(N) push_back(N) using namespace std; using Graph = vector<vector<int>>; int main() { double A; double B; cin >> A >> B; long long buffer = floor(A * B); cout << buffer; ...
#include <bits/stdc++.h> //短縮 #define rep(i, n) for (int i = 0; i < (n); ++i) // sort()用 #define all(v) v.begin(), v.end() #define PB(N) push_back(N) using namespace std; using Graph = vector<vector<int>>; int main() { long double A; long double B; cin >> A >> B; long long buffer = floorl(A * B); cout <...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22]]
1
75
a, b = input().split() a = int(a) b = float(b) print(int(a * b))
from decimal import Decimal 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, 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
32
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string.h> #include <vector> #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) #define ALL(a) (a).begin(), (a).end() typedef long long...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string.h> #include <vector> #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) #define ALL(a) (a).begin(), (a).end() typedef long long...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
95
#include <bits/stdc++.h> using namespace std; #pragma GCC optimize("O2") typedef long long ll; long long a; double b; // inline long long read() //{ // long long ret = 0; // char ch = getchar(); // while (ch < '0' || ch > '9') ch = getchar(); // while (ch >= '0' && ch <= '9') ret = ret * 10 + ch - '0', ch = //getchar...
#include <bits/stdc++.h> using namespace std; #pragma GCC optimize("O2") typedef long long ll; long long a; long double b; int main() { ios::sync_with_stdio(false); cin >> a; cin >> b; cout << ll(a * b) << endl; return 0; }
[["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96]]
1
63
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repr(i, n) for (int i = (int)(n); i >= 0; i--) #define all(v) v.begin(), v.end() typedef long long ll; int main() { double A; double B; cin >> A >> B; double C = A * B; ll D = C; cout << D << endl; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repr(i, n) for (int i = (int)(n); i >= 0; i--) #define all(v) v.begin(), v.end() typedef long long ll; int main() { long double A; long double B; cin >> A >> B; long double C = A * B; ll D = C; cout <...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
69
/* * main.c * * Created on: 2020/03/28 * Author: family */ #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX(a, b) (a > b ? a : b) #define MIN(a, b) (a > b ? b : a) typedef long long int ll; typedef unsigned long long int ull; int sort_inc(const void *a, const void *b...
/* * main.c * * Created on: 2020/03/28 * Author: family */ #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX(a, b) (a > b ? a : b) #define MIN(a, b) (a > b ? b : a) typedef long long int ll; typedef unsigned long long int ull; int sort_inc(const void *a, const void *b...
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
0
503
import math l = input().split() a = int(l[0]) b = float(l[1]) ##print(a,b) print(int(a*b))
from decimal import Decimal l = input().split() a = int(l[0]) b = Decimal(l[1]) ##print(a,b) ##print(a*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, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 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
39
#include <bits/stdc++.h> using namespace std; using ll = long long; const int inf = 1e9 + 7; const ll longinf = 5LL << 60; const ll mod = 1e9 + 7; int main() { ll A; double B; cin >> A >> B; cout << (ll)(A * B) << "\n"; return 0; }
#include <bits/stdc++.h> using namespace std; using ll = long long; const int inf = 1e9 + 7; const ll longinf = 5LL << 60; const ll mod = 1e9 + 7; int main() { long double A, B; cin >> A >> B; cout << (ll)(A * B) << "\n"; return 0; }
[["-", 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
72
import sys def _sa(): return sys.stdin.readline().strip().split() def main(): a, b = _sa() a = int(a) b = int(100 * float(b)) return (a * b) // 100 if __name__ == "__main__": print(main())
import sys def _sa(): return sys.stdin.readline().strip().split() def main(): a, b = _sa() a = int(a) b = round(100*float(b)) return (a * b) // 100 if __name__ == "__main__": print(main())
[["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22]]
5
73
function main(input) { const inputs = input.trim().split('\n'); var input1 = inputs[0].split(' '); var A = input1[0].split('').reverse(); var B = input1[1]; var B1 = B.split('.')[0] - 0; var B2 = B.split('.')[1].split('').reverse(); var temp = Array(A.length + 2 + 1); var tempLength = temp.length; ...
function main(input) { const inputs = input.trim().split('\n'); var input1 = inputs[0].split(' '); var A = input1[0].split('').reverse(); var B = input1[1]; var B1 = B.split('.')[0] - 0; var B2 = B.split('.')[1].split('').reverse(); var temp = Array(A.length + 2 + 1); var tempLength = temp.length; ...
[["+", 0, 1, 0, 11, 12, 2, 63, 558, 0, 131], ["+", 0, 1, 0, 11, 12, 2, 63, 558, 559, 560], ["+", 0, 1, 0, 11, 12, 2, 3, 3, 0, 24], ["+", 0, 1, 0, 11, 12, 2, 3, 3, 0, 25], ["-", 8, 556, 0, 7, 15, 1, 0, 16, 17, 20], ["+", 8, 556, 0, 7, 15, 1, 0, 16, 17, 47]]
2
552
#include <cmath> #include <ctype.h> #include <iostream> #include <limits.h> #include <sstream> #include <stdio.h> #include <string.h> #include <string> #include <vector> using namespace std; long long A; double B; int main() { cin >> A >> B; printf("%lld\n", (long long)floor(A * B)); // cout<<floor(A*B)<<endl; ...
#include <cmath> #include <ctype.h> #include <iostream> #include <limits.h> #include <sstream> #include <stdio.h> #include <string.h> #include <string> #include <vector> using namespace std; long long A; long double B; int main() { cin >> A >> B; printf("%lld\n", (long long)floor(A * B)); // cout<<floor(A*B)<<...
[["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96]]
1
64
#include <bits/stdc++.h> using namespace std; unsigned long long a; unsigned long long cnt = 0; char cc[22]; int main() { cin >> a; cin >> cc; unsigned long long ans = a * 1ull * (cc[0] - '0'); ans += a * 1ull * (cc[2] - '0') / 10ull; ans += a * 1ull * (cc[3] - '0') / 100ull; cout << ans; return 0; }
#include <bits/stdc++.h> using namespace std; unsigned long long a; unsigned long long cnt = 0; char cc[22]; int main() { cin >> a; cin >> cc; unsigned long long ans = a * 1ull * (cc[0] - '0'); ans += (a * 1ull * (cc[2] - '0') * 10ull + a * 1ull * (cc[3] - '0')) / 100ull; cout << ans; return 0; }
[["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 17, 48], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 107], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 31, 23, 0, 16,...
1
103
#define _GLIBCXX_DEBUG #include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (int)n; i++) #define r...
#define _GLIBCXX_DEBUG #include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (int)n; i++) #define r...
[["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22]]
1
100
#include <bits/stdc++.h> using namespace std; long long binpow(long long a, long long b) { long long res = 1; while (b > 0) { if (b & 1) res = res * a; a = a * a; b >>= 1; } return res; } int main() { ios_base::sync_with_stdio(false); cin.tie(0), cout.tie(0); cout << fixed << setprecisio...
#include <bits/stdc++.h> using namespace std; long long binpow(long long a, long long b) { long long res = 1; while (b > 0) { if (b & 1) res = res * a; a = a * a; b >>= 1; } return res; } int main() { ios_base::sync_with_stdio(false); cin.tie(0), cout.tie(0); cout << fixed << setprecisio...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
132
### SNIPPET # n = gets.split.map(&:to_i) # array = n.times.map { gets.split.map(&:to_i) } # [].all?(&:even?) # a = [*1..m].repeated_combination(n).to_a # [1,2,3,4,5].select { |num| num.even? } # => [2, 4] # ["a","a","b"].group_by(&:itself).map{|k,v| [k, v.count]}.to_h #=> {"a"=>2, "b"=>1} # 切り捨て: .floor(...
### SNIPPET # n = gets.split.map(&:to_i) # array = n.times.map { gets.split.map(&:to_i) } # [].all?(&:even?) # a = [*1..m].repeated_combination(n).to_a # [1,2,3,4,5].select { |num| num.even? } # => [2, 4] # ["a","a","b"].group_by(&:itself).map{|k,v| [k, v.count]}.to_h #=> {"a"=>2, "b"=>1} # 切り捨て: .floor(...
[["-", 0, 652, 3, 4, 0, 652, 486, 652, 735, 22], ["-", 0, 493, 0, 652, 3, 4, 0, 652, 17, 131]]
4
50
array = gets.split(' ') a = array[0].to_i b = array[1].to_f sum = a * b sum = sum.to_i puts sum
array = gets.split(' ') a = array[0].to_i b = array[1].to_r sum = a * b sum = sum.to_i puts sum
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
38
from decimal import Decimal, ROUND_DOWN, getcontext a, b = map(str, input().split()) getcontext().prec = 6 getcontext().rounding = ROUND_DOWN x = Decimal(a) y = Decimal(b) print("{:f}".format(Decimal(int(x * y)), rounding=ROUND_DOWN))
from decimal import Decimal, ROUND_DOWN, getcontext a, b = map(str, input().split()) getcontext().prec = 19 getcontext().rounding = ROUND_DOWN x = Decimal(a) y = Decimal(b) print("{:}".format(Decimal(int(x * y)), rounding=ROUND_DOWN))
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
73
from sys import stdin import math a,b = stdin.readline().rstrip().split() a = int(a) b = float(b) print(math.floor(a*b))
from sys import stdin import math from decimal import * a,b = stdin.readline().rstrip().split() a = Decimal(a) b = Decimal(b) 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, 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
46
#include <bits/stdc++.h> using namespace std; #define ll long long const int INF = 0x3f3f3f3f; const ll inf = 0x3f3f3f3f3f3f3f3f; const int N = 2e5 + 10; ll x; long double n; int main() { cin >> x >> n; cout << (ll)x * n << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define ll long long const int INF = 0x3f3f3f3f; const ll inf = 0x3f3f3f3f3f3f3f3f; const int N = 2e5 + 10; ll x; long double n; int main() { cin >> x >> n; cout << (ll)(x * n) << endl; return 0; }
[["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 25]]
1
62
import math a, b = input().split() A = int(a) B = float(b) print(int(A*B))
from decimal import * import math 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
34
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { long long a, e; double b, d; cin >> a >> b; long long c = a * b; cout << c << endl; return 0; }
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { long long a, e; long double b, d; cin >> a >> b; long long c = a * b; cout << c << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
48
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < int(n); i++) using namespace std; typedef long long ll; int main() { double a; double b; cin >> a >> b; double c = a * b; cout << (ll)c << endl; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < int(n); i++) using namespace std; typedef long long ll; int main() { long double a; long double b; cin >> a >> b; long double c = a * b; cout << (ll)c << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
53
#include <bits/stdc++.h> using namespace std; int main() { long long int a; double b; cin >> a >> b; long long int p = a * b; cout << p << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long double a; long double b; cin >> a >> b; long long int p = a * b; cout << p << endl; 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]]
1
44
#include <bits/stdc++.h> using namespace std; int main() { long long a; double b; cin >> a >> b; double s = a * b; cout << (long long)s << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long a; long double b; cin >> a >> b; long double s = a * b; cout << (long long)s << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
45
#include <stdio.h> typedef long long ll; int main(void) { ll a; double b; scanf("%lld%lf", &a, &b); printf("%lld\n", (ll)(a * b)); return 0; }
#include <stdio.h> typedef long long ll; int main(void) { ll a; long double b; scanf("%lld%llf", &a, &b); printf("%lld\n", (ll)(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
53
#include <bits/stdc++.h> using namespace std; int main() { long A; double B; cin >> A >> B; double S = A * B; long M = S / 1; cout << (long)M << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long A; long double B; cin >> A >> B; long double S = A * B; long M = S / 1; cout << (long)M << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
47