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; #define rep(i, n) for (int i = 0; i < n; i++) #define per(i, n) for (int i = n - 1; i >= 0; i--) typedef long long ll; typedef pair<int, int> P; typedef pair<long long, long long> Pll; typedef vector<int> vi; typedef vector<ll> vll; const long long mod = 1000000007LL; void...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define per(i, n) for (int i = n - 1; i >= 0; i--) typedef long long ll; typedef pair<int, int> P; typedef pair<long long, long long> Pll; typedef vector<int> vi; typedef vector<ll> vll; const long long mod = 1000000007LL; void...
[["-", 64, 9, 0, 1, 0, 16, 31, 16, 12, 13], ["+", 64, 9, 0, 1, 0, 16, 31, 16, 12, 13], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 13]]
1
219
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define per(i, n) for (int i = n - 1; i >= 0; i--) typedef long long ll; typedef pair<int, int> P; typedef pair<long long, long long> Pll; typedef vector<int> vi; typedef vector<ll> vll; const long long mod = 1000000007LL; void...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define per(i, n) for (int i = n - 1; i >= 0; i--) typedef long long ll; typedef pair<int, int> P; typedef pair<long long, long long> Pll; typedef vector<int> vi; typedef vector<ll> vll; const long long mod = 1000000007LL; void...
[["-", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13], ["+", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13], ["-", 75, 76, 0, 1, 0, 16, 31, 16, 12, 13], ["+", 75, 76, 0, 1, 0, 16, 31, 16, 12, 13]]
1
222
#include <bits/stdc++.h> using namespace std; const int maxn = 2000; int n, t; long long d; long long a[maxn]; char str[maxn]; long long base[100]; int main() { scanf("%d", &t); while (t--) { scanf("%d", &n); bool f = 1; d = 0; memset(base, 0, sizeof(base)); for (int i = 0; i < n; i++) { s...
#include <bits/stdc++.h> using namespace std; const int maxn = 2000; int n, t; long long d; long long a[maxn]; char str[maxn]; long long base[100]; int main() { scanf("%d", &t); while (t--) { scanf("%d", &n); bool f = 1; d = 0; memset(base, 0, sizeof(base)); for (int i = 0; i < n; i++) { s...
[["+", 64, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 0, 57, 75, 76, 0, 9, 0, 1, 0, 35], ["+", 0, 57, 75, 76, 0, 9, 0, 93, 0, 94], ["+", 64, 9, 0, 57, 75, 76, 0, 9, 0, 46]]
1
323
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 205, p = 998244353; int read() { int f = 1, g = 0; char ch = getchar(); for (; !isdigit(ch); ch = getchar()) if (ch == '-') f = -1; for (; isdigit(ch); ch = getchar()) g = g * 10 + ch - '0'; return f * g; } int T, ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 205, p = 998244353; int read() { int f = 1, g = 0; char ch = getchar(); for (; !isdigit(ch); ch = getchar()) if (ch == '-') f = -1; for (; isdigit(ch); ch = getchar()) g = g * 10 + ch - '0'; return f * g; } int T, ...
[["+", 8, 9, 0, 1, 0, 2, 63, 118, 28, 22], ["+", 8, 9, 0, 1, 0, 2, 63, 118, 17, 131], ["+", 8, 9, 0, 1, 0, 2, 63, 118, 119, 120], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
398
#include <bits/stdc++.h> #define ADD(a, b) a = (a + ll(b)) % mod #define MUL(a, b) a = (a * ll(b)) % mod #define MAX(a, b) a = max(a, b) #define MIN(a, b) a = min(a, b) #define rep(i, a, b) for (int i = int(a); i < int(b); i++) #define rer(i, a, b) for (int i = int(a) - 1; i >= int(b); i--) #define all(a) (a).begin(), ...
#include <bits/stdc++.h> #define ADD(a, b) a = (a + ll(b)) % mod #define MUL(a, b) a = (a * ll(b)) % mod #define MAX(a, b) a = max(a, b) #define MIN(a, b) a = min(a, b) #define rep(i, a, b) for (int i = int(a); i < int(b); i++) #define rer(i, a, b) for (int i = int(a) - 1; i >= int(b); i--) #define all(a) (a).begin(), ...
[["-", 0, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 78], ["-", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35], ["-", 0, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 0, 9, 0, 1, 0, 2, 3, 4, 0, 13]]
1
910
#include <bits/stdc++.h> /* snippet: useful macros and functions */ #define ARC(i, a, b) for (Int i = (a); i < (b); ++i) #define RC(i, n) ARC(i, 0, n) #define ARCH(i, a, b) for (Int i = (a)-1; i >= (b); --i) #define RCH(i, n) ARCH(i, n, 0) #define ALL(v) v.begin(), v.end() template <class T> T rng(const T &a, const T ...
#include <bits/stdc++.h> /* snippet: useful macros and functions */ #define ARC(i, a, b) for (Int i = (a); i < (b); ++i) #define RC(i, n) ARC(i, 0, n) #define ARCH(i, a, b) for (Int i = (a)-1; i >= (b); --i) #define RCH(i, n) ARCH(i, n, 0) #define ALL(v) v.begin(), v.end() template <class T> T rng(const T &a, const T ...
[["+", 0, 9, 0, 57, 15, 339, 51, 91, 17, 111], ["-", 64, 9, 0, 1, 0, 16, 12, 103, 0, 125], ["+", 64, 9, 0, 1, 0, 16, 12, 103, 0, 125], ["-", 8, 9, 0, 1, 0, 16, 12, 103, 0, 125], ["+", 8, 9, 0, 1, 0, 16, 12, 103, 0, 125]]
1
1,227
#include <bits/stdc++.h> #define MAXN 100005 #define INF 1000000000 #define MOD 1000000007 #define F first #define S second using namespace std; typedef long long ll; typedef pair<int, int> P; int T, n; struct basis { ll bas[62]; void clear() { memset(bas, 0, sizeof(bas)); } void ins(ll x) { for (int j = 60; ...
#include <bits/stdc++.h> #define MAXN 100005 #define INF 1000000000 #define MOD 1000000007 #define F first #define S second using namespace std; typedef long long ll; typedef pair<int, int> P; int T, n; struct basis { ll bas[62]; void clear() { memset(bas, 0, sizeof(bas)); } void ins(ll x) { for (int j = 60; ...
[["-", 64, 9, 0, 57, 15, 339, 51, 91, 17, 111], ["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
355
#include <bits/stdc++.h> #define int long long #define db long double #define x first #define y second #define mp make_pair #define pb push_back #define all(a) a.begin(), a.end() using namespace std; void solve() { int n; cin >> n; vector<int> v(n); for (int i = 0; i < n; ++i) cin >> v[i]; string s; ...
#include <bits/stdc++.h> #define int long long #define db long double #define x first #define y second #define mp make_pair #define pb push_back #define all(a) a.begin(), a.end() using namespace std; void solve() { int n; cin >> n; vector<int> v(n); for (int i = 0; i < n; ++i) cin >> v[i]; string s; ...
[["-", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94]]
1
329
#include <bits/stdc++.h> using namespace std; #define MAXN 207 int n; long long a[MAXN]; string s; int sz; long long f[MAXN]; int bit[MAXN]; long long calc(long long x) { for (int i = 0; i < sz; ++i) { if ((x & (1LL << bit[i])) > 0) { x ^= f[i]; } } return x; } void add(long long x) { x = cal...
#include <bits/stdc++.h> using namespace std; #define MAXN 207 int n; long long a[MAXN]; string s; int sz; long long f[MAXN]; int bit[MAXN]; long long calc(long long x) { for (int i = 0; i < sz; ++i) { if ((x & (1LL << bit[i])) > 0) { x ^= f[i]; } } return x; } void add(long long x) { x = cal...
[["-", 64, 9, 0, 1, 0, 11, 12, 69, 28, 22], ["+", 64, 9, 0, 1, 0, 11, 12, 69, 28, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
367
#pragma GCC optimize(2) #include <bits/stdc++.h> #define ll long long #define maxn 1000005 #define inf 1e9 #define pb push_back #define rep(i, a, b) for (int i = a; i <= b; i++) #define per(i, a, b) for (int i = a; i >= b; i--) using namespace std; inline ll read() { ll x = 0, w = 1; char c = getchar(); while (c...
#pragma GCC optimize(2) #include <bits/stdc++.h> #define ll long long #define maxn 1000005 #define inf 1e9 #define pb push_back #define rep(i, a, b) for (int i = a; i <= b; i++) #define per(i, a, b) for (int i = a; i >= b; i--) using namespace std; inline ll read() { ll x = 0, w = 1; char c = getchar(); while (c...
[["-", 0, 14, 8, 9, 0, 7, 10, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 7, 10, 43, 39, 78], ["-", 0, 7, 8, 57, 64, 1, 0, 11, 17, 161], ["+", 0, 7, 8, 57, 64, 1, 0, 11, 17, 130], ["-", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 52, 8, 9, 0, 43, 39, 78], ["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5...
1
426
#include <cstdio> #include <iostream> #include <vector> using namespace std; typedef long long ll; ll T; ll n; ll a[205]; string s; vector<ll> ve; int main() { scanf("%lld", &T); while (T--) { bool v = false; scanf("%lld", &n); for (ll i = 0; i < n; i++) { scanf("%lld", &a[i]); } cin >...
#include <cstdio> #include <iostream> #include <vector> using namespace std; typedef long long ll; ll T; ll n; ll a[205]; string s; vector<ll> ve; int main() { scanf("%lld", &T); while (T--) { bool v = false; ve.clear(); scanf("%lld", &n); for (ll i = 0; i < n; i++) { scanf("%lld", &a[i]);...
[["+", 8, 9, 0, 1, 0, 2, 63, 118, 28, 22], ["+", 8, 9, 0, 1, 0, 2, 63, 118, 17, 131], ["+", 8, 9, 0, 1, 0, 2, 63, 118, 119, 120], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
242
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; #define mp make_pair #define PI pair<ll, ll> #define poly vector<ll> #define mem(a) memset((a), 0, sizeof(a)) #define For(i, l, r) for (int i = (int)(l); i <= (int)(r); i++) #define Rep(i, r, l) f...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; #define mp make_pair #define PI pair<ll, ll> #define poly vector<ll> #define mem(a) memset((a), 0, sizeof(a)) #define For(i, l, r) for (int i = (int)(l); i <= (int)(r); i++) #define Rep(i, r, l) f...
[["-", 0, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["-", 0, 9, 0, 57, 75, 76, 0, 9, 0, 46]]
1
546
#include <bits/stdc++.h> using namespace std; #define int long long inline void read(int &x) { char ch = getchar(); x = 0; while (!isdigit(ch)) ch = getchar(); while (isdigit(ch)) x = x * 10 + ch - 48, ch = getchar(); } const int N = 238; int n, m = 60, a[N], k[N]; char ch[N]; signed main() { int T; ...
#include <bits/stdc++.h> using namespace std; #define int long long inline void read(int &x) { char ch = getchar(); x = 0; while (!isdigit(ch)) ch = getchar(); while (isdigit(ch)) x = x * 10 + ch - 48, ch = getchar(); } const int N = 238; int n, m = 62, a[N], k[N]; char ch[N]; signed main() { int T; ...
[["-", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]]
1
325
#include <bits/stdc++.h> #define ll long long using namespace std; void solve() { int n; cin >> n; ll a[n], base[65]; memset(base, 0, sizeof base); for (int i = 0; i < n; ++i) cin >> a[i]; string s; cin >> s; for (int i = n - 1; ~i; --i) { bool contains = true; for (int bit = 0; bit < 61; +...
#include <bits/stdc++.h> #define ll long long using namespace std; void solve() { int n; cin >> n; ll a[n], base[65]; memset(base, 0, sizeof base); for (int i = 0; i < n; ++i) cin >> a[i]; string s; cin >> s; for (int i = n - 1; ~i; --i) { bool contains = true; for (int bit = 0; bit < 61; +...
[["-", 64, 9, 0, 1, 0, 11, 12, 16, 31, 13], ["-", 64, 9, 0, 1, 0, 11, 12, 16, 17, 151], ["+", 64, 9, 0, 1, 0, 11, 12, 69, 28, 22], ["+", 0, 1, 0, 11, 12, 69, 341, 342, 0, 70], ["+", 0, 1, 0, 11, 12, 69, 341, 342, 0, 73]]
1
217
#include <bits/stdc++.h> using namespace std; #define all(a) a.begin(), a.end() using ll = long long; const int INF = 1 << 30; const ll INFll = 1LL << 62; const int mod = int(1e9) + 7; using P = pair<ll, ll>; using ld = long double; int main() { ll t; cin >> t; for (int i = 0; i < t; ++i) { ll n; bool f...
#include <bits/stdc++.h> using namespace std; #define all(a) a.begin(), a.end() using ll = long long; const int INF = 1 << 30; const ll INFll = 1LL << 62; const int mod = int(1e9) + 7; using P = pair<ll, ll>; using ld = long double; int main() { ll t; cin >> t; for (int i = 0; i < t; ++i) { ll n; bool f...
[["+", 0, 57, 75, 76, 0, 9, 0, 93, 0, 94], ["+", 0, 57, 75, 76, 0, 9, 0, 93, 0, 35]]
1
256
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(0); int t; cin >> t; while (t--) { int n; cin >> n; vector<ll> a(n); for (auto &x : a) cin >> x; string s; cin >> s; vector<ll> basis(64, 0); int ans =...
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(0); int t; cin >> t; while (t--) { int n; cin >> n; vector<ll> a(n); for (auto &x : a) cin >> x; string s; cin >> s; vector<ll> basis(64, 0); int ans =...
[["-", 0, 1, 0, 11, 12, 69, 341, 342, 0, 22], ["+", 0, 1, 0, 11, 12, 69, 341, 342, 0, 22]]
1
220
#include <bits/stdc++.h> #define clr(x) memset(x, 0, sizeof(x)) #define For(i, a, b) for (int i = (a); i <= (b); i++) #define Fod(i, b, a) for (int i = (b); i >= (a); i--) #define fi first #define se second #define kill _z_kill #define pb(x) push_back(x) #define mp(x, y) make_pair(x, y) #define outval(x) cerr << #x " =...
#include <bits/stdc++.h> #define clr(x) memset(x, 0, sizeof(x)) #define For(i, a, b) for (int i = (a); i <= (b); i++) #define Fod(i, b, a) for (int i = (b); i >= (a); i--) #define fi first #define se second #define kill _z_kill #define pb(x) push_back(x) #define mp(x, y) make_pair(x, y) #define outval(x) cerr << #x " =...
[["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
604
#include <bits/stdc++.h> using namespace std; const int MAXN = 205; int t, n; long long a[MAXN]; char s[MAXN]; int m; long long b[MAXN], c[MAXN], d[MAXN]; bool check(long long x) { for (int i = 0; i < m; i++) c[i] = b[i]; int k = 0; for (int i = 0; i < 62; i++) { bool found = false; for (int j = k...
#include <bits/stdc++.h> using namespace std; const int MAXN = 205; int t, n; long long a[MAXN]; char s[MAXN]; int m; long long b[MAXN], c[MAXN], d[MAXN]; bool check(long long x) { for (int i = 0; i < m; i++) c[i] = b[i]; int k = 0; for (int i = 0; i < 62; i++) { bool found = false; for (int j = k...
[["-", 64, 9, 0, 1, 0, 11, 12, 69, 28, 22], ["+", 64, 9, 0, 1, 0, 11, 12, 69, 28, 22]]
1
421
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; int main() { cin.tie(0)->sync_with_stdio(false); int t; cin >> t; while (t--) { int n; cin >> n; vector<ll> a(n); REP(i, n) cin >> a[i]; string s; cin >> s; int a...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; int main() { cin.tie(0)->sync_with_stdio(false); int t; cin >> t; while (t--) { int n; cin >> n; vector<ll> a(n); REP(i, n) cin >> a[i]; string s; cin >> s; int a...
[["+", 0, 7, 10, 43, 49, 50, 51, 16, 17, 33], ["+", 0, 7, 10, 43, 49, 50, 51, 16, 12, 13]]
1
200
#include <bits/stdc++.h> using namespace std; #define LOCAL #pragma region Macros typedef long long ll; #define ALL(x) (x).begin(), (x).end() const long long MOD = 1e9 + 7; // const long long MOD=998244353; const int INF = 1e9; const long long IINF = 1e18; const int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1}; const c...
#include <bits/stdc++.h> using namespace std; #define LOCAL #pragma region Macros typedef long long ll; #define ALL(x) (x).begin(), (x).end() const long long MOD = 1e9 + 7; // const long long MOD=998244353; const int INF = 1e9; const long long IINF = 1e18; const int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1}; const c...
[["+", 31, 16, 12, 2, 3, 4, 0, 74, 0, 24], ["+", 12, 2, 3, 4, 0, 74, 39, 77, 39, 78], ["+", 31, 16, 12, 2, 3, 4, 0, 74, 0, 25]]
1
1,987
#include <bits/stdc++.h> // #include <boost/multiprecision/cpp_int.hpp> // using i128 = boost::multiprecision::int128_t; #define _GLIBCXX_DEBUG using namespace std; using ll = long long; using ld = long double; using V = vector<int>; using Vll = vector<ll>; using Vld = vector<ld>; using Vbo = vector<bool>; using VV = v...
#include <bits/stdc++.h> // #include <boost/multiprecision/cpp_int.hpp> // using i128 = boost::multiprecision::int128_t; #define _GLIBCXX_DEBUG using namespace std; using ll = long long; using ld = long double; using V = vector<int>; using Vll = vector<ll>; using Vld = vector<ld>; using Vbo = vector<bool>; using VV = v...
[["-", 31, 69, 28, 2, 3, 4, 0, 16, 12, 13], ["+", 31, 69, 28, 2, 3, 4, 0, 16, 12, 13]]
1
1,904
#include <algorithm> #include <cstdio> #include <cstring> using namespace std; #define mod 1000000007 #define maxn 1010 int n, a, b; int ksm(int x, int y) { int re = 1; for (; (y & 1 ? re = 1ll * re * x % mod : 0), y; y >>= 1, x = 1ll * x * x % mod) ; return re; } int g[maxn][2], f[maxn][2]; void add(...
#include <algorithm> #include <cstdio> #include <cstring> using namespace std; #define mod 1000000007 #define maxn 5010 int n, a, b; int ksm(int x, int y) { int re = 1; for (; (y & 1 ? re = 1ll * re * x % mod : 0), y; y >>= 1, x = 1ll * x * x % mod) ; return re; } int g[maxn][2], f[maxn][2]; void add(...
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]]
1
506
#include <bits/stdc++.h> using namespace std; const int maxn = 10000010, P = 998244353; int n, A, fact[maxn], finv[maxn], inv[maxn]; int main() { scanf("%d %d", &n, &A); fact[0] = finv[0] = inv[0] = inv[1] = 1; for (int i = 1; i <= n; i++) { fact[i] = 1LL * i * fact[i - 1] % P; if (i > 1) inv[i] =...
#include <bits/stdc++.h> using namespace std; const int maxn = 10000010, P = 1000000007; int n, A, fact[maxn], finv[maxn], inv[maxn]; int main() { scanf("%d %d", &n, &A); fact[0] = finv[0] = inv[0] = inv[1] = 1; for (int i = 1; i <= n; i++) { fact[i] = 1LL * i * fact[i - 1] % P; if (i > 1) inv[i] ...
[["-", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13]]
1
342
#include <bits/stdc++.h> #define mp make_pair #define mt make_tuple #define fi first #define se second #define pb push_back #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define forn(i, n) for (int i = 0; i < (int)(n); ++i) #define for1(i, n) for (int i = 1; i <= (int)(n); ++i) #define...
#include <bits/stdc++.h> #define mp make_pair #define mt make_tuple #define fi first #define se second #define pb push_back #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define forn(i, n) for (int i = 0; i < (int)(n); ++i) #define for1(i, n) for (int i = 1; i <= (int)(n); ++i) #define...
[["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47]]
1
487
#include <bits/stdc++.h> using namespace std; typedef vector<int> vi; typedef vector<vector<int>> vvi; typedef vector<pair<int, int>> vpii; typedef pair<int, int> pii; typedef long long ll; typedef long double ld; typedef pair<ll, ll> pll; typedef pair<double, double> pdd; typedef vector<ll> vll; #define INF 0x3f3f3f3f...
#include <bits/stdc++.h> using namespace std; typedef vector<int> vi; typedef vector<vector<int>> vvi; typedef vector<pair<int, int>> vpii; typedef pair<int, int> pii; typedef long long ll; typedef long double ld; typedef pair<ll, ll> pll; typedef pair<double, double> pdd; typedef vector<ll> vll; #define INF 0x3f3f3f3f...
[["+", 8, 9, 0, 1, 0, 2, 63, 118, 28, 22], ["+", 8, 9, 0, 1, 0, 2, 63, 118, 17, 131], ["+", 8, 9, 0, 1, 0, 2, 63, 118, 119, 120], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 14, 8, 9, 0, 1, 0, 35]]
1
374
#include <bits/stdc++.h> using namespace std; struct base { long long arr[63]; base() { memset(arr, 0, sizeof(arr)); } bool ins(long long val) { for (int i = 60; ~i; --i) if (val >> i & 1) if (arr[i]) val ^= arr[i]; else { arr[i] = val; return 1; } ...
#include <bits/stdc++.h> using namespace std; struct base { long long arr[63]; base() { memset(arr, 0, sizeof(arr)); } bool ins(long long val) { for (int i = 60; ~i; --i) if (val >> i & 1) if (arr[i]) val ^= arr[i]; else { arr[i] = val; return 1; } ...
[["-", 0, 1, 0, 16, 31, 16, 12, 23, 0, 24], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 139], ["-", 31, 16, 12, 23, 0, 16, 12, 91, 17, 111], ["-", 31, 16, 12, 23, 0, 16, 12, 91, 28, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 23, 0, 25]]
1
288
#include <bits/stdc++.h> using namespace std; #ifndef ONLINE_JUDGE #define dbg(x...) \ do { \ cout << "\033[32;1m" << #x << "->"; \ err(x)...
#include <bits/stdc++.h> using namespace std; #ifndef ONLINE_JUDGE #define dbg(x...) \ do { \ cout << "\033[32;1m" << #x << "->"; \ err(x)...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
663
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> using namespace std; const int N = 1000005; const int INF = 1061109567; int n; char s[N]; int a[N]; int sum[N]; int suf[N]; int calc(int Min) { static int b[N]; int add = 0; for (int i = 1; i <= n; i++) { if (s[i] == '?' && suf[i] -...
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> using namespace std; const int N = 1000005; const int INF = 1061109567; int n; char s[N]; int a[N]; int sum[N]; int suf[N]; int calc(int Min) { static int b[N]; int add = 0; for (int i = 1; i <= n; i++) { if (s[i] == '?' && suf[i] -...
[["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 24], ["+", 3, 4, 0, 66, 28, 2, 3, 4, 0, 25], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 21], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 13]]
1
354
#include <bits/stdc++.h> #define debug(...) fprintf(stderr, __VA_ARGS__) #ifndef AT_HOME #define getchar() IO::myGetchar() #define putchar(x) IO::myPutchar(x) #endif namespace IO { static const int IN_BUF = 1 << 23, OUT_BUF = 1 << 23; inline char myGetchar() { static char buf[IN_BUF], *ps = buf, *pt = buf; if (...
#include <bits/stdc++.h> #define debug(...) fprintf(stderr, __VA_ARGS__) #ifndef AT_HOME #define getchar() IO::myGetchar() #define putchar(x) IO::myPutchar(x) #endif namespace IO { static const int IN_BUF = 1 << 23, OUT_BUF = 1 << 23; inline char myGetchar() { static char buf[IN_BUF], *ps = buf, *pt = buf; if (...
[["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 20], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 2, 3, 4, 0, 69, 341, 342, 0, 13], ["+", 0, 2, 3, 4, 0, 69, 341, 342, 0, 13], ["-", 3, 4, 0, 16, 31, 69, 341, 342, 0, 13], ["+", 3, 4, 0, 16, 31, 69, 341, 342, 0, 13]]
1
856
#include <bits/stdc++.h> using namespace std; char s[2000010]; int sum[2000010], N, mx[2000010]; int calc(int x) { int p = 0; for (int i = 1; i <= N; i++) { if (s[i] == '1') sum[i] = sum[i - 1] + 1; else if (s[i] == '0') sum[i] = sum[i - 1] - 1; else { if (mx[i] + 2 * (p + 1) <= x) { ...
#include <bits/stdc++.h> using namespace std; char s[2000010]; int sum[2000010], N, mx[2000010]; int calc(int x) { int p = 0; for (int i = 1; i <= N; i++) { if (s[i] == '1') sum[i] = sum[i - 1] + 1; else if (s[i] == '0') sum[i] = sum[i - 1] - 1; else { if (mx[i] + 2 * (p + 1) <= x) { ...
[["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]]
1
363
#include <bits/stdc++.h> #define ll long long #define ld long double #define db double #define pint pair<int, int> #define mk(x, y) make_pair(x, y) #define pb(x) push_back(x) #define eb(x, y) emplace_back(x, y) #define fi first #define se second #define Rep(x, y, z) for (int x = y; x <= z; x++) #define Red(x, y, z) for...
#include <bits/stdc++.h> #define ll long long #define ld long double #define db double #define pint pair<int, int> #define mk(x, y) make_pair(x, y) #define pb(x) push_back(x) #define eb(x, y) emplace_back(x, y) #define fi first #define se second #define Rep(x, y, z) for (int x = y; x <= z; x++) #define Red(x, y, z) for...
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["-", 0, 11, 31, 69, 28, 2, 3, 4, 0, 13], ["+", 0, 11, 31, 69, 28, 2, 3, 4, 0, 13], ["-", 0, 2, 3, 4, 0, 69, 341, 342, 0, 13], ["+", 0, 2, 3, 4, 0, 69, 341, 342, 0, 13], ["-", 3, 4, 0, 16, 31, 69, 341, 342, 0, 13], ["+", 3, 4, 0, 16, 3...
1
485
#include <bits/stdc++.h> #define mp make_pair #define pb push_back #define all(x) x.begin(), x.end() #define cmin(a, b) (a > b ? a = b : a) #define cmax(a, b) (a < b ? a = b : a) #define mem(a, k) memset(a, k, sizeof(a)) #define lop(i, s, t) for (int i = s; i < (t); ++i) #define rep(i, s, t) for (int i = s; i <= (t); +...
#include <bits/stdc++.h> #define mp make_pair #define pb push_back #define all(x) x.begin(), x.end() #define cmin(a, b) (a > b ? a = b : a) #define cmax(a, b) (a < b ? a = b : a) #define mem(a, k) memset(a, k, sizeof(a)) #define lop(i, s, t) for (int i = s; i < (t); ++i) #define rep(i, s, t) for (int i = s; i <= (t); +...
[["-", 8, 9, 0, 9, 0, 43, 49, 50, 51, 22], ["+", 8, 9, 0, 9, 0, 43, 49, 50, 51, 13]]
1
516
#include <iostream> #include <limits> using namespace std; int main() { string s; cin >> s; int maxPrefix = 0, prefix[s.size() + 1]; prefix[0] = 0; for (int i = 1; i <= s.size(); ++i) { if (s[i] == '1') { prefix[i] = prefix[i - 1] + 1; } else { prefix[i] = prefix[i - 1] - 1; } max...
#include <iostream> #include <limits> using namespace std; int main() { string s; cin >> s; int maxPrefix = 0, prefix[s.size() + 1]; prefix[0] = 0; for (int i = 1; i <= s.size(); ++i) { if (s[i - 1] == '1') { prefix[i] = prefix[i - 1] + 1; } else { prefix[i] = prefix[i - 1] - 1; } ...
[["+", 51, 16, 31, 69, 341, 342, 0, 16, 17, 33], ["+", 51, 16, 31, 69, 341, 342, 0, 16, 12, 13]]
1
338
// B.cpp #include <bits/stdc++.h> using namespace std; const int MAX_N = 1e6 + 200; int n, pre[MAX_N], suf[MAX_N], ans = 0x7fffffff; char str[MAX_N]; void prepare() { for (int i = 1; i <= n; i++) pre[i] = pre[i - 1] + (str[i] == '0' ? -1 : 1); suf[n + 1] = MAX_N; for (int i = n; i >= 1; i--) suf[i] = ...
// B.cpp #include <bits/stdc++.h> using namespace std; const int MAX_N = 1e6 + 200; int n, pre[MAX_N], suf[MAX_N], ans = 0x7fffffff; char str[MAX_N]; void prepare() { for (int i = 1; i <= n; i++) pre[i] = pre[i - 1] + (str[i] == '0' ? -1 : 1); suf[n + 1] = MAX_N; for (int i = n; i >= 0; i--) suf[i] = ...
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 12, 2, 3, 4, 0, 69, 341, 342, 0, 13], ["+", 12, 2, 3, 4, 0, 69, 341, 342, 0, 13], ["-", 3, 4, 0, 16, 31, 69, 341, 342, 0, 13], ["+", 3, 4, 0, 16, 31, 69, 341, 342, 0, 13]]
1
282
#pragma GCC optimize(2) #include <bits/stdc++.h> #define ll long long #define maxn 1000005 #define inf 1e9 #define pb push_back #define rep(i, a, b) for (int i = a; i <= b; i++) #define per(i, a, b) for (int i = a; i >= b; i--) using namespace std; inline int read() { int x = 0, w = 1; char c = getchar(); while ...
#pragma GCC optimize(2) #include <bits/stdc++.h> #define ll long long #define maxn 1000005 #define inf 1e9 #define pb push_back #define rep(i, a, b) for (int i = a; i <= b; i++) #define per(i, a, b) for (int i = a; i >= b; i--) using namespace std; inline int read() { int x = 0, w = 1; char c = getchar(); while ...
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]]
1
418
#include <bits/stdc++.h> using namespace std; #define REP(i, a, b) for (int i = a; i <= b; ++i) #define PER(i, a, b) for (int i = a; i >= b; --i) #define MP make_pair #define PB push_back #define fi first #define se second typedef long long LL; typedef long double LD; const int maxn = 1e6; int n, f[maxn + 5], mx[ma...
#include <bits/stdc++.h> using namespace std; #define REP(i, a, b) for (int i = a; i <= b; ++i) #define PER(i, a, b) for (int i = a; i >= b; --i) #define MP make_pair #define PB push_back #define fi first #define se second typedef long long LL; typedef long double LD; const int maxn = 1e6; int n, f[maxn + 5], mx[ma...
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 2, 3, 4, 0, 69, 341, 342, 0, 13], ["+", 0, 2, 3, 4, 0, 69, 341, 342, 0, 13], ["-", 3, 4, 0, 16, 31, 69, 341, 342, 0, 13], ["+", 3, 4, 0, 16, 31, 69, 341, 342, 0, 13]]
1
374
#include <algorithm> #include <cstdio> #include <iostream> #include <string.h> using namespace std; #define endl '\n' #define ll long long #define pi pair<int, int> #define f first #define s second const int mxn = 1000000; int n; string s; int a[mxn], b[mxn]; int sol(int x) { int r1 = 0, r2 = 0; for (int i = 0; i...
#include <algorithm> #include <cstdio> #include <iostream> #include <string.h> using namespace std; #define endl '\n' #define ll long long #define pi pair<int, int> #define f first #define s second const int mxn = 1000000; int n; string s; int a[mxn], b[mxn]; int sol(int x) { int r1 = 0, r2 = 0; for (int i = 0; i...
[["-", 49, 50, 51, 2, 3, 4, 0, 69, 28, 22], ["+", 49, 50, 51, 2, 3, 4, 0, 69, 28, 22]]
1
294
#include <cstdio> #include <cstring> #include <iostream> #define RI register int #define CI const int & using namespace std; const int N = 1000005; char s[N]; int n, pfx[N], smi[N]; inline int work(CI mi) { RI i; int cur = 0, mx = 0; for (i = 1; i <= n; ++i) { if (s[i] == '?' && smi[i] - cur - 2 >= mi) ...
#include <cstdio> #include <cstring> #include <iostream> #define RI register int #define CI const int & using namespace std; const int N = 1000005; char s[N]; int n, pfx[N], smi[N]; inline int work(CI mi) { RI i; int cur = 0, mx = 0; for (i = 1; i <= n; ++i) { if (s[i] == '?' && smi[i] - cur - 2 >= mi) ...
[["+", 0, 14, 8, 9, 0, 7, 15, 91, 17, 92], ["-", 0, 2, 3, 4, 0, 69, 341, 342, 0, 13], ["+", 0, 2, 3, 4, 0, 69, 341, 342, 0, 13], ["-", 3, 4, 0, 16, 31, 69, 341, 342, 0, 13], ["+", 3, 4, 0, 16, 31, 69, 341, 342, 0, 13]]
1
265
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = a; i <= b; i++) #define ROF(i, a, b) for (int i = a; i >= b; i--) const int N = 1e6 + 7, INF = 0x3f3f3f3f, sgn[] = {-1, 1}; char a[N]; int n, s[N], nxt[N]; int solve(int x, int cnt = 0) { int w = x; FOR(i, 1, n) { if (a[i] == '?' &&...
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = a; i <= b; i++) #define ROF(i, a, b) for (int i = a; i >= b; i--) const int N = 1e6 + 7, INF = 0x3f3f3f3f, sgn[] = {-1, 1}; char a[N]; int n, s[N], nxt[N]; int solve(int x, int cnt = 0) { int w = 0; FOR(i, 1, n) { if (a[i] == '?' &&...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
263
// Leonidas #pragma GCC optimize("Ofast") //#pragma GCC target ("avx2") //#pragma GCC optimization ("O3") #pragma GCC optimization("unroll-loops") //#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container'.',hpp> //#include <ext/pb_ds/...
// Leonidas #pragma GCC optimize("Ofast") //#pragma GCC target ("avx2") //#pragma GCC optimization ("O3") #pragma GCC optimization("unroll-loops") //#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container'.',hpp> //#include <ext/pb_ds/...
[["-", 0, 34, 12, 34, 31, 11, 12, 91, 17, 33], ["-", 0, 34, 12, 34, 31, 11, 12, 91, 28, 22], ["+", 0, 1, 0, 34, 12, 34, 31, 11, 12, 13], ["-", 0, 1, 0, 34, 12, 34, 12, 11, 12, 22], ["+", 0, 1, 0, 34, 12, 34, 12, 11, 12, 13]]
1
398
#include <algorithm> #include <cstdlib> #include <iostream> #include <string> template <typename T> void fin(T const &t) { std::cout << t << std::endl; exit(0); } int main() { std::cin.tie(0); std::ios::sync_with_stdio(false); std::string s; std::cin >> s; int a0 = 0, a1 = 1, b0 = 0, b1 = -1; int c0 = ...
#include <algorithm> #include <cstdlib> #include <iostream> #include <string> template <typename T> void fin(T const &t) { std::cout << t << std::endl; exit(0); } int main() { std::cin.tie(0); std::ios::sync_with_stdio(false); std::string s; std::cin >> s; int a0 = 0, a1 = 1, b0 = 0, b1 = -1; int c0 = ...
[["-", 75, 76, 0, 9, 0, 1, 0, 27, 28, 22], ["+", 75, 76, 0, 9, 0, 1, 0, 27, 28, 22]]
1
305
#include <bits/stdc++.h> using namespace std; const int N = 1e6 + 10; char ch[N]; int n, cnt, c[N], tmp, res = 1e9; inline void check(int mx) { int mn = 0, t = 0; for (int i = 1; i <= n; ++i) { if (ch[i] == '0') ++t; else if (ch[i] == '1') --t; else (t + 1 + c[i + 1] <= mx) ? ++t : --t...
#include <bits/stdc++.h> using namespace std; const int N = 1e6 + 10; char ch[N]; int n, cnt, c[N], tmp, res = 1e9; inline void check(int mx) { int mn = 0, t = 0; for (int i = 1; i <= n; ++i) { if (ch[i] == '0') ++t; else if (ch[i] == '1') --t; else (t + 1 + c[i + 1] <= mx) ? ++t : --t...
[["+", 12, 2, 3, 4, 0, 16, 12, 23, 0, 24], ["+", 12, 2, 3, 4, 0, 16, 12, 23, 0, 25], ["+", 8, 9, 0, 1, 0, 41, 15, 23, 0, 24], ["+", 8, 9, 0, 1, 0, 41, 15, 23, 0, 25]]
1
276
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); string s; cin >> s; int n = (int)s.length(); int z = 0, cur = 0; for (auto &c : s) { if (c == '1') { cur++; } else { cur--; } z = max(z, cur); } auto f = [&](const int &m) ...
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); string s; cin >> s; int n = (int)s.length(); int z = 0, cur = 0; for (auto &c : s) { if (c == '1') { cur++; } else { cur--; } z = max(z, cur); } auto f = [&](const int &m) ...
[["-", 0, 7, 10, 43, 49, 50, 51, 16, 12, 13], ["+", 0, 7, 10, 43, 49, 50, 51, 16, 12, 13]]
1
418
#include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<int, int>; template <class T> using V = vector<T>; template <class T> using VV = V<V<T>>; #define pb push_back #define eb emplace_back #define mp make_pair #define fi first #define se second #define rep(i, n) rep2(i, 0, n) #define re...
#include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<int, int>; template <class T> using V = vector<T>; template <class T> using VV = V<V<T>>; #define pb push_back #define eb emplace_back #define mp make_pair #define fi first #define se second #define rep(i, n) rep2(i, 0, n) #define re...
[["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125]]
1
708
#include <bits/stdc++.h> #define ll long long #define lld long double using namespace std; template <typename tn> void read(tn &a) { tn x = 0, f = 1; char c = ' '; for (; !isdigit(c); c = getchar()) if (c == '-') f = -1; for (; isdigit(c); c = getchar()) x = x * 10 + c - '0'; a = x * f; } const ...
#include <bits/stdc++.h> #define ll long long #define lld long double using namespace std; template <typename tn> void read(tn &a) { tn x = 0, f = 1; char c = ' '; for (; !isdigit(c); c = getchar()) if (c == '-') f = -1; for (; isdigit(c); c = getchar()) x = x * 10 + c - '0'; a = x * f; } const ...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
444
#include <bits/stdc++.h> using namespace std; const int N = 1e6 + 5; int n; char s[N]; int sum[N], pmx[N], pmi[N]; int main() { scanf("%s", s + 1); n = strlen(s + 1); sum[0] = 0; pmx[0] = 0; pmi[0] = 0; for (int i = 1; i <= n; i++) { sum[i] = sum[i - 1] + 1 - 2 * (s[i] == '0'); pmx[i] = max(pmx[i...
#include <bits/stdc++.h> using namespace std; const int N = 1e6 + 5; int n; char s[N]; int sum[N], pmx[N], pmi[N]; int main() { scanf("%s", s + 1); n = strlen(s + 1); sum[0] = 0; pmx[0] = 0; pmi[0] = 0; for (int i = 1; i <= n; i++) { sum[i] = sum[i - 1] + 1 - 2 * (s[i] == '0'); pmx[i] = max(pmx[i...
[["-", 0, 57, 64, 9, 0, 1, 0, 2, 63, 22], ["-", 64, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["-", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 64, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["-", 75, 76, 0, 57, 64, 9, 0, 1, 0, 35]]
1
562
#include <algorithm> #include <iostream> #include <set> #include <string> #include <vector> using namespace std; int main(void) { string S; cin >> S; int Zbuf = 0; int Z = 0; multiset<int, greater<int>> csum; for (int i = 0; i < S.size(); i++) { if (S[i] == '1') { Zbuf++; } else Zbuf--;...
#include <algorithm> #include <iostream> #include <set> #include <string> #include <vector> using namespace std; int main(void) { string S; cin >> S; int Zbuf = 0; int Z = 0; multiset<int, greater<int>> csum; for (int i = 0; i < S.size(); i++) { if (S[i] == '1') { Zbuf++; } else Zbuf--;...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 1, 0, 11, 12, 2, 3, 4, 0, 22], ["+", 0, 1, 0, 11, 12, 2, 3, 4, 0, 22], ["-", 31, 16, 12, 2, 3, 4, 0, 16, 12, 22], ["+", 31, 16, 12, 2, 3, 4, 0, ...
1
319
#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, 57, 64, 9, 0, 57, 0, 121], ["+", 0, 57, 64, 9, 0, 57, 15, 339, 0, 24], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 0, 57, 64, 9, 0, 57, 15, 339, 0, 25]]
1
878
#include <bits/stdc++.h> using namespace std; template <typename T> inline T read() { T x = 0, f = 0; char c = getchar(); while (!isdigit(c)) f = c == '-', c = getchar(); while (isdigit(c)) x = x * 10 + c - 48, c = getchar(); return f ? -x : x; } namespace run { const int N = 1e6 + 9; int n, sum[N], g...
#include <bits/stdc++.h> using namespace std; template <typename T> inline T read() { T x = 0, f = 0; char c = getchar(); while (!isdigit(c)) f = c == '-', c = getchar(); while (isdigit(c)) x = x * 10 + c - 48, c = getchar(); return f ? -x : x; } namespace run { const int N = 1e6 + 9; int n, sum[N], g...
[["-", 8, 9, 0, 43, 49, 50, 51, 91, 17, 33], ["-", 8, 9, 0, 43, 49, 50, 51, 91, 28, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
523
#include <bits/stdc++.h> #define I inline #define fi first #define se second #define R register #define LL long long #define mp make_pair #define reg register int #define pii pair<int, int> #define fo(i, a, b) for (reg i = a; i <= b; i++) #define fd(i, a, b) for (reg i = a; i >= b; i--) #define cr const reg & using na...
#include <bits/stdc++.h> #define I inline #define fi first #define se second #define R register #define LL long long #define mp make_pair #define reg register int #define pii pair<int, int> #define fo(i, a, b) for (reg i = a; i <= b; i++) #define fd(i, a, b) for (reg i = a; i >= b; i--) #define cr const reg & using na...
[["-", 0, 1, 0, 2, 3, 4, 0, 2, 63, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 2, 63, 22]]
1
626
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> #include <vector> using namespace std; const int N = 2e6 + 5; const int inf = 1e9; char s[N]; int n, a[N], b[N]; int go(int z) { int res = 0, ans = 0; for (int i = 0; i < n; i++) { if (s[i] == '?' && a[i] + res + 2 <= z) res += ...
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> #include <vector> using namespace std; const int N = 2e6 + 5; const int inf = 1e9; char s[N]; int n, a[N], b[N]; int go(int z) { int res = 0, ans = 0; for (int i = 0; i < n; i++) { if (s[i] == '?' && a[i] + res + 2 <= z) res += ...
[["+", 3, 4, 0, 16, 31, 2, 3, 4, 0, 25], ["-", 0, 2, 3, 4, 0, 2, 3, 4, 0, 25]]
1
277
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ll Z = 0; string s; cin >> s; ll r = 0; ll a = 0; ll f = 0; ll l = s.size(); ll b[l + 1] = {}; ll c[l + 1] = {}; for (ll i = 1; i <= l; i++) { if (s.at(i - 1) == '1') { a++; } else { a--; } b...
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ll Z = 0; string s; cin >> s; ll r = 0; ll a = 0; ll f = 0; ll l = s.size(); ll b[l + 1] = {}; ll c[l + 1] = {}; for (ll i = 1; i <= l; i++) { if (s.at(i - 1) == '1') { a++; } else { a--; } b...
[["-", 8, 9, 0, 43, 49, 50, 51, 27, 17, 29], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
414
#include <algorithm> #include <cmath> #include <iostream> #include <queue> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; int main() { int n, z = 0, ans = 100000000, fz = -1000000; string s; vector<int> sum, maxi; cin >> s; n = s.size(); sum.resize(s.size...
#include <algorithm> #include <cmath> #include <iostream> #include <queue> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; int main() { int n, z = 0, ans = 100000000, fz = -1000000; string s; vector<int> sum, maxi; cin >> s; n = s.size(); sum.resize(s.size...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]]
1
502
#include <bits/stdc++.h> using namespace std; const int N = 2e6 + 5; int n; char s[N]; int g[N]; int v[N], h[N]; int main() { scanf("%s", s + 1); n = strlen(s + 1); int mx = 0, ss = 0; for (int i = 1; i <= n; i++) { if (s[i] == '1') ss++; else ss--; v[i] = h[i] = ss; mx = max(mx, s...
#include <bits/stdc++.h> using namespace std; const int N = 2e6 + 5; int n; char s[N]; int g[N]; int v[N], h[N]; int main() { scanf("%s", s + 1); n = strlen(s + 1); int mx = 0, ss = 0; for (int i = 1; i <= n; i++) { if (s[i] == '1') ss++; else ss--; v[i] = h[i] = ss; mx = max(mx, s...
[["+", 8, 9, 0, 1, 0, 11, 12, 11, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 11, 17, 32]]
1
407
#include "bits/stdc++.h" using namespace std; typedef long long li; int main() { cin.tie(0); ios::sync_with_stdio(false); string s; cin >> s; li min_maximum = 0, cur = 0; vector<li> min_offset(1, 0); for (int i = 0; i < s.size(); ++i) { if (s[i] == '1') { cur += 1; } else { cur -= 1...
#include "bits/stdc++.h" using namespace std; typedef long long li; int main() { cin.tie(0); ios::sync_with_stdio(false); string s; cin >> s; li min_maximum = 0, cur = 0; vector<li> min_offset(1, 0); for (int i = 0; i < s.size(); ++i) { if (s[i] == '1') { cur += 1; } else { cur -= 1...
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 12, 22]]
1
359
#include <algorithm> #include <deque> #include <functional> #include <iostream> #include <map> #include <math.h> #include <set> #include <stack> #include <string> #include <tuple> #include <vector> #define ll long long using namespace std; int main() { int A, B; cin >> A >> B; return A * B; }
#include <algorithm> #include <deque> #include <functional> #include <iostream> #include <map> #include <math.h> #include <set> #include <stack> #include <string> #include <tuple> #include <vector> #define ll long long using namespace std; int main() { int A, B; cin >> A >> B; cout << A * B << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
51
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; cout << a + b; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; cout << a * b; return 0; }
[["-", 8, 9, 0, 1, 0, 16, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 48]]
1
32
A,B=map(int,input(),split()) print(A*B)
A,B=map(int,input().split()) print(A*B)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131]]
5
22
#include <bits/stdc++.h> typedef long long ll; // forループ //引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか // Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる #define REP(i, n) for (ll i = 0; i < ll(n); i++) #define REPD(i, n) for (ll i = n - 1; i >= 0; i--) #define FOR(i, a, b) for (ll i = a; i <= ll(b); i++) #de...
#include <bits/stdc++.h> typedef long long ll; // forループ //引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか // Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる #define REP(i, n) for (ll i = 0; i < ll(n); i++) #define REPD(i, n) for (ll i = n - 1; i >= 0; i--) #define FOR(i, a, b) for (ll i = a; i <= ll(b); i++) #de...
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
218
a, b = map(int, input().split()) rint(b) answer = a * b print(answer)
#169A https://atcoder.jp/contests/abc169/tasks/abc169_a # 1. 入力を受け取ること # スペース区切りの入力を整数として受け取れる「2 5」 → 「a=2, b=5」となる a, b = map(int, input().split()) # 2. 受け取った結果を使って目的の計算をすること answer = a * b # 3. 出力すること print(answer)
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
29
# 169a # A*Bを整数として出力せよ # ①入力をプログラムでとらえるように受け取る a, b = map(int, input(),split()) # print(a, b) # ②受け取った入力値を適切に出力 answer = a * b # ③結果出力 print(answer)
# 169a # A*Bを整数として出力せよ # ①入力をプログラムでとらえるように受け取る a, b = map(int, input().split()) # print(a, b) # ②受け取った入力値を適切に出力 answer = a * b # ③結果出力 print(answer)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131]]
5
31
#169A #A*Bを整数として出力せよ #1.入力をプログラムで扱えるように受け取ること a,b = map(int, input().split()) print(a,b) #2.受け取った入力値を使って適切に処理(計算)すること answer = a * b #3.計算した結果を出力すること print(answer)
#169A #A*Bを整数として出力せよ #1.入力をプログラムで扱えるように受け取ること a,b = map(int, input().split()) #print(a,b) #2.受け取った入力値を使って適切に処理(計算)すること answer = a * b #3.計算した結果を出力すること print(answer)
[["-", 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
36
nums = input().split() print(int(num[0]) * int(num[1]))
nums = input().split() print(int(nums[0]) * int(nums[1]))
[["-", 0, 657, 31, 652, 3, 4, 0, 206, 51, 22], ["+", 0, 657, 31, 652, 3, 4, 0, 206, 51, 22], ["-", 0, 657, 12, 652, 3, 4, 0, 206, 51, 22], ["+", 0, 657, 12, 652, 3, 4, 0, 206, 51, 22]]
5
27
A,B = map(int, input().split()) answer = A * B print('answer')
A, B = map(int, input().split()) answer = A * B print(answer)
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]]
5
27
a,b = int(input().split()) print(str(a*b))
a,b = map(int,input().split()) print(str(a*b))
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21]]
5
23
#include <bits/stdc++.h> using namespace std; using lint = long long; vector<lint> test(1024 * 1024 * 127); int main() { int a, b; cin >> a >> b; cout << a * b << endl; }
#include <bits/stdc++.h> using namespace std; using lint = long long; vector<bool> test(1024 * 1024 * 1100); int main() { int a, b; cin >> a >> b; cout << a * b << endl; }
[["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 78], ["+", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["-", 0, 43, 49, 50, 51, 4, 0, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 4, 0, 16, 12, 13]]
1
50
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; int c; c = a / b; cout << c; return 0; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; int c; c = a * b; cout << c; return 0; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48]]
1
39
#include <iostream> int main() { int a, b; std::cin >> a >> b; std::cout << a + b; return 0; }
#include <iostream> int main() { int a, b; std::cin >> a >> b; std::cout << a * b; return 0; }
[["-", 8, 9, 0, 1, 0, 16, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 48]]
1
32
A,B = gets.strip.split(nil).map(&:to_i) s = A*B put s
A,B = gets.strip.split(nil).map(&:to_i) s = A*B puts s
[["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
25
#include <bits/stdc++.h> using namespace std; #define int long long signed main() { int x; int y; cin >> x >> y; cout << x << endl; }
#include <bits/stdc++.h> using namespace std; #define int long long signed main() { int x; int y; cin >> x >> y; cout << x * y << endl; }
[["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]]
1
33
t_nums= list(map(int(),input().split())) print(t_nums[0]*t_nums[1])
t_nums= list(map(int,input().split())) print(t_nums[0]*t_nums[1])
[["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
31
#include <bits/stdc++.h> using namespace std; using lli = long long int; using ll = long long; using ld = long double; using d = double; bool isPrime(ll n) { if (n < 2) return false; for (ll i = 2; i * i <= n; ++i) { if (n % i == 0) { return false; } } return true; } int main() { int t; ...
#include <bits/stdc++.h> using namespace std; using lli = long long int; using ll = long long; using ld = long double; using d = double; bool isPrime(ll n) { if (n < 2) return false; for (ll i = 2; i * i <= n; ++i) { if (n % i == 0) { return false; } } return true; } int main() { int t = ...
[["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
120
x,y = gets.map(&:to_i) puts x*y
x,y = gets.split.map(&:to_i) puts x*y
[["+", 0, 493, 0, 662, 12, 652, 486, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131]]
4
15
#include <stdio.h> int main(void) { int A, B; scanf("%d", A); scanf("%d", B); printf("%d\n", A * B); return 0; }
#include <stdio.h> int main(void) { int A, B; scanf("%d", &A); scanf("%d", &B); printf("%d\n", A * B); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
47
#include <algorithm> #include <cstdio> using namespace std; int main() { int a, b; scanf("%d %d", &a, &b); printf("%d\n", a + b); return 0; }
#include <algorithm> #include <cstdio> using namespace std; int main() { int a, b; scanf("%d %d", &a, &b); printf("%d\n", a * b); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 48]]
1
47
#include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> // Common file //#include <ext/pb_ds/tree_policy.hpp> #define int long long #define pb push_back #define ff first #define ss second #define ii insert #define ld long double #define sz(x) (int)x.size() #define all(v) v.begin(), v.end() #define ppb pop_b...
#include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> // Common file //#include <ext/pb_ds/tree_policy.hpp> #define int long long #define pb push_back #define ff first #define ss second #define ii insert #define ld long double #define sz(x) (int)x.size() #define all(v) v.begin(), v.end() #define ppb pop_b...
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]]
1
323
#include <iostream> using namespace std; int main() { int a, b; cin >> a, b; cout << a * b << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a * b; return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
34
A, B = map(int, input().split()) A*B
A, B = map(int, input().split()) print(A*B)
[["+", 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, 25]]
5
19
#include <stdio.h> int main() { int A, B; scanf("%d %d", &A, &B); printf("%d\n", A); return 0; }
#include <stdio.h> int main() { int A, B; scanf("%d %d", &A, &B); printf("%d\n", A * B); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 48], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 22]]
0
39
def main(): a,b = map(int,input().split()) print(a) main()
def main(): a,b = map(int,input().split()) print(a * b) main()
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]]
5
28
#include <stdio.h> int main(void) { int A, B; scanf("%d", &A); scanf("%d", &B); A = A * B; puts(A); return 0; }
#include <stdio.h> int main(void) { int A, B; scanf("%d", &A); scanf("%d", &B); A = A * B; printf("%d", A); return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21]]
0
48
A,B=map(int,input()) A=A*B print(int(A))
A,B=map(int,input().split()) A=A*B print(int(A))
[["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
24
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); String s = sc.next(); System.out.println(s); } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int s = a * b; System.out.println(s); } }
[["-", 8, 498, 0, 195, 8, 196, 0, 503, 39, 78], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["-", 8, 196, 0, 503, 49, 200, 51, 492, 500, 22], ["-", 8, 196, 0, 503, 49, 200, 51, 492, 0, 131], ["-", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["-", 0, 503, 49, 200, 51, 492, 3, 4, 0, 24], ["-", 0, 503, 49, 200, 51, 49...
3
71
#include <bits/stdc++.h> using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x, to) for (x = 0; x < (to); x++) #define FORR(x, arr) for (auto &x : arr) #define ITR(x, c) for (__typeof(c.begin()) x = c.begin(); x != c.end(); x++) #define ALL(a) (a.begin()), ...
#include <bits/stdc++.h> using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x, to) for (x = 0; x < (to); x++) #define FORR(x, arr) for (auto &x : arr) #define ITR(x, c) for (__typeof(c.begin()) x = c.begin(); x != c.end(); x++) #define ALL(a) (a.begin()), ...
[["+", 31, 23, 0, 16, 31, 16, 31, 16, 17, 109], ["+", 31, 23, 0, 16, 31, 16, 31, 16, 12, 22]]
1
584
#include <bits/stdc++.h> using namespace std; namespace Base { #define mr make_pair typedef long long ll; typedef double db; const int inf = 0x3f3f3f3f, INF = 0x7fffffff; const ll infll = 0x3f3f3f3f3f3f3f3fll, INFll = 0x7fffffffffffffffll; template <typename T> void read(T &x) { x = 0; int fh = 1; double num = 1....
#include <bits/stdc++.h> using namespace std; namespace Base { #define mr make_pair typedef long long ll; typedef double db; const int inf = 0x3f3f3f3f, INF = 0x7fffffff; const ll infll = 0x3f3f3f3f3f3f3f3fll, INFll = 0x7fffffffffffffffll; template <typename T> void read(T &x) { x = 0; int fh = 1; double num = 1....
[["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 109], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22]]
1
689
#include <bits/stdc++.h> #define MP make_pair #define PB push_back #define int long long #define st first #define nd second #define rd third #define FOR(i, a, b) for (int i = (a); i <= (b); ++i) #define RE(i, n) FOR(i, 1, n) #define FORD(i, a, b) for (int i = (a); i >= (b); --i) #define REP(i, n) for (int i = 0; i < (n...
#include <bits/stdc++.h> #define MP make_pair #define PB push_back #define int long long #define st first #define nd second #define rd third #define FOR(i, a, b) for (int i = (a); i <= (b); ++i) #define RE(i, n) FOR(i, 1, n) #define FORD(i, a, b) for (int i = (a); i >= (b); --i) #define REP(i, n) for (int i = 0; i < (n...
[["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 22]]
1
1,289
#include <bits/stdc++.h> #define For(i, x, y) for (register int i = (x); i <= (y); i++) #define FOR(i, x, y) for (register int i = (x); i < (y); i++) #define Dow(i, x, y) for (register int i = (x); i >= (y); i--) #define Debug(v) \ for (auto i : v) ...
#include <bits/stdc++.h> #define For(i, x, y) for (register int i = (x); i <= (y); i++) #define FOR(i, x, y) for (register int i = (x); i < (y); i++) #define Dow(i, x, y) for (register int i = (x); i >= (y); i--) #define Debug(v) \ for (auto i : v) ...
[["-", 0, 34, 31, 2, 3, 4, 0, 16, 31, 22], ["+", 0, 34, 31, 2, 3, 4, 0, 16, 31, 22], ["-", 0, 34, 31, 2, 3, 4, 0, 16, 12, 22], ["+", 0, 34, 31, 2, 3, 4, 0, 16, 12, 22]]
1
926
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef double db; typedef string str; typedef pair<int, int> pi; typedef pair<ll, ll> pl; typedef pair<db, db> pd; typedef vector<int> vi; typedef vector<ll> vl; typedef vector<db> vd; typedef vector<str> vs; typedef vector<...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef double db; typedef string str; typedef pair<int, int> pi; typedef pair<ll, ll> pl; typedef pair<db, db> pd; typedef vector<int> vi; typedef vector<ll> vl; typedef vector<db> vd; typedef vector<str> vs; typedef vector<...
[["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 14, 8, 9, 0, 1, 0, 35]]
1
2,922
a, b = gets.split(" ").map &:tp_i puts a * b
a, b = gets.split(" ").map &:to_i puts a * b
[["-", 0, 662, 12, 652, 3, 4, 0, 752, 0, 753], ["+", 0, 662, 12, 652, 3, 4, 0, 752, 0, 753]]
4
20
#include <algorithm> #include <bits/stdc++.h> #include <iostream> #include <iterator> #include <math.h> #include <numeric> #include <sstream> #include <string> #include <vector> using namespace std; #define endl ("\n") #define pi (3.141592653589) #define mod 1000000007 #define int long long #define float double #defi...
#include <algorithm> #include <bits/stdc++.h> #include <iostream> #include <iterator> #include <math.h> #include <numeric> #include <sstream> #include <string> #include <vector> using namespace std; #define endl ("\n") #define pi (3.141592653589) #define mod 1000000007 #define int long long #define float double #defi...
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
157
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define ll long long int #define MOD 1000000007 #define oo 1000000000000000000 #define forr(i, n) for (ll i = 0; i < n; i++) #define fastio \ ios_base:...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define ll long long int #define MOD 1000000007 #define oo 1000000000000000000 #define forr(i, n) for (ll i = 0; i < n; i++) #define fastio \ ios_base:...
[["+", 8, 9, 0, 52, 8, 1, 0, 2, 63, 22], ["+", 0, 52, 8, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 52, 8, 1, 0, 2, 3, 4, 0, 25], ["+", 0, 14, 8, 9, 0, 52, 8, 1, 0, 35]]
1
320
A, B=map(int, input().split) print(A*B)
A, B=map(int, input().split()) print(A*B)
[["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
20
#include <stdio.h> int main() { int a, b; printf(""); scanf("%d %d\n", a, b); printf("%d\n", a * b); return 0; }
#include <stdio.h> int main() { int a, b; printf(""); scanf("%d %d", &a, &b); printf("%d\n", a * b); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
46
#include <stdio.h> int main(void) { int a, b, s; scanf("%d", &a, &b); s = a * b; printf("%d\n", s); return 0; }
#include <stdio.h> int main(void) { int a, b, s; scanf("%d %d", &a, &b); s = a * b; printf("%d\n", s); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
48
a = list(map(int, input().split())) print(a[0] * b[1])
a = list(map(int, input().split())) print(a[0] * a[1])
[["-", 0, 652, 3, 4, 0, 657, 12, 206, 51, 22], ["+", 0, 652, 3, 4, 0, 657, 12, 206, 51, 22]]
5
29
#include <algorithm> #include <iostream> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string> #include <vector> using namespace std; int vector_finder(std::vector<int> vec, int number) { auto itr = std::find(vec.begin(), vec.end(), number); size_t index = std::distance(vec.begin(), itr); if ...
#include <algorithm> #include <iostream> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string> #include <vector> using namespace std; int vector_finder(std::vector<int> vec, int number) { auto itr = std::find(vec.begin(), vec.end(), number); size_t index = std::distance(vec.begin(), itr); if ...
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
123
class A169 def call(a, b) a * b end def main inputs = gets.split(' ') call(inputs[0].to_i, inputs[1].to_i) end end A169.new.main
class A169 def call(a, b) a * b end def main inputs = gets.split(' ') puts call(inputs[0].to_i, inputs[1].to_i) end end A169.new.main
[["+", 8, 736, 0, 735, 8, 736, 0, 652, 735, 22]]
4
48
a=input() a=a.split() x=a[0] y=a[1] c=x*y print(c)
a=input() a=a.split() x=int(a[0]) y=int(a[1]) c=x*y print(c)
[["+", 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
33
m,n = map(int(input().split())) print(m*n)
#!/usr/bin/env python3 m, n = map(int, input().split()) print(m * n)
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
23
m,n = map(int(input().split())) print(m*n)
m, n = map(int, input().split()) print(m * n)
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
23