Datasets:

problem_id
stringlengths
6
6
buggy_code
stringlengths
8
526k
fixed_code
stringlengths
12
526k
labels
listlengths
0
15
⌀
buggy_submission_id
int64
1
1.54M
fixed_submission_id
int64
2
1.54M
user_id
stringlengths
10
10
language
stringclasses
8 values
p02537
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; #define mp make_pair #define pb(x) push_back(x) #define vll vector<long long> #define pll pair<long long, long long> #define mll map<long long, long long> #define sz(v)...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; #define mp make_pair #define pb(x) push_back(x) #define vll vector<long long> #define pll pair<long long, long long> #define mll map<long long, long long> #define sz(v)...
[ "literal.number.change", "call.arguments.change" ]
241,739
241,740
u754279713
cpp
p02537
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; #define mp make_pair #define pb(x) push_back(x) #define vll vector<long long> #define pll pair<long long, long long> #define mll map<long long, long long> #define sz(v)...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; #define mp make_pair #define pb(x) push_back(x) #define vll vector<long long> #define pll pair<long long, long long> #define mll map<long long, long long> #define sz(v)...
[ "literal.number.change", "call.arguments.change", "assignment.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
241,741
241,740
u754279713
cpp
p02537
#include <bits/stdc++.h> //#include <atcoder/scc> using namespace std; // using namespace atcoder; using ll = long long; using ull = unsigned long long; using pii = pair<int, int>; using pll = pair<ll, ll>; using pull = pair<ull, ll>; using pis = pair<int, string>; #define all(x) (x).begin(), (x).end() #define INF 1000...
#include <bits/stdc++.h> //#include <atcoder/scc> using namespace std; // using namespace atcoder; using ll = long long; using ull = unsigned long long; using pii = pair<int, int>; using pll = pair<ll, ll>; using pull = pair<ull, ll>; using pis = pair<int, string>; #define all(x) (x).begin(), (x).end() #define INF 1000...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change", "expression.operation.binary.change", "literal.number.change", "control_flow.loop.for.condition.change" ]
241,756
241,755
u499966353
cpp
p02537
// Problem : D - Flat Subsequence // Contest : AtCoder - ACL Beginner Contest // URL : https://atcoder.jp/contests/abl/tasks/abl_d // Memory Limit : 1024 MB // Time Limit : 2000 ms // Powered by CP Editor (https://github.com/cpeditor/cpeditor) //#pragma GCC optimize("Ofast") //#pragma GCC optimize ("unroll-loops") //...
// Problem : D - Flat Subsequence // Contest : AtCoder - ACL Beginner Contest // URL : https://atcoder.jp/contests/abl/tasks/abl_d // Memory Limit : 1024 MB // Time Limit : 2000 ms // Powered by CP Editor (https://github.com/cpeditor/cpeditor) //#pragma GCC optimize("Ofast") //#pragma GCC optimize ("unroll-loops") //...
[ "literal.number.change", "call.arguments.change" ]
241,759
241,758
u768104057
cpp
p02537
#include <bits/stdc++.h> using namespace std; // type alias typedef long long LL; typedef pair<int, int> II; typedef tuple<int, int, int> III; typedef vector<int> VI; typedef vector<string> VS; typedef unordered_map<int, int> MAPII; typedef unordered_set<int> SETI; template <class T> using VV = vector<vector<T>>; // mi...
#include <bits/stdc++.h> using namespace std; // type alias typedef long long LL; typedef pair<int, int> II; typedef tuple<int, int, int> III; typedef vector<int> VI; typedef vector<string> VS; typedef unordered_map<int, int> MAPII; typedef unordered_set<int> SETI; template <class T> using VV = vector<vector<T>>; // mi...
[ "identifier.change", "call.arguments.change" ]
241,785
241,786
u465317453
cpp
p02537
#include <algorithm> #include <bitset> #include <cassert> #include <chrono> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <functional> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <s...
#include <algorithm> #include <bitset> #include <cassert> #include <chrono> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <functional> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <s...
[ "identifier.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
241,797
241,798
u617380180
cpp
p02537
// Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools #include <bits/stdc++.h> // #include "atcoder/all" using namespace std; using i64 = long long; const i64 MOD = 1e9 + 7; const i64 INF = i64(1e18) + 7; template <typename T> bool chmin(T &x, T y) { if (x > y) { x = y; return true; } ...
// Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools #include <bits/stdc++.h> // #include "atcoder/all" using namespace std; using i64 = long long; const i64 MOD = 1e9 + 7; const i64 INF = i64(1e18) + 7; template <typename T> bool chmin(T &x, T y) { if (x > y) { x = y; return true; } ...
[ "identifier.replace.remove", "literal.replace.add", "call.arguments.change", "expression.operation.binary.change", "literal.number.type.widen.change" ]
241,799
241,800
u705918648
cpp
p02537
#define _USE_MATH_DEFINES #include <algorithm> #include <array> #include <cfloat> #include <climits> #include <cmath> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <queue> #include <random> #include <set> #include <sstream> #include <stack> #incl...
#define _USE_MATH_DEFINES #include <algorithm> #include <array> #include <cfloat> #include <climits> #include <cmath> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <queue> #include <random> #include <set> #include <sstream> #include <stack> #incl...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "identifier.replace.remove", "literal.replace.add", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
241,801
241,802
u624800360
cpp
p02537
#include <bits/stdc++.h> using namespace std; const int maxn = 300005; struct tree { int l, r, sum; } t[maxn * 4]; int a[maxn], f[maxn], n, m, ans; void build(int id, int l, int r) { t[id].l = l, t[id].r = r; if (l == r) { return; } int mid = (l + r) / 2; build(id * 2, l, mid); build(id * 2 + 1, mid +...
#include <bits/stdc++.h> using namespace std; const int maxn = 300005; struct tree { int l, r, sum; } t[maxn * 4]; int a[maxn], f[maxn], n, m, ans; void build(int id, int l, int r) { t[id].l = l, t[id].r = r; if (l == r) { return; } int mid = (l + r) / 2; build(id * 2, l, mid); build(id * 2 + 1, mid +...
[ "literal.number.change", "call.arguments.change" ]
241,805
241,804
u146296121
cpp
p02537
#include <bits/stdc++.h> using namespace std; const int maxn = 300005; struct tree { int l, r, sum; } t[maxn * 4]; int a[maxn], f[maxn], n, m, ans; void build(int id, int l, int r) { t[id].l = l, t[id].r = r; if (l == r) { return; } int mid = (l + r) / 2; build(id * 2, l, mid); build(id * 2 + 1, mid +...
#include <bits/stdc++.h> using namespace std; const int maxn = 300005; struct tree { int l, r, sum; } t[maxn * 4]; int a[maxn], f[maxn], n, m, ans; void build(int id, int l, int r) { t[id].l = l, t[id].r = r; if (l == r) { return; } int mid = (l + r) / 2; build(id * 2, l, mid); build(id * 2 + 1, mid +...
[ "identifier.replace.remove", "literal.replace.add", "function.return_value.change", "literal.number.change", "call.arguments.change" ]
241,806
241,804
u146296121
cpp
p02537
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> PP; //#define MOD 1000000007 #define MOD 998244353 #define INF 2305843009213693951 //#define INF 810114514 #define PI 3.141592653589 #define setdouble setprecision #define REP(i, n) for (ll i = 0; i < (n); ++i) #define OREP(i, n) f...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> PP; //#define MOD 1000000007 #define MOD 998244353 #define INF 2305843009213693951 //#define INF 810114514 #define PI 3.141592653589 #define setdouble setprecision #define REP(i, n) for (ll i = 0; i < (n); ++i) #define OREP(i, n) f...
[ "identifier.replace.remove", "literal.replace.add", "call.arguments.change" ]
241,811
241,812
u554953477
cpp
p02537
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rrep(i, n) for (int i = (int)(n - 1); i >= 0; i--) #define all(x) (x).begin(), (x).end() #define sz(x) int(x.size()) using namespace std; typedef long long ll; const int INF = 1e9; const ll MOD = 1e9 + 7; const ll LINF = 1e18; templat...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rrep(i, n) for (int i = (int)(n - 1); i >= 0; i--) #define all(x) (x).begin(), (x).end() #define sz(x) int(x.size()) using namespace std; typedef long long ll; const int INF = 1e9; const ll MOD = 1e9 + 7; const ll LINF = 1e18; templat...
[ "identifier.replace.remove", "literal.replace.add", "call.arguments.change", "expression.operation.binary.change", "expression.operation.binary.remove" ]
241,820
241,821
u649915042
cpp
p02537
/** * “Experience is the name everyone gives to their mistakes.” – Oscar Wilde * * author : Prodip Datta * handle : prodipdatta7 * created : Saturday 26-September, 2020 06:14:03 PM **/ //#include <bits/stdc++.h> #include <algorithm> #include <assert.h> #include <bitset> #include <cmath> #include <cs...
/** * “Experience is the name everyone gives to their mistakes.” – Oscar Wilde * * author : Prodip Datta * handle : prodipdatta7 * created : Saturday 26-September, 2020 06:14:03 PM **/ //#include <bits/stdc++.h> #include <algorithm> #include <assert.h> #include <bitset> #include <cmath> #include <cs...
[ "expression.unary.arithmetic.add" ]
241,822
241,823
u129643292
cpp
p02537
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) #define FOR(i, m, n) for (int(i) = (m); (i) < (n); (i)++) #define All(v) (v).begin(), (v).end() #define pb push_back #define MP(a, b) make_pair((a), (b)) template <class T> vector<T> make_vec(size_t a, T val) { return v...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) #define FOR(i, m, n) for (int(i) = (m); (i) < (n); (i)++) #define All(v) (v).begin(), (v).end() #define pb push_back #define MP(a, b) make_pair((a), (b)) template <class T> vector<T> make_vec(size_t a, T val) { return v...
[]
241,824
241,825
u917282863
cpp
p02537
/*{{{*/ #include <algorithm> #include <assert.h> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <limits.h> #include <map> #include <queue> #include <set> #include <sstream> #include <string> #include <vector> #define SZ(X) ((int)(X).size()) #defin...
/*{{{*/ #include <algorithm> #include <assert.h> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <limits.h> #include <map> #include <queue> #include <set> #include <sstream> #include <string> #include <vector> #define SZ(X) ((int)(X).size()) #defin...
[ "literal.number.change", "call.arguments.change", "expression.operation.binary.change" ]
241,826
241,827
u284124505
cpp
p02537
#include <bits/stdc++.h> // #include <ext/pb_ds/assoc_container.hpp> // #include <ext/pb_ds/tree_policy.hpp> // using namespace __gnu_pbds; using namespace std; #define fbo find_by_order #define ook order_of_key #define fi first #define se second #define long long long typedef pair<int, int> ii; typedef pair<int, ii>...
#include <bits/stdc++.h> // #include <ext/pb_ds/assoc_container.hpp> // #include <ext/pb_ds/tree_policy.hpp> // using namespace __gnu_pbds; using namespace std; #define fbo find_by_order #define ook order_of_key #define fi first #define se second #define long long long typedef pair<int, int> ii; typedef pair<int, ii>...
[ "literal.number.change", "call.arguments.change" ]
241,837
241,838
u846949634
cpp
p02537
#ifndef SEGMENT_TREE_HPP #define SEGMENT_TREE_HPP #include <functional> #include <iterator> #include <vector> //=== template <class Monoid> struct SegmentTree { using T = typename Monoid::value_type; std::vector<T> tree; SegmentTree() = default; explicit SegmentTree(int n) : tree(n << 1, Monoid::identity())...
#ifndef SEGMENT_TREE_HPP #define SEGMENT_TREE_HPP #include <functional> #include <iterator> #include <vector> //=== template <class Monoid> struct SegmentTree { using T = typename Monoid::value_type; std::vector<T> tree; SegmentTree() = default; explicit SegmentTree(int n) : tree(n << 1, Monoid::identity())...
[ "call.arguments.change" ]
241,841
241,842
u683588090
cpp
p02537
#include <bits/stdc++.h> typedef long long int ll; using namespace std; #define sz 300009 #define mx 10000000000008 #define mod 1000000007 ll n, tt, arr[sz], t[4 * sz]; ll query(ll node, ll l, ll r, ll le, ll ri) { if (le > ri || l > ri || r < le) return 0; if (le <= l && r <= ri) return t[node]; ll mid =...
#include <bits/stdc++.h> typedef long long int ll; using namespace std; #define sz 300009 #define mx 10000000000008 #define mod 1000000007 ll n, tt, arr[sz], t[4 * sz]; ll query(ll node, ll l, ll r, ll le, ll ri) { if (le > ri || l > ri || r < le) return 0; if (le <= l && r <= ri) return t[node]; ll mid =...
[ "assignment.value.change" ]
241,843
241,844
u087950716
cpp
p02537
#include <bits/stdc++.h> using ll = long long; using uint = unsigned int; using ull = unsigned long long; using ld = long double; template <typename T> using max_heap = std::priority_queue<T>; template <typename T> using min_heap = std::priority_queue<T, std::vector<T>, std::greater<T>>; constexpr int popcount(const u...
#include <bits/stdc++.h> using ll = long long; using uint = unsigned int; using ull = unsigned long long; using ld = long double; template <typename T> using max_heap = std::priority_queue<T>; template <typename T> using min_heap = std::priority_queue<T, std::vector<T>, std::greater<T>>; constexpr int popcount(const u...
[ "literal.number.change", "variable_declaration.value.change" ]
241,849
241,850
u603303736
cpp
p02537
/* Created by Rahul Goel. */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> /*******************************************************************************/ using namespace std; using namespace __gnu_pbds; template <typename T> using ordered_set = tree<T,...
/* Created by Rahul Goel. */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> /*******************************************************************************/ using namespace std; using namespace __gnu_pbds; template <typename T> using ordered_set = tree<T,...
[ "identifier.replace.remove", "literal.replace.add", "call.arguments.change", "expression.operation.binary.change" ]
241,859
241,860
u845686872
cpp
p02537
/* Created by Rahul Goel. */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> /*******************************************************************************/ using namespace std; using namespace __gnu_pbds; template <typename T> using ordered_set = tree<T,...
/* Created by Rahul Goel. */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> /*******************************************************************************/ using namespace std; using namespace __gnu_pbds; template <typename T> using ordered_set = tree<T,...
[ "identifier.change", "call.function.change", "identifier.replace.remove", "literal.replace.add", "call.arguments.change", "expression.operation.binary.change" ]
241,861
241,860
u845686872
cpp
p02537
// W i B #include <bits/stdc++.h> #define F first #define S second #define MOD 1000000007 #define pb push_back #define bit(x, p) ((x >> p) & 1) #define ll long long #define Task "CF" using namespace std; const int base = 100003; const int maxn = 600005; int n, k, a[maxn]; ll tree[8 * maxn], dp[maxn]; int Get(int nod...
// W i B #include <bits/stdc++.h> #define F first #define S second #define MOD 1000000007 #define pb push_back #define bit(x, p) ((x >> p) & 1) #define ll long long #define Task "CF" using namespace std; const int base = 100003; const int maxn = 600005; int n, k, a[maxn]; ll tree[8 * maxn], dp[maxn]; int Get(int nod...
[ "assignment.value.change" ]
241,864
241,865
u487884309
cpp
p02537
// includes #include <bits/stdc++.h> using namespace std; // macros #define pb emplace_back #define mk make_pair #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define rep(i, n) FOR(i, 0, n) #define rrep(i, n) for (int i = ((int)(n)-1); i >= 0; i--) #define irep(itr, st) for (auto itr = (st).begin(); itr != (st)...
// includes #include <bits/stdc++.h> using namespace std; // macros #define pb emplace_back #define mk make_pair #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define rep(i, n) FOR(i, 0, n) #define rrep(i, n) for (int i = ((int)(n)-1); i >= 0; i--) #define irep(itr, st) for (auto itr = (st).begin(); itr != (st)...
[]
241,875
241,876
u424110125
cpp
p02537
#pragma GCC optimize("Ofast") #define _USE_MATH_DEFINES #include "bits/stdc++.h" using namespace std; using u8 = uint8_t; using u16 = uint16_t; using u32 = uint32_t; using u64 = uint64_t; using i8 = int8_t; using i16 = int16_t; using i32 = int32_t; using i64 = int64_t; using vi = vector<int>; constexpr char newl = ...
#pragma GCC optimize("Ofast") #define _USE_MATH_DEFINES #include "bits/stdc++.h" using namespace std; using u8 = uint8_t; using u16 = uint16_t; using u32 = uint32_t; using u64 = uint64_t; using i8 = int8_t; using i16 = int16_t; using i32 = int32_t; using i64 = int64_t; using vi = vector<int>; constexpr char newl = ...
[ "identifier.replace.remove", "literal.replace.add", "io.output.change" ]
241,877
241,878
u211255607
cpp
p02537
#include <bits/stdc++.h> using namespace std; #define maxn 3000005 int tree[4 * maxn], f[maxn], a[maxn], lazy[4 * maxn]; void pushup(int i) { tree[i] = max(tree[i << 1], tree[i << 1 | 1]); } void xia(int i, int l, int r) { tree[i << 1] = max(tree[i << 1], lazy[i]); tree[i << 1 | 1] = max(tree[i << 1 | 1], lazy[i]);...
#include <bits/stdc++.h> using namespace std; #define maxn 300005 int tree[4 * maxn], f[maxn], a[maxn], lazy[4 * maxn]; void pushup(int i) { tree[i] = max(tree[i << 1], tree[i << 1 | 1]); } void xia(int i, int l, int r) { tree[i << 1] = max(tree[i << 1], lazy[i]); tree[i << 1 | 1] = max(tree[i << 1 | 1], lazy[i]); ...
[ "preprocessor.define.value.change", "literal.integer.change", "literal.number.change", "assignment.value.change", "call.arguments.change" ]
241,881
241,882
u874258711
cpp
p02537
#include <bits/stdc++.h> using namespace std; #define maxn 1000005 int tree[4 * maxn], f[maxn], a[maxn], lazy[4 * maxn]; void pushup(int i) { tree[i] = max(tree[i << 1], tree[i << 1 | 1]); } void xia(int i, int l, int r) { tree[i << 1] = max(tree[i << 1], lazy[i]); tree[i << 1 | 1] = max(tree[i << 1 | 1], lazy[i]);...
#include <bits/stdc++.h> using namespace std; #define maxn 300005 int tree[4 * maxn], f[maxn], a[maxn], lazy[4 * maxn]; void pushup(int i) { tree[i] = max(tree[i << 1], tree[i << 1 | 1]); } void xia(int i, int l, int r) { tree[i << 1] = max(tree[i << 1], lazy[i]); tree[i << 1 | 1] = max(tree[i << 1 | 1], lazy[i]); ...
[ "preprocessor.define.value.change", "literal.integer.change", "literal.number.change", "assignment.value.change", "call.arguments.change" ]
241,883
241,882
u874258711
cpp
p02537
#include <bits/stdc++.h> using namespace std; int Read() { int x = 0, f = 1; char ch = getchar(); while (!isdigit(ch)) { if (ch == '-') f = -1; ch = getchar(); } while (isdigit(ch)) { x = (x << 3) + (x << 1) + ch - '0'; ch = getchar(); } return x * f; } int n, k, f[300055], maxn[1200...
#include <bits/stdc++.h> using namespace std; int Read() { int x = 0, f = 1; char ch = getchar(); while (!isdigit(ch)) { if (ch == '-') f = -1; ch = getchar(); } while (isdigit(ch)) { x = (x << 3) + (x << 1) + ch - '0'; ch = getchar(); } return x * f; } int n, k, f[600055], maxn[2400...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "assignment.value.change", "identifier.replace.remove", "literal.replace.add", "call.arguments.change", "expression.operation.binary.change" ]
241,938
241,939
u841369727
cpp
p02537
/* * じょえチャンネル * 高評価・チャンネル登録よろしくおねがいします! * https://www.youtube.com/channel/UCRXsI3FL_kvaVL9zoolBfbQ */ #include <algorithm> #include <bitset> #include <cassert> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <ctime> #include <deque> #include <fstream> #include <functional> #includ...
/* * じょえチャンネル * 高評価・チャンネル登録よろしくおねがいします! * https://www.youtube.com/channel/UCRXsI3FL_kvaVL9zoolBfbQ */ #include <algorithm> #include <bitset> #include <cassert> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <ctime> #include <deque> #include <fstream> #include <functional> #includ...
[ "literal.number.change", "call.arguments.change" ]
241,950
241,951
u943070796
cpp
p02537
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define ll long long #define X first #define Y second #define all(x) x.begin(), x.end() #define ordered_set ...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define ll long long #define X first #define Y second #define all(x) x.begin(), x.end() #define ordered_set ...
[ "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
241,954
241,955
u770383516
cpp
p02537
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (ll i = 0; i < n; ++i) #define all(c) begin(c), end(c) #define PI acos(-1) #define oo LLONG_MAX template <typename T1, typename T2> bool chmax(T1 &a, T2 b) { if (a < b) { a = b; return true; } else return false; } ...
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (ll i = 0; i < n; ++i) #define all(c) begin(c), end(c) #define PI acos(-1) #define oo LLONG_MAX template <typename T1, typename T2> bool chmax(T1 &a, T2 b) { if (a < b) { a = b; return true; } else return false; } ...
[ "literal.number.change", "call.arguments.change", "identifier.replace.remove", "literal.replace.add" ]
241,959
241,957
u071282706
cpp
p02538
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <map> #include <queue> #define N1 200005 #define ll long long #define inf 0x3f3f3f3f #define mod 998244353 using namespace std; int n, Q; ll val[10][N1], m10[N1]; struct SEG { ll sum[N1 << 2]; int tag[N1]; void pushup(int len, i...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <map> #include <queue> #define N1 200005 #define ll long long #define inf 0x3f3f3f3f #define mod 998244353 using namespace std; int n, Q; ll val[10][N1], m10[N1]; struct SEG { ll sum[N1 << 2]; int tag[N1 << 2]; void pushup(int l...
[ "variable_declaration.array_dimensions.change", "expression.operation.binary.add" ]
241,974
241,975
u307611113
cpp
p02538
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> // Common file #include <ext/pb_ds/tree_policy.hpp> // Including tree_order_statistics_node_update #define MIN(a, b) (((a) < (b)) ? (a) : (b)) #define MAX(a, b) (((a) < (b)) ? (b) : (a)) using namespace std; using namespace __gnu_pbds; auto random_addres...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> // Common file #include <ext/pb_ds/tree_policy.hpp> // Including tree_order_statistics_node_update #define MIN(a, b) (((a) < (b)) ? (a) : (b)) #define MAX(a, b) (((a) < (b)) ? (b) : (a)) using namespace std; using namespace __gnu_pbds; auto random_addres...
[ "assignment.change" ]
241,986
241,987
u342129287
cpp
p02537
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); i++) #define repi(i, a, b) for (int i = int(a); i < int(b); ++i) #define r...
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); i++) #define repi(i, a, b) for (int i = int(a); i < int(b); ++i) #define r...
[ "identifier.replace.remove", "literal.replace.add", "call.arguments.change" ]
242,000
242,001
u773580152
cpp
p02537
#include <algorithm> #include <chrono> #include <cmath> #include <deque> #include <fstream> #include <functional> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map> #include <queue> #include <random> #include <set> #include <sstream> #include <stack> #include <string> #include <uno...
#include <algorithm> #include <chrono> #include <cmath> #include <deque> #include <fstream> #include <functional> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map> #include <queue> #include <random> #include <set> #include <sstream> #include <stack> #include <string> #include <uno...
[ "identifier.replace.remove", "literal.replace.add", "call.arguments.change", "expression.operation.binary.change", "expression.operation.binary.remove" ]
242,035
242,036
u405653069
cpp
p02537
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rrep(ri, n) for (int ri = (int)(n - 1); ri >= 0; ri--) #define rep2(i, x, n) for (int i = (int)(x); i < (int)(n); i++) #define rrep2(ri, x, n) for (int ri = (int)(n - 1); ri >= (int)(x); ri--) #define repit(itr, x) for (auto itr = x.b...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rrep(ri, n) for (int ri = (int)(n - 1); ri >= 0; ri--) #define rep2(i, x, n) for (int i = (int)(x); i < (int)(n); i++) #define rrep2(ri, x, n) for (int ri = (int)(n - 1); ri >= (int)(x); ri--) #define repit(itr, x) for (auto itr = x.b...
[ "identifier.replace.remove", "literal.replace.add", "call.arguments.change" ]
242,055
242,054
u617826263
cpp
p02537
#include <bits/stdc++.h> using namespace std; const int N = 6e5 + 7; int n, a[N], k, tree[4 * N]; #define m (l + r) / 2 #define lson 2 * node #define rson 2 * node + 1 void update(int pos, int v, int l, int r, int node) { if (l == r) { tree[node] = v; } if (pos <= m) update(pos, v, l, m, lson); else ...
#include <bits/stdc++.h> using namespace std; const int N = 6e5 + 7; int n, a[N], k, tree[4 * N]; #define m (l + r) / 2 #define lson 2 * node #define rson 2 * node + 1 void update(int pos, int v, int l, int r, int node) { if (l == r) { tree[node] = v; return; } if (pos <= m) update(pos, v, l, m, ls...
[ "control_flow.return.add" ]
242,064
242,065
u358301346
cpp
p02537
#include <bits/stdc++.h> #define rep(i, a, b) for (ll i = ll(a); i < ll(b); i++) #define irep(i, a, b) for (ll i = ll(a); i >= ll(b); i--) template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { ...
#include <bits/stdc++.h> #define rep(i, a, b) for (ll i = ll(a); i < ll(b); i++) #define irep(i, a, b) for (ll i = ll(a); i >= ll(b); i--) template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { ...
[ "identifier.replace.remove", "literal.replace.add", "call.arguments.change", "literal.number.type.widen.change" ]
242,067
242,068
u499009346
cpp
p02537
#pragma GCC optimize("O3") #pragma GCC target("sse4") #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...
#pragma GCC optimize("O3") #pragma GCC target("sse4") #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...
[ "identifier.change", "call.arguments.change", "expression.operation.binary.change" ]
242,077
242,078
u867529352
cpp
p02537
#pragma GCC optimize("O3") #pragma GCC target("sse4") #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...
#pragma GCC optimize("O3") #pragma GCC target("sse4") #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...
[ "literal.number.change", "expression.operation.binary.change", "call.arguments.change", "identifier.change" ]
242,079
242,078
u867529352
cpp
p02537
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #define all(v) (v).begin(), (v).end() using namespace std; using ll = long long; using ld = long double; using pii = pair<int, int>; using vi = vector<int>; using vii = vector<vector<int>>; const ll LINF = 1LL << 60; const int INF = 1 << 29; const int MOD = 1e9 + 7; ...
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #define all(v) (v).begin(), (v).end() using namespace std; using ll = long long; using ld = long double; using pii = pair<int, int>; using vi = vector<int>; using vii = vector<vector<int>>; const ll LINF = 1LL << 60; const int INF = 1 << 29; const int MOD = 1e9 + 7; ...
[ "expression.operation.binary.add" ]
242,157
242,158
u414689295
cpp
p02538
// include //------------------------------------------ #include <algorithm> #include <bitset> #include <deque> #include <functional> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #include <complex> #include <numeric> #include <utility> #include <i...
// include //------------------------------------------ #include <algorithm> #include <bitset> #include <deque> #include <functional> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #include <complex> #include <numeric> #include <utility> #include <i...
[ "expression.operation.binary.add" ]
242,195
242,196
u592290074
cpp
p02538
#include <bits/stdc++.h> #include <complex> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; #define ll long long #define ull unsigned long long #define f first #define s second typedef pair<int, int> pii; typedef pair<ll, ll> pll; #define o...
#include <bits/stdc++.h> #include <complex> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; #define ll long long #define ull unsigned long long #define f first #define s second typedef pair<int, int> pii; typedef pair<ll, ll> pll; #define o...
[ "expression.operation.binary.remove" ]
242,220
242,221
u712294491
cpp
p02538
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> #include <queue> #define LL long long #define maxn 200005 using namespace std; const LL mod = 998244353; int n, v[maxn << 2], q, a[maxn]; LL mp[11][maxn], M[maxn]; void Init() { for (int i = 1; i <= 9; i++) { mp[i][0] = 0; for (i...
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> #include <queue> #define LL long long #define maxn 200005 using namespace std; const LL mod = 998244353; int n, v[maxn << 2], q, a[maxn]; LL mp[11][maxn], M[maxn << 2]; void Init() { for (int i = 1; i <= 9; i++) { mp[i][0] = 0; f...
[ "variable_declaration.array_dimensions.change", "expression.operation.binary.add" ]
242,236
242,237
u395980332
cpp
p02538
#include <bits/stdc++.h> using namespace std; const int mod = 998244353; const int MAXN = 400010; using ll = long long; ll popsum[MAXN]; using PII = pair<int, int>; using PIII = pair<PII, int>; set<PIII> st; int main() { int n, m; scanf("%d%d", &n, &m); popsum[0] = 0; int po10 = 0; for (int i = 1; i <= n; ...
#include <bits/stdc++.h> using namespace std; const int mod = 998244353; const int MAXN = 400010; using ll = long long; ll popsum[MAXN]; using PII = pair<int, int>; using PIII = pair<PII, int>; set<PIII> st; int main() { int n, m; scanf("%d%d", &n, &m); popsum[0] = 0; ll po10 = 0; for (int i = 1; i <= n; i...
[ "variable_declaration.type.change" ]
242,250
242,251
u434626907
cpp
p02538
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define re register #define ls (o << 1) #define m (l + r) / 2 #define rs (o << 1 | 1) #define pb push_back const double PI = acos(-1.0); const int M = 1e5 + 7; /* int head[M],cnt=1; void init(int n){cnt=1;for(int i=0;i<=n;i++)head[i]=0;} struct EDGE{in...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define re register #define ls (o << 1) #define m (l + r) / 2 #define rs (o << 1 | 1) #define pb push_back const double PI = acos(-1.0); const int M = 1e6 + 7; /* int head[M],cnt=1; void init(int n){cnt=1;for(int i=0;i<=n;i++)head[i]=0;} struct EDGE{in...
[ "literal.number.change", "expression.operation.binary.change" ]
242,258
242,259
u561727609
cpp
p02540
#include <iostream> #include <numeric> #include <set> #include <vector> using namespace std; class UnionFind { vector<int> par, rank, size; public: explicit UnionFind(int n) : par(n), rank(n, 0), size(n, 1) { iota(par.begin(), par.end(), 0); } int find(int i) { return (par[i] == i) ? i : (par[i] = find(p...
#include <iostream> #include <numeric> #include <set> #include <vector> using namespace std; class UnionFind { vector<int> par, rank, size; public: explicit UnionFind(int n) : par(n), rank(n, 0), size(n, 1) { iota(par.begin(), par.end(), 0); } int find(int i) { return (par[i] == i) ? i : (par[i] = find(p...
[ "control_flow.branch.if.condition.change" ]
242,266
242,267
u374416262
cpp
p02540
#include <bits/stdc++.h> using namespace std; const long long MOD = 998244353; vector<int> parent; int getRoot(int idx) { if (parent[idx] != idx) { parent[idx] = getRoot(parent[idx]); } return parent[idx]; } void fusion(vector<tuple<int, int, int>> &coordinates, int left, int right) { if (right - left ...
#include <bits/stdc++.h> using namespace std; const long long MOD = 998244353; vector<int> parent; int getRoot(int idx) { if (parent[idx] != idx) { parent[idx] = getRoot(parent[idx]); } return parent[idx]; } void fusion(vector<tuple<int, int, int>> &coordinates, int left, int right) { if (right - left ...
[ "call.add", "call.arguments.change" ]
242,270
242,271
u477582000
cpp
p02540
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define ll long long #define FI first #define SE second #define pb push_back #define eb emplace_back #define mod 1000000007 #define all(c) (c).begin(), (c).end() #defi...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define ll long long #define FI first #define SE second #define pb push_back #define eb emplace_back #define mod 1000000007 #define all(c) (c).begin(), (c).end() #defi...
[ "identifier.change", "control_flow.loop.condition.change", "call.arguments.change" ]
242,284
242,285
u467977065
cpp
p02537
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <forward_list> #include <functional> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <tuple> #include <utility> #include <vector> #define...
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <forward_list> #include <functional> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <tuple> #include <utility> #include <vector> #define...
[ "call.add", "call.arguments.change" ]
242,309
242,310
u880221923
cpp
p02537
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <forward_list> #include <functional> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <tuple> #include <utility> #include <vector> #define...
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <forward_list> #include <functional> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <tuple> #include <utility> #include <vector> #define...
[]
242,311
242,312
u880221923
cpp
p02537
// URL : https://atcoder.jp/contests/abl/tasks/abl_d #pragma region optimize // #pragma GCC optimize("Ofast") // #pragma GCC optimize("unroll-loops") // #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx") #pragma endregion #include <bits/stdc++.h> // #include <atcoder/all> using namespace std; #pragma reg...
// URL : https://atcoder.jp/contests/abl/tasks/abl_d #pragma region optimize // #pragma GCC optimize("Ofast") // #pragma GCC optimize("unroll-loops") // #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx") #pragma endregion #include <bits/stdc++.h> // #include <atcoder/all> using namespace std; #pragma reg...
[ "identifier.replace.remove", "literal.replace.add", "call.arguments.change", "expression.operation.binary.change", "expression.operation.binary.remove" ]
242,328
242,329
u832039789
cpp
p02537
#include <bits/stdc++.h> using namespace std; #include <iomanip> #include <math.h> 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 int INF = 30000...
#include <bits/stdc++.h> using namespace std; #include <iomanip> #include <math.h> 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 int INF = 60000...
[ "literal.number.change", "variable_declaration.value.change", "call.arguments.add", "identifier.change", "call.arguments.change" ]
242,341
242,342
u209457657
cpp
p02537
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <deque> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> #define rep(i, n, m) for (int i = (n); i < (int)(m); i++) #define re...
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <deque> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> #define rep(i, n, m) for (int i = (n); i < (int)(m); i++) #define re...
[ "identifier.replace.remove", "literal.replace.add", "call.arguments.change" ]
242,347
242,348
u238205921
cpp
p02537
#include <algorithm> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <cstdlib> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <vector> #define DEBUG 1 using namespace std; constexpr int kMod = 1000000007; typedef long lo...
#include <algorithm> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <cstdlib> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <vector> #define DEBUG 1 using namespace std; constexpr int kMod = 1000000007; typedef long lo...
[ "control_flow.branch.if.add" ]
242,353
242,354
u116523315
cpp
p02537
#include <iostream> #include <queue> #include <unordered_map> #include <vector> using namespace std; #define ll long long int n, k; int seg[600005]; int sz = 300000; void upd(int i, int v) { seg[i += sz] = v; while (i > 1) { i /= 2; seg[i] = max(seg[2 * i], seg[2 * i + 1]); } } int query(int l, int r) { ...
#include <iostream> #include <queue> #include <unordered_map> #include <vector> using namespace std; #define ll long long int n, k; int seg[600055]; int sz = 300005; void upd(int i, int v) { seg[i += sz] = v; while (i > 1) { i /= 2; seg[i] = max(seg[2 * i], seg[2 * i + 1]); } } int query(int l, int r) { ...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "variable_declaration.value.change" ]
242,380
242,381
u708516667
cpp
p02537
// #pragma GCC optimize ("O3") // #pragma GCC target ("sse4") #include <bits/stdc++.h> using namespace std; const int INF = 1 << 29; const int NINF = -1 * INF; const long long LLINF = 1ll << 60; const long long LLNINF = -1 * LLINF; template <class Ch, class Tr, class Container> basic_ostream<Ch, Tr> &operator<<(basic...
// #pragma GCC optimize ("O3") // #pragma GCC target ("sse4") #include <bits/stdc++.h> using namespace std; const int INF = 1 << 29; const int NINF = -1 * INF; const long long LLINF = 1ll << 60; const long long LLNINF = -1 * LLINF; template <class Ch, class Tr, class Container> basic_ostream<Ch, Tr> &operator<<(basic...
[ "identifier.replace.remove", "literal.replace.add", "call.arguments.change" ]
242,398
242,399
u064505481
cpp
p02537
// #pragma GCC optimize ("O3") // #pragma GCC target ("sse4") #include <bits/stdc++.h> using namespace std; const int INF = 1 << 29; const int NINF = -1 * INF; const long long LLINF = 1ll << 60; const long long LLNINF = -1 * LLINF; template <class Ch, class Tr, class Container> basic_ostream<Ch, Tr> &operator<<(basic...
// #pragma GCC optimize ("O3") // #pragma GCC target ("sse4") #include <bits/stdc++.h> using namespace std; const int INF = 1 << 29; const int NINF = -1 * INF; const long long LLINF = 1ll << 60; const long long LLNINF = -1 * LLINF; template <class Ch, class Tr, class Container> basic_ostream<Ch, Tr> &operator<<(basic...
[ "literal.number.change", "call.arguments.change", "identifier.replace.remove", "literal.replace.add" ]
242,400
242,399
u064505481
cpp
p02537
#include <algorithm> #include <bitset> #include <cmath> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <regex> #include <set> #include <stack> #include <string> #include <tuple> #include <vector> using namespace std; template...
#include <algorithm> #include <bitset> #include <cmath> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <regex> #include <set> #include <stack> #include <string> #include <tuple> #include <vector> using namespace std; template...
[ "identifier.replace.remove", "literal.replace.add", "call.arguments.change", "literal.number.type.widen.change" ]
242,403
242,404
u408910484
cpp
p02537
#define rep(i, n) for (int i = 0; i < (int)(n); i++) #define ALL(v) v.begin(), v.end() typedef long long ll; #include <bits/stdc++.h> using namespace std; const int INF = 2147483647; /* RMQ:[0,n-1] について、区間ごとの最小値を管理する構造体 set(int i, T x), build(): i番目の要素をxにセット。まとめてセグ木を構築する。O(n) update(i,x): i 番目の要素を x に更新。O(...
#define rep(i, n) for (int i = 0; i < (int)(n); i++) #define ALL(v) v.begin(), v.end() typedef long long ll; #include <bits/stdc++.h> using namespace std; const int INF = 2147483647; /* RMQ:[0,n-1] について、区間ごとの最小値を管理する構造体 set(int i, T x), build(): i番目の要素をxにセット。まとめてセグ木を構築する。O(n) update(i,x): i 番目の要素を x に更新。O(...
[ "literal.number.change", "variable_access.subscript.index.change", "function.return_value.change", "identifier.replace.remove", "literal.replace.add", "call.arguments.change", "expression.operation.binary.change", "expression.operation.binary.remove" ]
242,419
242,418
u135957438
cpp
p02537
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (i = 0; i < n; ++i) #define all(v) v.begin(), v.end() using ll = long long; template <typename T> struct RUQ // calculateはminimum { int n; const T ex = 0; // dat 初期値(minなので) const T em = 0; // lazy 初期値(minなので) vector<T> dat, lazy; /...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (i = 0; i < n; ++i) #define all(v) v.begin(), v.end() using ll = long long; template <typename T> struct RUQ // calculateはminimum { int n; const T ex = 0; // dat 初期値(minなので) const T em = 0; // lazy 初期値(minなので) vector<T> dat, lazy; /...
[ "identifier.change", "call.arguments.change" ]
242,436
242,437
u446795710
cpp
p02537
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> p_ll; template <class T> void debug(T itr1, T itr2) { auto now = itr1; while (now < itr2) { cout << *now << " "; now++; } cout << endl; } #define repr(i, from, to) for (ll i = (ll)from; i < (ll)to; i++) #define al...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> p_ll; template <class T> void debug(T itr1, T itr2) { auto now = itr1; while (now < itr2) { cout << *now << " "; now++; } cout << endl; } #define repr(i, from, to) for (ll i = (ll)from; i < (ll)to; i++) #define al...
[ "literal.number.change", "variable_declaration.value.change" ]
242,442
242,443
u680707192
cpp
p02537
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; const int N = 500100; #define lson rt << 1 // == rt * 2 左儿子 #define rson rt ...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; const int N = 500100; #define lson rt << 1 // == rt * 2 左儿子 #define rson rt ...
[ "identifier.replace.remove", "literal.replace.add", "call.arguments.change" ]
242,500
242,501
u758105297
cpp
p02537
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; const int N = 500100; #define lson rt << 1 // == rt * 2 左儿子 #define rson rt ...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; const int N = 500100; #define lson rt << 1 // == rt * 2 左儿子 #define rson rt ...
[ "assignment.value.change", "identifier.replace.remove", "literal.replace.add", "call.arguments.change" ]
242,502
242,501
u758105297
cpp
p02537
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using tlll = tuple<ll, ll, ll>; int main() { ll N, K; cin >> N >> K; vector<ll> A(N), G(N, 1), MV(N); for (ll i = 0; i < N; i++) { cin >> A[i]; } ll maxl = 0; MV[N - 1] = 1; for (ll i = N - 1; i >= 0; i--)...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using tlll = tuple<ll, ll, ll>; int main() { ll N, K; cin >> N >> K; vector<ll> A(N), G(N, 1), MV(N, 1e6); for (ll i = 0; i < N; i++) { cin >> A[i]; } ll maxl = 0; MV[N - 1] = 1; for (ll i = N - 1; i >= 0;...
[ "call.arguments.add", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "misc.off_by_one" ]
242,518
242,517
u377061679
cpp
p02537
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using tlll = tuple<ll, ll, ll>; int main() { ll N, K; cin >> N >> K; vector<ll> A(N), G(N, 1), MV(N); for (ll i = 0; i < N; i++) { cin >> A[i]; } ll maxl = 0; MV[N - 1] = 1; for (ll i = N - 1; i >= 0; i--)...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using tlll = tuple<ll, ll, ll>; int main() { ll N, K; cin >> N >> K; vector<ll> A(N), G(N, 1), MV(N, 1e6); for (ll i = 0; i < N; i++) { cin >> A[i]; } ll maxl = 0; MV[N - 1] = 1; for (ll i = N - 1; i >= 0;...
[ "call.arguments.add" ]
242,519
242,517
u377061679
cpp
p02537
#pragma region head #include <bits/stdc++.h> using namespace std; using ll = long long; using vi = vector<int>; using vll = vector<ll>; using pi = pair<int, int>; using pll = pair<ll, ll>; template <class T> using vv = vector<vector<T>>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repi(i, a, b) for (in...
#pragma region head #include <bits/stdc++.h> using namespace std; using ll = long long; using vi = vector<int>; using vll = vector<ll>; using pi = pair<int, int>; using pll = pair<ll, ll>; template <class T> using vv = vector<vector<T>>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repi(i, a, b) for (in...
[ "call.arguments.change", "expression.operation.binary.change" ]
242,529
242,530
u802234509
cpp
p02541
#include <bits/stdc++.h> using namespace std; #define lli long long int #define llu unsigned long long int #define sa(a, n, t) \ for (int ii = 0; ii < n; ii++) \ scanf("%" #t "", &(a)[ii]) #define rep(i, n) for ...
#include <bits/stdc++.h> using namespace std; #define lli long long int #define llu unsigned long long int #define sa(a, n, t) \ for (int ii = 0; ii < n; ii++) \ scanf("%" #t "", &(a)[ii]) #define rep(i, n) for ...
[ "assignment.variable.change", "identifier.change" ]
242,555
242,556
u895052567
cpp
p02541
#include <bits/stdc++.h> #define F first #define S second using namespace std; typedef long long LL; typedef pair<int, int> pii; const LL INF = 0x3f3f3f3f3f3f3f3fLL; LL extgcd(LL a, LL b, LL &x, LL &y) { if (!b) return x = 1, y = 0, a; LL res = extgcd(b, a % b, y, x); return y -= a / b * x, res; } int main() ...
#include <bits/stdc++.h> #define F first #define S second using namespace std; typedef long long LL; typedef pair<int, int> pii; const LL INF = 0x3f3f3f3f3f3f3f3fLL; LL extgcd(LL a, LL b, LL &x, LL &y) { if (!b) return x = 1, y = 0, a; LL res = extgcd(b, a % b, y, x); return y -= a / b * x, res; } int main() ...
[ "assignment.change" ]
242,557
242,558
u194917097
cpp
p02540
#include <algorithm> #include <cassert> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <vector> #define syosu(x) fixed << setprecision(x) using namespace std; typedef long long ll; typedef unsigned int uint; typedef uns...
#include <algorithm> #include <cassert> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <vector> #define syosu(x) fixed << setprecision(x) using namespace std; typedef long long ll; typedef unsigned int uint; typedef uns...
[ "assignment.value.change", "call.arguments.change" ]
242,583
242,584
u434747175
cpp
p02540
#include <bits/stdc++.h> using namespace std; const int N = 200005; int n, A[N], XX[N], fa[N], mn[N], sz[N], id[N], stk[N]; int Find(int x) { return x == fa[x] ? x : fa[x] = Find(fa[x]); } void Union(int x, int y) { x = Find(x), y = Find(y); fa[x] = y; mn[x] = min(mn[x], mn[y]); } set<pair<int, int>> st; int main...
#include <bits/stdc++.h> using namespace std; const int N = 200005; int n, A[N], XX[N], fa[N], mn[N], sz[N], id[N], stk[N]; int Find(int x) { return x == fa[x] ? x : fa[x] = Find(fa[x]); } void Union(int x, int y) { x = Find(x), y = Find(y); fa[y] = x; mn[x] = min(mn[x], mn[y]); } set<pair<int, int>> st; int main...
[ "assignment.variable.change", "identifier.change", "variable_access.subscript.index.change", "assignment.value.change" ]
242,599
242,600
u688193975
cpp
p02544
#include <algorithm> #include <cstdio> using namespace std; int n, k, p[200005], pw[200005], tr[2][200005], ans = 0, alr, ty = 0; const int mod = 998244353; int mypow(int a, int b) { int ans = 1; while (b) { if (b & 1) ans = 1ll * ans * a % mod; a = 1ll * a * a % mod; b >>= 1; } return ans; } ...
#include <algorithm> #include <cstdio> using namespace std; int n, k, p[200005], pw[200005], tr[2][200005], ans = 0, alr, ty = 0; const int mod = 998244353; int mypow(int a, int b) { int ans = 1; while (b) { if (b & 1) ans = 1ll * ans * a % mod; a = 1ll * a * a % mod; b >>= 1; } return ans; } ...
[ "assignment.change" ]
242,620
242,621
u621907911
cpp
p02544
#line 2 "/Users/kaage/Desktop/ProgrammingWorkspace/library/other/template.hpp" #define _CRT_SECURE_NO_WARNINGS #pragma target("avx2") #pragma optimize("O3") #pragma optimize("unroll-loops") #include <algorithm> #include <bitset> #include <cassert> #include <cfloat> #include <climits> #include <cmath> #include <complex>...
#line 2 "/Users/kaage/Desktop/ProgrammingWorkspace/library/other/template.hpp" #define _CRT_SECURE_NO_WARNINGS #pragma target("avx2") #pragma optimize("O3") #pragma optimize("unroll-loops") #include <algorithm> #include <bitset> #include <cassert> #include <cfloat> #include <climits> #include <cmath> #include <complex>...
[ "call.add" ]
242,627
242,628
u379822620
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int s = S.size(); char a = S.at(s - 1); if (a == 'e') { cout << S << "s" << endl; } else { cout << S << "es" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int s = S.size(); char a = S.at(s - 1); if (a == 's') { cout << S << "es" << endl; } else { cout << S << "s" << endl; } }
[ "literal.string.change", "control_flow.branch.if.condition.change", "io.output.change" ]
242,649
242,650
u450904730
cpp
p02546
#include <bits/stdc++.h> #define ll long long int #define ar array #define pb push_back #define input(arr, n) \ for (int i = 0; i < n; i++) \ cin >> arr[i] const int mod = 1e9 + 7; ll power(ll a, ll b) { ll r...
#include <bits/stdc++.h> #define ll long long int #define ar array #define pb push_back #define input(arr, n) \ for (int i = 0; i < n; i++) \ cin >> arr[i] const int mod = 1e9 + 7; ll power(ll a, ll b) { ll r...
[ "control_flow.branch.else.remove", "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add", "assignment.add" ]
242,653
242,654
u951519233
cpp
p02546
#include <bits/stdc++.h> using namespace std; #define ll long long int #define pb push_back #define T \ int time; \ scanf("%d", &time); ...
#include <bits/stdc++.h> using namespace std; #define ll long long int #define pb push_back #define T \ int time; \ scanf("%d", &time); ...
[ "literal.string.change", "assignment.value.change" ]
242,663
242,664
u210087976
cpp
p02546
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; #define chmax(x, y) x = max(x, y) #define chmin(x, y) x = min(x, y) const int INF = 1e9 + 10; int main() { string s; cin >> s; if (s[-1] == 's') s += "es"; else ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; #define chmax(x, y) x = max(x, y) #define chmin(x, y) x = min(x, y) const int INF = 1e9 + 10; int main() { string s; cin >> s; if (s.back() == 's') s += "es"; else ...
[]
242,668
242,669
u679071799
cpp
p02546
#include <bits/stdc++.h> #define fst first #define snd second #define ll long long #define ld long double #define pb push_back #define emp emplace_back #define pii pair<int, int> #define usg unsigned #define sg signed #define mp make_pair using namespace std; void setIO() { ios::sync_with_stdio(0); cin.tie(0); ...
#include <bits/stdc++.h> #define fst first #define snd second #define ll long long #define ld long double #define pb push_back #define emp emplace_back #define pii pair<int, int> #define usg unsigned #define sg signed #define mp make_pair using namespace std; void setIO() { ios::sync_with_stdio(0); cin.tie(0); ...
[ "control_flow.branch.else.remove", "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add" ]
242,670
242,671
u846952042
cpp
p02546
#include <bits/stdc++.h> #define fst first #define snd second #define ll long long #define ld long double #define pb push_back #define emp emplace_back #define pii pair<int, int> #define usg unsigned #define sg signed #define mp make_pair using namespace std; void setIO() { ios::sync_with_stdio(0); cin.tie(0); ...
#include <bits/stdc++.h> #define fst first #define snd second #define ll long long #define ld long double #define pb push_back #define emp emplace_back #define pii pair<int, int> #define usg unsigned #define sg signed #define mp make_pair using namespace std; void setIO() { ios::sync_with_stdio(0); cin.tie(0); ...
[ "literal.string.change", "control_flow.branch.if.condition.change", "control_flow.branch.else.remove", "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add" ]
242,672
242,671
u846952042
cpp
p02546
#include <bits/stdc++.h> using namespace std; //#pragma GCC optimize("Ofast") #define rep(i, n) for (long long i = 0; i < (long long)(n); i++) #define REP(i, k, n) for (long long i = k; i < (long long)(n); i++) #define all(a) a.begin(), a.end() #define eb emplace_back #define lb(v, k) (lower_bound(all(v), k) - v.begin(...
#include <bits/stdc++.h> using namespace std; //#pragma GCC optimize("Ofast") #define rep(i, n) for (long long i = 0; i < (long long)(n); i++) #define REP(i, k, n) for (long long i = k; i < (long long)(n); i++) #define all(a) a.begin(), a.end() #define eb emplace_back #define lb(v, k) (lower_bound(all(v), k) - v.begin(...
[ "expression.operation.binary.change", "expression.operation.binary.remove" ]
242,683
242,684
u250757552
cpp
p02546
#include <iostream> using namespace std; int main() { string s; cin >> s; int n = s.length(); if (s[n - 1] == 's') { s += "es"; } else { s += "s"; } }
#include <iostream> using namespace std; int main() { string s; cin >> s; int n = s.length(); if (s[n - 1] == 's') { s += "es"; } else { s += "s"; } cout << s; }
[]
242,693
242,694
u132551724
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int n = s.size(); if (s[n - 1] == 's') { s += "es"; } else { s += "s"; } }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int n = s.size(); if (s[n - 1] == 's') { s += "es"; } else { s += "s"; } cout << s; }
[]
242,695
242,696
u798479168
cpp
p02546
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <iostream> #include <queue> #include <set> #include <stdio.h> #include <string> #include <utility> #include <vector> //#include<sys/time.h> #include <fstream> #include <random> #define INF 2000000000 using namespace std; typedef std::pa...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <iostream> #include <queue> #include <set> #include <stdio.h> #include <string> #include <utility> #include <vector> //#include<sys/time.h> #include <fstream> #include <random> #define INF 2000000000 using namespace std; typedef std::pa...
[]
242,708
242,709
u545768496
cpp
p02546
#include <bits/stdc++.h> using namespace std; string word; void solve(); int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); /*#ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); freopen("error.txt", "w", stderr); freopen("output.txt", "w", stdout); #endif*/ int t = 1; cin >> t; whil...
#include <bits/stdc++.h> using namespace std; string word; void solve(); int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); /*#ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); freopen("error.txt", "w", stderr); freopen("output.txt", "w", stdout); #endif*/ int t = 1; // cin>>t; whi...
[]
242,710
242,711
u183084654
cpp
p02546
#include <bits/stdc++.h> using namespace std; #define endl '\n' #define int long long int32_t main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); string s; cin >> s; if (s[s.size()] == 's') s += "es"; else s += "s"; cout << s << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define endl '\n' #define int long long int32_t main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); string s; cin >> s; if (s[s.size() - 1] == 's') s += "es"; else s += "s"; cout << s << endl; return 0; }
[ "control_flow.branch.if.condition.change" ]
242,724
242,725
u621231159
cpp
p02546
#include <bits/stdc++.h> using namespace std; using ll = long long; const int N = 1e6 + 5, MOD = 1e9 + 7; const ll INF = 1e18 + 17; void solve() { string s; cin >> s; if (s.back() != 'x') s += 'x'; else { s += "es"; } cout << s; } main() { ios ::sync_with_stdio(0); cin.tie(0); int tt = 1; ...
#include <bits/stdc++.h> using namespace std; using ll = long long; const int N = 1e6 + 5, MOD = 1e9 + 7; const ll INF = 1e18 + 17; void solve() { string s; cin >> s; if (s.back() != 's') s += 's'; else { s += "es"; } cout << s; } main() { ios ::sync_with_stdio(0); cin.tie(0); int tt = 1; ...
[ "literal.string.change", "control_flow.branch.if.condition.change", "assignment.value.change" ]
242,726
242,727
u478917601
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string s; int n; cin >> s; n = s.size() - 1; if (s[n] == 's') cout << s << "s" << endl; else cout << s << "es" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string s; int n; cin >> s; n = s.size() - 1; if (s[n] == 's') cout << s << "es" << endl; else cout << s << "s" << endl; }
[ "control_flow.branch.else.remove", "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add" ]
242,728
242,729
u806399854
cpp
p02546
#include <bits/stdc++.h> using namespace std; #define INF (int)1e9 #define PI 3.1415926535897932384626433832795 #define MOD 1000000007 #define endl "\n" typedef long long ll; typedef unsigned long long ull; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<ll> vl; typedef vector<vl> vvl; typedef pair<int...
#include <bits/stdc++.h> using namespace std; #define INF (int)1e9 #define PI 3.1415926535897932384626433832795 #define MOD 1000000007 #define endl "\n" typedef long long ll; typedef unsigned long long ull; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<ll> vl; typedef vector<vl> vvl; typedef pair<int...
[ "literal.string.change", "assignment.value.change" ]
242,744
242,745
u218243981
cpp
p02537
#include <stdio.h> struct segTree { int value[1200010]; void setValue(int ind, int val, int l = 1, int r = 300000, int v = 1) { if (l == r) value[v] = val; else { int h = (l + r) / 2; if (ind <= h) setValue(ind, val, l, h, 2 * v); else setValue(ind, val, h + 1, r, 2 *...
#include <stdio.h> struct segTree { int value[1200010]; void setValue(int ind, int val, int l = 0, int r = 300000, int v = 1) { if (l == r) value[v] = val; else { int h = (l + r) / 2; if (ind <= h) setValue(ind, val, l, h, 2 * v); else setValue(ind, val, h + 1, r, 2 *...
[ "literal.number.change", "call.arguments.change", "io.output.change", "identifier.replace.remove", "literal.replace.add" ]
242,838
242,837
u454932946
cpp
p02537
#include <bits/stdc++.h> using namespace std; const int INF = 1000000; template <typename T> struct segment_tree { int N; vector<T> ST; segment_tree(int n) { N = 1; while (N < n) { N *= 2; } ST = vector<T>(N * 2 - 1, -INF); } T operator[](int k) { return ST[N - 1 + k]; } void update(in...
#include <bits/stdc++.h> using namespace std; const int INF = 1000000; template <typename T> struct segment_tree { int N; vector<T> ST; segment_tree(int n) { N = 1; while (N < n) { N *= 2; } ST = vector<T>(N * 2 - 1, -INF); } T operator[](int k) { return ST[N - 1 + k]; } void update(in...
[ "call.add", "call.arguments.add" ]
242,847
242,848
u424374375
cpp
p02537
#define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #define _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS #pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #pragma comment(linker, "/STACK:526000000") #include "bits/stdc++.h" /* AtCoder Compressed STL, licensed under public doma...
#define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #define _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS #pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #pragma comment(linker, "/STACK:526000000") #include "bits/stdc++.h" /* AtCoder Compressed STL, licensed under public doma...
[ "literal.number.change", "call.arguments.change" ]
242,849
242,850
u545022164
cpp
p02538
#include <bits/stdc++.h> #ifndef ATCODER_INTERNAL_BITOP_HPP #define ATCODER_INTERNAL_BITOP_HPP 1 #ifdef _MSC_VER #include <intrin.h> #endif namespace atcoder { namespace internal { // @param n `0 <= n` // @return minimum non-negative `x` s.t. `n <= 2**x` int ceil_pow2(int n) { int x = 0; while ((1U << x) < (unsign...
#include <bits/stdc++.h> #ifndef ATCODER_INTERNAL_BITOP_HPP #define ATCODER_INTERNAL_BITOP_HPP 1 #ifdef _MSC_VER #include <intrin.h> #endif namespace atcoder { namespace internal { // @param n `0 <= n` // @return minimum non-negative `x` s.t. `n <= 2**x` int ceil_pow2(int n) { int x = 0; while ((1U << x) < (unsign...
[ "literal.number.change", "function.return_value.change" ]
242,859
242,860
u676029460
cpp
p02538
#include <bits/stdc++.h> #define ll long long using namespace std; const int N = 2e5 + 3; const int mod = 998244353; ll n, q, l, r, k; ll num[N], all_1[N]; struct A { ll l, r, num, lazy; } a[N]; void f(int root, int k) { a[root].lazy = k; a[root].num = (k * all_1[a[root].r - a[root].l + 1]) % mod; } void pushback...
#include <bits/stdc++.h> #define ll long long using namespace std; const int N = 2e6 + 3; const int mod = 998244353; ll n, q, l, r, k; ll num[N], all_1[N]; struct A { ll l, r, num, lazy; } a[N]; void f(int root, int k) { a[root].lazy = k; a[root].num = (k * all_1[a[root].r - a[root].l + 1]) % mod; } void pushback...
[ "literal.number.change", "expression.operation.binary.change" ]
242,872
242,873
u915401678
cpp
p02538
#include <bits/stdc++.h> #define ll long long using namespace std; const int N = 2e5 + 10; const int mod = 998244353; ll n, q, l, r, k; ll num[N], all_1[N]; struct A { ll l, r, num, lazy; } a[2 * N]; void f(int root, int k) { a[root].lazy = k; a[root].num = (k * all_1[a[root].r - a[root].l + 1]) % mod; } void pus...
#include <bits/stdc++.h> #define ll long long using namespace std; const int N = 2e6 + 3; const int mod = 998244353; ll n, q, l, r, k; ll num[N], all_1[N]; struct A { ll l, r, num, lazy; } a[N]; void f(int root, int k) { a[root].lazy = k; a[root].num = (k * all_1[a[root].r - a[root].l + 1]) % mod; } void pushback...
[ "literal.number.change", "expression.operation.binary.change", "expression.operation.binary.remove" ]
242,875
242,873
u915401678
cpp
p02546
#include <bits/stdc++.h> using namespace std; #define ll long long #define ar array #define ull unsigned long long #define ld long double #define uint unsigned int struct debug { ~debug() { cerr << "\n"; } template <class C> debug &operator<<(C c) { cerr << c; return *this; } }; #define var(x) " [" << #x ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define ar array #define ull unsigned long long #define ld long double #define uint unsigned int struct debug { ~debug() { cerr << "\n"; } template <class C> debug &operator<<(C c) { cerr << c; return *this; } }; #define var(x) " [" << #x ...
[ "literal.string.change", "io.output.change" ]
242,908
242,909
u532522832
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int n = s.length(); if (s[n] != 's') { cout << s << "s" << endl; } else { cout << s << "es" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int n = s.length(); // for(int i=0; i<n; i++) if (s[n - 1] != 's') { cout << s << "s" << endl; } else { cout << s << "es" << endl; } // for(int i=0; i<n; i++){ // if(s[n] == 's') // cout<<s<<"es"<<endl;} ...
[ "control_flow.branch.if.condition.change" ]
242,929
242,930
u904276939
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[s.size() - 1] == 's') { cout << s << 'es'; } else { cout << s << 's'; } }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[s.size() - 1] == 's') { cout << s << "es"; } else { cout << s << 's'; } }
[ "literal.string.change", "io.output.change" ]
242,949
242,950
u493225326
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s.back() == 's') s += 'es'; else s += 's'; cout << s; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s.back() == 's') s += "es"; else s += 's'; cout << s; }
[ "literal.string.change", "assignment.value.change" ]
242,955
242,956
u292617411
cpp
p02546
#include <algorithm> #include <cmath> #include <ctime> #include <iostream> #include <queue> #include <vector> using namespace std; using ll = long long; using vi = vector<int>; using vvi = vector<vector<int>>; using pii = pair<int, int>; using ppi = pair<pii, int>; int f_dir[2][4] = {{-1, 0, 1, 0}, {0, 1, 0, -1}}; //...
#include <algorithm> #include <cmath> #include <ctime> #include <iostream> #include <queue> #include <vector> using namespace std; using ll = long long; using vi = vector<int>; using vvi = vector<vector<int>>; using pii = pair<int, int>; using ppi = pair<pii, int>; int f_dir[2][4] = {{-1, 0, 1, 0}, {0, 1, 0, -1}}; //...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
242,957
242,958
u702906718
cpp
p02546
/****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby, C#, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS Code, Compile, Run and Debug online from anywhere in world. **********...
/****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby, C#, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS Code, Compile, Run and Debug online from anywhere in world. **********...
[ "expression.operation.binary.remove" ]
242,961
242,962
u157239804
cpp
p02546
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; cout << (s[-1] != 's' ? s + "s" : s + "es") << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; cout << (s[s.size() - 1] != 's' ? s + "s" : s + "es") << endl; }
[ "call.add" ]
242,963
242,964
u094191970
cpp