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 < (int)(n); i++)
typedef long long ll;
int main() {
ll x, y;
cin >> x >> y;
ll ans = 0;
ll xa = abs(x);
ll ya = abs(y);
ans += abs(ya - xa);
if (x >= 0 && y >= 0 && x < y)
ans += 0;
else if (x >= 0 && y >= 0 && x >... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
int main() {
ll x, y;
cin >> x >> y;
ll ans = 0;
ll xa = abs(x);
ll ya = abs(y);
ans += abs(ya - xa);
if (x >= 0 && y >= 0 && x < y)
ans += 0;
else if (x > 0 && y > 0 && x > y... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,176 | 1,458,177 | u933962236 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
int main() {
ll x, y;
cin >> x >> y;
ll ans = 0;
ll xa = abs(x);
ll ya = abs(y);
ans += abs(ya - xa);
if (x >= 0 && y >= 0 && x < y)
ans += 0;
else if (x >= 0 && y >= 0 && x >... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
int main() {
ll x, y;
cin >> x >> y;
ll ans = 0;
ll xa = abs(x);
ll ya = abs(y);
ans += abs(ya - xa);
if (x >= 0 && y >= 0 && x < y)
ans += 0;
else if (x > 0 && y > 0 && x > y... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,178 | 1,458,177 | u933962236 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
int main() {
ll x, y;
cin >> x >> y;
ll ans = 0;
ll xa = abs(x);
ll ya = abs(y);
ans += abs(ya - xa);
if (x >= 0 && y >= 0 && x < y)
ans += 0;
else if (x >= 0 && y >= 0 && x >... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
int main() {
ll x, y;
cin >> x >> y;
ll ans = 0;
ll xa = abs(x);
ll ya = abs(y);
ans += abs(ya - xa);
if (x >= 0 && y >= 0 && x < y)
ans += 0;
else if (x > 0 && y > 0 && x > y... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"misc.opposites"
] | 1,458,179 | 1,458,177 | u933962236 | cpp |
p03838 | #include <bits/stdc++.h>
#define REP(i, n) for (int(i) = 0; (i) < (n); ++(i))
#define REPV(iter, v) \
for (auto(iter) = (v).begin(); (iter) != (v).end(); ++(iter))
#define ALL(v) (v).begin(), (v).end()
#define MOD 1000000007
using namespace std;
typedef lon... | #include <bits/stdc++.h>
#define REP(i, n) for (int(i) = 0; (i) < (n); ++(i))
#define REPV(iter, v) \
for (auto(iter) = (v).begin(); (iter) != (v).end(); ++(iter))
#define ALL(v) (v).begin(), (v).end()
#define MOD 1000000007
using namespace std;
typedef lon... | [
"literal.number.change",
"assignment.value.change",
"expression.operation.binary.change",
"misc.opposites",
"expression.operator.arithmetic.change"
] | 1,458,180 | 1,458,181 | u188706971 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
const ll maxn = 3e6;
const ll mod = 1e9 + 7;
const ld PI = acos((ld)-1);
#define pb push_back
#define endl '\n'
#define dokme(... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
const ll maxn = 3e6;
const ll mod = 1e9 + 7;
const ld PI = acos((ld)-1);
#define pb push_back
#define endl '\n'
#define dokme(... | [
"expression.operation.binary.add"
] | 1,458,188 | 1,458,189 | u110615365 | cpp |
p03838 | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using pll = pair<long long, long long>;
constexpr char ln = '\n';
constexpr long long MOD = 1000000007LL;
constexpr long long INF = 1000000009LL;
#define all(x) (x).begin(), (x).end()
#define re... | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using pll = pair<long long, long long>;
constexpr char ln = '\n';
constexpr long long MOD = 1000000007LL;
constexpr long long INF = 1000000009LL;
#define all(x) (x).begin(), (x).end()
#define re... | [
"call.add",
"call.arguments.add",
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 1,458,192 | 1,458,191 | u062736195 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ull = unsigned long long;
using ll = long long;
using P = pair<int, int>;
int main() {
int x, y;
cin >> x >> y;
int ans = abs(abs(x) - abs(y));
if (x > y && y > 0)
ans += 2;
else if (x < 0 && 0 < y)
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ull = unsigned long long;
using ll = long long;
using P = pair<int, int>;
int main() {
int x, y;
cin >> x >> y;
int ans = abs(abs(x) - abs(y));
if (x > y && y > 0)
ans += 2;
else if (x < 0 && 0 < y)
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,202 | 1,458,203 | u494249944 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ull = unsigned long long;
using ll = long long;
using P = pair<int, int>;
int main() {
int x, y;
cin >> x >> y;
int ans = abs(abs(x) - abs(y));
if (x > y && y > 0)
ans += 2;
else if (x <= 0 && 0 < y)... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ull = unsigned long long;
using ll = long long;
using P = pair<int, int>;
int main() {
int x, y;
cin >> x >> y;
int ans = abs(abs(x) - abs(y));
if (x > y && y > 0)
ans += 2;
else if (x < 0 && 0 < y)
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,204 | 1,458,203 | u494249944 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vvvi = vector<vector<vector<int>>>;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
using vvvl = vector<vector<vector<ll>>>;
#define FOR(i, m, n) for (int i ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vvvi = vector<vector<vector<int>>>;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
using vvvl = vector<vector<vector<ll>>>;
#define FOR(i, m, n) for (int i ... | [
"call.add",
"call.arguments.change"
] | 1,458,208 | 1,458,209 | u540491484 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define FOR(i, m, n) for (int i = (m); i < (n); i++)
#define FORR(i, m, n) for (int i = (m); i >= (n); i--)
#define REP(i, n) FOR(i, 0, (n))
#define REPR(i, n) FORR(i, (n)-1, 0)
#define REP1(i, n) FOR(i, 1, (n) + 1)
#define REP... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define FOR(i, m, n) for (int i = (m); i < (n); i++)
#define FORR(i, m, n) for (int i = (m); i >= (n); i--)
#define REP(i, n) FOR(i, 0, (n))
#define REPR(i, n) FORR(i, (n)-1, 0)
#define REP1(i, n) FOR(i, 1, (n) + 1)
#define REP... | [
"call.add",
"call.arguments.change"
] | 1,458,210 | 1,458,211 | u540491484 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define FOR(i, m, n) for (int i = (m); i < (n); i++)
#define FORR(i, m, n) for (int i = (m); i >= (n); i--)
#define REP(i, n) FOR(i, 0, (n))
#define REPR(i, n) FORR(i, (n)-1, 0)
#define REP1(i, n) FOR(i, 1, (n) + 1)
#define REP... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define FOR(i, m, n) for (int i = (m); i < (n); i++)
#define FORR(i, m, n) for (int i = (m); i >= (n); i--)
#define REP(i, n) FOR(i, 0, (n))
#define REPR(i, n) FORR(i, (n)-1, 0)
#define REP1(i, n) FOR(i, 1, (n) + 1)
#define REP... | [
"io.output.change",
"call.arguments.add"
] | 1,458,212 | 1,458,211 | u540491484 | cpp |
p03838 | #include <algorithm>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef... | #include <algorithm>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 1,458,213 | 1,458,214 | u399527088 | cpp |
p03838 | #include <algorithm>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef... | #include <algorithm>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"assignment.change"
] | 1,458,215 | 1,458,214 | u399527088 | cpp |
p03838 | #include <algorithm>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef... | #include <algorithm>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"assignment.change"
] | 1,458,216 | 1,458,214 | u399527088 | cpp |
p03838 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <time.h>
#include <tuple>
#include <utility>
#include <vector>
#define ll ... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <time.h>
#include <tuple>
#include <utility>
#include <vector>
#define ll ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,217 | 1,458,218 | u673211643 | cpp |
p03838 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <time.h>
#include <tuple>
#include <utility>
#include <vector>
#define ll ... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <time.h>
#include <tuple>
#include <utility>
#include <vector>
#define ll ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.number.change",
"io.output.change"
] | 1,458,219 | 1,458,218 | u673211643 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <class T, class U> using Pa = pair<T, U>;
template <class T> using vec = vector<T>;
template <class T> using vvec = vector<vec<T>>;
int main() {
int X, Y;
cin >> X >> Y;
int ans = 2e9 + 1;
for (int i = 0; i < 2; i++)
for (int j = ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <class T, class U> using Pa = pair<T, U>;
template <class T> using vec = vector<T>;
template <class T> using vvec = vector<vec<T>>;
int main() {
int X, Y;
cin >> X >> Y;
int ans = 2e9 + 1;
for (int i = 0; i < 2; i++)
for (int j = ... | [
"identifier.change"
] | 1,458,220 | 1,458,221 | u623954643 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, j, n) for (int i = (int)(j); i < (int)(n); i++)
#define REP(i, j, n) for (int i = (int)(j); i <= (int)(n); i++)
#define MOD 1000000007
#define int long long
#define ALL(a) (a).begin(), (a).end()
#define vi vector<int>
#define vii vector<vi>
#define pii pair<i... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, j, n) for (int i = (int)(j); i < (int)(n); i++)
#define REP(i, j, n) for (int i = (int)(j); i <= (int)(n); i++)
#define MOD 1000000007
#define int long long
#define ALL(a) (a).begin(), (a).end()
#define vi vector<int>
#define vii vector<vi>
#define pii pair<i... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,224 | 1,458,223 | u347057617 | cpp |
p03838 | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define DIV 998244353
using namespace std;
using ll = long long;
using ldb = long double;
int main() {
ll x, y;
cin >> x >> y;
ll ans = 0;
if (... | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define DIV 998244353
using namespace std;
using ll = long long;
using ldb = long double;
int main() {
ll x, y;
cin >> x >> y;
ll ans = 0;
if (... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,234 | 1,458,235 | u105100688 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
int main() {
int m, n;
scanf("%d%d", &m, &n);
if (m > 0 && n > 0) {
if (n > m)
printf("%d", n - m);
else if (n < m)
printf("%d", m - n + 2);
else
printf("0");
}
if (m < 0 && n < 0) {
if (n > m)
printf("%d", n - m);
else ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int m, n;
scanf("%d%d", &m, &n);
if (m > 0 && n > 0) {
if (n > m)
printf("%d", n - m);
else if (n < m)
printf("%d", m - n + 2);
else
printf("0");
}
if (m < 0 && n < 0) {
if (n > m)
printf("%d", n - m);
else ... | [
"expression.operation.unary.add",
"call.arguments.change",
"expression.operation.unary.arithmetic.remove"
] | 1,458,236 | 1,458,237 | u723721005 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> PLL;
typedef vector<int> VI;
typedef vector<char> VC;
typedef vector<double> VD;
typedef vector<double> VL;
typedef vector<string> VS;
typedef vector<PLL> VP;
typedef vector<ll> VLL;
const static int INF = 1000000000;
const static ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> PLL;
typedef vector<int> VI;
typedef vector<char> VC;
typedef vector<double> VD;
typedef vector<double> VL;
typedef vector<string> VS;
typedef vector<PLL> VP;
typedef vector<ll> VLL;
const static int INF = 1000000000;
const static ... | [
"expression.operation.binary.remove"
] | 1,458,240 | 1,458,241 | u690326065 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pi;
#define F first
#define S second
#define PB push_back
#define MK make_pair
#define REP(i, a, b) for (int i = a; i < b; i++)
bool sort_by(pi c, pi d) { return c.S < d.S; }
int main() {
ll x, y;
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pi;
#define F first
#define S second
#define PB push_back
#define MK make_pair
#define REP(i, a, b) for (int i = a; i < b; i++)
bool sort_by(pi c, pi d) { return c.S < d.S; }
int main() {
ll x, y;
... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"io.output.change",
"literal.number.change"
] | 1,458,242 | 1,458,243 | u712837698 | cpp |
p03838 | #include <algorithm>
#include <cassert>
#include <cmath>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <string.h>
#include <string>
#include... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <string.h>
#include <string>
#include... | [
"expression.operation.unary.add",
"control_flow.branch.if.condition.change"
] | 1,458,248 | 1,458,249 | u159208574 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll x, y;
cin >> x >> y;
ll ans = 0;
if (x >= 0 && y >= 0) {
ans = abs(y - x);
if (y <= x) {
if (y == 0) {
ans++;
} else {
ans += 2;
}
}
} else if (x < 0 && y < 0) {
ans = abs(y ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll x, y;
cin >> x >> y;
ll ans = 0;
if (x >= 0 && y >= 0) {
ans = abs(y - x);
if (y <= x) {
if (y == 0) {
ans++;
} else {
ans += 2;
}
}
} else if (x < 0 && y < 0) {
ans = abs(y... | [
"expression.unary.arithmetic.add"
] | 1,458,254 | 1,458,255 | u457483230 | cpp |
p03838 | #include <algorithm>
#include <cstdio>
using namespace std;
int a, b;
int main() {
scanf("%d%d", &a, &b);
if (a == 0 || b == 0) {
if (a > b)
printf("%d\n", a - b + 1);
else
printf("%d\n", b - a);
} else if (a > 0 && b > 0) {
if (a < b)
printf("%d\n", b - a);
else
printf("%d... | #include <algorithm>
#include <cstdio>
using namespace std;
int a, b;
int main() {
scanf("%d%d", &a, &b);
if (a == 0 || b == 0) {
if (a > b)
printf("%d\n", a - b + 1);
else
printf("%d\n", b - a);
} else if (a > 0 && b > 0) {
if (a < b)
printf("%d\n", b - a);
else
printf("%d... | [
"call.arguments.change"
] | 1,458,258 | 1,458,259 | u834788547 | cpp |
p03838 | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (ll)(n); ++i)
#define repk(i, k, n) for (ll i = k; i < (ll)(n); ++i)
#define MAX 500000001000000000
#define MOD 1000000007
typedef long long ll;
using namespace std;
ll ans, cnt;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
ll x, y;
cin ... | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (ll)(n); ++i)
#define repk(i, k, n) for (ll i = k; i < (ll)(n); ++i)
#define MAX 500000001000000000
#define MOD 1000000007
typedef long long ll;
using namespace std;
ll ans, cnt;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
ll x, y;
cin ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,264 | 1,458,265 | u344988629 | cpp |
p03838 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef u... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef u... | [
"assignment.change"
] | 1,458,266 | 1,458,267 | u806999568 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
struct Fast {
Fast() {
cin.tie(0);
ios::sync_with_stdio(false);
cout << fixed << setprecision(20);
}
} fast;
long long mod = 1000000007;
long long div(long long a, long long b, long long c) {
return b / c - (a - 1) / c;
}
void print_binary(long long a) ... | #include <bits/stdc++.h>
using namespace std;
struct Fast {
Fast() {
cin.tie(0);
ios::sync_with_stdio(false);
cout << fixed << setprecision(20);
}
} fast;
long long mod = 1000000007;
long long div(long long a, long long b, long long c) {
return b / c - (a - 1) / c;
}
void print_binary(long long a) ... | [
"expression.operation.binary.remove",
"assignment.change"
] | 1,458,282 | 1,458,283 | u687204015 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
template <class T> inline int sgn(T x) { return (x > 0) - (x < 0); }
int main() {
int x, y, ans;
cin >> x >> y;
if (sgn(x) == sgn(y)) {
if (x <= y)
ans = y - x;
else
ans = 2 + x - y;
} else
ans = 1 + abs(abs(y) - abs(x));
if (x == 0)
... | #include <bits/stdc++.h>
using namespace std;
template <class T> inline int sgn(T x) { return (x > 0) - (x < 0); }
int main() {
int x, y, ans;
cin >> x >> y;
if (sgn(x) == sgn(y)) {
if (x <= y)
ans = y - x;
else
ans = 2 + x - y;
} else
ans = 1 + abs(abs(y) - abs(x));
if (x == 0)
... | [
"call.add",
"call.arguments.change",
"call.remove"
] | 1,458,284 | 1,458,285 | u368735320 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < (n); ++i)
#define rrep(i, n) for (ll i = (n - 1); i >= 0; --i)
#define blank(ans) cout << (ans) << " ";
#define mp(p, q) make_pair(p, q)
#define mt(p, q, r) make_tuple(p, q, r)
#define pb(n) push_back(n)
#define all(a) a.begin(), a.end... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < (n); ++i)
#define rrep(i, n) for (ll i = (n - 1); i >= 0; --i)
#define blank(ans) cout << (ans) << " ";
#define mp(p, q) make_pair(p, q)
#define mt(p, q, r) make_tuple(p, q, r)
#define pb(n) push_back(n)
#define all(a) a.begin(), a.end... | [
"call.add"
] | 1,458,288 | 1,458,289 | u743889070 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, y;
cin >> x >> y;
long long ans = 0;
if (y - x >= 0) {
ans = min(y - x, abs(abs(y) - abs(x) + 1));
} else {
if (x * y <= 0) {
ans = abs(abs(y) - abs(x)) + 1;
} else {
ans = abs(abs(y) - abs(x)) + 2;
}
}
co... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, y;
cin >> x >> y;
long long ans = 0;
if (y - x >= 0) {
ans = min(y - x, abs(abs(y) - abs(x)) + 1);
} else {
if (x * y <= 0) {
ans = abs(abs(y) - abs(x)) + 1;
} else {
ans = abs(abs(y) - abs(x)) + 2;
}
}
co... | [
"call.arguments.change"
] | 1,458,290 | 1,458,291 | u042871414 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
int main() {
long x, y;
cin >> x >> y;
long ans = 0;
if (y - x >= 0) {
ans = min(y - x, abs(abs(y) - abs(x) + 1));
} else {
if (x * y <= 0) {
ans = abs(abs(y) - abs(x)) + 1;
} else {
ans = abs(abs(y) - abs(x)) + 2;
}
}
cout << ans ... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, y;
cin >> x >> y;
long long ans = 0;
if (y - x >= 0) {
ans = min(y - x, abs(abs(y) - abs(x)) + 1);
} else {
if (x * y <= 0) {
ans = abs(abs(y) - abs(x)) + 1;
} else {
ans = abs(abs(y) - abs(x)) + 2;
}
}
co... | [
"variable_declaration.type.widen.change",
"call.arguments.change"
] | 1,458,292 | 1,458,291 | u042871414 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int ans = 0;
if (y - x >= 0) {
ans = min(y - x, abs(abs(y) - abs(x) + 1));
} else {
if (x * y <= 0) {
ans = abs(abs(y) - abs(x)) + 1;
} else {
ans = abs(abs(y) - abs(x)) + 2;
}
}
cout << ans <<... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, y;
cin >> x >> y;
long long ans = 0;
if (y - x >= 0) {
ans = min(y - x, abs(abs(y) - abs(x)) + 1);
} else {
if (x * y <= 0) {
ans = abs(abs(y) - abs(x)) + 1;
} else {
ans = abs(abs(y) - abs(x)) + 2;
}
}
co... | [
"variable_declaration.type.primitive.change",
"variable_declaration.type.widen.change",
"call.arguments.change"
] | 1,458,293 | 1,458,291 | u042871414 | cpp |
p03838 | #include <cmath>
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
long long x, y;
cin >> x >> y;
long long ret = 0;
if (abs(x) > abs(y) && x > 0) {
// flip sign
++ret;
x *= -1;
// increment
ret += abs(x) - abs(y);
x -= abs(x) - abs(y);
} else if (abs(x) > ... | #include <cmath>
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
long long x, y;
cin >> x >> y;
long long ret = 0;
if (abs(x) > abs(y) && x > 0) {
// flip sign
++ret;
x *= -1;
// increment
ret += abs(x) - abs(y);
x -= abs(x) - abs(y);
} else if (abs(x) > ... | [
"expression.operator.change"
] | 1,458,294 | 1,458,295 | u894471318 | cpp |
p03838 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
int main() {
ll x, y;
cin >> x >> y;
ll cnt = 0;
if ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
int main() {
ll x, y;
cin >> x >> y;
ll cnt = 0;
if ... | [
"expression.operation.unary.add",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,299 | 1,458,300 | u199184624 | cpp |
p03838 | #include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
const int INF = 1001001001;
const int MOD = 1000000007;
typedef long long ll;
int main() {
int x, y;
cin >> x >> y;
int mini = INF;
for (int i = 0; i < 2; i++) {
f... | #include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
const int INF = 1001001001;
const int MOD = 1000000007;
typedef long long ll;
int main() {
int x, y;
cin >> x >> y;
int mini = INF;
for (int i = 0; i < 2; i++) {
f... | [
"assignment.change",
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 1,458,303 | 1,458,304 | u286623856 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pll;
#define mod 1000000007
#define all(x) (x).begin(), (x).end()
#define call(x) (x).cbegin(), (x).cend()
#define pb push_back
const double PI = acos(-1);
const long long INF = (1LL << 60);
ll gcd(ll a, ll b) { return b ? gcd(b, ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pll;
#define mod 1000000007
#define all(x) (x).begin(), (x).end()
#define call(x) (x).cbegin(), (x).cend()
#define pb push_back
const double PI = acos(-1);
const long long INF = (1LL << 60);
ll gcd(ll a, ll b) { return b ? gcd(b, ... | [
"expression.operation.binary.remove",
"assignment.change"
] | 1,458,307 | 1,458,308 | u167755809 | cpp |
p03838 | #include <iostream>
using namespace std;
int main(void) {
// Your code here!
long long x, y;
cin >> x >> y;
long long ans = 1LL << 60;
//(x,y)=(10,20)
//(x,y)=(10,5)
//(x,y)=(10,-5)
//(x,y)=(10,-20)
//(x,y)=(10,0)
//(x,y)=(-10,20)
//(x,y)=(-10,5)
//(x,y)=(-10,-5)
//(x,y)=(-10,-20)
//(x,y)=(... | #include <iostream>
using namespace std;
int main(void) {
// Your code here!
long long x, y;
cin >> x >> y;
long long ans = 1LL << 60;
//(x,y)=(10,20)
//(x,y)=(10,5)
//(x,y)=(10,-5)
//(x,y)=(10,-20)
//(x,y)=(10,0)
//(x,y)=(-10,20)
//(x,y)=(-10,5)
//(x,y)=(-10,-5)
//(x,y)=(-10,-20)
//(x,y)=(... | [
"assignment.change"
] | 1,458,309 | 1,458,310 | u945452839 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
long long ans = 0;
if (abs(x) == abs(y))
ans = 0 + (x == -y && x != 0) * 1;
else if (x > y) {
ans += abs(abs(x) - abs(y)) - (x >= 0 && y <= 0) + 2;
} else if (x < y) {
ans += abs(abs(y) - abs(x)) + (x < 0 && y !=... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
long long ans = 0;
if (abs(x) == abs(y))
ans = 0 + (x == -y && x != 0) * 1;
else if (x > y) {
ans += abs(abs(x) - abs(y)) - (x >= 0 && y <= 0) + 2;
} else if (x < y) {
ans += abs(abs(y) - abs(x)) + (x < 0 && y > ... | [
"expression.operator.compare.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 1,458,325 | 1,458,326 | u161616073 | cpp |
p03838 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
signed main(void) {
long long x, y, ans;
cin >> x >> y;
ans = abs(abs(y) - abs(x));
if (x * y < 0)
ans += 1;
else if (x > y) {
if (x == 0)
ans += 1;
else
ans += 2;
}
cout << ans << endl;
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
signed main(void) {
long long x, y, ans;
cin >> x >> y;
ans = abs(abs(y) - abs(x));
if (x * y < 0)
ans += 1;
else if (x > y) {
if (x == 0 || y == 0)
ans += 1;
else
ans += 2;
}
cout << ans... | [
"control_flow.branch.if.condition.change"
] | 1,458,327 | 1,458,328 | u890331732 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
int main() {
int a, b;
cin >> a >> b;
if (a == 0 || b == 0) {
if (a + b >= 0) {
cout << abs(b - a) << endl;
} else {
cout << abs(b - a)... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
int main() {
int a, b;
cin >> a >> b;
if (a == 0 || b == 0) {
if (b > a) {
cout << abs(b - a) << endl;
} else {
cout << abs(b - a) + 1 ... | [
"expression.operation.binary.remove",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,336 | 1,458,337 | u387371565 | cpp |
p03838 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int x, y, ans;
int main() {
scanf("%d%d", &x, &y);
int x1 = abs(x), y1 = abs(y);
if (x1 >= y1) {
if (x < 0) {
if (y < 0)
ans = x1 - y1 + 1;
else
ans = x1 - y1;
} else if (y <= 0)
ans = x1 - y1 + 1... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int x, y, ans;
int main() {
scanf("%d%d", &x, &y);
int x1 = abs(x), y1 = abs(y);
if (x1 >= y1) {
if (x < 0) {
if (y > 0)
ans = x1 - y1 + 1;
else
ans = x1 - y1;
} else if (y <= 0)
ans = x1 - y1 + 1... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,338 | 1,458,339 | u353919145 | cpp |
p03838 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int x, y, ans;
int main() {
scanf("%d%d", &x, &y);
int x1 = abs(x), y1 = abs(y);
if (x1 > y1) {
if (x < 0) {
if (y < 0)
ans = x1 - y1 + 1;
else
ans = x1 - y1;
} else if (y <= 0)
ans = x1 - y1 + 1;... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int x, y, ans;
int main() {
scanf("%d%d", &x, &y);
int x1 = abs(x), y1 = abs(y);
if (x1 >= y1) {
if (x < 0) {
if (y > 0)
ans = x1 - y1 + 1;
else
ans = x1 - y1;
} else if (y <= 0)
ans = x1 - y1 + 1... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"misc.opposites"
] | 1,458,340 | 1,458,339 | u353919145 | cpp |
p03838 | // By Don4ick
//#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
typedef long long ll;
typedef long double ld;
typedef unsigned int ui;
#define forn(i, n) for (int i = 1; i <= n; i++)
#define pb push_back
#define all(x) x.begin(), x.end()
#define y1 qewr1234
const double PI = acos(-1.0);
const int DIR = 4;
const int... | // By Don4ick
//#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
typedef long long ll;
typedef long double ld;
typedef unsigned int ui;
#define forn(i, n) for (int i = 1; i <= n; i++)
#define pb push_back
#define all(x) x.begin(), x.end()
#define y1 qewr1234
const double PI = acos(-1.0);
const int DIR = 4;
const int... | [
"expression.operation.unary.add"
] | 1,458,341 | 1,458,342 | u353919145 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
long long ans;
cin >> x >> y;
if (x > 0 && y > 0) {
if (x > y) {
ans = x - y + 2;
} else {
ans = y - x;
}
}
else if (x > 0 && y < 0) {
ans = x + y + 1;
}
else if (x < 0 && y > 0) {
ans = y + x + 1;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
long long ans;
cin >> x >> y;
if (x > 0 && y > 0) {
if (x > y) {
ans = x - y + 2;
} else {
ans = y - x;
}
}
else if (x > 0 && y < 0) {
ans = abs(x + y) + 1;
}
else if (x < 0 && y > 0) {
ans = abs(y ... | [
"call.add",
"call.arguments.change"
] | 1,458,345 | 1,458,346 | u843292252 | cpp |
p03838 | #include <iostream>
#include <sstream>
#include <stdio.h>
//#define _USE_MATH_DEFINES
#include <algorithm>
#include <bitset>
#include <cmath>
#include <ctype.h>
#include <limits>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
typedef long long int ... | #include <iostream>
#include <sstream>
#include <stdio.h>
//#define _USE_MATH_DEFINES
#include <algorithm>
#include <bitset>
#include <cmath>
#include <ctype.h>
#include <limits>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
typedef long long int ... | [
"assignment.change"
] | 1,458,353 | 1,458,354 | u652760628 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define erep(i, n) for (int i = 0; i <= n; i++)
#define rep1(i, n) for (int i = 1; i < n; i++)
#define erep1(i, n) for (int i = 1; i <= n; i++)
typedef long long ll;
#define vint vector<int>
#define vvint vector<vector<int>>
#de... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define erep(i, n) for (int i = 0; i <= n; i++)
#define rep1(i, n) for (int i = 1; i < n; i++)
#define erep1(i, n) for (int i = 1; i <= n; i++)
typedef long long ll;
#define vint vector<int>
#define vvint vector<vector<int>>
#de... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,361 | 1,458,362 | u613960672 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int x, y;
cin >> x >> y;
if (x == y)
cout << "0\n";
else if (x < y)
cout << min(y - x, y + x + 1) << '\n';
else
cout << min(abs(x + y) + 1, x - y + 2) << '\n';
} | #include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int x, y;
cin >> x >> y;
if (x == y)
cout << "0\n";
else if (x < y)
cout << min(y - x, abs(y + x) + 1) << '\n';
else
cout << min(abs(x + y) + 1, x - y + 2) << '\n';
} | [
"call.add",
"call.arguments.change"
] | 1,458,363 | 1,458,364 | u979163294 | cpp |
p03838 | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue... | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue... | [
"control_flow.branch.if.condition.change"
] | 1,458,365 | 1,458,366 | u089230684 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, n, a, b;
cin >> x >> y;
if (y > 0) {
if (x > 0) {
if (y == x) {
cout << 0;
} else if (y > x) {
cout << y - x;
} else {
cout << y - x + 2;
}
} else if (x == 0) {
cout << y;
} else... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, n, a, b;
cin >> x >> y;
if (y > 0) {
if (x > 0) {
if (y == x) {
cout << 0;
} else if (y > x) {
cout << y - x;
} else {
cout << x - y + 2;
}
} else if (x == 0) {
cout << y;
} else... | [
"expression.operation.binary.remove"
] | 1,458,367 | 1,458,368 | u089230684 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
#define MAX 505
#define ll long long
#define pb push_back
#define mk make_pair
#define sc second
#define fr first
#define pii pair<int, int>
const int N = (int)1e4 + 5;
const int INF = (int)1e9 + 7;
int main() {
long long x, y;
cin >> x >> y;
if (x >= 0 && y >= 0)... | #include <bits/stdc++.h>
using namespace std;
#define MAX 505
#define ll long long
#define pb push_back
#define mk make_pair
#define sc second
#define fr first
#define pii pair<int, int>
const int N = (int)1e4 + 5;
const int INF = (int)1e9 + 7;
int main() {
long long x, y;
cin >> x >> y;
if (x > 0 && y > 0) {... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,369 | 1,458,370 | u089230684 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
#define MAX 505
#define ll long long
#define pb push_back
#define mk make_pair
#define sc second
#define fr first
#define pii pair<int, int>
const int N = (int)1e4 + 5;
const int INF = (int)1e9 + 7;
int main() {
long long x, y;
cin >> x >> y;
if (x >= 0 && y >= 0)... | #include <bits/stdc++.h>
using namespace std;
#define MAX 505
#define ll long long
#define pb push_back
#define mk make_pair
#define sc second
#define fr first
#define pii pair<int, int>
const int N = (int)1e4 + 5;
const int INF = (int)1e9 + 7;
int main() {
long long x, y;
cin >> x >> y;
if (x > 0 && y > 0) {... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.number.change",
"io.output.change"
] | 1,458,371 | 1,458,370 | u089230684 | cpp |
p03838 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <utility>
#include <vector>
#define LL long long
#define Rg register
#define RI register int
#define RC register char
#define ed puts(... | /*
Name: A-简单的计算器
Author: RoseKey
Date: 14/02/19 16:51
Description: 模拟
*/
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <utility>
#include <vector>... | [
"control_flow.return.add"
] | 1,458,372 | 1,458,373 | u018679195 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define inf 1001001001
#define mod 1000000007
#define pi 3.141592653589793
ll gcd(ll a, ll b) {
if (b > a)
swap(a, b);
ll r = a % b;
while (r != 0) {
a = b;
b = r;
r = a % b;
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define inf 1001001001
#define mod 1000000007
#define pi 3.141592653589793
ll gcd(ll a, ll b) {
if (b > a)
swap(a, b);
ll r = a % b;
while (r != 0) {
a = b;
b = r;
r = a % b;
... | [
"variable_declaration.type.change",
"call.add",
"call.arguments.change"
] | 1,458,376 | 1,458,375 | u001327021 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const static ll INF = 1e9;
int main() {
ll x, y;
cin >> x >> y;
ll ans = 0;
if (x == 0 || y == 0) {
if (x == 0 && y == 0) {
cout << 0 << endl;
return 0;
}
if (x == 0) {
if (y < 0) {
cout << abs(y) + 1 << e... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const static ll INF = 1e9;
int main() {
ll x, y;
cin >> x >> y;
ll ans = 0;
if (x == 0 || y == 0) {
if (x == 0 && y == 0) {
cout << 0 << endl;
return 0;
}
if (x == 0) {
if (y < 0) {
cout << abs(y) + 1 << e... | [
"call.add",
"call.arguments.change"
] | 1,458,383 | 1,458,384 | u521973174 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vec;
typedef vector<vec> mat;
typedef pair<ll, ll> pll;
const ll mod = 1e9 + 7;
// const ll mod=998244353;
const ll inf = 5e18;
int main() {
ll x, y;
cin >> x >> y;
ll ans = 0;
if (x < 0 && y < 0) {
if (x > y) {
an... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vec;
typedef vector<vec> mat;
typedef pair<ll, ll> pll;
const ll mod = 1e9 + 7;
// const ll mod=998244353;
const ll inf = 5e18;
int main() {
ll x, y;
cin >> x >> y;
ll ans = 0;
if (x < 0 && y < 0) {
if (x > y) {
an... | [
"call.add",
"call.arguments.change"
] | 1,458,385 | 1,458,386 | u718758485 | cpp |
p03838 | #include <iostream>
#include <stdio.h>
//#include <bits/stdc++.h>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <float.h>
#include <iomanip>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#i... | #include <iostream>
#include <stdio.h>
//#include <bits/stdc++.h>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <float.h>
#include <iomanip>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#i... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,398 | 1,458,399 | u516525290 | cpp |
p03838 | #include <iostream>
#include <stdio.h>
//#include <bits/stdc++.h>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <float.h>
#include <iomanip>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#i... | #include <iostream>
#include <stdio.h>
//#include <bits/stdc++.h>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <float.h>
#include <iomanip>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#i... | [
"expression.operator.compare.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",
"assignment.add"
] | 1,458,400 | 1,458,399 | u516525290 | cpp |
p03838 | #include <iostream>
#include <stdio.h>
//#include <bits/stdc++.h>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <float.h>
#include <iomanip>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#i... | #include <iostream>
#include <stdio.h>
//#include <bits/stdc++.h>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <float.h>
#include <iomanip>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#i... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"misc.opposites",
"control_flow.branch.else.remove",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add",
"assignment.add"
] | 1,458,401 | 1,458,399 | u516525290 | cpp |
p03838 | #include <iostream>
#include <vector>
using namespace std;
int main(void) {
long long int x, y;
cin >> x >> y;
if (x > 0 && y > 0) {
long long int ans = abs(y - x);
if (x > y)
ans += 2;
cout << ans << endl;
} else if (x > 0 && y < 0) {
if (x != abs(y))
cout << abs(abs(y) - x) + 1 << ... | #include <iostream>
#include <vector>
using namespace std;
int main(void) {
long long int x, y;
cin >> x >> y;
if (x > 0 && y > 0) {
long long int ans = abs(y - x);
if (x > y)
ans += 2;
cout << ans << endl;
} else if (x > 0 && y < 0) {
if (x != abs(y))
cout << abs(abs(y) - x) + 1 << ... | [
"literal.number.change",
"io.output.change",
"call.add"
] | 1,458,413 | 1,458,414 | u336381735 | cpp |
p03838 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define srep(i, s, t) for (int i = s; i < t; ++i)
#define drep(i, n) for (int i = (n)-1; i >= 0; --i)
using namespace std;
typedef long long int ll;
typedef pair<int, int> P;
#define yn ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define srep(i, s, t) for (int i = s; i < t; ++i)
#define drep(i, n) for (int i = (n)-1; i >= 0; --i)
using namespace std;
typedef long long int ll;
typedef pair<int, int> P;
#define yn ... | [
"literal.number.change",
"variable_declaration.value.change"
] | 1,458,415 | 1,458,416 | u791593901 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define MOD 1000000007
int main() {
int x, y;
cin >> x >> y;
if (x * y < 0) {
cout << abs(abs(x) - abs(y)) + 1 << endl;
} else {
if (0 <= x && x <= y) {
cout << y - x << endl;
} else if (x <= y && y <= 0) {
cout << y - ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define MOD 1000000007
int main() {
ll x, y;
cin >> x >> y;
if (x * y < 0) {
cout << abs(abs(x) - abs(y)) + 1 << endl;
} else {
if (0 <= x && x <= y) {
cout << y - x << endl;
} else if (x <= y && y <= 0) {
cout << y - x... | [
"variable_declaration.type.change",
"identifier.change",
"io.output.change"
] | 1,458,421 | 1,458,420 | u630211216 | cpp |
p03838 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
{
int ans, ax = abs(x), ay = abs(y);
if (ax == ay)
ans = x != y;
if (ax < ay)
ans = ay - ax + (x < 0) + (y < 0);
if (ax > ay)
ans = ax - ay + (x > 0) + (y < 0);
... | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
{
int ans, ax = abs(x), ay = abs(y);
if (ax == ay)
ans = x != y;
if (ax < ay)
ans = ay - ax + (x < 0) + (y < 0);
if (ax > ay)
ans = ax - ay + (x > 0) + (y > 0);
... | [
"misc.opposites",
"expression.operator.compare.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 1,458,428 | 1,458,429 | u624475441 | cpp |
p03838 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define ll long long
int main(void) {... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define ll long long
int main(void) {... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,434 | 1,458,435 | u157195505 | cpp |
p03838 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define ll long long
int main(void) {... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define ll long long
int main(void) {... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove"
] | 1,458,436 | 1,458,435 | u157195505 | cpp |
p03838 | #define _LIBCPP_DEBUG 0
#include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = int(a); i < int(b); i++)
typedef vector<int> vi;
typedef long long ll;
int main() {
ll a, b, MIN = 99999999999;
cin >> a >> b;
if (b - a > 0)
MIN = min(MIN, b - a);
if (b + a > 0)
MIN = min(MIN, b +... | #define _LIBCPP_DEBUG 0
#include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = int(a); i < int(b); i++)
typedef vector<int> vi;
typedef long long ll;
int main() {
ll a, b, MIN = 99999999999;
cin >> a >> b;
if (b - a > 0)
MIN = min(MIN, b - a);
if (b + a >= 0)
MIN = min(MIN, b ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,441 | 1,458,442 | u293156359 | cpp |
p03838 | #pragma gcc optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(V) (V).begin(), (V).end()
#define SORT(V) sort(ALL(V)) //小さい方からソート
#define REV(V) reverse(ALL(V)) //リバース
#define RSORT(V) ... | #pragma gcc optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(V) (V).begin(), (V).end()
#define SORT(V) sort(ALL(V)) //小さい方からソート
#define REV(V) reverse(ALL(V)) //リバース
#define RSORT(V) ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,447 | 1,458,448 | u154645927 | cpp |
p03838 | #pragma gcc optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(V) (V).begin(), (V).end()
#define SORT(V) sort(ALL(V)) //小さい方からソート
#define REV(V) reverse(ALL(V)) //リバース
#define RSORT(V) ... | #pragma gcc optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(V) (V).begin(), (V).end()
#define SORT(V) sort(ALL(V)) //小さい方からソート
#define REV(V) reverse(ALL(V)) //リバース
#define RSORT(V) ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,449 | 1,458,448 | u154645927 | cpp |
p03838 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep1(i, n) for (int i = 1; i < (n); ++i)
using namespace std;
typedef long long ll;
const ll INF = 1LL << 60;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int x, y;
cin >> x >> y;
int res;
if (x < y) {
if ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep1(i, n) for (int i = 1; i < (n); ++i)
using namespace std;
typedef long long ll;
const ll INF = 1LL << 60;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int x, y;
cin >> x >> y;
int res;
if (x < y) {
if ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,450 | 1,458,451 | u374051158 | cpp |
p03838 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep1(i, n) for (int i = 1; i < (n); ++i)
using namespace std;
typedef long long ll;
const ll INF = 1LL << 60;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int x, y;
cin >> x >> y;
int res;
if (x < y) {
if ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep1(i, n) for (int i = 1; i < (n); ++i)
using namespace std;
typedef long long ll;
const ll INF = 1LL << 60;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int x, y;
cin >> x >> y;
int res;
if (x < y) {
if ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,452 | 1,458,451 | u374051158 | cpp |
p03838 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep1(i, n) for (int i = 1; i < (n); ++i)
using namespace std;
typedef long long ll;
const ll INF = 1LL << 60;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int x, y;
cin >> x >> y;
int res;
if (x < y) {
if ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep1(i, n) for (int i = 1; i < (n); ++i)
using namespace std;
typedef long long ll;
const ll INF = 1LL << 60;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int x, y;
cin >> x >> y;
int res;
if (x < y) {
if ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,453 | 1,458,451 | u374051158 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
int main() {
long x, y;
cin >> x >> y;
long sub, ans = 2000000000;
for (int i = 0; i < 2; i++) {
for (int j = 0; j < 2; j++) {
if (x * pow(-1, i) <= y * pow(-1, i)) {
sub = 0;
if (x != x * pow(-1, i))
sub++;
if (y != y * p... | #include <bits/stdc++.h>
using namespace std;
int main() {
long x, y;
cin >> x >> y;
long sub, ans = 2000000000;
for (int i = 0; i < 2; i++) {
for (int j = 0; j < 2; j++) {
if (x * pow(-1, i) <= y * pow(-1, j)) {
sub = 0;
if (x != x * pow(-1, i))
sub++;
if (y != y * p... | [
"identifier.change",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 1,458,458 | 1,458,459 | u239087789 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; ++i)
#define all(x) (x).begin(), (x).end()
typedef long long ll;
typedef pair<int, int> P;
typedef map<int, int> mp;
const int MOD = 1e9 + 7;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; ++i)
#define all(x) (x).begin(), (x).end()
typedef long long ll;
typedef pair<int, int> P;
typedef map<int, int> mp;
const int MOD = 1e9 + 7;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,460 | 1,458,461 | u358859892 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; ++i)
#define all(x) (x).begin(), (x).end()
typedef long long ll;
typedef pair<int, int> P;
typedef map<int, int> mp;
const int MOD = 1e9 + 7;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; ++i)
#define all(x) (x).begin(), (x).end()
typedef long long ll;
typedef pair<int, int> P;
typedef map<int, int> mp;
const int MOD = 1e9 + 7;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,462 | 1,458,461 | u358859892 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; ++i)
#define all(x) (x).begin(), (x).end()
typedef long long ll;
typedef pair<int, int> P;
typedef map<int, int> mp;
const int MOD = 1e9 + 7;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; ++i)
#define all(x) (x).begin(), (x).end()
typedef long long ll;
typedef pair<int, int> P;
typedef map<int, int> mp;
const int MOD = 1e9 + 7;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,463 | 1,458,461 | u358859892 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; ++i)
#define all(x) (x).begin(), (x).end()
typedef long long ll;
typedef pair<int, int> P;
typedef map<int, int> mp;
const int MOD = 1e9 + 7;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; ++i)
#define all(x) (x).begin(), (x).end()
typedef long long ll;
typedef pair<int, int> P;
typedef map<int, int> mp;
const int MOD = 1e9 + 7;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,464 | 1,458,461 | u358859892 | cpp |
p03838 | #include <bits/stdc++.h>
#define pb push_back
#define eb emplace_back
#define fi first
#define se second
#define rep(i, N) for (long long i = 0; i < (long long)(N); i++)
#define repr(i, N) for (long long i = (long long)(N)-1; i >= 0; i--)
#define rep1(i, N) for (long long i = 1; i <= (long long)(N); i++)
#define repr1(... | #include <bits/stdc++.h>
#define pb push_back
#define eb emplace_back
#define fi first
#define se second
#define rep(i, N) for (long long i = 0; i < (long long)(N); i++)
#define repr(i, N) for (long long i = (long long)(N)-1; i >= 0; i--)
#define rep1(i, N) for (long long i = 1; i <= (long long)(N); i++)
#define repr1(... | [
"call.add",
"assignment.value.change",
"expression.operation.binary.change"
] | 1,458,481 | 1,458,482 | u168578024 | cpp |
p03838 | #include <bits/stdc++.h>
#define fi first
#define se second
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define drep(i, n) for (int i = (n)-1; i >= 0; --i)
#define srep(i, s, t) for (int i = s; i < t; ++i)
#define rng(a) a.begin(), a.end()
#define sz(x) (int)(x).size()
#define uni(x) x.erase(unique(rng(x)), x.end()... | #include <bits/stdc++.h>
#define fi first
#define se second
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define drep(i, n) for (int i = (n)-1; i >= 0; --i)
#define srep(i, s, t) for (int i = s; i < t; ++i)
#define rng(a) a.begin(), a.end()
#define sz(x) (int)(x).size()
#define uni(x) x.erase(unique(rng(x)), x.end()... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"misc.opposites",
"expression.operator.arithmetic.change",
"io.output.change"
] | 1,458,485 | 1,458,484 | u340293807 | cpp |
p03838 | // IOI 2021
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define ff first
#define ss second
typedef long long ll;
typedef pair<int, int> pii;
const int MAXN = 100 * 1000 + 17;
ll x, y, ans = 3e9;
int main() {
ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
cin >> x >> y;
if (... | // IOI 2021
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define ff first
#define ss second
typedef long long ll;
typedef pair<int, int> pii;
const int MAXN = 100 * 1000 + 17;
ll x, y, ans = 3e9;
int main() {
ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
cin >> x >> y;
if (... | [
"misc.opposites",
"expression.operator.compare.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 1,458,486 | 1,458,487 | u535425458 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
int x, y;
int main() {
scanf("%d %d", &x, &y);
int dif = abs(y) - abs(x);
if (x + dif == y)
printf("%d\n", dif);
else if (-x + dif == y)
printf("%d\n", dif + 1);
else if (-(x + dif) == y)
printf("%d\n", dif + 1);
else if (-(-x + dif) == y)
prin... | #include <bits/stdc++.h>
using namespace std;
int x, y;
int main() {
scanf("%d %d", &x, &y);
int dif = abs(abs(x) - abs(y));
if (x + dif == y)
printf("%d\n", dif);
else if (-x + dif == y)
printf("%d\n", dif + 1);
else if (-(x + dif) == y)
printf("%d\n", dif + 1);
else if (-(-x + dif) == y)
... | [
"expression.operation.binary.remove",
"call.arguments.add"
] | 1,458,488 | 1,458,489 | u055221623 | cpp |
p03838 | #include <algorithm>
#include <bitset>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
using vll = vector<long lo... | #include <algorithm>
#include <bitset>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
using vll = vector<long lo... | [
"call.add",
"call.arguments.change"
] | 1,458,490 | 1,458,491 | u757628628 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, y;
cin >> x >> y;
if (x >= 0) {
if (-x < y && y < x)
x = (y > 0 ? -y + x + 2 : y + x + 1); //
else if (x < y)
x = y - x; //
else if (x > x)
x = -y - x + 1; //
else if (x == -y)
x = 1; //
} else {
... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, y;
cin >> x >> y;
if (x >= 0) {
if (-x < y && y < x)
x = (y > 0 ? -y + x + 2 : y + x + 1); //
else if (x < y)
x = y - x; //
else if (x > y)
x = -y - x + 1; //
else if (x == -y)
x = 1; //
} else {
... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,458,501 | 1,458,502 | u533749093 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define INF 1000000010
#define EPS 1e-9
#define fst first
#define scd second
#define debug(x) cout << x << endl;
#define repi(i, x, n) for (int i = x; i < n; i++)
#define rep(i, n) repi(i, 0, n)
#define lp(i, n) repi(i, 0, n)
#define repn(i, n) for (... | #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define INF 1000000010
#define EPS 1e-9
#define fst first
#define scd second
#define debug(x) cout << x << endl;
#define repi(i, x, n) for (int i = x; i < n; i++)
#define rep(i, n) repi(i, 0, n)
#define lp(i, n) repi(i, 0, n)
#define repn(i, n) for (... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,505 | 1,458,504 | u386769326 | cpp |
p03838 | // B
#include <bits/stdc++.h>
using ll = long long;
using namespace std;
ll mod = 1e9 + 7;
#define pa(x, n) \
for (ll i = 0; i < n; i++) { \
cout << (x[i]) << " \n"[i == n - 1]; ... | // B
#include <bits/stdc++.h>
using ll = long long;
using namespace std;
ll mod = 1e9 + 7;
#define pa(x, n) \
for (ll i = 0; i < n; i++) { \
cout << (x[i]) << " \n"[i == n - 1]; ... | [
"control_flow.branch.else.add",
"assignment.add"
] | 1,458,506 | 1,458,507 | u991846372 | cpp |
p03838 | // B
#include <bits/stdc++.h>
using ll = long long;
using namespace std;
ll mod = 1e9 + 7;
#define pa(x, n) \
for (ll i = 0; i < n; i++) { \
cout << (x[i]) << " \n"[i == n - 1]; ... | // B
#include <bits/stdc++.h>
using ll = long long;
using namespace std;
ll mod = 1e9 + 7;
#define pa(x, n) \
for (ll i = 0; i < n; i++) { \
cout << (x[i]) << " \n"[i == n - 1]; ... | [
"control_flow.branch.else.add",
"assignment.add"
] | 1,458,508 | 1,458,507 | u991846372 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, ans = 0;
cin >> x >> y;
ans += abs(abs(y) - abs(x));
if (x > 0 && y > 0) {
if (x > y)
ans += 2;
}
if (x < 0 && y < 0) {
if (x > y)
ans += 2;
}
if (x < 0 && y > 0)
ans++;
if (x >= 0 && y <= 0) {
if (x != 0 ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, ans = 0;
cin >> x >> y;
ans += abs(abs(y) - abs(x));
if (x > 0 && y > 0) {
if (x > y)
ans += 2;
}
if (x < 0 && y < 0) {
if (x > y)
ans += 2;
}
if (x < 0 && y > 0)
ans++;
if (x >= 0 && y <= 0) {
if (x != 0 ... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 1,458,517 | 1,458,518 | u071282706 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll x, y;
int main() {
cin >> x >> y;
ll a, b, c, d;
a = b = c = LLONG_MAX;
if (x <= y)
a = y - x;
if (-x <= y)
b = y - (-x) + 1;
if (x <= -y)
c = (-y) - x + 1;
if (-x <= -y)
d = (-y) - (-x) + 2;
cout << min(min(a, b)... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll x, y;
int main() {
cin >> x >> y;
ll a, b, c, d;
a = b = c = d = INT_MAX;
if (x <= y)
a = y - x;
if (-x <= y)
b = y - (-x) + 1;
if (x <= -y)
c = (-y) - x + 1;
if (-x <= -y)
d = (-y) - (-x) + 2;
cout << min(min(a, ... | [
"assignment.variable.change",
"identifier.change",
"assignment.change"
] | 1,458,519 | 1,458,520 | u138301572 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
struct Edge {
int to; // 辺の行き先
int weight; // 辺の重み
Edge(int t, int w) : to(t), weight(w) {}
};
using Graph = vector<vector<int>>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define reprep(i, j, h, w) rep(i, h) rep(j, w)
#define rrep(i, m, n) for (int i =... | #include <bits/stdc++.h>
using namespace std;
struct Edge {
int to; // 辺の行き先
int weight; // 辺の重み
Edge(int t, int w) : to(t), weight(w) {}
};
using Graph = vector<vector<int>>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define reprep(i, j, h, w) rep(i, h) rep(j, w)
#define rrep(i, m, n) for (int i =... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,521 | 1,458,522 | u539011156 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
int main() {
long x, y;
cin >> x >> y;
if (x == y) {
cout << 0 << endl;
}
if (x < 0 && y < 0) {
if (x > y) {
cout << abs(y - x) + 2 << endl;
} else if (x < y) {
cout << abs(x - y) << endl;
}
}
if (x > 0 && y > 0) {
if (x > y) {... | #include <bits/stdc++.h>
using namespace std;
int main() {
long x, y;
cin >> x >> y;
if (x == y) {
cout << 0 << endl;
}
if (x < 0 && y < 0) {
if (x > y) {
cout << abs(y - x) + 2 << endl;
} else if (x < y) {
cout << abs(x - y) << endl;
}
}
if (x > 0 && y > 0) {
if (x > y) {... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove"
] | 1,458,527 | 1,458,528 | u990037841 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
int main() {
long x, y;
cin >> x >> y;
if (x == y) {
cout << 0 << endl;
}
if (x < 0 && y < 0) {
if (x > y) {
cout << abs(y - x) + 2 << endl;
} else if (x < y) {
cout << abs(x - y) << endl;
}
}
if (x > 0 && y > 0) {
if (x > y) {... | #include <bits/stdc++.h>
using namespace std;
int main() {
long x, y;
cin >> x >> y;
if (x == y) {
cout << 0 << endl;
}
if (x < 0 && y < 0) {
if (x > y) {
cout << abs(y - x) + 2 << endl;
} else if (x < y) {
cout << abs(x - y) << endl;
}
}
if (x > 0 && y > 0) {
if (x > y) {... | [
"expression.operation.binary.remove"
] | 1,458,529 | 1,458,528 | u990037841 | cpp |
p03838 | #include <iostream>
using namespace std;
int main() {
long long x, y;
cin >> x >> y;
if (abs(x) < abs(y)) {
if (0 <= x && x <= y) {
cout << y - x << endl;
} else if (0 <= x && y <= 0) {
cout << abs(y) - x + 1 << endl;
} else if (x <= 0 && 0 <= y) {
cout << y - abs(x) + 1 << endl;
... | #include <iostream>
using namespace std;
int main() {
long long x, y;
cin >> x >> y;
if (abs(x) < abs(y)) {
if (0 <= x && x <= y) {
cout << y - x << endl;
} else if (0 <= x && y <= 0) {
cout << abs(y) - x + 1 << endl;
} else if (x <= 0 && 0 <= y) {
cout << y - abs(x) + 1 << endl;
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,534 | 1,458,533 | u629133942 | cpp |
p03838 | #include <iostream>
using namespace std;
int main() {
long long x, y;
cin >> x >> y;
if (abs(x) < abs(y)) {
if (0 <= x && x <= y) {
cout << y - x << endl;
} else if (0 <= x && y <= 0) {
cout << abs(y) - x + 1 << endl;
} else if (x <= 0 && 0 <= y) {
cout << y - abs(x) + 1 << endl;
... | #include <iostream>
using namespace std;
int main() {
long long x, y;
cin >> x >> y;
if (abs(x) < abs(y)) {
if (0 <= x && x <= y) {
cout << y - x << endl;
} else if (0 <= x && y <= 0) {
cout << abs(y) - x + 1 << endl;
} else if (x <= 0 && 0 <= y) {
cout << y - abs(x) + 1 << endl;
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,536 | 1,458,533 | u629133942 | cpp |
p03838 | #include <bits/stdc++.h>
#include <cmath>
#include <numeric>
using namespace std;
#define rep(i, a, b) for (int64_t i = (a); i < (b); ++i) // a ≦ i < b
#define Rrep(i, a, b) \
for (int64_t i = (a); i >= (b); --i) // reverse repeat. a から b まで減少.
#define ALL(a) (... | #include <bits/stdc++.h>
#include <cmath>
#include <numeric>
using namespace std;
#define rep(i, a, b) for (int64_t i = (a); i < (b); ++i) // a ≦ i < b
#define Rrep(i, a, b) \
for (int64_t i = (a); i >= (b); --i) // reverse repeat. a から b まで減少.
#define ALL(a) (... | [
"expression.operation.binary.add"
] | 1,458,543 | 1,458,544 | u421426760 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, N) for (int i = 0; i < N; i++)
typedef long long ll;
int main() {
ll x, y;
cin >> x >> y;
if (x == y) {
cout << 0 << endl;
return 0;
}
if (x == 0) {
if (y < 0) {
cout << -y + 1LL << endl;
return 0;
} else {
cout ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, N) for (int i = 0; i < N; i++)
typedef long long ll;
int main() {
ll x, y;
cin >> x >> y;
if (x == y) {
cout << 0 << endl;
return 0;
}
if (x == 0) {
if (y < 0) {
cout << -y + 1LL << endl;
return 0;
} else {
cout ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,564 | 1,458,565 | u343935874 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)n; i++)
typedef long long ll;
int main() {
cin.tie(0);
ios::sync_with_stdio(0);
ll x, y;
cin >> x >> y;
ll ans = 1e12;
if (y - x >= 0) {
ans = min(ans, y - x);
}
if (y + x >= 0) {
ans = min(ans, y + x + ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)n; i++)
typedef long long ll;
int main() {
cin.tie(0);
ios::sync_with_stdio(0);
ll x, y;
cin >> x >> y;
ll ans = 1e12;
if (y - x >= 0) {
ans = min(ans, y - x);
}
if (y + x >= 0) {
ans = min(ans, y + x + ... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 1,458,566 | 1,458,567 | u862412671 | cpp |
p03838 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)n; i++)
typedef long long ll;
int main() {
cin.tie(0);
ios::sync_with_stdio(0);
int x, y;
cin >> x >> y;
int ans = 1e9;
if (y - x >= 0) {
ans = min(ans, y - x);
}
if (y + x >= 0) {
ans = min(ans, y + x +... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)n; i++)
typedef long long ll;
int main() {
cin.tie(0);
ios::sync_with_stdio(0);
ll x, y;
cin >> x >> y;
ll ans = 1e12;
if (y - x >= 0) {
ans = min(ans, y - x);
}
if (y + x >= 0) {
ans = min(ans, y + x + ... | [
"variable_declaration.type.change",
"literal.number.change",
"variable_declaration.value.change",
"misc.opposites",
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 1,458,568 | 1,458,567 | u862412671 | cpp |
p03838 | #include <bits/stdc++.h>
#define pb push_back
#define fr first
#define sc second
#define all(x) x.begin(), x.end()
#define skip continue
#define NAME "code"
using namespace std;
typedef long long ll;
typedef long double ld;
void faster() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
}
con... | #include <bits/stdc++.h>
#define pb push_back
#define fr first
#define sc second
#define all(x) x.begin(), x.end()
#define skip continue
#define NAME "code"
using namespace std;
typedef long long ll;
typedef long double ld;
void faster() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
}
con... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,458,573 | 1,458,574 | u801721993 | cpp |
p03838 | #include <bits/stdc++.h>
#define r(i, n) for (long long i = 0; i < n; i++)
typedef long long ll;
using namespace std;
int main() {
ll x, y;
cin >> x >> y;
if (x == y)
cout << 0 << endl;
else if (y > 0) {
if (x > y)
cout << x - y + 2 << endl;
else if (x < 0 && abs(x) <= y)
cout << x + y ... | #include <bits/stdc++.h>
#define r(i, n) for (long long i = 0; i < n; i++)
typedef long long ll;
using namespace std;
int main() {
ll x, y;
cin >> x >> y;
if (x == y)
cout << 0 << endl;
else if (y > 0) {
if (x > y)
cout << x - y + 2 << endl;
else if (x < 0 && abs(x) <= y)
cout << x + y ... | [
"call.add",
"call.arguments.change"
] | 1,458,587 | 1,458,588 | u192280767 | cpp |
p03838 | #include <bits/stdc++.h>
#define r(i, n) for (long long i = 0; i < n; i++)
typedef long long ll;
using namespace std;
int main() {
ll x, y;
cin >> x >> y;
if (x == y)
cout << 0 << endl;
else if (y > 0) {
if (x > y)
cout << x - y + 2 << endl;
else if (x < 0 && abs(x) <= y)
cout << x + y ... | #include <bits/stdc++.h>
#define r(i, n) for (long long i = 0; i < n; i++)
typedef long long ll;
using namespace std;
int main() {
ll x, y;
cin >> x >> y;
if (x == y)
cout << 0 << endl;
else if (y > 0) {
if (x > y)
cout << x - y + 2 << endl;
else if (x < 0 && abs(x) <= y)
cout << x + y ... | [
"call.add",
"call.arguments.change",
"literal.number.change",
"io.output.change"
] | 1,458,589 | 1,458,588 | u192280767 | cpp |
p03838 | #include <bits/stdc++.h>
#define r(i, n) for (long long i = 0; i < n; i++)
typedef long long ll;
using namespace std;
int main() {
ll x, y;
cin >> x >> y;
if (x == y)
cout << 0 << endl;
else if (y > 0) {
if (x > y)
cout << x + y + 1 << endl;
else if (x < 0 && abs(x) <= y)
cout << x + y ... | #include <bits/stdc++.h>
#define r(i, n) for (long long i = 0; i < n; i++)
typedef long long ll;
using namespace std;
int main() {
ll x, y;
cin >> x >> y;
if (x == y)
cout << 0 << endl;
else if (y > 0) {
if (x > y)
cout << x - y + 2 << endl;
else if (x < 0 && abs(x) <= y)
cout << x + y ... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"io.output.change",
"literal.number.change",
"call.add",
"call.arguments.change"
] | 1,458,590 | 1,458,588 | u192280767 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.