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 |
|---|---|---|---|---|---|---|---|
p03861 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using P = pair<int, int>;
int main() {
ll a, b, x;
cin >> a >> b >> x;
ll ans_a = (a - x + 1) / x + 1;
ll ans_b = b / x + 1;
if (a == 0)
ans_a = 0;
if (b == 0)
ans_b = 0;
cout << a... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using P = pair<int, int>;
int main() {
ll a, b, x;
cin >> a >> b >> x;
ll ans_a = (a - 1) / x + 1;
ll ans_b = b / x + 1;
if (a == 0)
ans_a = 0;
if (b == 0)
ans_b = 1;
cout << ans_b... | [
"expression.operation.binary.remove",
"literal.number.change",
"assignment.value.change"
] | 1,470,988 | 1,470,987 | u435019079 | cpp |
p03861 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(ri, n) for (int ri = (int)(n - 1); ri >= 0; ri--)
#define rep2(i, x, n) for (int i = (int)(x); i < (int)(n); i++)
#define rrep2(ri, x, n) for (int ri = (int)(n - 1); ri >= (int)(x); ri--)
#define repit(itr, x) for (auto itr = x.b... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(ri, n) for (int ri = (int)(n - 1); ri >= 0; ri--)
#define rep2(i, x, n) for (int i = (int)(x); i < (int)(n); i++)
#define rrep2(ri, x, n) for (int ri = (int)(n - 1); ri >= (int)(x); ri--)
#define repit(itr, x) for (auto itr = x.b... | [
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add",
"expression.unary.arithmetic.add"
] | 1,471,000 | 1,471,001 | u617826263 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll mod = 1e9 + 7;
const long long INF = 1e15;
int main() {
ll a, b;
cin >> a >> b;
ll x;
cin >> x;
a--;
if (b == 0)
cout << 1 << endl;
else if (a == 0)
cout << b / x + 1 << endl;
else
cout << b / x - a / x << endl;
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll mod = 1e9 + 7;
const long long INF = 1e15;
int main() {
ll a, b;
cin >> a >> b;
ll x;
cin >> x;
a--;
if (b == 0)
cout << 1 << endl;
else if (a == -1)
cout << b / x + 1 << endl;
else
cout << b / x - a / x << endl;
... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 1,471,004 | 1,471,005 | u191484928 | cpp |
p03861 | #include <iostream>
#include <string>
using namespace std;
int main() {
long int a, b, x;
cin >> a >> b >> x;
if (a != 0) {
cout << (b / x) - ((a - 1) / x) << endl;
} else {
cout << (b / x) << endl;
}
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
long int a, b, x;
cin >> a >> b >> x;
if (a != 0) {
cout << (b / x) - ((a - 1) / x) << endl;
} else {
cout << ((b / x) + 1) << endl;
}
return 0;
} | [] | 1,471,015 | 1,471,016 | u851745087 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int a, b, x;
cin >> a >> b >> x;
int count;
if (a == 0)
count = b / x + 1;
else
count = b / x - (a - 1) / x;
cout << count << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ll a, b, x;
cin >> a >> b >> x;
ll count;
if (a == 0)
count = b / x + 1;
else
count = b / x - (a - 1) / x;
cout << count << endl;
return 0;
} | [
"variable_declaration.type.change"
] | 1,471,017 | 1,471,018 | u459965464 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int a, b, x;
cin >> a >> b >> x;
int count;
if (a == 0)
count = b / x;
else
count = b / x - (a - 1) / x;
cout << count << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ll a, b, x;
cin >> a >> b >> x;
ll count;
if (a == 0)
count = b / x + 1;
else
count = b / x - (a - 1) / x;
cout << count << endl;
return 0;
} | [
"variable_declaration.type.change",
"assignment.change"
] | 1,471,019 | 1,471,018 | u459965464 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (ll i = 0; i < ll(n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= ll(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= ll(b); i--)
#define FORA(i, I) for (const auto &i : I)
#... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (ll i = 0; i < ll(n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= ll(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= ll(b); i--)
#define FORA(i, I) for (const auto &i : I)
#... | [
"assignment.change"
] | 1,471,020 | 1,471,021 | u055095475 | cpp |
p03861 | #ifdef LOCAL
//#define _GLIBCXX_DEBUG
#endif
//#pragma GCC target("avx512f,avx512dq,avx512cd,avx512bw,avx512vl")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
typedef pair<int, int> Pi;
typedef vector<ll> Ve... | #ifdef LOCAL
//#define _GLIBCXX_DEBUG
#endif
//#pragma GCC target("avx512f,avx512dq,avx512cd,avx512bw,avx512vl")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
typedef pair<int, int> Pi;
typedef vector<ll> Ve... | [
"expression.operation.binary.add"
] | 1,471,022 | 1,471,023 | u592686932 | cpp |
p03861 | #pragma region header
#include <bits/stdc++.h>
#define int long long
#define all(a) begin(a), end(a)
#define rall(a) rbegin(a), rend(a)
#define mp make_pair
#define mt make_tuple
#define rep1(i, n) for (decltype(+n) i = 0; i < (n); i++)
#define rrep1(i, n) for (auto i = n - 1; i > static_cast<decltype(i)>(-1); i--)
#de... | #pragma region header
#include <bits/stdc++.h>
#define int long long
#define all(a) begin(a), end(a)
#define rall(a) rbegin(a), rend(a)
#define mp make_pair
#define mt make_tuple
#define rep1(i, n) for (decltype(+n) i = 0; i < (n); i++)
#define rrep1(i, n) for (auto i = n - 1; i > static_cast<decltype(i)>(-1); i--)
#de... | [
"expression.operation.binary.add"
] | 1,471,029 | 1,471,030 | u048773461 | cpp |
p03861 | //
// じょえチャンネル
// 高評価・チャンネル登録よろしくお願いします!
// https://www.youtube.com/watch?v=gPFr7q7eLL8
//
/*------------------------------------
∧_∧
∧_∧ (´<_` )
( ´_ゝ`) / ⌒i
/ \ | |
/ / ̄ ̄ ̄ ̄/ |
__(__ニつ/ _/ .| .|____
\/____/ (u ⊃
-------------------------------------*/
#include <alg... | //
// じょえチャンネル
// 高評価・チャンネル登録よろしくお願いします!
// https://www.youtube.com/watch?v=gPFr7q7eLL8
//
/*------------------------------------
∧_∧
∧_∧ (´<_` )
( ´_ゝ`) / ⌒i
/ \ | |
/ / ̄ ̄ ̄ ̄/ |
__(__ニつ/ _/ .| .|____
\/____/ (u ⊃
-------------------------------------*/
#include <alg... | [
"expression.operation.binary.add"
] | 1,471,031 | 1,471,032 | u409872261 | cpp |
p03861 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string.h>
#include <string>
using namespace std;
void b_beetween_a_and_b(void) {
long int a, b, x;
cin >> a >> b >> x;
long int cnt = 0;
long int div_a;
long int div_b = b / x;
if (a == 0)
div_b += 1;
else {
div_a = (a - 1) / x;... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string.h>
#include <string>
using namespace std;
void b_beetween_a_and_b(void) {
long int a, b, x;
cin >> a >> b >> x;
long int cnt = 0;
long int div_a = 0;
long int div_b = b / x;
if (a == 0)
div_b += 1;
else {
div_a = (a - 1) ... | [
"variable_declaration.value.change"
] | 1,471,047 | 1,471,048 | u635435492 | cpp |
p03861 | #include <algorithm> //sort,二分探索,など
#include <bitset> //固定長bit集合
#include <cmath> //pow,logなど
#include <complex> //複素数
#include <deque> //両端アクセスのキュー
#include <functional> //sortのgreater
#include <iomanip> //setprecision(浮動小数点の出力の誤差)
#include <iostream> //入出力
#include <iter... | #include <algorithm> //sort,二分探索,など
#include <bitset> //固定長bit集合
#include <cmath> //pow,logなど
#include <complex> //複素数
#include <deque> //両端アクセスのキュー
#include <functional> //sortのgreater
#include <iomanip> //setprecision(浮動小数点の出力の誤差)
#include <iostream> //入出力
#include <iter... | [
"assignment.change"
] | 1,471,053 | 1,471,054 | u876160558 | cpp |
p03861 | #include <algorithm> //sort,二分探索,など
#include <bitset> //固定長bit集合
#include <cmath> //pow,logなど
#include <complex> //複素数
#include <deque> //両端アクセスのキュー
#include <functional> //sortのgreater
#include <iomanip> //setprecision(浮動小数点の出力の誤差)
#include <iostream> //入出力
#include <iter... | #include <algorithm> //sort,二分探索,など
#include <bitset> //固定長bit集合
#include <cmath> //pow,logなど
#include <complex> //複素数
#include <deque> //両端アクセスのキュー
#include <functional> //sortのgreater
#include <iomanip> //setprecision(浮動小数点の出力の誤差)
#include <iostream> //入出力
#include <iter... | [
"control_flow.branch.else.add"
] | 1,471,055 | 1,471,054 | u876160558 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t a, b, x;
cin >> a >> b >> x;
if (a != 0) {
cout << b / x - (a - 1) / x << endl;
} else {
cout << b / x << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t a, b, x;
cin >> a >> b >> x;
if (a != 0) {
cout << b / x - (a - 1) / x << endl;
} else {
cout << b / x + 1 << endl;
}
} | [
"expression.operation.binary.add"
] | 1,471,064 | 1,471,065 | u244626757 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)n; ++i)
#define FOR(i, a, b) for (int i = a; i < (int)b; ++i)
#define rrep(i, n) for (int i = ((int)n - 1); i >= 0; --i)
using ll = long long;
using ld = long double;
const ll INF = 1e18;
const int Inf = 1e9;
const double EPS =... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)n; ++i)
#define FOR(i, a, b) for (int i = a; i < (int)b; ++i)
#define rrep(i, n) for (int i = ((int)n - 1); i >= 0; --i)
using ll = long long;
using ld = long double;
const ll INF = 1e18;
const int Inf = 1e9;
const double EPS =... | [
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add"
] | 1,471,066 | 1,471,067 | u940569542 | cpp |
p03861 | #include <bits/stdc++.h>
#define rep(i, N) for (int i = 0; i < (N); i++)
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
using namespace std;
const long long MOD = 1e9 + 7;
const long long INF = 1e12;
const int inf = 1e9;
const int mod = 1e9 + 7;
typedef long long ll;
typedef pair<ll, int> P;
typedef set<int> S;
... | #include <bits/stdc++.h>
#define rep(i, N) for (int i = 0; i < (N); i++)
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
using namespace std;
const long long MOD = 1e9 + 7;
const long long INF = 1e12;
const int inf = 1e9;
const int mod = 1e9 + 7;
typedef long long ll;
typedef pair<ll, int> P;
typedef set<int> S;
... | [
"control_flow.branch.if.condition.change",
"literal.number.change",
"function.return_value.change"
] | 1,471,070 | 1,471,071 | u418810472 | cpp |
p03861 | #include <bits/stdc++.h>
#define rep(i, N) for (int i = 0; i < (N); i++)
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
using namespace std;
const long long MOD = 1e9 + 7;
const long long INF = 1e12;
const int inf = 1e9;
const int mod = 1e9 + 7;
typedef long long ll;
typedef pair<ll, int> P;
typedef set<int> S;
... | #include <bits/stdc++.h>
#define rep(i, N) for (int i = 0; i < (N); i++)
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
using namespace std;
const long long MOD = 1e9 + 7;
const long long INF = 1e12;
const int inf = 1e9;
const int mod = 1e9 + 7;
typedef long long ll;
typedef pair<ll, int> P;
typedef set<int> S;
... | [
"literal.number.change",
"control_flow.branch.if.condition.change",
"function.return_value.change"
] | 1,471,072 | 1,471,071 | u418810472 | cpp |
p03861 | #include <bits/stdc++.h>
#define F first
#define S second
#define MP make_pair
#define pb push_back
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define LCM(a, b) (a) / __gcd((a), (b)) * (b)
#define CEIL(a, b) (a) / (b) + (((a) % (b)) ? 1 : 0)
#define ln '\n'
using namespace std;
using LL = ... | #include <bits/stdc++.h>
#define F first
#define S second
#define MP make_pair
#define pb push_back
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define LCM(a, b) (a) / __gcd((a), (b)) * (b)
#define CEIL(a, b) (a) / (b) + (((a) % (b)) ? 1 : 0)
#define ln '\n'
using namespace std;
using LL = ... | [
"expression.operation.binary.add"
] | 1,471,075 | 1,471,076 | u254187258 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, x;
cin >> a >> b >> x;
if (a == 0) {
cout << b / x << endl;
} else {
cout << b / x - (a - 1) / x << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, x;
cin >> a >> b >> x;
if (a == 0) {
cout << b / x + 1 << endl;
} else {
cout << b / x - (a - 1) / x << endl;
}
}
| [
"expression.operation.binary.add"
] | 1,471,096 | 1,471,097 | u237390401 | cpp |
p03861 | #include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
typedef long long ll;
using P = pair<ll, ll>;
templa... | #include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
typedef long long ll;
using P = pair<ll, ll>;
templa... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,471,104 | 1,471,105 | u952081880 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll a, b, x, ans;
cin >> a >> b >> x;
if (a == 0)
ans = b / x;
else
ans = b / x - (a - 1) / x;
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll a, b, x, ans;
cin >> a >> b >> x;
if (a == 0)
ans = b / x + 1;
else
ans = b / x - (a - 1) / x;
cout << ans << endl;
} | [
"assignment.change"
] | 1,471,117 | 1,471,118 | u050087249 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, x;
cin >> a >> b >> x;
if (a != 0)
cout << b / x - (a - 1) / x << endl;
else
cout << b / x << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, x;
cin >> a >> b >> x;
if (a != 0)
cout << b / x - (a - 1) / x << endl;
else
cout << b / x + 1 << endl;
} | [
"expression.operation.binary.add"
] | 1,471,119 | 1,471,120 | u877494916 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
long int cal(long int n, long int x) {
if (n == 1)
return 0;
else
return n / x + 1;
}
int main(void) {
long int a, b, x;
cin >> a >> b >> x;
cout << cal(b, x) - cal(a - 1, x) << endl;
}
| #include <bits/stdc++.h>
using namespace std;
long int cal(long int n, long int x) {
if (n == -1)
return 0;
else
return n / x + 1;
}
int main(void) {
long int a, b, x;
cin >> a >> b >> x;
cout << cal(b, x) - cal(a - 1, x) << endl;
}
| [
"control_flow.branch.if.condition.change"
] | 1,471,125 | 1,471,126 | u043707543 | cpp |
p03861 | #include <bits/stdc++.h>
#define PI 3.141592653589
#define ll long long
using namespace std;
int main() {
ll a, b, x;
cin >> a >> b >> x;
if (a == 1) {
cout << b / x;
return 0;
}
ll ans = (b / x) - (a - 1) / x;
cout << ans;
return 0;
} | #include <bits/stdc++.h>
#define PI 3.141592653589
#define ll long long
using namespace std;
int main() {
ll a, b, x;
cin >> a >> b >> x;
if (a == 0) {
cout << b / x + 1;
return 0;
}
ll ans = (b / x) - (a - 1) / x;
cout << ans;
return 0;
} | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 1,471,129 | 1,471,130 | u145562832 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll a, b, x;
cin >> a >> b >> x;
if (a == 0)
cout << b / x << endl;
else
cout << b / x - (a - 1) / x << endl;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll a, b, x;
cin >> a >> b >> x;
if (a == 0)
cout << b / x + 1 << endl;
else
cout << b / x - (a - 1) / x << endl;
} | [
"expression.operation.binary.add"
] | 1,471,139 | 1,471,140 | u573433204 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (ll i = 0; i < (ll)(n); i++)
#define REPS(i, n) for (ll i = 1; i <= (ll)(n); i++)
#define REPD(i, n) for (ll i = (ll)(n)-1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = (a); i <= (b); i++)
#define FORD(i, a, b) for (ll i = (a); i... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (ll i = 0; i < (ll)(n); i++)
#define REPS(i, n) for (ll i = 1; i <= (ll)(n); i++)
#define REPD(i, n) for (ll i = (ll)(n)-1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = (a); i <= (b); i++)
#define FORD(i, a, b) for (ll i = (a); i... | [
"literal.number.change",
"control_flow.branch.if.condition.change",
"function.return_value.change"
] | 1,471,152 | 1,471,153 | u149752754 | cpp |
p03861 | #include <bits/stdc++.h>
#define rep2(i, m, n) for (int i = (int)(m); i < (int)(n); i++)
#define rep(i, n) rep2(i, 0, n)
#define all(x) (x).begin(), (x).end()
#define SZ(x) ((int)(x).size())
using namespace std;
using ll = long long;
template <typename T> T sq(T x) { return x * x; }
signed main() {
ll a, b, x;
ll ... | #include <bits/stdc++.h>
#define rep2(i, m, n) for (int i = (int)(m); i < (int)(n); i++)
#define rep(i, n) rep2(i, 0, n)
#define all(x) (x).begin(), (x).end()
#define SZ(x) ((int)(x).size())
using namespace std;
using ll = long long;
template <typename T> T sq(T x) { return x * x; }
signed main() {
ll a, b, x;
ll ... | [] | 1,471,154 | 1,471,155 | u793829136 | cpp |
p03861 | #include <algorithm>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unordered_map>
#include <unordered_set>
#include <vect... | #include <algorithm>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unordered_map>
#include <unordered_set>
#include <vect... | [
"expression.operation.binary.add"
] | 1,471,172 | 1,471,173 | u353402627 | cpp |
p03861 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <complex>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string.h>
#include <string>
#include <vector>
#define SPBR(w, n) std::cout << (w + 1 == n ... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <complex>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string.h>
#include <string>
#include <vector>
#define SPBR(w, n) std::cout << (w + 1 == n ... | [
"expression.operation.binary.add"
] | 1,471,178 | 1,471,179 | u812973725 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
#define rep(i, a, b) for (int i = (a); i < (b); i++)
typedef pair<int, int> P;
typedef long long ll;
const int INF = 100000000;
int main() {
ll a, b, x, ans;
cin >> a >> b >> x;
if (b == 0) {
cout << 1 << endl;
} else if (a ==... | #include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
#define rep(i, a, b) for (int i = (a); i < (b); i++)
typedef pair<int, int> P;
typedef long long ll;
const int INF = 100000000;
int main() {
ll a, b, x, ans;
cin >> a >> b >> x;
if (b == 0) {
cout << 1 << endl;
} else if (a ==... | [
"expression.operation.binary.add"
] | 1,471,189 | 1,471,190 | u663191260 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define PI 3.14159265358979323846
#define int long long
constexpr int INF = numeric_limits<int>::max() / 2;
constexpr long long INFL = numeric_limits<long long>::max() / 2;
constexpr int MOD = 1000000007;
using Graph = ve... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define PI 3.14159265358979323846
#define int long long
constexpr int INF = numeric_limits<int>::max() / 2;
constexpr long long INFL = numeric_limits<long long>::max() / 2;
constexpr int MOD = 1000000007;
using Graph = ve... | [
"literal.number.change",
"assignment.value.change"
] | 1,471,191 | 1,471,192 | u093973314 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, s, n) for (ll i = (ll)(s); i < (ll)(n); i++)
#define all(x) (x).begin(), (x).end()
#define DEBUG(x) cout << #x << ": " << (x) << endl
const ll MOD = 1e9 + 7;
ll LLINF = 1LL << 60;
int INF = INT_MAX;
int main() {
ll a, b, x;
cin >> a... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, s, n) for (ll i = (ll)(s); i < (ll)(n); i++)
#define all(x) (x).begin(), (x).end()
#define DEBUG(x) cout << #x << ": " << (x) << endl
const ll MOD = 1e9 + 7;
ll LLINF = 1LL << 60;
int INF = INT_MAX;
int main() {
ll a, b, x;
cin >> a... | [
"literal.number.change",
"io.output.change",
"misc.opposites",
"expression.operator.arithmetic.change"
] | 1,471,206 | 1,471,207 | u646962247 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(), (x).end()
using ll = long long;
#define vl vector<long long>
#define vvl vector<vector<long long>>
#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++)
using pll = pair<long long, long lo... | #include <bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(), (x).end()
using ll = long long;
#define vl vector<long long>
#define vvl vector<vector<long long>>
#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++)
using pll = pair<long long, long lo... | [
"assignment.change"
] | 1,471,213 | 1,471,214 | u190580703 | cpp |
p03861 | #include <iostream>
using namespace std;
using ll = long long;
int main() {
ll a, b, x;
cin >> a >> b >> x;
cout << b / x - (a == 0 ? -1 : -(a - 1) / x) << endl;
}
| #include <iostream>
using namespace std;
using ll = long long;
int main() {
ll a, b, x;
cin >> a >> b >> x;
cout << b / x - (a == 0 ? -1 : (a - 1) / x) << endl;
}
| [
"expression.operation.unary.arithmetic.remove"
] | 1,471,225 | 1,471,226 | u590427200 | cpp |
p03861 | #include <bits/stdc++.h>
#define ll long long
#define rep(i, begin, end) \
for (__typeof(end) i = (begin) - ((begin) > (end)); \
i != (end) - ((begin) > (end)); \
i += 1 - 2 * ((begin) > ... | #include <bits/stdc++.h>
#define ll long long
#define rep(i, begin, end) \
for (__typeof(end) i = (begin) - ((begin) > (end)); \
i != (end) - ((begin) > (end)); \
i += 1 - 2 * ((begin) > ... | [
"expression.operation.binary.add"
] | 1,471,234 | 1,471,235 | u494904817 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll ZERO = 0;
const ll INF = 10000000000;
const ll MOD = 1000000007;
const ll MAX = 55;
int main() {
ll a, b, x;
cin >> a >> b >> x;
if (a != 0) {
printf("%lld\n", b / x - (a - 1) / x);
} else {
printf("%lld\n", b / x - (a - 1) / ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll ZERO = 0;
const ll INF = 10000000000;
const ll MOD = 1000000007;
const ll MAX = 55;
int main() {
ll a, b, x;
cin >> a >> b >> x;
if (a != 0 || x == 1) {
printf("%lld\n", b / x - (a - 1) / x);
} else {
printf("%lld\n", b / x - ... | [
"control_flow.branch.if.condition.change"
] | 1,471,240 | 1,471,241 | u478462004 | cpp |
p03861 | // url:
// problem name:
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); ++i)
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return ... | // url:
// problem name:
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); ++i)
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return ... | [
"expression.operation.binary.add"
] | 1,471,242 | 1,471,243 | u446371873 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
#define __ << " " <<
#define ___ << " "
#define bash push_back
#define ALL(x) x.begin(), x.end()
//#define int long long
struct IoSetup {
IoSetup() {
cin.tie(0);
ios::sync_with_stdio(false);
cout << fixed << setprecision(12);
cerr << fixed << setprecision... | #include <bits/stdc++.h>
using namespace std;
#define __ << " " <<
#define ___ << " "
#define bash push_back
#define ALL(x) x.begin(), x.end()
//#define int long long
struct IoSetup {
IoSetup() {
cin.tie(0);
ios::sync_with_stdio(false);
cout << fixed << setprecision(12);
cerr << fixed << setprecision... | [
"expression.operation.unary.bitwise.remove"
] | 1,471,256 | 1,471,257 | u678146855 | cpp |
p03861 | // C
#ifndef _GLIBCXX_NO_ASSERT
#include <cassert>
#endif
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#i... | // C
#ifndef _GLIBCXX_NO_ASSERT
#include <cassert>
#endif
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#i... | [
"literal.string.change",
"io.output.change"
] | 1,471,262 | 1,471,263 | u274657603 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<int, int> P;
#define rep(i, n, m) for (int i = (n); i < (m); i++)
#define rep_d(i, n, m) for (int i = (n)-1; i >= (m); i--)
#define sort_asc(X) sort((X).begin(), (X).end())
#define sort_desc(X) sort((X).begin(), (X).end(), greater<>())... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<int, int> P;
#define rep(i, n, m) for (int i = (n); i < (m); i++)
#define rep_d(i, n, m) for (int i = (n)-1; i >= (m); i--)
#define sort_asc(X) sort((X).begin(), (X).end())
#define sort_desc(X) sort((X).begin(), (X).end(), greater<>())... | [
"expression.operation.binary.add"
] | 1,471,276 | 1,471,277 | u624645160 | cpp |
p03861 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
ll f(ll ab, ll x) {
if (ab == -1) {
return 0;
}
return ab / x;
}
int main() {
ll a, b, x;
cin >> a >> b >> x;
ll res = f(b, x) - f(a - 1, x);
cout << res... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
// 0 以上 ab 以下で x で割りきれる数
ll f(ll ab, ll x) {
if (ab == -1) {
return 0;
}
return ab / x + 1; // 0を含むので1つ以下
}
int main() {
ll a, b, x;
cin >> a >> b >> x;
ll ... | [
"expression.operation.binary.add"
] | 1,471,282 | 1,471,283 | u011438316 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define mp make_pair
#define pb push_back
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep1(i, n) for (int i = 1; i <= (int)(n); i++)
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll a, b, x;
cin >> a >> b >> x;
if (a == 0)... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define mp make_pair
#define pb push_back
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep1(i, n) for (int i = 1; i <= (int)(n); i++)
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll a, b, x;
cin >> a >> b >> x;
if (a == 0)... | [
"expression.operation.binary.add"
] | 1,471,284 | 1,471,285 | u949755084 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define mp make_pair
#define pb push_back
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep1(i, n) for (int i = 1; i <= (int)(n); i++)
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll a, b, x;
cin >> a >> b >> x;
if (a == 0)... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define mp make_pair
#define pb push_back
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep1(i, n) for (int i = 1; i <= (int)(n); i++)
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll a, b, x;
cin >> a >> b >> x;
if (a == 0)... | [
"identifier.replace.add",
"literal.replace.remove",
"io.output.change"
] | 1,471,286 | 1,471,285 | u949755084 | cpp |
p03861 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
ll a, b, x;
cin >> a >> b >> x;
a--;
ll ans = b / x - a / x;
if (b == 0)
ans = 1;
else if (a == 0)
ans = b / x + 1;
cout << ans;
}
| #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
ll a, b, x;
cin >> a >> b >> x;
a--;
ll ans = b / x - a / x;
if (b == 0)
ans = 1;
else if (a == -1)
ans = b / x + 1;
cout << ans;
}
| [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 1,471,287 | 1,471,288 | u243407720 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
long long gcd(long x, long y) {
if (y == 0)
return x;
return gcd(y, x % y);
}
long long lcm(long x, long y) { return x * y / gcd(x, y); }
int ctoi(char c) {
if (c >= '0' && c <= '9') {
return c - '0';
}
return 0;
}
int main() {
long long A, B, X, ans... | #include <bits/stdc++.h>
using namespace std;
long long gcd(long x, long y) {
if (y == 0)
return x;
return gcd(y, x % y);
}
long long lcm(long x, long y) { return x * y / gcd(x, y); }
int ctoi(char c) {
if (c >= '0' && c <= '9') {
return c - '0';
}
return 0;
}
int main() {
long long A, B, X, ans... | [
"assignment.change"
] | 1,471,289 | 1,471,290 | u097396733 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll f(ll n, ll x) {
if (n == -1) {
return 0;
}
return n / x;
}
int main() {
ll a, b, x;
cin >> a >> b >> x;
ll ans = f(b, x) - f(a - 1, x);
cout << setprecision(18) << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll f(ll n, ll x) {
if (n == -1) {
return 0;
}
return n / x + 1;
}
int main() {
ll a, b, x;
cin >> a >> b >> x;
ll ans = f(b, x) - f(a - 1, x);
cout << setprecision(18) << ans << endl;
} | [
"expression.operation.binary.add"
] | 1,471,313 | 1,471,314 | u176218583 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, x;
cin >> a >> b >> x;
if (a == 0)
cout << b / x << endl;
else
cout << b / x - (a - 1) / x << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, x;
cin >> a >> b >> x;
if (a == 0)
cout << b / x + 1 << endl;
else
cout << b / x - (a - 1) / x << endl;
} | [
"expression.operation.binary.add"
] | 1,471,315 | 1,471,316 | u406634703 | cpp |
p03861 | #include <algorithm>
#include <cstdint>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, s, t) for (int i ... | #include <algorithm>
#include <cstdint>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, s, t) for (int i ... | [
"assignment.change"
] | 1,471,317 | 1,471,318 | u951479148 | cpp |
p03861 | #include <algorithm>
#include <cstdint>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, s, t) for (int i ... | #include <algorithm>
#include <cstdint>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, s, t) for (int i ... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 1,471,319 | 1,471,318 | u951479148 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
#define int long long
const int INF = 1e9;
signed main() {
int a, b, x;
cin >> a >> b >> x;
int ans;
if (a != 0)
ans = b / x - (a - 1) / x;
else
ans = b / (x + 1);
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define int long long
const int INF = 1e9;
signed main() {
int a, b, x;
cin >> a >> b >> x;
int ans;
if (a != 0)
ans = b / x - (a - 1) / x;
else
ans = b / x + 1;
cout << ans << endl;
} | [] | 1,471,320 | 1,471,321 | u265359795 | cpp |
p03861 | #include "bits/stdc++.h"
using namespace std;
int main() {
int64_t a, b, x;
cin >> a >> b >> x;
int64_t ans = b / x + (a - 1) / x;
if (a == 0)
cout << b / x + 1;
else
cout << ans;
}
| #include "bits/stdc++.h"
using namespace std;
int main() {
int64_t a, b, x;
cin >> a >> b >> x;
int64_t ans = b / x - (a - 1) / x;
if (a == 0)
cout << b / x + 1;
else
cout << ans;
}
| [
"misc.opposites",
"expression.operator.arithmetic.change",
"expression.operation.binary.change"
] | 1,471,343 | 1,471,344 | u392419780 | cpp |
p03861 | #include "bits/stdc++.h"
using namespace std;
int main() {
int64_t a, b, x;
cin >> a >> b >> x;
int64_t ans = b / x - (a - 1) / x;
if (a == 0)
cout << ans + 1;
else
cout << ans;
}
| #include "bits/stdc++.h"
using namespace std;
int main() {
int64_t a, b, x;
cin >> a >> b >> x;
int64_t ans = b / x - (a - 1) / x;
if (a == 0)
cout << b / x + 1;
else
cout << ans;
}
| [
"identifier.change",
"io.output.change"
] | 1,471,345 | 1,471,344 | u392419780 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b, x;
cin >> a >> b >> x;
if (a == 0)
cout << b / x << endl;
else {
cout << b / x - (a - 1) / x << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b, x;
cin >> a >> b >> x;
if (a == 0)
cout << b / x + 1 << endl;
else {
cout << b / x - (a - 1) / x << endl;
}
}
| [
"expression.operation.binary.add"
] | 1,471,346 | 1,471,347 | u459105164 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define rep(i, n) \
; \
for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) ... | #include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define rep(i, n) \
; \
for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) ... | [
"expression.operation.binary.add"
] | 1,471,360 | 1,471,361 | u170513117 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define rep(i, n) \
; \
for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) ... | #include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define rep(i, n) \
; \
for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) ... | [
"variable_declaration.type.change"
] | 1,471,362 | 1,471,361 | u170513117 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
int main() {
long double a, b, x;
cin >> a >> b >> x;
cout << setprecision(18) << floor(b / x) - ceil(a / x) + 1 << endl;
// cout<<ceil(a/x)<<" "<<ceil(a/x)<<endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long double a, b, x;
cin >> a >> b >> x;
cout << setprecision(19) << floor(b / x) - ceil(a / x) + 1 << endl;
// cout<<ceil(a/x)<<" "<<ceil(a/x)<<endl;
return 0;
}
| [
"literal.number.change",
"io.output.change"
] | 1,471,363 | 1,471,364 | u469315559 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
int main() {
double a, b, x;
cin >> a >> b >> x;
cout << setprecision(20) << floor(b / x) - ceil(a / x) + 1 << endl;
// cout<<ceil(a/x)<<" "<<ceil(a/x)<<endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long double a, b, x;
cin >> a >> b >> x;
cout << setprecision(19) << floor(b / x) - ceil(a / x) + 1 << endl;
// cout<<ceil(a/x)<<" "<<ceil(a/x)<<endl;
return 0;
}
| [
"variable_declaration.type.widen.change",
"literal.number.change",
"io.output.change"
] | 1,471,366 | 1,471,364 | u469315559 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
int main() {
int16_t a, b, x;
cin >> a >> b >> x;
if (a == 0)
cout << b / x + 1 << endl;
else
cout << b / x - (a - 1) / x << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t a, b, x;
cin >> a >> b >> x;
if (a == 0)
cout << b / x + 1 << endl;
else
cout << b / x - (a - 1) / x << endl;
} | [
"variable_declaration.type.primitive.change"
] | 1,471,373 | 1,471,374 | u816145694 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
int main() {
int16_t a, b, x;
cin >> a >> b >> x;
if (a == 0)
cout << b / x + 1 << endl;
else
cout << b / x + 1 - (a - 1) / x << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t a, b, x;
cin >> a >> b >> x;
if (a == 0)
cout << b / x + 1 << endl;
else
cout << b / x - (a - 1) / x << endl;
} | [
"variable_declaration.type.primitive.change",
"expression.operation.binary.remove"
] | 1,471,375 | 1,471,374 | u816145694 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, x;
cin >> a >> b >> x;
if (a == 0)
cout << b / x + 1 << endl;
else
cout << b / x - (a - 1) / x << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t a, b, x;
cin >> a >> b >> x;
if (a == 0)
cout << b / x + 1 << endl;
else
cout << b / x - (a - 1) / x << endl;
} | [
"variable_declaration.type.primitive.change"
] | 1,471,376 | 1,471,374 | u816145694 | cpp |
p03861 | #include <bits/stdc++.h>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <string>
#include <vector>
#define pan(i, n) for (int i = 0; i < n; i++)
#define ll long long int
#define vi vector<int>
#define pb push_back
#define INF 1e9 + 7
#define PI 3.141592653
using namespace std;
int main() {
ll a,... | #include <bits/stdc++.h>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <string>
#include <vector>
#define pan(i, n) for (int i = 0; i < n; i++)
#define ll long long int
#define vi vector<int>
#define pb push_back
#define INF 1e9 + 7
#define PI 3.141592653
using namespace std;
int main() {
ll a,... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 1,471,380 | 1,471,381 | u116744073 | cpp |
p03861 | #include <cmath>
#include <iostream>
using namespace std;
typedef long long ll;
int main() {
ll a, b, x;
cin >> a >> b >> x;
ll left = (a - 1) / x;
if (a == 0)
left = 0;
ll right = b / x;
ll ans = right - left;
cout << ans << "\n";
} | #include <cmath>
#include <iostream>
using namespace std;
typedef long long ll;
int main() {
ll a, b, x;
cin >> a >> b >> x;
ll left = (a - 1) / x + 1;
if (a == 0)
left = 0;
ll right = b / x + 1;
ll ans = right - left;
cout << ans << "\n";
} | [
"assignment.change"
] | 1,471,384 | 1,471,385 | u568501780 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t a, b, x;
cin >> a >> b >> x;
int64_t ans = 0;
if (x == 1) {
cout << b - a + 1 << endl;
return 0;
}
int64_t A = (a - 1) / x + 1, B = b / x + 1;
if (a == 0)
A = 1;
ans = B - A;
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t a, b, x;
cin >> a >> b >> x;
int64_t ans = 0;
if (x == 1) {
cout << b - a + 1 << endl;
return 0;
}
int64_t A = (a - 1) / x + 1, B = b / x + 1;
if (a == 0)
A = 0;
ans = B - A;
cout << ans << endl;
return 0;
} | [
"literal.number.change",
"assignment.value.change"
] | 1,471,393 | 1,471,394 | u563788821 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll func(ll i, ll j) {
if (i == 0) {
return 0;
} else {
return i / j + 1;
}
}
int main() {
ll a, b, x;
cin >> a >> b >> x;
cout << func(b, x) - func(a - 1, x);
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll func(ll i, ll j) {
if (i == -1) {
return 0;
} else {
return i / j + 1;
}
}
int main() {
ll a, b, x;
cin >> a >> b >> x;
cout << func(b, x) - func(a - 1, x);
} | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 1,471,409 | 1,471,410 | u279033107 | cpp |
p03861 | #include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define REP(i, a) for (int i = 0; i < (a); ++i)
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define FORR(i, a, b) for (int i = (a); i >= (b); --i)
#define ALL(obj) (obj).begin(), (obj).en... | #include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define REP(i, a) for (int i = 0; i < (a); ++i)
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define FORR(i, a, b) for (int i = (a); i >= (b); --i)
#define ALL(obj) (obj).begin(), (obj).en... | [] | 1,471,413 | 1,471,414 | u988076584 | cpp |
p03861 | #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 a, b, x;
cin >> a >> b >> x;
if (a == 0)
cout << b / x << endl;
else
cout << b / x - (a - 1) / x << endl;
return 0;
} | #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 a, b, x;
cin >> a >> b >> x;
if (a == 0)
cout << b / x + 1 << endl;
else
cout << b / x - (a - 1) / x << endl;
return 0;
} | [
"expression.operation.binary.add"
] | 1,471,415 | 1,471,416 | u303884911 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
int a, b, c;
cin >> a >> b >> c;
a--;
int fa = 0, fb = 0;
a == -1 ? fa = 0 : fa = a / (c + 1);
fb = b / (c + 1);
cout << fb - fa << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
int a, b, c;
cin >> a >> b >> c;
a--;
int fa = 0, fb = 0;
a == -1 ? fa = 0 : fa = a / c + 1;
fb = b / c + 1;
cout << fb - fa << endl;
} | [] | 1,471,425 | 1,471,426 | u962609087 | cpp |
p03861 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
long NumOfDividableInteger(long k, long x) {
if (k < 0) {
return 0;
}
return k / x;
}
int main() {
long a, b, x;
std::cin >> a >> b >> x;
long ans;
ans = NumOfDividableInteger(b, x) - NumOfDividableInteger(a - 1, x);
std:... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
long NumOfDividableInteger(long k, long x) {
if (k == -1) {
return 0;
}
return k / x + 1;
}
int main() {
long a, b, x;
std::cin >> a >> b >> x;
long ans;
ans = NumOfDividableInteger(b, x) - NumOfDividableInteger(a - 1, x);
... | [
"control_flow.branch.if.condition.change"
] | 1,471,433 | 1,471,434 | u189862528 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
long long int a, b, x;
cin >> a >> b >> x;
long long int n;
if (a == 0) {
n = b / x;
} else {
n = b / x - (a - 1) / x;
}
cout << n << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
long long int a, b, x;
cin >> a >> b >> x;
long long int n;
if (a == 0) {
n = b / x + 1;
} else {
n = b / x - (a - 1) / x;
}
cout << n << endl;
} | [
"assignment.change"
] | 1,471,442 | 1,471,443 | u986754154 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b, x;
cin >> a >> b >> x;
if (a == 0 && b == 0) {
cout << 1 << endl;
} else if (a == 0) {
cout << b / x + 1 << endl;
} else {
cout << b / x + (a - 1) / x << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b, x;
cin >> a >> b >> x;
if (a == 0 && b == 0) {
cout << 1 << endl;
} else if (a == 0) {
cout << b / x + 1 << endl;
} else {
cout << b / x - (a - 1) / x << endl;
}
}
| [
"misc.opposites",
"expression.operator.arithmetic.change",
"io.output.change"
] | 1,471,446 | 1,471,447 | u457196771 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ll a, b, x;
cin >> a >> b >> x;
if (a == 0)
cout << b / x << endl;
else
cout << b / x - (a - 1) / x << endl;
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ll a, b, x;
cin >> a >> b >> x;
if (a == 0)
cout << b / x + 1 << endl;
else
cout << b / x - (a - 1) / x << endl;
}
| [
"expression.operation.binary.add"
] | 1,471,456 | 1,471,457 | u713881272 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
long fun(long n, long x) { return (n == -1 ? 0 : n / x); }
int main() {
long a, b, x;
cin >> a >> b >> x;
cout << fun(b, x) - fun(a - 1, x) << endl;
} | #include <bits/stdc++.h>
using namespace std;
long fun(long n, long x) { return (n == -1 ? 0 : n / x + 1); }
int main() {
long a, b, x;
cin >> a >> b >> x;
cout << fun(b, x) - fun(a - 1, x) << endl;
} | [
"expression.operation.binary.add"
] | 1,471,462 | 1,471,463 | u217508499 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
long fun(long n, long x) { return (n < 0 ? 0 : n / x); }
int main() {
long a, b, x;
cin >> a >> b >> x;
cout << fun(b, x) - fun(a - 1, x) << endl;
} | #include <bits/stdc++.h>
using namespace std;
long fun(long n, long x) { return (n == -1 ? 0 : n / x + 1); }
int main() {
long a, b, x;
cin >> a >> b >> x;
cout << fun(b, x) - fun(a - 1, x) << endl;
} | [
"function.return_value.change"
] | 1,471,464 | 1,471,463 | u217508499 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
main() {
long long a, b, x;
cin >> a >> b >> x;
cout << b / x - (a - 1) / x + (a == 0);
}
| #include <bits/stdc++.h>
using namespace std;
main() {
long long a, b, x;
cin >> a >> b >> x;
cout << b / x - (a - 1) / x + (a == 0 && x != 1);
}
| [
"expression.operation.binary.add"
] | 1,471,488 | 1,471,489 | u495699318 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
#define pp pair<int, int>
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define ll long long
#define ld long double
#define all(a) (a).begin(), (a).end()
#define mk make_pair
ll MOD = 1000000007;
ll mod = 998244353;
int inf = 1000001000;
ll INF = 1e18 + 5;
int main(... | #include <bits/stdc++.h>
using namespace std;
#define pp pair<int, int>
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define ll long long
#define ld long double
#define all(a) (a).begin(), (a).end()
#define mk make_pair
ll MOD = 1000000007;
ll mod = 998244353;
int inf = 1000001000;
ll INF = 1e18 + 5;
int main(... | [
"assignment.change"
] | 1,471,499 | 1,471,500 | u112775098 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using P = pair<ll, ll>;
using Pld = pair<ld, ld>;
using Vec = vector<ll>;
using VecP = vector<P>;
using VecB = vector<bool>;
using VecC = vector<char>;
using VecD = vector<ld>;
using VecS = vector<string>;
using Graph = vector<V... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using P = pair<ll, ll>;
using Pld = pair<ld, ld>;
using Vec = vector<ll>;
using VecP = vector<P>;
using VecB = vector<bool>;
using VecC = vector<char>;
using VecD = vector<ld>;
using VecS = vector<string>;
using Graph = vector<V... | [
"expression.operation.binary.add"
] | 1,471,501 | 1,471,502 | u499381410 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll func(ll a, ll x) {
if (x == -1)
return 0;
else
return (ll)((a / x) + 1);
}
int main() {
ll a, b, x;
cin >> a >> b >> x;
cout << func(b, x) - func(a - 1, x) << endl;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll func(ll a, ll x) {
if (a == -1)
return 0;
else
return (ll)((a / x) + 1);
}
int main() {
ll a, b, x;
cin >> a >> b >> x;
cout << func(b, x) - func(a - 1, x) << endl;
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,471,503 | 1,471,504 | u699111690 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
#define SORT(a) sort((a).begin(), (a).end())
#define RSORT(a) reverse((a).begin(), (a).end())
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
const long long INF = 1LL << 60;
int main() {
ll a, b, x;
cin >> a >> b >> x;
if (a == 0)
cout << b /... | #include <bits/stdc++.h>
using namespace std;
#define SORT(a) sort((a).begin(), (a).end())
#define RSORT(a) reverse((a).begin(), (a).end())
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
const long long INF = 1LL << 60;
int main() {
ll a, b, x;
cin >> a >> b >> x;
if (a == 0)
cout << b /... | [
"expression.operation.binary.add"
] | 1,471,505 | 1,471,506 | u251779460 | cpp |
p03861 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
const int INF = (1 << 30) - 1;
const long long LINF = (1LL << 62) - 1;
const int dx[] = {-1, 0, 1, 0};
const int dy[] = {0, 1, 0, -1};
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
const int INF = (1 << 30) - 1;
const long long LINF = (1LL << 62) - 1;
const int dx[] = {-1, 0, 1, 0};
const int dy[] = {0, 1, 0, -1};
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
... | [
"assignment.change"
] | 1,471,507 | 1,471,508 | u608258653 | cpp |
p03861 | #include <algorithm>
#include <climits>
#include <cmath>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define MOD 1000000007;
int main() {
long long a, b, x;
cin >> a >> b >> x;
long long fb = b / x, fa;
if (a != 0)
fa = (a -... | #include <algorithm>
#include <climits>
#include <cmath>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define MOD 1000000007;
int main() {
long long a, b, x;
cin >> a >> b >> x;
long long fb = b / x + 1, fa;
if (a != 0)
fa = ... | [
"assignment.change"
] | 1,471,509 | 1,471,510 | u608258653 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b, x, s;
cin >> a >> b >> x;
s = b / x + 1;
if (a != 0)
s -= (a - 1) / x + 1;
s++;
cout << s << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b, x, s;
cin >> a >> b >> x;
s = b / x + 1;
if (a != 0)
s -= (a - 1) / x + 1;
cout << s << endl;
} | [
"expression.unary.arithmetic.remove"
] | 1,471,513 | 1,471,514 | u820224016 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
int64_t total(int64_t n, int64_t x) { return n / x + 1; }
int main() {
int64_t a, b, x;
cin >> a >> b >> x;
if (a == 0) {
cout << total(b, x) << endl;
} else
cout << total(b, x) - total(a, x) << endl;
} | #include <bits/stdc++.h>
using namespace std;
int64_t total(int64_t n, int64_t x) { return n / x + 1; }
int main() {
int64_t a, b, x;
cin >> a >> b >> x;
if (a == 0) {
cout << total(b, x) << endl;
} else
cout << total(b, x) - total(a - 1, x) << endl;
} | [
"expression.operation.binary.add"
] | 1,471,531 | 1,471,532 | u533566373 | cpp |
p03861 | #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.binary.add"
] | 1,471,535 | 1,471,536 | u286623856 | cpp |
p03861 | #pragma gcc optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#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;
using ll = long long;
#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.operation.binary.add"
] | 1,471,541 | 1,471,542 | u154645927 | cpp |
p03861 | #include <iostream>
using namespace std;
int f(long long n, long long x) {
if (n == -1)
return 0;
else
return n / x + 1;
}
int main(void) {
long long a, b, x;
cin >> a >> b >> x;
cout << f(b, x) - f(a - 1, x) << endl;
return 0;
}
| #include <iostream>
using namespace std;
long long f(long long n, long long x) {
if (n == -1)
return 0;
else
return n / x + 1;
}
int main(void) {
long long a, b, x;
cin >> a >> b >> x;
cout << f(b, x) - f(a - 1, x) << endl;
return 0;
}
| [
"variable_declaration.type.primitive.change",
"variable_declaration.type.widen.change"
] | 1,471,564 | 1,471,565 | u050947191 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, x;
cin >> a >> b >> x;
long long A = (a - 1) / x;
if (a == 0)
A = 0;
long long B = b / x;
cout << B - A;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, x;
cin >> a >> b >> x;
long long A = (a - 1) / x;
if (a == 0)
A = -1;
long long B = b / x;
cout << B - A;
} | [
"literal.number.change",
"assignment.value.change"
] | 1,471,566 | 1,471,567 | u424374375 | cpp |
p03861 | #define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) REP(i, 0, n)
#define repr(i, n) for (int i = (n); i >= 0; i--)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for (int i = x; i < n; i++)
#define OP(m) cout << m << endl
type... | #define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) REP(i, 0, n)
#define repr(i, n) for (int i = (n); i >= 0; i--)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for (int i = x; i < n; i++)
#define OP(m) cout << m << endl
type... | [
"expression.operation.binary.add"
] | 1,471,571 | 1,471,572 | u016189984 | cpp |
p03861 | #include <iostream>
#include <stdio.h>
#include <vector>
using namespace std;
int64_t kosuu(int64_t n, int64_t x) {
if (n == -1)
return 0;
else
return n / x + 1;
}
int main() {
int64_t a, b, x;
cin >> a >> b >> x;
int64_t t;
t = kosuu(b, x) - kosuu(a - 1, x);
printf("%I64d\n", t);
} | #include <iostream>
#include <stdio.h>
#include <vector>
using namespace std;
int64_t kosuu(int64_t n, int64_t x) {
if (n == -1)
return 0;
else
return n / x + 1;
}
int main() {
int64_t a, b, x;
cin >> a >> b >> x;
int64_t t;
t = kosuu(b, x) - kosuu(a - 1, x);
printf("%ld\n", t);
} | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 1,471,577 | 1,471,578 | u465760322 | cpp |
p03861 | #include <iostream>
#include <stdio.h>
#include <vector>
using namespace std;
int64_t kosuu(int64_t n, int64_t x) {
if (n == -1)
return 0;
else
return n / x + 1;
}
int main() {
int64_t a, b, x;
cin >> a >> b >> x;
int64_t t;
t = kosuu(b, x) - kosuu(a - 1, x);
printf("%I64d", t);
} | #include <iostream>
#include <stdio.h>
#include <vector>
using namespace std;
int64_t kosuu(int64_t n, int64_t x) {
if (n == -1)
return 0;
else
return n / x + 1;
}
int main() {
int64_t a, b, x;
cin >> a >> b >> x;
int64_t t;
t = kosuu(b, x) - kosuu(a - 1, x);
printf("%ld\n", t);
} | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 1,471,579 | 1,471,578 | u465760322 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
#define For(i, n, k) for (int i = (n); i < (k); i++)
#define ALL(a) (a).begin(), (a).end()
long ans = 0;
void Main() {
long long a, b, x;
cin >> a >> b >> x;
cout << b / x - (a ? a - 1 : 0) / x << endl;
}
int main() {
Main();
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
#define For(i, n, k) for (int i = (n); i < (k); i++)
#define ALL(a) (a).begin(), (a).end()
long ans = 0;
void Main() {
long long a, b, x;
cin >> a >> b >> x;
cout << b / x - (a ? a - 1 : -x) / x << endl;
}
int main() {
Main();
return 0;
} | [
"io.output.change",
"expression.operation.unary.add"
] | 1,471,582 | 1,471,583 | u813174766 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
#define For(i, n, k) for (int i = (n); i < (k); i++)
#define ALL(a) (a).begin(), (a).end()
long ans = 0;
void Main() {
long long a, b, x;
cin >> a >> b >> x;
cout << b / x - (a - 1) / x << endl;
}
int main() {
Main();
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
#define For(i, n, k) for (int i = (n); i < (k); i++)
#define ALL(a) (a).begin(), (a).end()
long ans = 0;
void Main() {
long long a, b, x;
cin >> a >> b >> x;
cout << b / x - (a ? a - 1 : -x) / x << endl;
}
int main() {
Main();
return 0;
} | [] | 1,471,584 | 1,471,583 | u813174766 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
#define For(i, n, k) for (int i = (n); i < (k); i++)
#define ALL(a) (a).begin(), (a).end()
long ans = 0;
void Main() {
long a, b, x;
cin >> a >> b >> x;
cout << b / x - (a - 1) / x << endl;
}
int main() {
Main();
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
#define For(i, n, k) for (int i = (n); i < (k); i++)
#define ALL(a) (a).begin(), (a).end()
long ans = 0;
void Main() {
long long a, b, x;
cin >> a >> b >> x;
cout << b / x - (a ? a - 1 : -x) / x << endl;
}
int main() {
Main();
return 0;
} | [
"variable_declaration.type.widen.change"
] | 1,471,585 | 1,471,583 | u813174766 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
// 0以上b以下の整数でxで割り切れる整数の個数はb/x
long long a, b, x;
cin >> a >> b >> x;
long long ans = b / x - (a - 1) / x;
if (x == 1)
cout << b - a + 1 << endl;
else
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
// 0以上b以下の整数でxで割り切れる整数の個数はb/x
long long a, b, x;
cin >> a >> b >> x;
long long ans = b / x - (a - 1) / x;
if (a == 0)
cout << b / x + 1 << endl; // 0はどんなxでも割り切れる
else
cout << ans << endl;... | [
"identifier.change",
"control_flow.branch.if.condition.change",
"literal.number.change"
] | 1,471,590 | 1,471,591 | u037276799 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MOD = 1000000007;
int main() {
ll a, b, x;
cin >> a >> b >> x;
if (a)
cout << b / x - (a - 1) / x << endl;
else
cout << b / x << endl;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MOD = 1000000007;
int main() {
ll a, b, x;
cin >> a >> b >> x;
if (a)
cout << b / x - (a - 1) / x << endl;
else
cout << b / x + 1 << endl;
}
| [
"expression.operation.binary.add"
] | 1,471,594 | 1,471,595 | u803481017 | cpp |
p03861 | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define REP(i, a, b) for (int i = a; i < (b); ++i)
#define all(x) (x).begin(), (x).end()
#define YY puts("Yes")
#define NN puts("No")
const int INF = 1000000007;
typedef long long ll;
using namespace std;
template <cl... | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define REP(i, a, b) for (int i = a; i < (b); ++i)
#define all(x) (x).begin(), (x).end()
#define YY puts("Yes")
#define NN puts("No")
const int INF = 1000000007;
typedef long long ll;
using namespace std;
template <cl... | [
"assignment.change"
] | 1,471,604 | 1,471,605 | u820341516 | cpp |
p03861 | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
long long a, b, x;
cin >> a >> b >> x;
long long ans;
if (x == 1)
ans = b - a + 1;
else
ans = b / x - (a - 1) / x;
cout << ans << endl;
} | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
long long a, b, x;
cin >> a >> b >> x;
long long ans;
if (a == 0)
ans = b / x + 1;
else
ans = b / x - (a - 1) / x;
cout << ans << endl;
} | [
"identifier.change",
"control_flow.branch.if.condition.change",
"literal.number.change"
] | 1,471,606 | 1,471,607 | u127314985 | cpp |
p03861 | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
long long a, b, x;
cin >> a >> b >> x;
long long ans;
if (a == 0)
ans = b / x;
else
ans = b / x - (a - 1) / x;
cout << ans << endl;
} | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
long long a, b, x;
cin >> a >> b >> x;
long long ans;
if (a == 0)
ans = b / x + 1;
else
ans = b / x - (a - 1) / x;
cout << ans << endl;
} | [
"assignment.change"
] | 1,471,608 | 1,471,607 | u127314985 | cpp |
p03861 | #include <bits/stdc++.h>
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define rep(i, n) for (int i = (0); i < (n); ++i)
#define rng(x) (x).begin(), (x).end()
#define rrng(x) (x).rbegin(), (x).rend()
#define show(x) cout << #x << " = " << (x) << endl;
#define show2(x, y) ... | #include <bits/stdc++.h>
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define rep(i, n) for (int i = (0); i < (n); ++i)
#define rng(x) (x).begin(), (x).end()
#define rrng(x) (x).rbegin(), (x).rend()
#define show(x) cout << #x << " = " << (x) << endl;
#define show2(x, y) ... | [
"assignment.change"
] | 1,471,616 | 1,471,617 | u850516963 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
// size_t f = string::npos
// make pair, tuple
int main() {
long long int a, b, x;
cin >> a >> b >> x;
if (a == 0)
cout << b / x;
else
cout << b / x - (a - 1ll) / x;
} | #include <bits/stdc++.h>
using namespace std;
// size_t f = string::npos
// make pair, tuple
int main() {
long long int a, b, x;
cin >> a >> b >> x;
if (a == 0)
cout << b / x + 1;
else
cout << b / x - (a - 1ll) / x;
} | [
"expression.operation.binary.add"
] | 1,471,622 | 1,471,623 | u901813121 | cpp |
p03861 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
typedef long long ll;
const int mod = 1e9 + 7;
int main() {
ll a, b, x;
cin >> a >> b >> x;
ll ans;
if (a == 0) {
ans = b / x + 1;
} else {
ans = b / x - a / x;
}
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
typedef long long ll;
const int mod = 1e9 + 7;
int main() {
ll a, b, x;
cin >> a >> b >> x;
ll ans;
if (a == 0) {
ans = b / x + 1;
} else {
ans = b / x - (a - 1) / x;
}
cout << ans << endl;
return 0... | [] | 1,471,626 | 1,471,627 | u561143568 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.