buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
#include <bits/stdc++.h> using namespace std; typedef long long ll; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return 1; } return 0; } const ll INF = 1LL << 60; const int ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return 1; } return 0; } const ll INF = 1LL << 60; const int ...
[["+", 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
136
#include <bits/stdc++.h> using namespace std; int main() { long long int a; double b; cin >> a >> b; cout << (long long int)(a * b); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long int a; long double b; cin >> a >> b; cout << (long long int)(a * b); return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
42
#include <algorithm> #include <bits/stdc++.h> #include <iostream> #include <vector> typedef long long int ll; using namespace std; #define P 1000000007 #define rep(i, n) for (i = 0; i < n; ++i) #define repp(i, a, n) for (i = a; i < n; ++i) #define repr(i, a, n) for (i = a; i >= n; --i) #define pb push_back #define mp m...
#include <algorithm> #include <bits/stdc++.h> #include <iostream> #include <vector> typedef long long int ll; using namespace std; #define P 1000000007 #define rep(i, n) for (i = 0; i < n; ++i) #define repp(i, a, n) for (i = a; i < n; ++i) #define repr(i, a, n) for (i = a; i >= n; --i) #define pb push_back #define mp m...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 11, 12, 74, 39, 77, 39, 40], ["+", 0, 1, 0, 11, 12, 74, 39, 77, 39, 78]]
1
140
// verma_ankit484 #include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> //#include <ext/pb_ds/tree_policy.hpp> #define int long long #define IOS \ ios::sync_with_stdio(0); \ cin.tie...
// verma_ankit484 #include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> //#include <ext/pb_ds/tree_policy.hpp> #define int long long #define IOS \ ios::sync_with_stdio(0); \ cin.tie...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 51, 16, 31, 74, 39, 77, 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
95
// Problem : C - Multiplication 3 // Contest : AtCoder - AtCoder Beginner Contest 169 // URL : https://atcoder.jp/contests/abc169/tasks/abc169_c // Memory Limit : 1024 MB // Time Limit : 2000 ms // Powered by CP Editor (https://github.com/cpeditor/cpeditor) // look at my code // my code is amazing #include <bits/stdc...
// Problem : C - Multiplication 3 // Contest : AtCoder - AtCoder Beginner Contest 169 // URL : https://atcoder.jp/contests/abc169/tasks/abc169_c // Memory Limit : 1024 MB // Time Limit : 2000 ms // Powered by CP Editor (https://github.com/cpeditor/cpeditor) // look at my code // my code is amazing #include <bits/stdc...
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]]
1
745
#define _DEBUG 1 #define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; using ll = long long; #ifdef _DEBUG #define dump(x) cerr << #x << "=" << x << endl #define dump2(x, y) cerr << #x << "=" << x << "," << #y << "=" << y << endl #define dump3(x, y, z) ...
#define _DEBUG 1 #define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; using ll = long long; #ifdef _DEBUG #define dump(x) cerr << #x << "=" << x << endl #define dump2(x, y) cerr << #x << "=" << x << "," << #y << "=" << y << endl #define dump3(x, y, z) ...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
231
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <random> #include <string> #include <vector> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (int)n; i++) #define rep1(i, n) for (in...
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <random> #include <string> #include <vector> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (int)n; i++) #define rep1(i, n) for (in...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 12, 74, 51, 2, 3, 4, 0, 16, 31, 22], ["-", 12, 74, 51, 2, 3, 4, 0, 16, 17, 48], ["+", 12, 74, 51, 2, 3, 4, 0, 16, 17, 48], ["+", 12, 74, 51, 2, 3, 4, 0, 16, 12, 22]]
1
88
from sys import stdin A,B = [float(x) for x in stdin.readline().rstrip().split()] print(int(A*B))
from sys import stdin from decimal import Decimal A,B = [Decimal(x) for x in stdin.readline().rstrip().split()] 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, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22]]
5
39
a, b = gets.split a = a.to_i b = b.to_f puts (a * b).to_i
a, b = gets.split a = a.to_i b = b.to_r puts (a * b).to_i
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
25
#!/usr/bin/env python3 import sys sys.setrecursionlimit(10**8) INF = float("inf") import math def main(): A, B = input().split() A = int(A) B1, B2 = map(int, B.split(".")) tot = A*B1 tot += int((A*B2)/100) print(tot) return if __name__ == '__main__': main()
#!/usr/bin/env python3 import sys sys.setrecursionlimit(10**8) INF = float("inf") import math def main(): A, B = input().split() A = int(A) B1, B2 = map(int, B.split(".")) tot = A*B1 tot += (A*B2)//100 print(tot) return if __name__ == '__main__': main()
[["-", 8, 196, 0, 1, 0, 677, 12, 652, 63, 22], ["-", 0, 1, 0, 677, 12, 652, 3, 4, 0, 24], ["-", 0, 677, 12, 652, 3, 4, 0, 657, 17, 85], ["+", 8, 196, 0, 1, 0, 677, 12, 657, 17, 676], ["-", 0, 1, 0, 677, 12, 652, 3, 4, 0, 25]]
5
92
import java.math.BigDecimal; 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(); BigDecimal a = new BigDecimal(A); BigDecimal b = new BigDecimal(B); a = a.multiply(b); ...
import java.math.BigDecimal; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); String s = sc.next(); BigDecimal a = new BigDecimal(A); BigDecimal b = new BigDecimal(s); a = a.multiply(b); Sy...
[["-", 0, 195, 8, 196, 0, 503, 39, 511, 0, 512], ["-", 0, 195, 8, 196, 0, 503, 49, 200, 141, 22], ["+", 8, 498, 0, 195, 8, 196, 0, 503, 39, 78], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 141, 22], ["-", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["-", 0, 503, 49, 200, 51,...
3
100
/******* all required header files *******/ #include <algorithm> #include <assert.h> #include <bitset> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue>...
/******* all required header files *******/ #include <algorithm> #include <assert.h> #include <bitset> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue>...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 1, 0, 16, 12, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 16, 12, 2, 63, 40]]
1
132
a,b=input().split() a=int(a) b=float(b) import math print(math.floor(a*b))
a,b=input().split() from decimal import Decimal a=int(a) b=Decimal(b) import math print(math.floor(a*b))
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
36
def resolve(): import math a, b = map(float, input().split()) print(math.floor(a * b)) resolve()
def resolve(): import math from decimal import Decimal a, b = map(Decimal, input().split()) print(math.floor(a * b)) resolve()
[["+", 0, 656, 0, 14, 8, 196, 0, 686, 0, 314], ["+", 0, 14, 8, 196, 0, 686, 687, 673, 0, 22], ["+", 0, 656, 0, 14, 8, 196, 0, 686, 0, 487], ["+", 0, 14, 8, 196, 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
37
#include <bits/stdc++.h> using namespace std; #define ll long long #define lson k << 1 #define rson k << 1 | 1 int main() { long double a, b; cin >> a >> b; printf("%.0Lf", a * b); return 0; }
#include <bits/stdc++.h> using namespace std; #define ll long long #define lson k << 1 #define rson k << 1 | 1 int main() { long double a, b; cin >> a >> b; printf("%.0Lf", floor(a * b)); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 2, 63, 22], ["+", 0, 2, 3, 4, 0, 2, 3, 4, 0, 24], ["+", 0, 2, 3, 4, 0, 2, 3, 4, 0, 25]]
1
47
#include <algorithm> #include <complex> #include <fstream> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; long lon...
#include <algorithm> #include <complex> #include <fstream> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; long lon...
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["+", 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, 74, 0, 24], ["+", 49, 50, 51, 74, 39, 77, 39, 86, 0, 96], ["+", 8, 9, 0, 43, 49, 50, 51, 74, 0, 25]]
1
134
#include <algorithm> #include <array> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <deque> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define REP(i...
#include <algorithm> #include <array> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <deque> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define REP(i...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 3, 4, 0, 2, 3, 4, 0, 16, 31, 22], ["-", 3, 4, 0, 2, 3, 4, 0, 16, 17, 48], ["+", 3, 4, 0, 2, 3, 4, 0, 16, 17, 48], ["+", 3, 4, 0, 2, 3, 4, 0, 16, 12, 22]]
1
275
#include <bits/stdc++.h> using namespace std; int main() { long long int a; double b; cin >> a >> b; long long int x = trunc(a * b); cout << x << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long int a; long double b; cin >> a >> b; long long int x = trunc(a * b); cout << x << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
47
A,B = map(str,input().split()) A = int(A) B = float(B) print(int((A*B)//1))
from decimal import Decimal A,B = map(str,input().split()) A = int(A) B = Decimal(B) 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, 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
41
#include <bits/stdc++.h> using namespace std; int main() { double a, b; cin >> a >> b; cout << int(a * b) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long double a, b; cin >> a >> b; cout << (long long)(a * b) << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 16, 31, 16, 12, 2, 63, 40], ["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 24], ["+", 31, 16, 12, 74, 39, 77, 39, 86, 0, 96], ["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 25]]
1
34
import math a,b=map(str,input().split( )) print(math.floor(int(a)*float(b)))
import math from decimal import Decimal a,b=map(str,input().split( )) print(math.floor(int(a)*Decimal(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, 652, 3, 4, 0, 657, 12, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 657, 12, 652, 63, 22]]
5
35
#include <bits/stdc++.h> #define ll long long #define dl long double #define pb push_back #define F first #define S second #define endl "\n" #define rep(i, a, b) for (i = a; i < b; i++) #define all(v) v.begin(), v.end() #define allr(v) v.rbegin(), v.rend() #define mod 1000000007LL #define CIN(V, s, n) ...
#include <bits/stdc++.h> #define ll long long #define dl long double #define pb push_back #define F first #define S second #define endl "\n" #define rep(i, a, b) for (i = a; i < b; i++) #define all(v) v.begin(), v.end() #define allr(v) v.rbegin(), v.rend() #define mod 1000000007LL #define CIN(V, s, n) ...
[["+", 8, 9, 0, 1, 0, 16, 12, 74, 0, 24], ["+", 0, 1, 0, 16, 12, 74, 39, 77, 39, 78], ["+", 8, 9, 0, 1, 0, 16, 12, 74, 0, 25]]
1
710
#include <iostream> using namespace std; int main() { long long int a; double b; cin >> a >> b; cout << (long long int)(a * b) << endl; }
#include <algorithm> #include <iostream> using namespace std; int main() { long long int a; long double b; cin >> a >> b; cout << (long long int)(a * b) << endl; }
[["+", 36, 36, 36, 36, 0, 30, 0, 135, 136, 137], ["+", 36, 36, 36, 36, 0, 30, 0, 135, 0, 138], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
41
from decimal import Decimal a, b = map(Decimal, input().split()) print(math.floor(a * b))
from decimal import Decimal import math a, b = map(Decimal, input().split()) 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]]
5
31
#include <bits/stdc++.h> using namespace std; using Graph = vector<vector<int>>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) typedef long long ll; template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } template <class T> inline bool chmax(T &a, T b) {...
#include <bits/stdc++.h> using namespace std; using Graph = vector<vector<int>>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) typedef long long ll; template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } template <class T> inline bool chmax(T &a, T b) {...
[["+", 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
132
from math import floor A, B = input().split() A = int(A) B = float(B) print(floor(A * B))
from math import floor from decimal import * A, B = input().split() A = int(A) B = Decimal(B) print(floor(A * B))
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 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
36
#include <bits/stdc++.h> using namespace std; int main() { double A, B; cin >> A >> B; cout << (long)(A * B) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long double A, B; cin >> A >> B; cout << (long long)(A * B) << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 31, 16, 12, 74, 39, 77, 39, 86, 0, 96]]
1
36
temp = input().split() a = int(temp[0]) b = int(float(temp[1])*100) print(int(a*b//100))
temp = input().split() a = int(temp[0]) b = int(float(temp[1])*100+0.01) print(int(a*b//100))
[["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 531]]
5
43
#include <algorithm> #include <climits> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <set> #include <stack> #include <stdio.h> #include <stdlib.h> #include <string> #include <vector> using namespace std; #define Endl '\n' int main() { long long int a; double b; cin >> a >> b; ...
#include <algorithm> #include <climits> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <set> #include <stack> #include <stdio.h> #include <stdlib.h> #include <string> #include <vector> using namespace std; #define Endl '\n' int main() { long double a; long double b; cin >> a >> b...
[["-", 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
65
#include <algorithm> #include <climits> #include <cmath> #include <functional> #include <iostream> #include <list> #include <map> #include <math.h> #include <queue> #include <set> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #include <unordered_set> #include <vector> using namespace std...
#include <algorithm> #include <climits> #include <cmath> #include <functional> #include <iostream> #include <list> #include <map> #include <math.h> #include <queue> #include <set> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #include <unordered_set> #include <vector> using namespace std...
[["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 17, 72], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25]]
1
86
import math s = input().split() s[1] = s[1].replace(".", "") num = int(s[0]) * int(s[1]) print(math.floor(num/100))
import math s = input().split() s[1] = s[1].replace(".", "") num = int(s[0]) * int(s[1]) print(num // 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], ["-", 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
58
#include <bits/stdc++.h> using namespace std; #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0) #define endl "\n...
#include <bits/stdc++.h> using namespace std; #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0) #define endl "\n...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40]]
1
396
import math from decimal import Decimal A, B = map(float, input().split()) print(math.floor(Decimal(A)*Decimal(B)))
import math from decimal import Decimal A, B = map(Decimal, input().split()) print(math.floor((A)*(B)))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["-", 0, 652, 3, 4, 0, 657, 31, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 657, 12, 652, 63, 22]]
5
39
import math import decimal a, b = map(str, input().split()) a = decimal.Decimal(a) b = decimal.Decimal(b) print(a, b) ans = a * b ans = math.floor(ans) print(int(ans))
import math import decimal a, b = map(str, input().split()) a = decimal.Decimal(a) b = decimal.Decimal(b) ans = a * b ans = math.floor(ans) print(int(ans))
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
62
#include <bits/stdc++.h> using namespace std; int main() { long long a; double b, res; // long double res; cin >> a >> b; res = a * b; cout << (long long)res; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long a; long double b, res; cin >> a >> b; res = (long double)a * b; cout << (long long)res; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 1, 0, 11, 12, 16, 31, 74, 0, 24], ["+", 12, 16, 31, 74, 39, 77, 39, 86, 0, 96], ["+", 12, 16, 31, 74, 39, 77, 39, 86, 39, 40], ["+", 0, 1, 0, 11, 12, 16, 31, 74, 0, 25]]
1
45
#include <bits/stdc++.h> #include <climits> #include <sstream> using namespace std; int main() { long long A; double B; cin >> A >> B; cout << (long long)(A * B) << endl; }
#include <bits/stdc++.h> #include <climits> #include <sstream> using namespace std; int main() { long long A; long double B; cin >> A >> B; cout << (long long)((floor)(A * B)) << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 25], ["+", 0, 16, 31, 16, 12, 74, 51, 23, 0, 24], ["+", 12, 74, 51, 23, 0, 2, 63, 23, 0, 24], ["+", 12, 74, 51, 23, 0, 2, 63, 23, 0, 22], ["+", 12, 74, 51, 23, 0, 2, 3, 4, 0, 25]]
1
43
s = input().split() a = int(s[0]) b = float(s[1]) print(int(a * b))
from decimal import Decimal s = input().split() a = int(s[0]) b = Decimal(s[1]) 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
36
#include <bits/stdc++.h> using namespace std; #define itn int int main() { long long a; double b; cin >> a >> b; cout << (long long)floor(a * b); }
#include <bits/stdc++.h> using namespace std; #define itn int int main() { long double a; long double b; cin >> a >> b; cout << (long long)floor(a * b); }
[["-", 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, 0, 96]]
1
41
#include <bits/stdc++.h> #define ll long long int using namespace std; int main() { double a; double b; cin >> a >> b; double p = a * b; ll q = (ll)p; cout << q << endl; return 0; }
#include <bits/stdc++.h> #define ll long long int using namespace std; int main() { long double a; long double b; cin >> a >> b; long double p = a * b; ll q = (ll)p; cout << q << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
51
#include <bits/stdc++.h> using namespace std; #define IO ios_base::sync_with_stdio(false) #define ll long long ll a[300000]; int main() { IO; ll i, j = 1, k = 0, mod = 1e9 + 7, m, n, n1, m1, l = 0, p, t, h, cnt = 0; double b; cin >> n >> b; b *= n; n = b; cout << n << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define IO ios_base::sync_with_stdio(false) #define ll long long ll a[300000]; int main() { IO; ll i, j = 1, k = 0, mod = 1e9 + 7, m, n, n1, m1, l = 0, p, t, h, cnt = 0; long double b; cin >> n >> b; b *= n; n = b; cout << n << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
91
#include <algorithm> #include <cstdlib> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <unordered_map> #include <vector> using namespace std; using ll = long long; using ull = unsigned long long; ll amari = 1000000007; #define rep(n, ...
#include <algorithm> #include <cstdlib> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <unordered_map> #include <vector> using namespace std; using ll = long long; using ull = unsigned long long; ll amari = 1000000007; #define rep(n, ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79], ["-", 8, 9, 0, 57, 64, 1, 0, 11, 17, 32], ["-", 8, 9, 0, 57, 64, 1, 0, 11, 12, 13], ["+", 8, 9, 0, 57, 64, 1, 0, 27, 17, 29]]
1
362
N = int(input()) primes = {} for num in range(2, int(N**0.5)+1): while N%num == 0: if num in primes: primes[num] += 1 else: primes[num] = 1 N //= num ans = 0 # print(primes) for p in primes.values(): n = 1 while n*(n+1)//2 <= p: n += 1 ans += n-1 if ans == 0 and N > 1: ans = 1 prin...
N = int(input()) primes = {} for num in range(2, int(N**0.5)+1): while N%num == 0: if num in primes: primes[num] += 1 else: primes[num] = 1 N //= num ans = 0 for p in primes.values(): n = 1 while n*(n+1)//2 <= p: n += 1 ans += n-1 if N > 1: ans += 1 print(ans)
[["-", 0, 656, 0, 57, 15, 679, 31, 666, 0, 22], ["-", 0, 656, 0, 57, 15, 679, 31, 666, 667, 60], ["-", 0, 656, 0, 57, 15, 679, 31, 666, 0, 612], ["-", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355], ["-", 0, 57, 64, 196, 0, 1, 0, 662, 0, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 17, 107]]
5
111
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <cmath> #include <cstdint> #include <cstdio> #include <deque> #include <iomanip> //cout << fixed << setprecision(15) << << endl; #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #in...
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <cmath> #include <cstdint> #include <cstdio> #include <deque> #include <iomanip> //cout << fixed << setprecision(15) << << endl; #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #in...
[["-", 8, 9, 0, 57, 64, 1, 0, 11, 17, 32], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 17, 107]]
1
264
#include <bits/stdc++.h> using namespace std; #define _GLIBCXX_DEBUG #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) using ll = long long; using ld = long double; #define rep2(i, s, n) for (ll i = (s); i < (ll)(n); i++) #define rep3(i, n) for (ll i = 1; i < (ll)(n + 1); i++) #define rep4(i, s, n) for (ll i = (s); i ...
#include <bits/stdc++.h> using namespace std; #define _GLIBCXX_DEBUG #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) using ll = long long; using ld = long double; #define rep2(i, s, n) for (ll i = (s); i < (ll)(n); i++) #define rep3(i, n) for (ll i = 1; i < (ll)(n + 1); i++) #define rep4(i, s, n) for (ll i = (s); i ...
[["-", 0, 14, 8, 9, 0, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 9, 0, 43, 39, 78]]
1
398
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (n); i++) #define rrep(i, n) for (ll i = 1; i <= (n); ++i) #define drep(i, n) for (ll i = (n)-1; i >= 0; --i) #define all(v) v.begin(), v.end() #define len(x) (ll)(x).length() #define maxs(x, y) x = max(x, y) #define mins(x, y) x = min(x, y) #define pb push_...
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (n); i++) #define rrep(i, n) for (ll i = 1; i <= (n); ++i) #define drep(i, n) for (ll i = (n)-1; i >= 0; --i) #define all(v) v.begin(), v.end() #define len(x) (ll)(x).length() #define maxs(x, y) x = max(x, y) #define mins(x, y) x = min(x, y) #define pb push_...
[["+", 0, 338, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 338, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 338, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 8, 9, 0, 338, 8, 9, 0, 1, 0, 35]]
1
842
#include <algorithm> #include <bits/stdc++.h> #include <iostream> using namespace std; int main() { long long n, m; cin >> n; int ans = 0; for (long long i = 2; i <= n; i++) { if (n <= i * i) { ans++; break; } if (n % i == 0) { int ansi = 0; while (n % i == 0) { n /= ...
#include <algorithm> #include <bits/stdc++.h> #include <iostream> using namespace std; int main() { long long n, m; cin >> n; int ans = 0; for (long long i = 2; i <= n; i++) { if (n <= i * i) { ans++; break; } if (n % i == 0) { int ansi = 0; while (n % i == 0) { n /= ...
[["-", 64, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 64, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 57, 64, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 57, 64, 9, 0, 7, 15, 16, 12, 13]]
1
162
// 素因数分解 #include <bits/stdc++.h> #define rep(i, N) for (int i = 0; i < (N); ++i) #define all(v) v.begin(), v.end() using namespace std; using ll = long long; using P = pair<int, int>; const int inf{int(1e9)}; int main(void) { int N; cin >> N; // 素因数とその肩に乗ってる指数のペア vector<pair<ll, int>> fs; for (ll i = 2; i...
// 素因数分解 #include <bits/stdc++.h> #define rep(i, N) for (int i = 0; i < (N); ++i) #define all(v) v.begin(), v.end() using namespace std; using ll = long long; using P = pair<int, int>; const int inf{int(1e9)}; int main(void) { ll N; cin >> N; // 素因数とその肩に乗ってる指数のペア vector<pair<ll, int>> fs; for (ll i = 2; i ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
190
#include <bits/stdc++.h> using namespace std; vector<pair<long long, long long>> prime_factorize(long long N) { vector<pair<long long, long long>> A; for (long long i = 2; i * i <= N; i++) { if (N % i != 0) { continue; } long long ex = 0; while (N % i == 0) { ex++; N /= i; } ...
#include <bits/stdc++.h> using namespace std; vector<pair<long long, long long>> prime_factorize(long long N) { vector<pair<long long, long long>> A; for (long long i = 2; i * i <= N; i++) { if (N % i != 0) { continue; } long long ex = 0; while (N % i == 0) { ex++; N /= i; } ...
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 33], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]]
1
227
import math n = int(input()) #Prime factoring pf = [] for i in range(2,math.ceil(n**0.5)+1): temp = 0 while n%i==0: n /= i temp += 1 if temp: pf.append(temp) if n==1: break if not pf and n!=1: pf.append(1) ans = 0 for i in range(len(pf)): j = 1 while pf[i]-...
import math n = int(input()) #Prime factoring pf = [] for i in range(2,math.ceil(n**0.5)+1): temp = 0 while n%i==0: n /= i temp += 1 if temp: pf.append(temp) if n==1: break if n!=1: pf.append(1) ans = 0 for i in range(len(pf)): j = 1 while pf[i]-j>=0: ...
[["-", 0, 656, 0, 57, 15, 679, 31, 681, 0, 372], ["-", 0, 656, 0, 57, 15, 679, 31, 681, 28, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355]]
5
122
#include <cmath> #include <iostream> #include <set> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using P = pair<int, int>; int mod = (int)1e9 + 7; int is_prime(int n) { if (n == 1) return 0; if (n == 2) return 1; int i = 2; while (i * i <= n)...
#include <cmath> #include <iostream> #include <set> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using P = pair<int, int>; int mod = (int)1e9 + 7; int is_prime(long n) { if (n == 1) return 0; if (n == 2) return 1; long i = 2; while (i * i <= ...
[["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["+", 49, 53, 54, 55, 0, 56, 39, 86, 0, 96], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
245
#include <bits/stdc++.h> using namespace std; #define INF 1e9 #define rep(i, n) for (int i = 0; i < (n); ++i) #define ALL(x) (x).begin(), (x).end() typedef long long ll; typedef vector<int> vi; typedef vector<ll> vl; typedef pair<int, int> pii; template <typename T1, typename T2> inline void chmin(T1 &a, T2 b) { if (...
#include <bits/stdc++.h> using namespace std; #define INF 1e9 #define rep(i, n) for (int i = 0; i < (n); ++i) #define ALL(x) (x).begin(), (x).end() typedef long long ll; typedef vector<int> vi; typedef vector<ll> vl; typedef pair<int, int> pii; template <typename T1, typename T2> inline void chmin(T1 &a, T2 b) { if (...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 48], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 2, 63, 22], ["+", 15, 339, 51, 16, 12, 2, 3, 4, 0, 24], ["+", 15, 339, 51, 16, 12, 2, 3, 4, 0, 25]]
1
276
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) #define REP(i, x, n) for (int i = x; i < n; i++) using namespace std; using vi = vector<int>; using vvi = vector<vi>; using ll = long long; int main() { int n; cin >> n; vector<pair<ll, int>> vec; for (ll i = 2; i * i <= n; i++) { int ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) #define REP(i, x, n) for (int i = x; i < n; i++) using namespace std; using vi = vector<int>; using vvi = vector<vi>; using ll = long long; int main() { ll n; cin >> n; vector<pair<ll, int>> vec; for (ll i = 2; i * i <= n; i++) { int x...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
193
#include "bits/stdc++.h" using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < (n); i++) int main() { ll n; ll buf; int i, j, k; int count = 0; cin >> n; buf = pow(n, 0.5); for (i = 2; i <= buf; i++) { if (n == 1) break; j = 0; while (n % i == 0) { n /= ...
#include "bits/stdc++.h" using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < (n); i++) int main() { ll n; ll buf; int i, j, k; int count = 0; cin >> n; buf = pow(n, 0.5); for (i = 2; i <= buf; i++) { if (n == 1) break; j = 0; while (n % i == 0) { n /= ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
144
import copy n=int(input()) def prime_factorize(n): a = [] while n % 2 == 0: a.append(2) n //= 2 f = 3 while f * f <= n: if n % f == 0: a.append(f) n //= f else: f += 2 if n != 1: a.append(n) return a L=prime_factorize(...
import copy n=int(input()) def prime_factorize(n): a = [] while n % 2 == 0: a.append(2) n //= 2 f = 3 while f * f <= n: if n % f == 0: a.append(f) n //= f else: f += 2 if n != 1: a.append(n) return a L=prime_factorize(...
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20]]
5
152
#include <bits/stdc++.h> #include <set> using namespace std; using pii = pair<int, int>; using pll = pair<long long, long long>; const long long INF = 1 << 29; const int MOD = 1000000007; long long ruizyou(long long m, long long n) { if (m == 0) return 0; if (m == 1) return 1; long long ans = 1; long l...
#include <bits/stdc++.h> #include <set> using namespace std; using pii = pair<int, int>; using pll = pair<long long, long long>; const long long INF = 1 << 29; const int MOD = 1000000007; long long ruizyou(long long m, long long n) { if (m == 0) return 0; if (m == 1) return 1; long long ans = 1; long l...
[["-", 8, 9, 0, 7, 15, 16, 31, 16, 17, 48], ["-", 8, 9, 0, 7, 15, 16, 31, 16, 12, 22]]
1
1,328
N = int(input()) res = {} ans = 0 for i in range(2,int(N**(1/2))+1) : while(N%i == 0) : if(i not in res) : res[i] = 1 else : res[i] += 1 N /= i if(N != 1) : res[N] = 1 for i in res : b = 1 s = res[i] while(b <= s) : ans += 1 s -= 1 ...
N = int(input()) res = {} ans = 0 i = 2 for i in range(2,int(N**(1/2))+1) : while(N%i == 0) : if(i not in res) : res[i] = 1 else : res[i] += 1 N /= i if(N != 1) : res[N] = 1 for i in res : b = 1 s = res[i] while(b <= s) : ans += 1 ...
[["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["-", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 22]]
5
117
#!/usr/bin/env python3 # -*- coding: utf-8 -*- def main(): a_s, b_s = input().split() a, b = int(a_s), float(b_s) print(int(a * b)) if __name__ == '__main__': main()
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from fractions import Fraction def main(): a_s, b_s = input().split() a, b = int(a_s), Fraction(b_s) print(int(a * b)) if __name__ == '__main__': main()
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["-", 0, 1, 0, 662, 12, 432, 0, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 432, 0, 652, 63, 22]]
5
50
#include <bits/stdc++.h> using namespace std; //#define int long long typedef long long ll; typedef unsigned long long ul; typedef unsigned int ui; const ll mod = 1000000007; const ll INF = mod * mod; const int INF_N = 1e+9; typedef pair<int, int> P; #define stop ...
#include <bits/stdc++.h> using namespace std; //#define int long long typedef long long ll; typedef unsigned long long ul; typedef unsigned int ui; const ll mod = 1000000007; const ll INF = mod * mod; const int INF_N = 1e+9; typedef pair<int, int> P; #define stop ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
864
#include <bits/stdc++.h> using namespace std; #define fastio \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); ...
#include <bits/stdc++.h> using namespace std; #define fastio \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); ...
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
254
#include <algorithm> #include <cmath> #include <cstdio> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <unordered_map> using namespace std; typedef long long ll; #define FOR(i, a, b) for (int i = (a); i < (b); ++...
#include <algorithm> #include <cmath> #include <cstdio> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <unordered_map> using namespace std; typedef long long ll; #define FOR(i, a, b) for (int i = (a); i < (b); ++...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 16, 31, 74, 39, 77, 39, 86, 0, 96]]
1
100
//#pragma once #include <algorithm> #include <bitset> #include <cctype> #include <cstdlib> // srand,rand #include <functional> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <numeric> #include <queue> #include <random> #include <set> #include <sstream> #include <stdio.h> #include <stdl...
//#pragma once #include <algorithm> #include <bitset> #include <cctype> #include <cstdlib> // srand,rand #include <functional> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <numeric> #include <queue> #include <random> #include <set> #include <sstream> #include <stdio.h> #include <stdl...
[["-", 0, 43, 49, 50, 51, 16, 12, 74, 51, 13], ["+", 0, 43, 49, 50, 51, 16, 12, 74, 51, 13]]
1
2,352
#include <algorithm> #include <cctype> #include <cmath> #include <cstdlib> #include <iomanip> #include <iostream> #include <numeric> #include <queue> #include <set> #include <string> #include <unordered_map> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) typedef pair<int, in...
#include <algorithm> #include <cctype> #include <cmath> #include <cstdlib> #include <iomanip> #include <iostream> #include <numeric> #include <queue> #include <set> #include <string> #include <unordered_map> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) typedef pair<int, in...
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40]]
1
139
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG using namespace std; #define REP(i, m, n) for (int i = (int)(m); i < (int)(n); ++i) #define rep(i, n) REP(i, 0, n) #define square(x) pow(x 2.0) #define all(x) (x).begin(), (x).end() #define F first #define S second #define max_queue(x) priority_queue<x> #define min_queue(...
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG using namespace std; #define REP(i, m, n) for (int i = (int)(m); i < (int)(n); ++i) #define rep(i, n) REP(i, 0, n) #define square(x) pow(x 2.0) #define all(x) (x).begin(), (x).end() #define F first #define S second #define max_queue(x) priority_queue<x> #define min_queue(...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 16, 31, 16, 12, 74, 39, 77, 39, 40], ["+", 0, 16, 31, 16, 12, 2, 63, 23, 0, 22]]
1
229
A, B = map(float, input().split()) B = round(B * 100, 0) A = int(A) ans = int(A * B // 100) print(ans)
A, B = map(float, input().split()) B = int(round(B * 100, 0)) A = int(A) ans = A * B // 100 print(ans)
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
46
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef pair<ll, ll> P; typedef vector<ll> VI; typedef vector<VI> VVI; const ll MOD = 998244353; const ll INF = 4611686018427387903; #define REP(i, n) for (int i = 0; i < n; i++) #define ALL(v) v.begin(), v.end() int main() { ll a; cin >> a; ...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef pair<ll, ll> P; typedef vector<ll> VI; typedef vector<VI> VVI; const ll MOD = 998244353; const ll INF = 4611686018427387903; #define REP(i, n) for (int i = 0; i < n; i++) #define ALL(v) v.begin(), v.end() int main() { ll a; cin >> a; ...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
97
import math a, b = map(float, input().split()) a = int(a) b *= 100 b = int(b) print(int(a*b//100))
from decimal import * a, b = map(Decimal, input().split()) a = int(a) b *= 100 b = int(b) print(int(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, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 36, 36, 0, 656, 0, 686, 0, 690, 0, 48], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
44
#include <algorithm> #include <bitset> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; #define REP(i, n) for (ll(i) = (0); (i) < (n); ++i) #define REV(i, n) for (ll(i)...
#include <algorithm> #include <bitset> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; #define REP(i, n) for (ll(i) = (0); (i) < (n); ++i) #define REV(i, n) for (ll(i)...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 17, 72], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13]]
1
165
a, b = input().split() a = int(a) b = int(100 * float(b)) print(a * b // 100)
a, b = input().split() a = int(a) b = round(100 * float(b)) print(a * b // 100)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
36
#include <bits/stdc++.h> using namespace std; ////////////////// #ifdef DEBUG #include "debug.h" #define DEB #define dump(...) \ DUMPOUT << " " << string(#__VA_ARGS__) << ": " \ << "[" << to_string(__LINE__) << ":" ...
#include <bits/stdc++.h> using namespace std; ////////////////// #ifdef DEBUG #include "debug.h" #define DEB #define dump(...) \ DUMPOUT << " " << string(#__VA_ARGS__) << ": " \ << "[" << to_string(__LINE__) << ":" ...
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]]
1
417
import sys, math,os from io import BytesIO, IOBase #from bisect import bisect_left as bl, bisect_right as br, insort #from heapq import heapify, heappush, heappop from collections import defaultdict as dd, deque, Counter #from itertools import permutations,combinations def data(): return sys.stdin.readline().strip() de...
import sys, math,os from io import BytesIO, IOBase #from bisect import bisect_left as bl, bisect_right as br, insort #from heapq import heapify, heappush, heappop from collections import defaultdict as dd, deque, Counter #from itertools import permutations,combinations def data(): return sys.stdin.readline().strip() de...
[["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 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]]
5
167
#include <bits/stdc++.h> using namespace std; #define rep(i, a, b) for (int i = int(a); i < int(b); i++) typedef long long ll; int main() { double a, b; cin >> a >> b; ll c = a * b; cout << c << endl; }
#include <bits/stdc++.h> using namespace std; #define rep(i, a, b) for (int i = int(a); i < int(b); i++) typedef long long ll; int main() { long double a, b; cin >> a >> b; ll c = a * b; cout << c << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
51
#include <bits/stdc++.h> #define int long long //#pragma GCC optimize("Ofast") //#pragma comment(linker, "/stack:200000000") //#pragma GCC target("sse,sse2,sse3,ssse3,sse4") #define file(s) \ freopen(s ".in", "r", stdin); ...
#include <bits/stdc++.h> #define int long long //#pragma GCC optimize("Ofast") //#pragma comment(linker, "/stack:200000000") //#pragma GCC target("sse,sse2,sse3,ssse3,sse4") #define file(s) \ freopen(s ".in", "r", stdin); ...
[["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96]]
1
245
#デフォルト import itertools from collections import defaultdict import collections import math import sys sys.setrecursionlimit(200000) mod = 1000000007 a, b = map(float, input().split()) print(math.floor(a * b))
#デフォルト import itertools from collections import defaultdict import collections import math import sys from decimal import * sys.setrecursionlimit(200000) mod = 1000000007 a, b = map(Decimal, input().split()) print(math.floor(a * b))
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 0, 690, 0, 48], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
49
#include <bits/stdc++.h> #define all(a) a.begin(), a.end() #define forn(i, n) for (int i = 0; i < (int)n; i++) #define ios \ ios::sync_with_stdio(false); \ cin.tie(0); ...
#include <bits/stdc++.h> #define all(a) a.begin(), a.end() #define forn(i, n) for (int i = 0; i < (int)n; i++) #define ios \ ios::sync_with_stdio(false); \ cin.tie(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]]
1
68
import math from functools import reduce from collections import deque import sys sys.setrecursionlimit(10**7) def input(): return sys.stdin.readline().strip() # スペース区切りの入力を読み込んで数値リストにして返します。 def get_nums_l(): return [ int(s) for s in input().split(" ")] # 改行区切りの入力をn行読み込んで数値リストにして返します。 def get_nums_n(n): ...
import math from functools import reduce from collections import deque import sys sys.setrecursionlimit(10**7) from decimal import Decimal def input(): return sys.stdin.readline().strip() # スペース区切りの入力を読み込んで数値リストにして返します。 def get_nums_l(): return [ int(s) for s in input().split(" ")] # 改行区切りの入力をn行読み込んで数値リストにして...
[["+", 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
213
#include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <cstdio> #include <cstdlib> #include <ctime> #include <deque> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> #define llint long ...
#include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <cstdio> #include <cstdlib> #include <ctime> #include <deque> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> #define llint long ...
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
147
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <climits> #include <cmath> #include <cstdint> #include <cstdio> #include <cstdlib> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include...
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <climits> #include <cmath> #include <cstdint> #include <cstdio> #include <cstdlib> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
177
#include <algorithm> #include <bits/stdc++.h> #include <cstdio> #include <cstring> #include <iostream> #include <string> using namespace std; const int MAX_N = int(1e6) + 10; const long long int MOD = 1e9 + 7; const long long int INF = 1e18; typedef long long int ll; typedef unsigned long long int llu; ll max(ll ...
#include <algorithm> #include <bits/stdc++.h> #include <cstdio> #include <cstring> #include <iostream> #include <string> using namespace std; const int MAX_N = int(1e6) + 10; const long long int MOD = 1e9 + 7; const long long int INF = 1e18; typedef long long int ll; typedef unsigned long long int llu; ll max(ll ...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
137
#include <bits/stdc++.h> #define int long long using namespace std; long double A, B; int32_t main() { ios_base::sync_with_stdio(0); cin >> A >> B; cout << trunc(A * B) << "\n"; }
#include <bits/stdc++.h> #define int long long using namespace std; long double A, B; int32_t main() { ios_base::sync_with_stdio(0); cin >> A >> B; cout << (long long)(A * B) << "\n"; }
[["-", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 24], ["+", 31, 16, 12, 74, 39, 77, 39, 86, 0, 96], ["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 25]]
1
47
#include <bits/stdc++.h> using namespace std; typedef double D; typedef long long ll; typedef long double ld; typedef unsigned int ui; typedef unsigned long long ull; #define F first #define S second #define R return #define C continue #define pb push_back #define pf push_front #define mp make_pair #define vi vecto...
#include <bits/stdc++.h> using namespace std; typedef double D; typedef long long ll; typedef long double ld; typedef unsigned int ui; typedef unsigned long long ull; #define F first #define S second #define R return #define C continue #define pb push_back #define pf push_front #define mp make_pair #define vi vecto...
[["-", 8, 9, 0, 1, 0, 16, 12, 2, 63, 40], ["+", 8, 9, 0, 1, 0, 16, 12, 2, 63, 22]]
1
440
import math AB = input().split() a = int(AB[0]) b = float(AB[1]) print(math.floor(a * b))
from decimal import Decimal import math AB = input().split() a = int(AB[0]) b = Decimal(AB[1]) print(math.floor(a * b))
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
40
#include <stdio.h> int main() { long long a; double b; scanf("%lld %lf", &a, &b); long long ans = a * (long long)(100 * b); printf("%lld", ans / 100); return 0; }
#include <stdio.h> int main() { long long a; double b; scanf("%lld %lf", &a, &b); long long ans = a * (long long)(100 * b + 0.5); printf("%lld", ans / 100); return 0; }
[["+", 51, 16, 12, 74, 51, 23, 0, 16, 17, 72], ["+", 51, 16, 12, 74, 51, 23, 0, 16, 12, 13]]
0
58
#include <bits/stdc++.h> using namespace std; #define ll long long #define fix \ cout << fixed; \ cout << setprecision(10) void solve() { double a, b; cin >> a >> b; cout << (ll...
#include <bits/stdc++.h> using namespace std; #define ll long long #define fix \ cout << fixed; \ cout << setprecision(10) void solve() { long double a, b; cin >> a >> b; cout <...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
72
#include <algorithm> #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; typedef long long ll; typedef pair<int, int> P; int main() { ll a; cin >> a; double b; cin >> b; ll c = a * b; cout << c << endl; return 0; }
#include <algorithm> #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; typedef long long ll; typedef pair<int, int> P; int main() { ll a; cin >> a; long double b; cin >> b; ll c = a * b; cout << c << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
72
A, B = input().split() A = int(A) B = float(B) X = A * int(100*B) print(X//100)
A, B = input().split() A = int(A) B = float(B) X = A * round(100*B) print(X//100)
[["-", 0, 1, 0, 662, 12, 657, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 657, 12, 652, 63, 22]]
5
39
#include "bits/stdc++.h" using namespace std; int main() { double a, b; cin >> a >> b; long long int n = (long double)a * b; cout << n; return 0; }
#include "bits/stdc++.h" using namespace std; int main() { long double a, b; cin >> a >> b; long long int n = (long double)a * b; cout << n; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
45
from decimal import * def main(): A,B = input().split() A = int(A) B = float(B) A,B = Decimal(A),Decimal(B) print((A*B).quantize(Decimal('0'), rounding=ROUND_DOWN)) if __name__ == '__main__': main()
from decimal import * def main(): A,B = input().split() A = int(A) A,B = Decimal(A),Decimal(B) print((A*B).quantize(Decimal('0'), rounding=ROUND_DOWN)) if __name__ == '__main__': main()
[["-", 0, 14, 8, 196, 0, 1, 0, 662, 31, 22], ["-", 0, 14, 8, 196, 0, 1, 0, 662, 0, 32], ["-", 8, 196, 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
77
import sys from math import log2,floor,ceil,sqrt # import bisect # from collections import deque # from types import GeneratorType # def bootstrap(func, stack=[]): # def wrapped_function(*args, **kwargs): # if stack: # return func(*args, **kwargs) # else: # call = func(*args...
import sys from math import log2,floor,ceil,sqrt # import bisect # from collections import deque # from types import GeneratorType # def bootstrap(func, stack=[]): # def wrapped_function(*args, **kwargs): # if stack: # return func(*args, **kwargs) # else: # call = func(*args...
[["-", 0, 1, 0, 662, 12, 657, 12, 657, 17, 85], ["+", 0, 1, 0, 662, 12, 657, 12, 657, 17, 676], ["-", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
454
#include <bits/stdc++.h> #define ll long long #define ld long double using namespace std; int main() { ios::sync_with_stdio(0), cin.tie(0); ll a; ld b; cin >> a >> b; int res = a * b; printf("%d\n", res); // cout << (ll)a*b << "\n"; return 0; }
#include <bits/stdc++.h> #define ll long long #define ld long double using namespace std; int main() { ios::sync_with_stdio(0), cin.tie(0); ll a; ld b; cin >> a >> b; ll res = a * b; printf("%ld\n", res); // cout << (ll)a*b << "\n"; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
65
s_list = input().split() c = str(int(s_list[0])*float(s_list[1])) print(c.split(".")[0])
from decimal import Decimal s_list = input().split() c = str(int(s_list[0])*Decimal(s_list[1])) print(c.split(".")[0])
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["-", 12, 652, 3, 4, 0, 657, 12, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 657, 12, 652, 63, 22]]
5
43
#include <algorithm> #include <cmath> #include <deque> #include <iostream> #include <numeric> #include <queue> #include <string> #include <unordered_map> #include <vector> using namespace std; using ll = long long; void _cin() {} template <class Head, class... Tail> void _cin(Head &&head, Tail &&...tail) { cin >> h...
#include <algorithm> #include <cmath> #include <deque> #include <iostream> #include <numeric> #include <queue> #include <string> #include <unordered_map> #include <vector> using namespace std; using ll = long long; void _cin() {} template <class Head, class... Tail> void _cin(Head &&head, Tail &&...tail) { cin >> h...
[["-", 0, 2, 3, 4, 0, 16, 31, 2, 63, 22], ["-", 3, 4, 0, 16, 31, 2, 3, 4, 0, 24], ["+", 3, 4, 0, 16, 31, 16, 12, 74, 0, 24], ["+", 0, 16, 31, 16, 12, 74, 39, 77, 39, 78], ["+", 3, 4, 0, 16, 31, 16, 12, 74, 0, 25], ["-", 3, 4, 0, 16, 12, 2, 3, 4, 0, 25]]
1
460
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define all(v) v.begin(), v.end() using namespace std; typedef long long ll; int main() { double a, b; cin >> a >> b; ll ans = a * b; cout << ans << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define all(v) v.begin(), v.end() using namespace std; typedef long long ll; int main() { ll a; long double b; cin >> a >> b; ll ans = a * b; cout << ans << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40]]
1
58
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define rep2(i, x, n) for (int i = x, i##_len = (n); i < i##_len; ++i) #define all(n) begin(n), end(n) using ll = long long; using P = pair<ll, ll>; using vi = vector<int>; using vl = vector<ll>; using vs = ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define rep2(i, x, n) for (int i = x, i##_len = (n); i < i##_len; ++i) #define all(n) begin(n), end(n) using ll = long long; using P = pair<ll, ll>; using vi = vector<int>; using vl = vector<ll>; using vs = ...
[["-", 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], ["-", 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...
1
157
#include <bits/stdc++.h> using namespace std; #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define ll long long #define REP(i, a, b) for (ll i = a; i < b; i++) #define REPI(i, a, b) for (ll i = b - 1; i >= a; i--) #define i_os ...
#include <bits/stdc++.h> using namespace std; #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define ll long long #define REP(i, a, b) for (ll i = a; i < b; i++) #define REPI(i, a, b) for (ll i = b - 1; i >= a; i--) #define i_os ...
[["-", 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
180
#include <bits/stdc++.h> using namespace std; typedef long long ll; using V = vector<int>; using Q = queue<int>; using Graph = vector<vector<int>>; #define sz(x) ((int)(x).size()) #define in(x) \ int x; ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; using V = vector<int>; using Q = queue<int>; using Graph = vector<vector<int>>; #define sz(x) ((int)(x).size()) #define in(x) \ int x; ...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
200
from decimal import Decimal from decimal import getcontext s = input(); a,b = s.split(); print(Decimal(a)*Decimal(b));
from decimal import Decimal from decimal import getcontext s = input(); a,b = s.split(); print(int(Decimal(a)*Decimal(b)));
[["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 25]]
5
37
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> P; typedef long long ll; template <typename T> void show_vec(vector<T> v); void solve() { ; } int main() { // solve(); ll a; double long b; cin >> a >> b; /*if(a % 10 == 0){ while(a != 1){ b *= 10; a /= 10; ...
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> P; typedef long long ll; template <typename T> void show_vec(vector<T> v); void solve() { ; } int main() { // solve(); ll a; double long b; cin >> a >> b; /*if(a % 10 == 0){ while(a != 1){ b *= 10; a /= 10; ...
[["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 25]]
1
141
#include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define debug1(x) cerr << #x << " = " << x << '\n'; #define debug2(x, y) \ cerr << #x << " = " << x << " " << #y << " = " << y << "\n"; #define _ ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define debug1(x) cerr << #x << " = " << x << '\n'; #define debug2(x, y) \ cerr << #x << " = " << x << " " << #y << " = " << y << "\n"; #define _ ...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
101
#include <bits/stdc++.h> using namespace std; typedef long long int ll; ll MOD = 1000000007; ll INFL = 1ll << 60; ll INF = 1 << 28; // ==================================================================== int main() { ll a; cin >> a; long double x; cin >> x; int b = (int)(x * 100); ll ans = a * b; ans /...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; ll MOD = 1000000007; ll INFL = 1ll << 60; ll INF = 1 << 28; // ==================================================================== int main() { ll a; cin >> a; long double x; cin >> x; int b = (int)(x * 100 + 0.0001); ll ans = a * b...
[["+", 49, 50, 51, 74, 51, 23, 0, 16, 17, 72], ["+", 49, 50, 51, 74, 51, 23, 0, 16, 12, 13]]
1
82
#include <bits/stdc++.h> #define ll long long int #define mod 998244353 ll power(ll x, ll b) { ll p = 1; while (b > 0) { if (b & 1) { p = p * x; p %= mod; } b >>= 1; x *= x; x %= mod; } return p % mod; } using namespace std; int main() { double a, b; cin >> a >> b; double ...
#include <bits/stdc++.h> #define ll long long int #define mod 998244353 ll power(ll x, ll b) { ll p = 1; while (b > 0) { if (b & 1) { p = p * x; p %= mod; } b >>= 1; x *= x; x %= mod; } return p % mod; } using namespace std; int main() { long double a, b; cin >> a >> b; lo...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
109