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
p03838
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define rep1(i, n) for (int i = 1; i < n + 1; i++) #define all(A) A.begin(), A.end() typedef long long ll; int main() { ll x, y; cin >> x >> y; int ans = 0; if (x * y == 0) { if (x < y) ans = y - x; if (y...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define rep1(i, n) for (int i = 1; i < n + 1; i++) #define all(A) A.begin(), A.end() typedef long long ll; int main() { ll x, y; cin >> x >> y; int ans = 0; if (x * y == 0) { if (x < y) ans = y - x; if (y...
[ "call.arguments.add" ]
1,457,724
1,457,725
u132364782
cpp
p03838
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<ll, ll>; int main() { ll x, y; cin >> x >> y; ll ay = abs(y); ll ax = abs(x); if (x < y) { if (x * y >= 0) { cout << abs(ay - ax) << endl; } else { cout << abs(ay - ax) + 1 << endl; } } else { if (...
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<ll, ll>; int main() { ll x, y; cin >> x >> y; ll ay = abs(y); ll ax = abs(x); if (x < y) { if (x * y >= 0) { cout << abs(ay - ax) << endl; } else { cout << abs(ay - ax) + 1 << endl; } } else { if (...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,457,726
1,457,727
u020239256
cpp
p03838
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<ll, ll>; int main() { int x, y; cin >> x >> y; int ay = abs(y); int ax = abs(x); if (x < y) { if (x * y >= 0) { cout << abs(ay - ax) << endl; } else { cout << abs(ay - ax) + 1 << endl; } } else { i...
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<ll, ll>; int main() { ll x, y; cin >> x >> y; ll ay = abs(y); ll ax = abs(x); if (x < y) { if (x * y >= 0) { cout << abs(ay - ax) << endl; } else { cout << abs(ay - ax) + 1 << endl; } } else { if (...
[ "variable_declaration.type.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,457,728
1,457,727
u020239256
cpp
p03838
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #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 all(x) (x).begin(), (x).end() #define PI 3.14159265358979323846264338327950L using namespace std; typedef long long ll; typedef long double ld; int main() {...
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #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 all(x) (x).begin(), (x).end() #define PI 3.14159265358979323846264338327950L using namespace std; typedef long long ll; typedef long double ld; int main() {...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,457,738
1,457,739
u151236434
cpp
p03838
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #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 all(x) (x).begin(), (x).end() #define PI 3.14159265358979323846264338327950L using namespace std; typedef long long ll; typedef long double ld; int main() {...
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #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 all(x) (x).begin(), (x).end() #define PI 3.14159265358979323846264338327950L using namespace std; typedef long long ll; typedef long double ld; int main() {...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,457,740
1,457,739
u151236434
cpp
p03838
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #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 all(x) (x).begin(), (x).end() #define PI 3.14159265358979323846264338327950L using namespace std; typedef long long ll; typedef long double ld; int main() {...
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #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 all(x) (x).begin(), (x).end() #define PI 3.14159265358979323846264338327950L using namespace std; typedef long long ll; typedef long double ld; int main() {...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "misc.opposites" ]
1,457,741
1,457,739
u151236434
cpp
p03838
#include <bits/stdc++.h> using namespace std; const int MOD = 1000000007; const double PI = acos(-1); // long long using ll = long long; //出力系 #define print(x) cout << x << endl #define yes cout << "Yes" << endl #define YES cout << "YES" << endl #define no cout << "No" << endl #define NO cout << "NO" << endl // beg...
#include <bits/stdc++.h> using namespace std; const int MOD = 1000000007; const double PI = acos(-1); // long long using ll = long long; //出力系 #define print(x) cout << x << endl #define yes cout << "Yes" << endl #define YES cout << "YES" << endl #define no cout << "No" << endl #define NO cout << "NO" << endl // beg...
[ "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
1,457,748
1,457,749
u832995587
cpp
p03838
#include <bits/stdc++.h> using namespace std; int main() { long long x, y; long long z; cin >> x >> y; long long A = x * y; if (A < 0) { if (x < 0) { if (abs(x) <= abs(y)) { z = x + y + 1; } else { z = -x - y + 1; } } else { if (abs(x) >= abs(y)) { z = ...
#include <bits/stdc++.h> using namespace std; int main() { long long x, y; long long z; cin >> x >> y; long long A = x * y; if (A < 0) { if (x < 0) { if (abs(x) <= abs(y)) { z = x + y + 1; } else { z = -x - y + 1; } } else { if (abs(x) >= abs(y)) { z = ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove" ]
1,457,755
1,457,756
u710877960
cpp
p03838
#include <bits/stdc++.h> using namespace std; inline int read() { int res = 0; char c; bool zf = 0; while (((c = getchar()) < '0' || c > '9') && c != '-') ; if (c == '-') zf = 1; else res = c - '0'; while ((c = getchar()) >= '0' && c <= '9') res = (res << 3) + (res << 1) + c - '0'; if (z...
#include <bits/stdc++.h> using namespace std; inline int read() { int res = 0; char c; bool zf = 0; while (((c = getchar()) < '0' || c > '9') && c != '-') ; if (c == '-') zf = 1; else res = c - '0'; while ((c = getchar()) >= '0' && c <= '9') res = (res << 3) + (res << 1) + c - '0'; if (z...
[ "expression.operation.unary.add", "call.arguments.change" ]
1,457,757
1,457,758
u731034732
cpp
p03838
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (x == y) cout << 0 << endl; else if (x == 0) cout << max(y, -1 * y) + (y < 0) << endl; else if (x < 0) { if (y == 0) cout << -1 * x << endl; else if (0 < y) { x *= -1; cout << max(x - y, ...
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (x == y) cout << 0 << endl; else if (x == 0) cout << max(y, -1 * y) + (y < 0) << endl; else if (x < 0) { if (y == 0) cout << -1 * x << endl; else if (0 < y) { x *= -1; cout << max(x - y, ...
[ "expression.operation.binary.add" ]
1,457,771
1,457,772
u247123590
cpp
p03838
//#pragma gcc optimize("Ofast,no-stack-protector,tune=native") //#pragma gcc optimize("sse,sse2,sse3,sse4,ssse3") //#pragma gcc optimize("O3") //#pragma gcc optimize("abm,mmx,avx,avx2,fast-math,section-anchors") //#pragma GCC optimize("Ofast,no-stack-protector,delete-null-pointer-check") //#pragma GCC target("tune=nati...
//#pragma gcc optimize("Ofast,no-stack-protector,tune=native") //#pragma gcc optimize("sse,sse2,sse3,sse4,ssse3") //#pragma gcc optimize("O3") //#pragma gcc optimize("abm,mmx,avx,avx2,fast-math,section-anchors") //#pragma GCC optimize("Ofast,no-stack-protector,delete-null-pointer-check") //#pragma GCC target("tune=nati...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
1,457,773
1,457,774
u093517836
cpp
p03838
//#pragma gcc optimize("Ofast,no-stack-protector,tune=native") //#pragma gcc optimize("sse,sse2,sse3,sse4,ssse3") //#pragma gcc optimize("O3") //#pragma gcc optimize("abm,mmx,avx,avx2,fast-math,section-anchors") //#pragma GCC optimize("Ofast,no-stack-protector,delete-null-pointer-check") //#pragma GCC target("tune=nati...
//#pragma gcc optimize("Ofast,no-stack-protector,tune=native") //#pragma gcc optimize("sse,sse2,sse3,sse4,ssse3") //#pragma gcc optimize("O3") //#pragma gcc optimize("abm,mmx,avx,avx2,fast-math,section-anchors") //#pragma GCC optimize("Ofast,no-stack-protector,delete-null-pointer-check") //#pragma GCC target("tune=nati...
[ "control_flow.branch.if.replace.add", "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.condition.change" ]
1,457,775
1,457,774
u093517836
cpp
p03838
#include <bits/stdc++.h> using namespace std; //定数 const long long MOD1 = 1000000007; const long long MOD2 = 998244353; const long double PI = 3.1415926535897932; const long long MAXLL = 9223372036854775807; const long long INF = 2305843009213693951; const long long dx[] = {0, 1, 0, -1, 1, -1, 1, -1}; const long long ...
#include <bits/stdc++.h> using namespace std; //定数 const long long MOD1 = 1000000007; const long long MOD2 = 998244353; const long double PI = 3.1415926535897932; const long long MAXLL = 9223372036854775807; const long long INF = 2305843009213693951; const long long dx[] = {0, 1, 0, -1, 1, -1, 1, -1}; const long long ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,457,776
1,457,777
u190580703
cpp
p03838
#include <bits/stdc++.h> using namespace std; //定数 const long long MOD1 = 1000000007; const long long MOD2 = 998244353; const long double PI = 3.1415926535897932; const long long MAXLL = 9223372036854775807; const long long INF = 2305843009213693951; const long long dx[] = {0, 1, 0, -1, 1, -1, 1, -1}; const long long ...
#include <bits/stdc++.h> using namespace std; //定数 const long long MOD1 = 1000000007; const long long MOD2 = 998244353; const long double PI = 3.1415926535897932; const long long MAXLL = 9223372036854775807; const long long INF = 2305843009213693951; const long long dx[] = {0, 1, 0, -1, 1, -1, 1, -1}; const long long ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,457,778
1,457,777
u190580703
cpp
p03838
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (ll)(n); ++i) #define rep2(i, s, n) for (ll i = s; i < (ll)(n); i++) #define repr(i, n) for (ll i = n; i >= 0; i--) #define pb push_back #define COUT(x) cout << (x) << "\n" #define COUTF(x) cout << setprecision(15) << (x) << "\n" #define ENDL cout << "\n" #d...
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (ll)(n); ++i) #define rep2(i, s, n) for (ll i = s; i < (ll)(n); i++) #define repr(i, n) for (ll i = n; i >= 0; i--) #define pb push_back #define COUT(x) cout << (x) << "\n" #define COUTF(x) cout << setprecision(15) << (x) << "\n" #define ENDL cout << "\n" #d...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,457,785
1,457,786
u297738015
cpp
p03838
#include <algorithm> #include <cassert> #include <climits> #include <cmath> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define ll long long int #...
#include <algorithm> #include <cassert> #include <climits> #include <cmath> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define ll long long int #...
[ "control_flow.branch.if.replace.add", "control_flow.branch.else_if.replace.remove" ]
1,457,789
1,457,790
u965730380
cpp
p03838
#include <bits/stdc++.h> using namespace std; #define ll long long int #define rep(i, n) for (int i = 0; i < n; i++) #define dump(x) cerr << #x << " = " << (x) << endl; #define INF 2000000000 #define mod 1000000007 #define INF2 1000000000000000000 int main(void) { cin.tie(0); ios::sync_with_stdio(false); int x, ...
#include <bits/stdc++.h> using namespace std; #define ll long long int #define rep(i, n) for (int i = 0; i < n; i++) #define dump(x) cerr << #x << " = " << (x) << endl; #define INF 2000000000 #define mod 1000000007 #define INF2 1000000000000000000 int main(void) { cin.tie(0); ios::sync_with_stdio(false); int x, ...
[ "control_flow.branch.if.condition.change" ]
1,457,791
1,457,792
u965730380
cpp
p03838
#include <bits/stdc++.h> using namespace std; using ll = long long; constexpr long long MOD = 1000000007; constexpr long long INF = 1LL << 60; const long double PI = acosl(-1.0); constexpr long double EPS = 1e-11; template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return ...
#include <bits/stdc++.h> using namespace std; using ll = long long; constexpr long long MOD = 1000000007; constexpr long long INF = 1LL << 60; const long double PI = acosl(-1.0); constexpr long double EPS = 1e-11; template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return ...
[ "misc.opposites", "expression.operator.arithmetic.change", "io.output.change" ]
1,457,795
1,457,796
u371051907
cpp
p03838
#include <bits/stdc++.h> using namespace std; using ll = long long; constexpr long long MOD = 1000000007; constexpr long long INF = 1LL << 60; const long double PI = acosl(-1.0); constexpr long double EPS = 1e-11; template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return ...
#include <bits/stdc++.h> using namespace std; using ll = long long; constexpr long long MOD = 1000000007; constexpr long long INF = 1LL << 60; const long double PI = acosl(-1.0); constexpr long double EPS = 1e-11; template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return ...
[ "misc.opposites", "expression.operator.arithmetic.change", "io.output.change", "expression.operation.unary.arithmetic.remove" ]
1,457,797
1,457,796
u371051907
cpp
p03838
#include <bits/stdc++.h> using namespace std; const long long MOD = 1e9 + 7; #define rep(i, n) for (int i = 0; i < n; ++i) typedef long long int ll; typedef unsigned long long ull; template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } template <class T> inlin...
#include <bits/stdc++.h> using namespace std; const long long MOD = 1e9 + 7; #define rep(i, n) for (int i = 0; i < n; ++i) typedef long long int ll; typedef unsigned long long ull; template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } template <class T> inlin...
[ "misc.opposites", "expression.operator.arithmetic.change", "io.output.change", "literal.number.change" ]
1,457,798
1,457,799
u077104253
cpp
p03838
#include <bits/stdc++.h> using namespace std; using ll = long long; int main(void) { ll x, y; cin >> x >> y; ll x_ = abs(x); ll x_s = (x < 0) ? -1 : 1; ll y_ = abs(y); ll y_s = (y < 0) ? -1 : 1; ll inc = y_ - x_; ll pushCnt = abs(inc); if (x_s * y_s < 0) { pushCnt++; } else { if (inc > ...
#include <bits/stdc++.h> using namespace std; using ll = long long; int main(void) { ll x, y; cin >> x >> y; ll x_ = abs(x); ll x_s = (x < 0) ? -1 : 1; ll y_ = abs(y); ll y_s = (y <= 0) ? -1 : 1; ll inc = y_ - x_; ll pushCnt = abs(inc); if (x_s * y_s < 0) { pushCnt++; } else { if (inc >...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
1,457,800
1,457,801
u158758556
cpp
p03838
#include <iostream> #include <math.h> #include <stdio.h> using namespace std; int main() { int x, y; cin >> x >> y; int res = 0; if (x <= y) { if (x < 0) { res = abs(abs(x) - y) + 1; } else { res = y - x; } } else { res = abs(abs(x) - abs(y)) + 1 + ((x < 0 && y < 0) || (x > 0 && ...
#include <iostream> #include <math.h> #include <stdio.h> using namespace std; int main() { int x, y; cin >> x >> y; int res = 0; if (x <= y) { if (x < 0 && y > 0) { res = abs(abs(x) - y) + 1; } else { res = y - x; } } else { res = abs(abs(x) - abs(y)) + 1 + ((x < 0 && y < 0) || (...
[ "control_flow.branch.if.condition.change" ]
1,457,802
1,457,803
u763280125
cpp
p03838
#include <bits/stdc++.h> using namespace std; #define int long long typedef pair<int, int> P; int INF = 1e9 + 7; int mod = 1e9 + 7; int dx[4] = {1, 0, -1, 0}; int dy[4] = {0, 1, 0, -1}; signed main() { int x, y; cin >> x >> y; int ans = INF; if (x <= y) { ans = min(ans, y - x); } if (-x <= y) { ans ...
#include <bits/stdc++.h> using namespace std; #define int long long typedef pair<int, int> P; int INF = 1e9 + 7; int mod = 1e9 + 7; int dx[4] = {1, 0, -1, 0}; int dy[4] = {0, 1, 0, -1}; signed main() { int x, y; cin >> x >> y; int ans = INF; if (x <= y) { ans = min(ans, y - x); } if (-x <= y) { ans ...
[ "assignment.change" ]
1,457,806
1,457,807
u237390401
cpp
p03838
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define repi(i, s, n) for (int i = (s); i < (n); i++) #ifdef LOCAL #define INPUT_FILE \ ifstream in("atcoder-problems/agc008_a.txt"); ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define repi(i, s, n) for (int i = (s); i < (n); i++) #ifdef LOCAL #define INPUT_FILE \ ifstream in("atcoder-problems/agc008_a.txt"); ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,457,808
1,457,809
u513083943
cpp
p03838
#include <bits/stdc++.h> using namespace std; int main() { long long x, y; cin >> x >> y; long long ans = LLONG_MAX; //反転0 if (x <= y) ans = min(ans, y - x); //最初に反転しておわり if (-x <= y) ans = min(ans, 1 + y - (-x)); // 2回とも反転 if (-x <= -y) ans = min(ans, 2 + (-y) - x); //最後だけ反転 if (x <...
#include <bits/stdc++.h> using namespace std; int main() { long long x, y; cin >> x >> y; long long ans = LLONG_MAX; //反転0 if (x <= y) ans = min(ans, y - x); //最初に反転しておわり if (-x <= y) ans = min(ans, 1 + y - (-x)); // 2回とも反転 if (-x <= -y) ans = min(ans, 2 + (-y) - (-x)); //最後だけ反転 if (...
[ "call.arguments.change" ]
1,457,810
1,457,811
u936176493
cpp
p03838
#include <bits/stdc++.h> #include <cassert> typedef long long int ll; using namespace std; // @@ !! LIM() int main(int argc, char *argv[]) { ios_base::sync_with_stdio(false); cin.tie(nullptr); cout << setprecision(20); ll x, y; cin >> x >> y; auto solve = [&]() -> ll { if (x == y) return 0; ...
#include <bits/stdc++.h> #include <cassert> typedef long long int ll; using namespace std; // @@ !! LIM() int main(int argc, char *argv[]) { ios_base::sync_with_stdio(false); cin.tie(nullptr); cout << setprecision(20); ll x, y; cin >> x >> y; auto solve = [&]() -> ll { if (x == y) return 0; ...
[ "function.return_value.change", "expression.operation.binary.change", "expression.operation.unary.add" ]
1,457,819
1,457,820
u588093355
cpp
p03838
#include <algorithm> #include <climits> #include <cmath> #include <cstring> #include <functional> #include <iostream> #include <limits.h> #include <map> #include <math.h> #include <queue> #include <set> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <vector> using namespace std; #define intmax INT...
#include <algorithm> #include <climits> #include <cmath> #include <cstring> #include <functional> #include <iostream> #include <limits.h> #include <map> #include <math.h> #include <queue> #include <set> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <vector> using namespace std; #define intmax INT...
[ "call.add", "call.arguments.change" ]
1,457,841
1,457,842
u006717664
cpp
p03838
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define zero_pad(num) setfill('0') << std::right << setw(num) using namespace std; using ll = long long; using ld = long double; using P = pair<int, int>; int main() { ll x, y; cin >> x >> y; if (x == y) cout << 0 << endl; else if (x ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define zero_pad(num) setfill('0') << std::right << setw(num) using namespace std; using ll = long long; using ld = long double; using P = pair<int, int>; int main() { ll x, y; cin >> x >> y; if (x == y) cout << 0 << endl; else if (x ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,457,849
1,457,850
u068713120
cpp
p03838
#include <bits/stdc++.h> using namespace std; #define arep(i, x, n) for (long long i = int(x); i < (int)(n); i++) #define rep(i, n) for (long long i = 0; i < n; ++i) #define rrep(i, n) for (long long i = int(n); i > 0; i--) #define fs first #define sc second #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbe...
#include <bits/stdc++.h> using namespace std; #define arep(i, x, n) for (long long i = int(x); i < (int)(n); i++) #define rep(i, n) for (long long i = 0; i < n; ++i) #define rrep(i, n) for (long long i = int(n); i > 0; i--) #define fs first #define sc second #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbe...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,457,866
1,457,867
u395287054
cpp
p03838
#include <bits/stdc++.h> using namespace std; #define arep(i, x, n) for (long long i = int(x); i < (int)(n); i++) #define rep(i, n) for (long long i = 0; i < n; ++i) #define rrep(i, n) for (long long i = int(n); i > 0; i--) #define fs first #define sc second #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbe...
#include <bits/stdc++.h> using namespace std; #define arep(i, x, n) for (long long i = int(x); i < (int)(n); i++) #define rep(i, n) for (long long i = 0; i < n; ++i) #define rrep(i, n) for (long long i = int(n); i > 0; i--) #define fs first #define sc second #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbe...
[ "variable_declaration.type.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,457,868
1,457,867
u395287054
cpp
p03838
#include <bits/stdc++.h> using namespace std; #define arep(i, x, n) for (long long i = int(x); i < (int)(n); i++) #define rep(i, n) for (long long i = 0; i < n; ++i) #define rrep(i, n) for (long long i = int(n); i > 0; i--) #define fs first #define sc second #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbe...
#include <bits/stdc++.h> using namespace std; #define arep(i, x, n) for (long long i = int(x); i < (int)(n); i++) #define rep(i, n) for (long long i = 0; i < n; ++i) #define rrep(i, n) for (long long i = int(n); i > 0; i--) #define fs first #define sc second #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbe...
[ "variable_declaration.type.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,457,869
1,457,867
u395287054
cpp
p03838
#include "bits/stdc++.h" #define rep(i, a, n) for (int = a; i < n; i++) typedef unsigned long long ull; typedef long long ll; using namespace std; int main() { ll x, y, cnt = 0; cin >> x >> y; if (x > y) { if (x > 0 && y <= 0) { cnt += 1; cnt += abs(y + x); } else if (x <= 0 && y <= 0) { ...
#include "bits/stdc++.h" #define rep(i, a, n) for (int = a; i < n; i++) typedef unsigned long long ull; typedef long long ll; using namespace std; int main() { ll x, y, cnt = 0; cin >> x >> y; if (x > y) { if (x >= 0 && y < 0) { cnt += 1; cnt += abs(y + x); } else if (x < 0 && y < 0) { ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,457,870
1,457,871
u129134470
cpp
p03838
#include <cmath> #include <iostream> #include <string> #include <vector> using namespace std; int main() { int X, Y; cin >> X >> Y; int ans = abs(X) - abs(Y); ans = abs(ans); if (X < 0 && Y < X) ans += 2; else if (X > 0 && Y > 0 && X > Y) ans++; else if (X < 0 && Y <= 0 && X < Y) ans += 0; ...
#include <cmath> #include <iostream> #include <string> #include <vector> using namespace std; int main() { int X, Y; cin >> X >> Y; int ans = abs(X) - abs(Y); ans = abs(ans); if (X < 0 && Y < X) ans += 2; else if (X > 0 && Y > 0 && X > Y) ans += 2; else if (X < 0 && Y <= 0 && X < Y) ans += 0;...
[]
1,457,887
1,457,888
u184929210
cpp
p03838
#include <bits/stdc++.h> using namespace std; int main() { int a; int b; int res = 0; cin >> a >> b; if (a >= 0 && b >= 0) { if (a > b) { res += 2; res += abs(a - b); if (b == 0) { res -= 1; } } else { res += abs(a - b); } } if (a < 0 && b >= 0) { re...
#include <bits/stdc++.h> using namespace std; int main() { int a; int b; int res = 0; cin >> a >> b; if (a >= 0 && b >= 0) { if (a > b) { res += 2; res += abs(a - b); if (b == 0) { res -= 1; } } else { res += abs(a - b); } } if (a < 0 && b >= 0) { re...
[]
1,457,893
1,457,894
u389780085
cpp
p03838
#include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; if (abs(n) > abs(m)) { if (n > 0 && m > 0) { cout << (n - m) + 2 << endl; } else if (n > 0) { cout << (n - abs(m)) + 1 << endl; } else if (m > 0) { cout << (abs(n) - m) + 1 << endl; } else { ...
#include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; if (abs(n) > abs(m)) { if (n > 0 && m > 0) { cout << (n - m) + 2 << endl; } else if (n > 0) { cout << (n - abs(m)) + 1 << endl; } else if (m > 0) { cout << (abs(n) - m) + 1 << endl; } else { ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,457,895
1,457,896
u240896181
cpp
p03838
#include <bits/stdc++.h> using namespace std; #define IoFast \ ios_base::sync_with_stdio(0); \ cin.tie(0); #define ll long long int #define float long double #define foor(i, a, b) for (int(i) = (a); (i) ...
#include <bits/stdc++.h> using namespace std; #define IoFast \ ios_base::sync_with_stdio(0); \ cin.tie(0); #define ll long long int #define float long double #define foor(i, a, b) for (int(i) = (a); (i) ...
[]
1,457,897
1,457,898
u090085488
cpp
p03838
#include <bits/stdc++.h> using namespace std; // types typedef long long ll; typedef long double ld; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef pair<ld, ld> pdd; typedef vector<ll> vll; // macros #define ALL(a) a.begin(), a.end() #define SZ(a) ((int)a.size()) #define FI first #define SE second #def...
#include <bits/stdc++.h> using namespace std; // types typedef long long ll; typedef long double ld; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef pair<ld, ld> pdd; typedef vector<ll> vll; // macros #define ALL(a) a.begin(), a.end() #define SZ(a) ((int)a.size()) #define FI first #define SE second #def...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,457,901
1,457,902
u194908943
cpp
p03838
#include <algorithm> #include <climits> #include <cmath> #include <iostream> #include <map> #include <queue> #include <set> #include <stdio.h> #include <string> #include <vector> const int mod = 1e9 + 7; const int inf = 1 << 20; const long long INF = 1LL << 60; using namespace std; typedef long long ll; typedef pair<in...
#include <algorithm> #include <climits> #include <cmath> #include <iostream> #include <map> #include <queue> #include <set> #include <stdio.h> #include <string> #include <vector> const int mod = 1e9 + 7; const int inf = 1 << 20; const long long INF = 1LL << 60; using namespace std; typedef long long ll; typedef pair<in...
[ "variable_declaration.type.change", "expression.operation.unary.add", "call.arguments.change" ]
1,457,905
1,457,904
u883323885
cpp
p03838
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <functional> #include <iostream> #include <limits> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_set> #include <vector> #define rep(i, a) for (int i = (int)0; i ...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <functional> #include <iostream> #include <limits> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_set> #include <vector> #define rep(i, a) for (int i = (int)0; i ...
[ "expression.operator.compare.change", "io.output.change" ]
1,457,906
1,457,907
u698883164
cpp
p03838
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <functional> #include <iostream> #include <limits> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_set> #include <vector> #define rep(i, a) for (int i = (int)0; i ...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <functional> #include <iostream> #include <limits> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_set> #include <vector> #define rep(i, a) for (int i = (int)0; i ...
[ "expression.operation.binary.add" ]
1,457,908
1,457,907
u698883164
cpp
p03838
#include <bits/stdc++.h> using namespace std; int a, b; int main() { scanf("%d%d", &a, &b); if (a == 0 && b > 0) { printf("%d", b); } else if (a == 0 && b < 0) { printf("%d", -(b + 1)); } else if (a > 0 && b == 0) { printf("%d", a + 1); } else if (a < 0 && b == 0) { printf("%d", -a); } else ...
#include <bits/stdc++.h> using namespace std; int a, b; int main() { scanf("%d%d", &a, &b); if (a == 0 && b > 0) { printf("%d", b); } else if (a == 0 && b < 0) { printf("%d", -b + 1); } else if (a > 0 && b == 0) { printf("%d", a + 1); } else if (a < 0 && b == 0) { printf("%d", -a); } else if...
[ "call.arguments.change" ]
1,457,911
1,457,912
u103611264
cpp
p03838
#include <algorithm> #include <cassert> #include <functional> #include <iostream> #include <queue> #include <vector> using namespace std; int main() { int x, y; cin >> x >> y; int c = 1e9; if (y >= x) { c = min(c, y - x); if (y >= -x) { c = min(c, y + x + 1); } if (-y >= x) { c = min...
#include <algorithm> #include <cassert> #include <functional> #include <iostream> #include <queue> #include <vector> using namespace std; int main() { int x, y; cin >> x >> y; int c = 1e18; if (y >= x) { c = min(c, y - x); if (y >= -x) { c = min(c, y + x + 1); } if (-y >= x) { // cou...
[ "literal.number.change", "variable_declaration.value.change", "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
1,457,925
1,457,924
u759162415
cpp
p03838
/* これを入れて実行 g++ code.cpp ./a.out */ #include <algorithm> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <string> #include <tuple> #include <utility> #include <vector> using namespace std; typedef long long ll; typedef...
/* これを入れて実行 g++ code.cpp ./a.out */ #include <algorithm> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <string> #include <tuple> #include <utility> #include <vector> using namespace std; typedef long long ll; typedef...
[ "literal.number.change", "io.output.change", "misc.opposites", "expression.operator.arithmetic.change" ]
1,457,928
1,457,929
u845000384
cpp
p03838
#include <bits/stdc++.h> using namespace std; using ll = long long; const long long MOD = 1000000007; const long long INF = 1LL << 60; int main() { long long x, y; cin >> x >> y; long long ans; if (x <= y) { //--x--y--> if (x * y < 0) { //--x--0--y--> ans = abs(abs(y) - abs(x)) + 1; } else ...
#include <bits/stdc++.h> using namespace std; using ll = long long; const long long MOD = 1000000007; const long long INF = 1LL << 60; int main() { long long x, y; cin >> x >> y; long long ans; if (x <= y) { //--x--y--> if (x * y < 0) { //--x--0--y--> ans = abs(abs(y) - abs(x)) + 1; } else ...
[ "call.add", "call.arguments.change" ]
1,457,930
1,457,931
u615258936
cpp
p03838
#include <bits/stdc++.h> using namespace std; using Int = long long; typedef pair<int, int> P; typedef priority_queue<int> Pr; typedef vector<int> V; typedef vector<P> Vp; typedef map<int, int> MP; const int mod = 1000000007; const Int INF = 1145141919810893931; #define END ...
#include <bits/stdc++.h> using namespace std; using Int = long long; typedef pair<int, int> P; typedef priority_queue<int> Pr; typedef vector<int> V; typedef vector<P> Vp; typedef map<int, int> MP; const int mod = 1000000007; const Int INF = 1145141919810893931; #define END ...
[ "literal.number.change", "assignment.value.change", "expression.operation.binary.change" ]
1,457,932
1,457,933
u735089337
cpp
p03838
#include <bits/stdc++.h> using namespace std; using Int = long long; typedef pair<int, int> P; typedef priority_queue<int> Pr; typedef vector<int> V; typedef vector<P> Vp; typedef map<int, int> MP; const int mod = 1000000007; const Int INF = 1145141919810893931; #define END ...
#include <bits/stdc++.h> using namespace std; using Int = long long; typedef pair<int, int> P; typedef priority_queue<int> Pr; typedef vector<int> V; typedef vector<P> Vp; typedef map<int, int> MP; const int mod = 1000000007; const Int INF = 1145141919810893931; #define END ...
[ "call.remove", "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change", "literal.number.change" ]
1,457,934
1,457,933
u735089337
cpp
p03838
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (abs(y) == abs(x)) { cout << 1 << endl; return 0; } if (y > x && (x >= 0 || 0 >= y)) { cout << y - x << endl; return 0; } if (y > x) { int cnt1 = y - x; int cnt2 = y + x + 1; cout << min(cn...
#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; if (abs(y) == abs(x)) { cout << 1 << endl; return 0; } if (y > x && (x >= 0 || 0 >= y)) { cout << y - x << endl; return 0; } // x < 0 && y > 0 if (y > x) { int cnt1 = y - x; int cnt2 = abs(y + x...
[ "call.add", "call.arguments.change" ]
1,457,945
1,457,944
u313766957
cpp
p03838
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define int long long using namespace std; signed main() { int x, y; cin >> x >> y; int ans = 0; while (x != y) { if (x > 0) { if (abs(x) > abs(y)) x = -x, ans++; else if (y < 0) ans += -...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define int long long using namespace std; signed main() { int x, y; cin >> x >> y; int ans = 0; while (x != y) { if (x > 0) { if (abs(x) > abs(y)) x = -x, ans++; else if (y < 0) ans += -...
[ "assignment.value.change", "identifier.change", "call.arguments.change", "expression.operation.binary.change" ]
1,457,952
1,457,953
u203033720
cpp
p03838
#include <algorithm> #include <bitset> #include <ciso646> #include <cmath> #include <complex> #include <cstdio> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <tuple> #include <unordered_map> #incl...
#include <algorithm> #include <bitset> #include <ciso646> #include <cmath> #include <complex> #include <cstdio> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <tuple> #include <unordered_map> #incl...
[ "control_flow.branch.if.condition.change" ]
1,457,954
1,457,955
u236127431
cpp
p03838
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) #define reps(i, n) for (int i = 1; i <= (n); ++i) #define all(x) (x).begin(), (x).end() #define int long long #define mk_p(a, b) make_pair((a), (b)) using pii = pair<int, int>; constexpr int INF = 0x3f3f3f3f; constexpr long l...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) #define reps(i, n) for (int i = 1; i <= (n); ++i) #define all(x) (x).begin(), (x).end() #define int long long #define mk_p(a, b) make_pair((a), (b)) using pii = pair<int, int>; constexpr int INF = 0x3f3f3f3f; constexpr long l...
[ "expression.operation.binary.add" ]
1,457,956
1,457,957
u803754262
cpp
p03838
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) #define reps(i, n) for (int i = 1; i <= (n); ++i) #define all(x) (x).begin(), (x).end() #define int long long #define mk_p(a, b) make_pair((a), (b)) using pii = pair<int, int>; constexpr int INF = 0x3f3f3f3f; constexpr long l...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) #define reps(i, n) for (int i = 1; i <= (n); ++i) #define all(x) (x).begin(), (x).end() #define int long long #define mk_p(a, b) make_pair((a), (b)) using pii = pair<int, int>; constexpr int INF = 0x3f3f3f3f; constexpr long l...
[ "misc.opposites", "expression.operator.arithmetic.change", "io.output.change" ]
1,457,958
1,457,957
u803754262
cpp
p03838
#include <algorithm> #include <bitset> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; typedef pair<int, ll> P; #define N (1000000000 + 7) #define INF (ll)1e16 typedef long long ll; in...
#include <algorithm> #include <bitset> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; typedef pair<int, ll> P; #define N (1000000000 + 7) #define INF (ll)1e16 typedef long long ll; in...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,457,961
1,457,962
u744305661
cpp
p03838
#include <algorithm> #include <bitset> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; typedef pair<int, ll> P; #define N (1000000000 + 7) #define INF (ll)1e16 typedef long long ll; in...
#include <algorithm> #include <bitset> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; typedef pair<int, ll> P; #define N (1000000000 + 7) #define INF (ll)1e16 typedef long long ll; in...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "misc.opposites", "expression.operator.arithmetic.change", "io.output.change" ]
1,457,963
1,457,962
u744305661
cpp
p03838
#include <algorithm> #include <bitset> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; typedef pair<int, ll> P; #define N (1000000000 + 7) #define INF (ll)1e16 typedef long long ll; in...
#include <algorithm> #include <bitset> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; typedef pair<int, ll> P; #define N (1000000000 + 7) #define INF (ll)1e16 typedef long long ll; in...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "misc.opposites", "expression.operator.arithmetic.change", "io.output.change" ]
1,457,964
1,457,962
u744305661
cpp
p03838
#include <algorithm> #include <bitset> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; typedef pair<int, ll> P; #define N (1000000000 + 7) #define INF (ll)1e16 typedef long long ll; in...
#include <algorithm> #include <bitset> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; typedef pair<int, ll> P; #define N (1000000000 + 7) #define INF (ll)1e16 typedef long long ll; in...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "misc.opposites", "expression.operator.arithmetic.change", "io.output.change" ]
1,457,965
1,457,962
u744305661
cpp
p03838
#include <bits/stdc++.h> #define SORT(a) sort(a.begin(), a.end()) #define RSORT(a) sort(a.rbegin(), a.rend()) #define REP(i, n) for (long long i = 0; i < n; i++) #define RREP(i, n) for (long long i = n - 1; 0 <= i; i--) #define FOR(i, start, end) for (long long i = start; i < end; i++) #define RFOR(i, start, end) for (...
#include <bits/stdc++.h> #define SORT(a) sort(a.begin(), a.end()) #define RSORT(a) sort(a.rbegin(), a.rend()) #define REP(i, n) for (long long i = 0; i < n; i++) #define RREP(i, n) for (long long i = n - 1; 0 <= i; i--) #define FOR(i, start, end) for (long long i = start; i < end; i++) #define RFOR(i, start, end) for (...
[ "control_flow.branch.if.condition.change" ]
1,457,968
1,457,969
u324303263
cpp
p03838
#include <algorithm> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <map> #include <math.h> #include <numeric> #include <queue> #include <random> #include <set> #include <string.h> #include <tuple> #include <vector> using namespace std; typedef long long ll; ...
#include <algorithm> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <map> #include <math.h> #include <numeric> #include <queue> #include <random> #include <set> #include <string.h> #include <tuple> #include <vector> using namespace std; typedef long long ll; ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,457,978
1,457,979
u394033362
cpp
p03838
#include <bits/stdc++.h> using namespace std; using ll = long long; using db = double; #define fi first #define se second #define pb push_back #define all(v) (v).begin(), (v).end() #define siz(v) (ll)(v).size() #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define repn(i, n) for (ll i = 0; i <= (ll)(n); i++) typed...
#include <bits/stdc++.h> using namespace std; using ll = long long; using db = double; #define fi first #define se second #define pb push_back #define all(v) (v).begin(), (v).end() #define siz(v) (ll)(v).size() #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define repn(i, n) for (ll i = 0; i <= (ll)(n); i++) typed...
[ "call.add", "call.arguments.change" ]
1,457,985
1,457,986
u317711717
cpp
p03838
#include <bits/stdc++.h> using namespace std; using ll = long long; using db = double; #define fi first #define se second #define pb push_back #define all(v) (v).begin(), (v).end() #define siz(v) (ll)(v).size() #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define repn(i, n) for (ll i = 0; i <= (ll)(n); i++) typed...
#include <bits/stdc++.h> using namespace std; using ll = long long; using db = double; #define fi first #define se second #define pb push_back #define all(v) (v).begin(), (v).end() #define siz(v) (ll)(v).size() #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define repn(i, n) for (ll i = 0; i <= (ll)(n); i++) typed...
[ "call.add", "call.arguments.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,457,987
1,457,986
u317711717
cpp
p03838
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <string> #include <vector> using namespace std; int main() { int x, y; cin >> x >> y; long long ans = pow(2, 56); int A = y - x; if (A >= 0 && A < ans) ans = A; int BA = (y + x) + 1; if (BA >= 0 ...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <string> #include <vector> using namespace std; int main() { int x, y; cin >> x >> y; long long ans = pow(2, 56); int A = y - x; if (A >= 0 && A < ans) ans = A; int BA = (y + x) + 1; if (BA >= 0 ...
[ "misc.opposites", "expression.operator.arithmetic.change", "expression.operation.binary.change" ]
1,457,992
1,457,993
u280096880
cpp
p03838
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> P; typedef vector<int> VI; template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <class T> bool chmin(T &a, const T &b) { if (a > b) { a = b; return 1; }...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> P; typedef vector<int> VI; template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <class T> bool chmin(T &a, const T &b) { if (a > b) { a = b; return 1; }...
[ "assignment.change" ]
1,457,996
1,457,997
u071692456
cpp
p03838
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) #define reps(i, n) for (int i = 1; i <= (n); ++i) #define repr(i, n) for (int i = (n); i >= 0; --i) #define step(i, s, n, c) for (int i = (s); i < (n); i += (c)) #define REP(i, s, n) for (int i = (s); i < (n); ++i) #define ea...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) #define reps(i, n) for (int i = 1; i <= (n); ++i) #define repr(i, n) for (int i = (n); i >= 0; --i) #define step(i, s, n, c) for (int i = (s); i < (n); i += (c)) #define REP(i, s, n) for (int i = (s); i < (n); ++i) #define ea...
[ "call.add", "call.arguments.change" ]
1,458,003
1,458,004
u423624748
cpp
p03838
#include <bits/stdc++.h> #define DUMP(x) cout << #x << " = " << (x) << endl; #define FOR(i, m, n) for (int i = m; i < n; i++) #define IFOR(i, m, n) for (int i = n - 1; i >= m; i--) #define REP(i, n) FOR(i, 0, n) #define IREP(i, n) IFOR(i, 0, n) #define FOREACH(x, a) for (auto &(x) : (a)) #define ALL(v) (v).begin(), (v)...
#include <bits/stdc++.h> #define DUMP(x) cout << #x << " = " << (x) << endl; #define FOR(i, m, n) for (int i = m; i < n; i++) #define IFOR(i, m, n) for (int i = n - 1; i >= m; i--) #define REP(i, n) FOR(i, 0, n) #define IREP(i, n) IFOR(i, 0, n) #define FOREACH(x, a) for (auto &(x) : (a)) #define ALL(v) (v).begin(), (v)...
[ "control_flow.branch.if.condition.change" ]
1,458,005
1,458,006
u708550576
cpp
p03838
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) #define REPR(i, n) for (int i = (n); i >= 0; --i) #define FOR(i, m, n) for (int i = (m); i < (n); ++i) typedef long long ll; #define INF 1e9 int main() { int x, y; cin >> x >> y; int ans; if (x > y) { if (y ==...
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) #define REPR(i, n) for (int i = (n); i >= 0; --i) #define FOR(i, m, n) for (int i = (m); i < (n); ++i) typedef long long ll; #define INF 1e9 int main() { int x, y; cin >> x >> y; int ans; if (x > y) { if (y ==...
[ "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,458,007
1,458,008
u034055199
cpp
p03838
#include "bits/stdc++.h" using namespace std; using ll = long long; using pii = pair<int, int>; using pll = pair<ll, ll>; using vi = vector<int>; using vl = vector<ll>; using vvi = vector<vi>; using vvl = vector<vl>; const int INF = 1 << 28; const ll MOD = 1000000007; template <class T> bool chmax(T &a, const T &b) { ...
#include "bits/stdc++.h" using namespace std; using ll = long long; using pii = pair<int, int>; using pll = pair<ll, ll>; using vi = vector<int>; using vl = vector<ll>; using vvi = vector<vi>; using vvl = vector<vl>; const int INF = 1 << 28; const ll MOD = 1000000007; template <class T> bool chmax(T &a, const T &b) { ...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,458,009
1,458,010
u756088996
cpp
p03838
#include <algorithm> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> #define ll int64_t #define Rep(i, n) for (ll i = 0; i < n; i++) using namespace std; int main() { cin.tie(0); ios::s...
#include <algorithm> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> #define ll int64_t #define Rep(i, n) for (ll i = 0; i < n; i++) using namespace std; int main() { cin.tie(0); ios::s...
[ "expression.operation.unary.arithmetic.remove", "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
1,458,013
1,458,014
u017271745
cpp
p03838
#include <bits/stdc++.h> using namespace std; using LL = long long; using VI = vector<LL>; using VVI = vector<VI>; using VB = vector<bool>; using VS = vector<string>; using PII = pair<LL, LL>; using VP = vector<PII>; #define PB push_back #define MP make_pair #define SZ(a) LL((a).size()) #define EACH(x, c) for (auto x :...
#include <bits/stdc++.h> using namespace std; using LL = long long; using VI = vector<LL>; using VVI = vector<VI>; using VB = vector<bool>; using VS = vector<string>; using PII = pair<LL, LL>; using VP = vector<PII>; #define PB push_back #define MP make_pair #define SZ(a) LL((a).size()) #define EACH(x, c) for (auto x :...
[ "expression.operation.unary.arithmetic.remove" ]
1,458,015
1,458,016
u816800341
cpp
p03838
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; int main() { long long int x, y; cin >> x >> y; if (x >= 0 && abs(x) < abs(y) && y >= 0) { cout << y - x << endl; } else if (x >= 0 && abs(y) <= abs(x) && y >= 0) { cout << 1 + (x - y) + 1 << endl; } else i...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; int main() { long long int x, y; cin >> x >> y; if (x >= 0 && abs(x) < abs(y) && y >= 0) { cout << y - x << endl; } else if (x >= 0 && abs(y) <= abs(x) && y > 0) { cout << 1 + (x - y) + 1 << endl; } else if...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,458,021
1,458,022
u095756391
cpp
p03838
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; int main() { long long int x, y; cin >> x >> y; if (x >= 0 && abs(x) < abs(y) && y >= 0) { cout << y - x << endl; } else if (x >= 0 && abs(y) <= abs(x) && y >= 0) { cout << 1 + (x - y) + 1 << endl; } else i...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; int main() { long long int x, y; cin >> x >> y; if (x >= 0 && abs(x) < abs(y) && y >= 0) { cout << y - x << endl; } else if (x >= 0 && abs(y) <= abs(x) && y > 0) { cout << 1 + (x - y) + 1 << endl; } else if...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,458,023
1,458,022
u095756391
cpp
p03838
#include <bits/stdc++.h> using namespace std; int main() { long long x, y; cin >> x >> y; if (x * y == 0) { if (x == 0) { if (y > 0) cout << y << endl; else cout << abs(y) + 1 << endl; } else { if (x > 0) cout << x + 1 << endl; else cout << abs(x) <...
#include <bits/stdc++.h> using namespace std; int main() { long long x, y; cin >> x >> y; if (x * y == 0) { if (x == 0) { if (y > 0) cout << y << endl; else cout << abs(y) + 1 << endl; } else { if (x > 0) cout << x + 1 << endl; else cout << abs(x) <...
[ "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove" ]
1,458,024
1,458,025
u013408661
cpp
p03838
#include <bits/stdc++.h> using namespace std; const int INF = 1.1e9; int signum(int x) { return x < 0 ? -1 : (x > 0); } int main() { int x, y; cin >> x >> y; int ans = INF; if (x < y) ans = y - x; if (signum(x) * signum(y) <= 0) { ans = min(ans, abs(x - y) + 1); } else { ans = min(ans, abs(x ...
#include <bits/stdc++.h> using namespace std; const int INF = 2.1e9; int signum(int x) { return x < 0 ? -1 : (x > 0); } int main() { int x, y; cin >> x >> y; int ans = INF; if (x < y) ans = y - x; if (signum(x) * signum(y) <= 0) { ans = min(ans, abs(x + y) + 1); } else { ans = min(ans, abs(x ...
[ "literal.number.change", "variable_declaration.value.change", "misc.opposites", "expression.operator.arithmetic.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
1,458,031
1,458,032
u242534780
cpp
p03838
#include <algorithm> #include <bitset> //UWAGA - w czasie kompilacji musi byc znany rozmiar wektora - nie mozna go zmienic #include <cassert> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <fstream> #include <iomanip> //do setprecision #include <ios...
#include <algorithm> #include <bitset> //UWAGA - w czasie kompilacji musi byc znany rozmiar wektora - nie mozna go zmienic #include <cassert> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <fstream> #include <iomanip> //do setprecision #include <ios...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,458,033
1,458,034
u410866813
cpp
p03838
#include <algorithm> #include <bitset> //UWAGA - w czasie kompilacji musi byc znany rozmiar wektora - nie mozna go zmienic #include <cassert> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <fstream> #include <iomanip> //do setprecision #include <ios...
#include <algorithm> #include <bitset> //UWAGA - w czasie kompilacji musi byc znany rozmiar wektora - nie mozna go zmienic #include <cassert> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <fstream> #include <iomanip> //do setprecision #include <ios...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,458,035
1,458,034
u410866813
cpp
p03838
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; int main() { ll x, y; cin >> x >> y; int flip = 0; bool samesign = (x >= 0 && y >= 0) || (x <= 0 && y <= 0); if (samesign && x < y) flip = 0; else if (samesign && x > y) flip = 2; else flip =...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; int main() { ll x, y; cin >> x >> y; int flip = 0; bool samesign = (x >= 0 && y > 0) || (x < 0 && y <= 0); if (samesign && x <= y) flip = 0; else if (samesign && x > y) flip = 2; else flip = ...
[ "expression.operator.compare.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
1,458,036
1,458,037
u235057691
cpp
p03838
#include <algorithm> #include <iostream> #include <string> #include <typeinfo> #include <vector> using namespace std; int main() { int x, y; cin >> x >> y; int ans = 0; if (abs(x) == abs(y)) { if (x == y) { ans = 0; } else { ans = 1; } } else if (abs(x) < abs(y)) { ans += abs(y) -...
#include <algorithm> #include <iostream> #include <string> #include <typeinfo> #include <vector> using namespace std; int main() { int x, y; cin >> x >> y; int ans = 0; if (abs(x) == abs(y)) { if (x == y) { ans = 0; } else { ans = 1; } } else if (abs(x) < abs(y)) { ans += abs(y) -...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,458,039
1,458,040
u090629957
cpp
p03838
#include <algorithm> #include <iostream> #include <string> #include <typeinfo> #include <vector> using namespace std; int main() { int x, y; cin >> x >> y; int ans = 0; if (abs(x) == abs(y)) { if (x == y) { ans = 0; } else { ans = 1; } } else if (abs(x) < abs(y)) { ans += abs(y) -...
#include <algorithm> #include <iostream> #include <string> #include <typeinfo> #include <vector> using namespace std; int main() { int x, y; cin >> x >> y; int ans = 0; if (abs(x) == abs(y)) { if (x == y) { ans = 0; } else { ans = 1; } } else if (abs(x) < abs(y)) { ans += abs(y) -...
[ "assignment.value.change", "identifier.change", "call.arguments.change", "expression.operation.binary.change", "misc.opposites", "expression.operator.arithmetic.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,458,041
1,458,040
u090629957
cpp
p03838
#include <bits/stdc++.h> using namespace std; int n, m; int main() { cin >> n >> m; if ((n >= 0 && m >= 0) || (n <= 0 && m <= 0)) { if (n <= m) cout << m - n; else cout << n - m + 2 - (!m); } else { cout << abs(m + n) + 1; } }
#include <bits/stdc++.h> using namespace std; int n, m; int main() { cin >> n >> m; if ((n >= 0 && m >= 0) || (n <= 0 && m <= 0)) { if (n <= m) cout << m - n; else cout << n - m + 2 - (!m) - (!n); } else { cout << abs(m + n) + 1; } }
[ "expression.operation.binary.add" ]
1,458,047
1,458,048
u222216068
cpp
p03838
#include <bits/stdc++.h> using namespace std; using Int = long long; int solve(int x, int y) { if ((0 <= x && x <= y) || (x <= y && y <= 0)) return y - x; if ((Int)x * y < 0) return abs(abs(y) - abs(x)) + 1; return abs(abs(y) - abs(x)) + 2; } int main() { cin.tie(nullptr); ios::sync_with_stdio(false);...
#include <bits/stdc++.h> using namespace std; using Int = long long; int solve(int x, int y) { if ((0 <= x && x <= y) || (x <= y && y <= 0)) return y - x; if ((Int)x * y <= 0) return abs(abs(y) - abs(x)) + 1; return abs(abs(y) - abs(x)) + 2; } int main() { cin.tie(nullptr); ios::sync_with_stdio(false)...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,458,063
1,458,064
u449722246
cpp
p03838
#include <algorithm> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <string.h> #include <vector> using namespace std; #define REP(i, n) for (int i = 0; i < n; i++) #define ALL(v) v.begin(), v.end() typedef long long ll; typedef pair<int, int> pi; typed...
#include <algorithm> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <string.h> #include <vector> using namespace std; #define REP(i, n) for (int i = 0; i < n; i++) #define ALL(v) v.begin(), v.end() typedef long long ll; typedef pair<int, int> pi; typed...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,458,065
1,458,066
u505831576
cpp
p03838
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <time.h> #include <vector> //もう二度とつかわん// // ↓ ↓ ↓   // #define ll long long // ↑ ↑ ↑ // //フェルマー方程式の恨み// #define rep(i, n) for (int i = 0; i < n; i++) #define ...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <time.h> #include <vector> //もう二度とつかわん// // ↓ ↓ ↓   // #define ll long long // ↑ ↑ ↑ // //フェルマー方程式の恨み// #define rep(i, n) for (int i = 0; i < n; i++) #define ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,458,070
1,458,068
u971256474
cpp
p03838
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <queue> #include <stack> #include <stdio.h> #include <string> #include <time.h> #include <vector> #define int long long using namespace std; int gcd(int x, int y) { if (y == 0) return x; return gcd(y, x % y); } int lcm(int x, int ...
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <queue> #include <stack> #include <stdio.h> #include <string> #include <time.h> #include <vector> #define int long long using namespace std; int gcd(int x, int y) { if (y == 0) return x; return gcd(y, x % y); } int lcm(int x, int ...
[ "control_flow.branch.if.condition.change" ]
1,458,077
1,458,078
u147049801
cpp
p03838
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <sstream> #include <string> #include <vector> using namespace std; typedef long long ll; int main() { int x, y; cin >> x >> y; ll ans = 0; if (...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <sstream> #include <string> #include <vector> using namespace std; typedef long long ll; int main() { int x, y; cin >> x >> y; ll ans = 0; if (...
[ "literal.number.change", "assignment.value.change", "expression.operation.binary.change", "misc.opposites", "expression.operator.arithmetic.change", "expression.operation.binary.remove" ]
1,458,083
1,458,082
u806800460
cpp
p03838
#include <bits/stdc++.h> #define int long long int using namespace std; template <typename T, typename U> using P = pair<T, U>; template <typename T> using V = vector<T>; template <typename T> bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <typename T> bool chmin(T &a,...
#include <bits/stdc++.h> #define int long long int using namespace std; template <typename T, typename U> using P = pair<T, U>; template <typename T> using V = vector<T>; template <typename T> bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <typename T> bool chmin(T &a,...
[ "identifier.change", "call.function.change" ]
1,458,084
1,458,085
u960524878
cpp
p03838
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, a, b) for (ll i = (a); i < (b); i++) #define REP(i, n) rep(i, 0, n) void solve() { int x, y; cin >> x >> y; cout << abs(abs(x) - abs(y)) + ((x < 0 && y < 0) || (x >= 0 && y >= 0) ? (x >= y) * 2 : 1) + (...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, a, b) for (ll i = (a); i < (b); i++) #define REP(i, n) rep(i, 0, n) void solve() { int x, y; cin >> x >> y; cout << abs(abs(x) - abs(y)) + ((x < 0 && y < 0) || (x >= 0 && y >= 0) ? (x >= y) * 2 : 1) + (...
[]
1,458,090
1,458,091
u973991908
cpp
p03838
#include <bits/stdc++.h> #include <cmath> // using namespace boost::multiprecision; using namespace std; typedef long long ll; // typedef unsigned long long ll; const double EPS = 1e-9; #define rep(i, n) for (int i = 0; i < (n); ++i) //#define rep(i, n) for (ll i = 0; i < (n); ++i) //#define sz(x) ll(x.size()) typedef...
#include <bits/stdc++.h> #include <cmath> // using namespace boost::multiprecision; using namespace std; typedef long long ll; // typedef unsigned long long ll; const double EPS = 1e-9; #define rep(i, n) for (int i = 0; i < (n); ++i) //#define rep(i, n) for (ll i = 0; i < (n); ++i) //#define sz(x) ll(x.size()) typedef...
[ "assignment.value.change", "identifier.change" ]
1,458,096
1,458,097
u564182781
cpp
p03838
#include <bits/stdc++.h> #include <cmath> // using namespace boost::multiprecision; using namespace std; typedef long long ll; // typedef unsigned long long ll; const double EPS = 1e-9; #define rep(i, n) for (int i = 0; i < (n); ++i) //#define rep(i, n) for (ll i = 0; i < (n); ++i) //#define sz(x) ll(x.size()) typedef...
#include <bits/stdc++.h> #include <cmath> // using namespace boost::multiprecision; using namespace std; typedef long long ll; // typedef unsigned long long ll; const double EPS = 1e-9; #define rep(i, n) for (int i = 0; i < (n); ++i) //#define rep(i, n) for (ll i = 0; i < (n); ++i) //#define sz(x) ll(x.size()) typedef...
[ "assignment.value.change", "expression.operation.unary.add", "identifier.change" ]
1,458,098
1,458,097
u564182781
cpp
p03838
#include <bits/stdc++.h> using namespace std; using ll = long long int; using graph = vector<vector<char>>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using pll = pair<ll, ll>; int main() { int x, y; cin >> x >> y; if (0 <= x && x <= y) { cout << y - x; } else if (0 < y && y <= x) { cout << x...
#include <bits/stdc++.h> using namespace std; using ll = long long int; using graph = vector<vector<char>>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using pll = pair<ll, ll>; int main() { int x, y; cin >> x >> y; if (0 <= x && x < y) { cout << y - x; } else if (0 < y && y < x) { cout << x -...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,458,099
1,458,100
u007463213
cpp
p03838
#include <bits/stdc++.h> using namespace std; using ll = long long int; using graph = vector<vector<char>>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using pll = pair<ll, ll>; int main() { int x, y; cin >> x >> y; if (0 <= x && x <= y) { cout << y - x; } else if (0 < y && y <= x) { cout << x...
#include <bits/stdc++.h> using namespace std; using ll = long long int; using graph = vector<vector<char>>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using pll = pair<ll, ll>; int main() { int x, y; cin >> x >> y; if (0 <= x && x < y) { cout << y - x; } else if (0 < y && y < x) { cout << x -...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,458,102
1,458,100
u007463213
cpp
p03838
#include <bits/stdc++.h> using namespace std; using ll = long long int; using graph = vector<vector<char>>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using pll = pair<ll, ll>; int main() { int x, y; cin >> x >> y; if (0 <= x && x <= y) { cout << y - x; } else if (0 <= y && y <= x) { cout << ...
#include <bits/stdc++.h> using namespace std; using ll = long long int; using graph = vector<vector<char>>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using pll = pair<ll, ll>; int main() { int x, y; cin >> x >> y; if (0 <= x && x < y) { cout << y - x; } else if (0 < y && y < x) { cout << x -...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,458,103
1,458,100
u007463213
cpp
p03838
#include <bits/stdc++.h> using namespace std; #define rep(i, N) for (int i = 0; i < int(N); ++i) using ll = long long; const int INF = 2147483647; int main() { ll x, y; cin >> x >> y; ll dis = abs(y) - abs(x); ll ans; if (y >= x) { if (y >= 0 && x >= 0 || x < 0 && y < 0) ans = y - x; else { ...
#include <bits/stdc++.h> using namespace std; #define rep(i, N) for (int i = 0; i < int(N); ++i) using ll = long long; const int INF = 2147483647; int main() { ll x, y; cin >> x >> y; ll dis = abs(y) - abs(x); ll ans; if (y >= x) { if (y >= 0 && x >= 0 || x < 0 && y < 0) ans = y - x; else { ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,458,129
1,458,130
u489603283
cpp
p03838
#include <bits/stdc++.h> using namespace std; #define rep(i, N) for (int i = 0; i < int(N); ++i) using ll = long long; const int INF = 2147483647; int main() { int x, y; cin >> x >> y; int dis = abs(y) - abs(x); int ans; if (y >= x) { if (y >= 0 && x >= 0 || x < 0 && y < 0) ans = y - x; else { ...
#include <bits/stdc++.h> using namespace std; #define rep(i, N) for (int i = 0; i < int(N); ++i) using ll = long long; const int INF = 2147483647; int main() { ll x, y; cin >> x >> y; ll dis = abs(y) - abs(x); ll ans; if (y >= x) { if (y >= 0 && x >= 0 || x < 0 && y < 0) ans = y - x; else { ...
[ "variable_declaration.type.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,458,131
1,458,130
u489603283
cpp
p03838
#include <bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" #define pb push_back #define f(i, n) for (i = 0; i < n; i++) #define F(i, a, b) for (i = a; a <= b; i++) #define arr(a, n) \ for (i = 0; i < n; i++) ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" #define pb push_back #define f(i, n) for (i = 0; i < n; i++) #define F(i, a, b) for (i = a; a <= b; i++) #define arr(a, n) \ for (i = 0; i < n; i++) ...
[ "expression.operation.binary.remove" ]
1,458,145
1,458,146
u159663513
cpp
p03838
#include <bits/stdc++.h> using namespace std; #define rep(i, cc, n) for (int i = cc; i < n; ++i) #define lrep(i, cc, n) for (long long i = cc; i < n; ++i) #define sqrep(i, cc, n) for (long long i = cc; i * i <= n; ++i) #define rrep(i, cc, n) for (long i = cc; i > n; --i) #define pii pair<int, int> #define pll pair<long...
#include <bits/stdc++.h> using namespace std; #define rep(i, cc, n) for (int i = cc; i < n; ++i) #define lrep(i, cc, n) for (long long i = cc; i < n; ++i) #define sqrep(i, cc, n) for (long long i = cc; i * i <= n; ++i) #define rrep(i, cc, n) for (long i = cc; i > n; --i) #define pii pair<int, int> #define pll pair<long...
[ "assignment.value.change", "call.arguments.change", "assignment.change" ]
1,458,147
1,458,148
u330518333
cpp
p03838
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stdio.h> #include <vector> using namespace std; typedef long long int lli; const long long int MaxN = 500005; const lli mod = 1e9 + 7; #define fst first #define snd second #define mp make_pair const float...
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stdio.h> #include <vector> using namespace std; typedef long long int lli; const long long int MaxN = 500005; const lli mod = 1e9 + 7; #define fst first #define snd second #define mp make_pair const float...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,458,149
1,458,150
u092211200
cpp
p03838
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stdio.h> #include <vector> using namespace std; typedef long long int lli; const long long int MaxN = 500005; const lli mod = 1e9 + 7; #define fst first #define snd second #define mp make_pair const float...
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stdio.h> #include <vector> using namespace std; typedef long long int lli; const long long int MaxN = 500005; const lli mod = 1e9 + 7; #define fst first #define snd second #define mp make_pair const float...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,458,151
1,458,150
u092211200
cpp
p03838
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stdio.h> #include <vector> using namespace std; typedef long long int lli; const long long int MaxN = 500005; const lli mod = 1e9 + 7; #define fst first #define snd second #define mp make_pair const float...
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stdio.h> #include <vector> using namespace std; typedef long long int lli; const long long int MaxN = 500005; const lli mod = 1e9 + 7; #define fst first #define snd second #define mp make_pair const float...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,458,152
1,458,150
u092211200
cpp
p03838
#include <bits/stdc++.h> using namespace std; //#define int long long typedef long long ll; typedef unsigned long long ul; typedef unsigned int ui; const ll mod = 1000000007; const ll INF = mod * mod; const int INF_N = 1e+9; typedef pair<int, int> P; #define stop ...
#include <bits/stdc++.h> using namespace std; //#define int long long typedef long long ll; typedef unsigned long long ul; typedef unsigned int ui; const ll mod = 1000000007; const ll INF = mod * mod; const int INF_N = 1e+9; typedef pair<int, int> P; #define stop ...
[ "call.add", "call.arguments.change" ]
1,458,157
1,458,158
u132371041
cpp
p03838
#include <bits/stdc++.h> #ifdef __DEBUG__ #define DBG(X) cout << #X << " = " << (X) << endl; #define SAY(X) cout << (X) << endl; #else #define DBG(X) #define SAY(X) #endif using namespace std; using ll = long long int; using ull = unsigned long long int; using ld = long double; using pii = pair<int, int>; using pll =...
#include <bits/stdc++.h> #ifdef __DEBUG__ #define DBG(X) cout << #X << " = " << (X) << endl; #define SAY(X) cout << (X) << endl; #else #define DBG(X) #define SAY(X) #endif using namespace std; using ll = long long int; using ull = unsigned long long int; using ld = long double; using pii = pair<int, int>; using pll =...
[ "call.add", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,458,167
1,458,168
u858670323
cpp
p03838
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <bitset> // bitset #include <cctype> // isupper, islower, isdigit, toupper, tolower #include <cstdint> // int64_t, int*_t #include <cstdio> // printf #include <deque> // deque #include <iomanip> #include <iostream> /...
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <bitset> // bitset #include <cctype> // isupper, islower, isdigit, toupper, tolower #include <cstdint> // int64_t, int*_t #include <cstdio> // printf #include <deque> // deque #include <iomanip> #include <iostream> /...
[ "expression.operation.compare.replace.add", "assignment.replace.remove", "misc.typo" ]
1,458,169
1,458,170
u487060019
cpp
p03838
#include <bits/stdc++.h> using namespace std; #define fi first #define se second #define mp make_pair #define pb push_back #define eb emplace_back typedef long long ll; typedef pair<int, int> pi; int main() { ios::sync_with_stdio(0), cin.tie(0), cout.tie(0); int x, y; cin >> x >> y; if (x == 0 and y < 0) { ...
#include <bits/stdc++.h> using namespace std; #define fi first #define se second #define mp make_pair #define pb push_back #define eb emplace_back typedef long long ll; typedef pair<int, int> pi; int main() { ios::sync_with_stdio(0), cin.tie(0), cout.tie(0); int x, y; cin >> x >> y; if (x == 0 and y < 0) { ...
[ "expression.operation.unary.arithmetic.remove" ]
1,458,171
1,458,172
u962264371
cpp