Datasets:

problem_id
stringlengths
6
6
buggy_code
stringlengths
8
526k
fixed_code
stringlengths
12
526k
labels
listlengths
0
15
⌀
buggy_submission_id
int64
1
1.54M
fixed_submission_id
int64
2
1.54M
user_id
stringlengths
10
10
language
stringclasses
8 values
p02606
#include <bits/stdc++.h> //#include <boost/algorithm/string.hpp> //#include <string> using namespace std; #define ll long long #define pii pair<int, int> #define pll pair<ll, ll> #define vii vector<pair<int, int>> #define vi vector<int> #define pb(x) push_back(x) #define pbm(x, y) push_back({x, y}) #define ff first #de...
#include <bits/stdc++.h> //#include <boost/algorithm/string.hpp> //#include <string> using namespace std; #define ll long long #define pii pair<int, int> #define pll pair<ll, ll> #define vii vector<pair<int, int>> #define vi vector<int> #define pb(x) push_back(x) #define pbm(x, y) push_back({x, y}) #define ff first #de...
[ "identifier.change", "expression.operation.binary.change" ]
309,837
309,838
u539483649
cpp
p02606
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int ans = b / c; ans -= a / c; cout << ans << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int ans = b / c; ans -= (a - 1) / c; cout << ans << endl; return 0; }
[]
309,845
309,846
u123745130
cpp
p02606
#include <bits/stdc++.h> using namespace std; #define FOR(i, start, end) for (uint64_t i = start; i < end; i++) #define REP(i, n) FOR(i, 0, n) // 最大公約数gcd // 最小公倍数lcm=m*n/gcd uint64_t gcd(uint64_t m, uint64_t n) { uint64_t temp; while (m % n != 0) { temp = n; n = m % n; m = temp; } return n; } ui...
#include <bits/stdc++.h> using namespace std; #define FOR(i, start, end) for (uint64_t i = start; i < end; i++) #define REP(i, n) FOR(i, 0, n) // 最大公約数gcd // 最小公倍数lcm=m*n/gcd uint64_t gcd(uint64_t m, uint64_t n) { uint64_t temp; while (m % n != 0) { temp = n; n = m % n; m = temp; } return n; } ui...
[ "control_flow.loop.for.condition.change" ]
309,851
309,850
u925478083
cpp
p02606
#include <iostream> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; if ((L / d) % 1 == 0) { cout << R / d - L / d + 1; } else { cout << R / d - L / d; } }
#include <iostream> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; if (L % d == 0) { cout << R / d - L / d + 1; } else { cout << R / d - L / d; } }
[ "control_flow.branch.if.condition.change", "identifier.replace.add", "literal.replace.remove" ]
309,852
309,853
u854158039
cpp
p02606
#include <iostream> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; if (L / d == 1) { cout << R / d - L / d + 1; } else { cout << R / d - L / d; } }
#include <iostream> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; if (L % d == 0) { cout << R / d - L / d + 1; } else { cout << R / d - L / d; } }
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change", "literal.number.change" ]
309,854
309,853
u854158039
cpp
p02606
#include <algorithm> #include <bitset> #include <cmath> #include <complex> #include <cstdlib> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <utility> #include <vector> using namespace std; #define ll long long #define pal pair<ll, ll> #define pad pair...
#include <algorithm> #include <bitset> #include <cmath> #include <complex> #include <cstdlib> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <utility> #include <vector> using namespace std; #define ll long long #define pal pair<ll, ll> #define pad pair...
[ "variable_declaration.value.change", "identifier.change", "control_flow.loop.for.initializer.change" ]
309,869
309,870
u809687368
cpp
p02606
#include <iostream> using namespace std; void test_case() { int l, r, d, cnt = 0; ; cin >> l >> r >> d; for (int i = l; i <= r; ++i) { if (d % i == 0) { cnt++; } } cout << cnt << "\n"; } int main() { int tc = 1; // cin>>tc; while (tc--) { test_case(); } return 0; }
#include <iostream> using namespace std; void test_case() { int l, r, d, cnt = 0; ; cin >> l >> r >> d; for (int i = l; i <= r; ++i) { if (i % d == 0) { cnt++; } } cout << cnt << "\n"; } int main() { int tc = 1; // cin>>tc; while (tc--) { test_case(); } return 0; }
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "control_flow.branch.if.condition.change" ]
309,871
309,872
u902015134
cpp
p02606
#include <stdio.h> main() { int l, r, d; scanf("%d%d%d", &l, &r, &d), printf("%d\n", (r - l + 1) / d); return 0; }
#include <stdio.h> main() { int l, r, d; scanf("%d%d%d", &l, &r, &d), printf("%d\n", r / d - (l - 1) / d); return 0; }
[ "call.arguments.change", "misc.opposites", "expression.operator.arithmetic.change", "expression.operation.binary.change", "io.output.change" ]
309,892
309,893
u734549230
cpp
p02606
#include <iostream> using namespace std; int main(void) { int a, b, c; cin >> a; cin >> b; cin >> c; a = b / c - a / c; cout << a; }
#include <iostream> using namespace std; int main(void) { int a, b, c; cin >> a; cin >> b; cin >> c; a = b / c - (a - 1) / c; cout << a; }
[]
309,903
309,904
u697149593
cpp
p02606
#include <bits/stdc++.h> #include <cmath> using namespace std; #define coutv(v) \ for (int i = 0; i < (v).size(); ++i) \ cout << v[i] << ' '; \ cout << en...
#include <bits/stdc++.h> #include <cmath> using namespace std; #define coutv(v) \ for (int i = 0; i < (v).size(); ++i) \ cout << v[i] << ' '; \ cout << en...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "control_flow.branch.if.condition.change" ]
309,907
309,908
u641638265
cpp
p02606
#include <bits/stdc++.h> #define MAXN 100005 #define INF 1000000000 #define MOD 1000000007 #define F first #define S second using namespace std; typedef long long ll; typedef pair<int, int> P; int n, l, r, d, a[MAXN]; int main() { scanf("%d%d%d", &l, &r, &d); printf("%d\n", r / d - l / d); }
#include <bits/stdc++.h> #define MAXN 100005 #define INF 1000000000 #define MOD 1000000007 #define F first #define S second using namespace std; typedef long long ll; typedef pair<int, int> P; int n, l, r, d, a[MAXN]; int main() { scanf("%d%d%d", &l, &r, &d); printf("%d\n", r / d - (l - 1) / d); }
[ "call.arguments.change" ]
309,911
309,912
u237254894
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int l, r, d; cin >> l >> r >> d; cout << r / d - l / d << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int l, r, d; cin >> l >> r >> d; cout << r / d - (l - 1) / d << endl; return 0; }
[]
309,913
309,914
u684235670
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int l, r, d; cin >> l >> r >> d; int cnt = 0; for (int i = l; i <= r; i++) { if (i % d == 0) { cnt++; i += d; } } cout << cnt << '\n'; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int l, r, d; cin >> l >> r >> d; int cnt = 0; for (int i = l; i <= r; i++) { if (i % d == 0) { cnt++; // i += d; } } cout << cnt << '\n'; return 0; }
[]
309,915
309,916
u107632045
cpp
p02606
#include <iostream> using namespace std; int main() { int ans = 0; int l, r, d; cin >> l >> r >> d; for (int i = l + 1; i < r; ++i) { if (i % 2 == 0) ++ans; } cout << ans << endl; return 0; }
#include <iostream> using namespace std; int main() { int ans = 0; int l, r, d; cin >> l >> r >> d; for (int i = l; i <= r; ++i) { if (i % d == 0) ++ans; } cout << ans << endl; return 0; }
[ "control_flow.loop.for.initializer.change", "expression.operation.binary.remove", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if...
309,920
309,921
u541567517
cpp
p02606
#include <iostream> using namespace std; int main() { int ans = 0; int l, r, d; cin >> l >> r >> d; for (int i = l; i <= r; ++i) { if (i % 2 == 0) ++ans; } cout << ans << endl; return 0; }
#include <iostream> using namespace std; int main() { int ans = 0; int l, r, d; cin >> l >> r >> d; for (int i = l; i <= r; ++i) { if (i % d == 0) ++ans; } cout << ans << endl; return 0; }
[ "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change" ]
309,922
309,921
u541567517
cpp
p02606
/*************************************************\ In the name of almighty ALLAH MD.Faysal Hasan Comilla Univesity \*************************************************/ #include <bits/stdc++.h> using namespace std; #define ikarus_101 ...
/*************************************************\ In the name of almighty ALLAH MD.Faysal Hasan Comilla Univesity \*************************************************/ #include <bits/stdc++.h> using namespace std; #define ikarus_101 ...
[ "expression.operation.binary.add" ]
309,923
309,924
u654461206
cpp
p02606
#include <bits/stdc++.h> using namespace std; #define int long long #define ll long long #define ld long double template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; ...
#include <bits/stdc++.h> using namespace std; #define int long long #define ll long long #define ld long double template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; ...
[ "identifier.change", "io.output.change" ]
309,927
309,928
u876953939
cpp
p02606
#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() { int l, r, d; cin >> l >> r >> d; int ans = 0; rep(i, (r - l + 1)) if ((r + i) % d == 0) ans++; cout << ans << endl; }
#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() { int l, r, d; cin >> l >> r >> d; int ans = 0; rep(i, (r - l + 1)) if ((l + i) % d == 0) ans++; cout << ans << endl; }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
309,929
309,930
u308460366
cpp
p02606
#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() { int l, r, d; cin >> l >> r >> d; int ans = 0; rep(i, r - l) if ((r + i) % d == 0) ans++; cout << ans << endl; }
#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() { int l, r, d; cin >> l >> r >> d; int ans = 0; rep(i, (r - l + 1)) if ((l + i) % d == 0) ans++; cout << ans << endl; }
[ "call.arguments.change", "identifier.change", "control_flow.branch.if.condition.change" ]
309,931
309,930
u308460366
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int l, r, d; cin >> l >> r >> d; cout << r / d - l / d << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int l, r, d; cin >> l >> r >> d; cout << r / d - (l - 1) / d << endl; }
[]
309,934
309,935
u072080927
cpp
p02606
#include <bits/stdc++.h> using namespace std; #define fast ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL) #define mod 1000000007 #define qmod 998244353 #define M 10000001 #define endl "\n" #define all(a) (a).begin(), (a).end() #define rep(i, a, b) for (int i = a; i < b; ++i) #define repr(i, a, b) for ...
#include <bits/stdc++.h> using namespace std; #define fast ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL) #define mod 1000000007 #define qmod 998244353 #define M 10000001 #define endl "\n" #define all(a) (a).begin(), (a).end() #define rep(i, a, b) for (int i = a; i < b; ++i) #define repr(i, a, b) for ...
[ "misc.opposites", "expression.operator.arithmetic.change", "io.output.change" ]
309,936
309,937
u346709212
cpp
p02606
#include <bits/stdc++.h> #define rep(i, n) for (long long i = 0; i < (long long)(n); i++) #define all(a) a.begin(), a.end() using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair<ll, ll> P; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } ...
#include <bits/stdc++.h> #define rep(i, n) for (long long i = 0; i < (long long)(n); i++) #define all(a) a.begin(), a.end() using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair<ll, ll> P; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } ...
[ "identifier.change", "io.output.change" ]
309,938
309,939
u371149954
cpp
p02606
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #define ll long long #define pb push_back #define clr(a, b) memset((a), (b), sizeof(a)...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #define ll long long #define pb push_back #define clr(a, b) memset((a), (b), sizeof(a)...
[ "misc.opposites", "expression.operator.arithmetic.change", "io.output.change" ]
309,944
309,945
u875020464
cpp
p02606
#include <bits/stdc++.h> using namespace std; #define ll long long int #define fr(i, n, x) for (int i = 0; i < n; i += x) #define pb push_back int main() { int l, r, d; cin >> l >> r >> d; int a = ceil((l * 1.0) / 2); int b = (r / 2); cout << b - a + 1; }
#include <bits/stdc++.h> using namespace std; #define ll long long int #define fr(i, n, x) for (int i = 0; i < n; i += x) #define pb push_back int main() { int l, r, d; cin >> l >> r >> d; int a = ceil((l * 1.0) / d); int b = (r / d); cout << b - a + 1; }
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change", "expression.operation.binary.change" ]
309,946
309,947
u183125762
cpp
p02606
#include <algorithm> #include <cstring> #include <iostream> #include <map> #include <vector> using namespace std; void solve() {} int main() { int l, r, n; cin >> l >> r >> n; cout << r / n - l / n << "\n"; return 0; }
#include <algorithm> #include <cstring> #include <iostream> #include <map> #include <vector> using namespace std; void solve() {} int main() { int l, r, n; cin >> l >> r >> n; cout << r / n - (l - 1) / n << "\n"; return 0; }
[]
309,957
309,958
u400251753
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; int answer; answer = R / d - L / d; if (R % d == 0) answer++; cout << answer << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; int answer; answer = R / d - L / d; if (L % d == 0) answer++; cout << answer << endl; }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
309,959
309,960
u224329059
cpp
p02606
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <iterator> #include <limits> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <ti...
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <iterator> #include <limits> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <ti...
[]
309,969
309,970
u000212387
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; cout << (R - L + 1) / d << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; cout << R / d - (L - 1) / d << endl; }
[ "misc.opposites", "expression.operator.arithmetic.change", "io.output.change" ]
309,997
309,996
u161420724
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int l, r, d, count; cin >> l >> r >> d; for (int i = l; i <= r; i++) { if (i % d == 0) count++; } cout << count; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int l, r, d, count = 0; cin >> l >> r >> d; for (int i = l; i <= r; i++) { if (i % d == 0) count++; } cout << count; return 0; }
[ "variable_declaration.value.change" ]
310,002
310,003
u551882953
cpp
p02606
#include <iostream> using namespace std; int main() { long long l, r, d; cin >> l >> r >> d; long long res = (l / d) + (r / d); if (l % d == 0) res = res + 1; cout << res; }
#include <iostream> using namespace std; int main() { long long l, r, d; cin >> l >> r >> d; long long res = (r / d) - (l / d); if (l % d == 0) res = res + 1; cout << res; }
[ "identifier.change", "expression.operation.binary.change", "misc.opposites", "expression.operator.arithmetic.change" ]
310,004
310,005
u637669597
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; int ans = 0; for (int i = L; i <= R; i++) { if (L % d == 0) ans++; } cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; int ans = 0; for (int i = L; i <= R; i++) { if (i % d == 0) ans++; } cout << ans << endl; }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
310,011
310,012
u503504443
cpp
p02606
#include <iostream> using namespace std; int main(void) { int R, L, d; cin >> L >> R >> d; int ans; for (int i = L; i < R + 1; i++) { if (i % d == 0) ans++; } cout << ans << endl; return 0; }
#include <iostream> using namespace std; int main(void) { int R, L, d; cin >> L >> R >> d; int ans = 0; for (int i = L; i < R + 1; i++) { if (i % d == 0) ans++; } cout << ans << endl; return 0; }
[ "variable_declaration.value.change" ]
310,013
310,014
u140846418
cpp
p02606
#include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double ll power(ll x, ll y, ll p) { ll res = 1; // Initialize result x = x % p; // Update x if it is more than or // equal to p if (x == 0) return 0; // In case x is divisible by p; while (y > 0) { // If ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double ll power(ll x, ll y, ll p) { ll res = 1; // Initialize result x = x % p; // Update x if it is more than or // equal to p if (x == 0) return 0; // In case x is divisible by p; while (y > 0) { // If ...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
310,015
310,016
u965384934
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; cout << R / d - L / d << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; cout << R / d - (L - 1) / d << endl; }
[]
310,031
310,032
u983563612
cpp
p02606
// header {{{ #include <bits/stdc++.h> using namespace std; void solve() { int s, e, a; cin >> s; cin >> e; cin >> a; int res = 0; if (a == 1) res = e - s + 1; else res = e / a - s / a + (s == a ? 1 : 0); cout << res << "\n" << endl; // cout << ans << "\n"; } signed main() { solve(); r...
// header {{{ #include <bits/stdc++.h> using namespace std; void solve() { int s, e, a; cin >> s; cin >> e; cin >> a; int res = 0; if (a == 1) res = e - s + 1; else res = e / a - s / a + (s % a == 0 ? 1 : 0); cout << res << "\n" << endl; // cout << ans << "\n"; } signed main() { solve(); ...
[ "assignment.value.change", "control_flow.branch.if.condition.change", "assignment.change" ]
310,037
310,036
u804722002
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d, answer; cin >> R; cin >> d; answer = 0; for (cin >> L; L <= R; L++) { if (L % d == 0) { answer++; } } cout << answer << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d, answer; cin >> L; cin >> R; cin >> d; answer = 0; for (cin >> L; L <= R; L++) { if (L % d == 0) { answer++; } } cout << answer << endl; }
[]
310,045
310,046
u917501247
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d, answer; cin >> L; cin >> R; cin >> d; answer = 0; for (int L; L <= R; L++) { if (L % d == 0) { answer++; } } cout << answer << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d, answer; cin >> L; cin >> R; cin >> d; answer = 0; for (cin >> L; L <= R; L++) { if (L % d == 0) { answer++; } } cout << answer << endl; }
[ "control_flow.loop.for.initializer.change" ]
310,047
310,046
u917501247
cpp
p02606
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; cout << b / c - a / c; }
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; cout << b / c - (a - 1) / c; }
[]
310,065
310,066
u383117453
cpp
p02606
#include <cstdint> #include <iostream> #include <string> int main(int argc, char *argv[]) { int32_t L, R, d; std::cin >> L; std::cin >> R; std::cin >> d; int cnt = 0; for (int i = L; i <= R; ++i) { cnt += (i % d == 0) ? 1 : 0; } std::cout << cnt / d << std::endl; return 0; }
#include <cstdint> #include <iostream> #include <string> int main(int argc, char *argv[]) { int32_t L, R, d; std::cin >> L; std::cin >> R; std::cin >> d; int cnt = 0; for (int i = L; i <= R; ++i) { cnt += (i % d == 0) ? 1 : 0; } std::cout << cnt << std::endl; return 0; }
[ "expression.operation.binary.remove" ]
310,067
310,068
u337949146
cpp
p02606
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int c1 = 0; for (int i = a; i <= b; i++) { if (c % i == 0) c1++; } cout << c1; return 0; }
/*#include<iostream> #include<algorithm> #include<cmath> #include<string> #define ll long long using namespace std; int main(){ int n,h,ans=0; cin>>n; while(n--){ int b; cin>>b; if(b==1){ cout<<"hard"; ...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "control_flow.branch.if.condition.change" ]
310,102
310,103
u640161402
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; cout << (R - L + 1) / d << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; cout << R / d - (L - 1) / d << endl; }
[ "misc.opposites", "expression.operator.arithmetic.change", "io.output.change" ]
310,112
310,113
u529783200
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; int ans = 0; for (int i = L; i <= R; i++) { if (i % R == 0) { ans++; } } cout << ans; #ifndef ONLINE_JUDGE system("pause"); #endif return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; int ans = 0; for (int i = L; i <= R; i++) { if (i % d == 0) { ans++; } } cout << ans; #ifndef ONLINE_JUDGE system("pause"); #endif return 0; }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
310,116
310,117
u866339621
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (b % a == 0) cout << c / a - (b - 1) / a; else cout << c / a - b / a; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> b >> c >> a; if (b % a == 0) cout << c / a - (b - 1) / a; else cout << c / a - b / a; return 0; }
[ "expression.operation.binary.remove" ]
310,118
310,119
u809697777
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d, cnt; cin >> L >> R >> d; for (int i = 0; i <= R - L; i++) { if ((L + i) % d == 0) { cnt++; } } cout << cnt << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d, cnt = 0; cin >> L >> R >> d; for (int i = 0; i <= R - L; i++) { if ((L + i) % d == 0) { cnt++; } } cout << cnt << endl; }
[ "variable_declaration.value.change" ]
310,120
310,121
u223019891
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; cout << R / d - L / d << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; cout << R / d - (L - 1) / d << endl; }
[]
310,132
310,133
u502465075
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int L; int R; int d; cin >> L >> R >> d; cout << R / d - L / d << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int L; int R; int d; cin >> L >> R >> d; cout << R / d - (L - 1) / d << endl; return 0; }
[]
310,134
310,135
u487927681
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int L; int R; int d; cin >> L >> R >> d; cout << R / d - L / d + 1 << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int L; int R; int d; cin >> L >> R >> d; cout << R / d - (L - 1) / d << endl; return 0; }
[ "expression.operation.binary.remove" ]
310,136
310,135
u487927681
cpp
p02606
#include <bits/stdc++.h> using namespace std; #define LL long long int main() { LL L, R, D, A; cin >> L >> R >> D; A = R / D - L / D; if (L == D) { A = R / D - L / D + 1; } if (A < 0) { A = 0; } cout << A << endl; }
#include <bits/stdc++.h> using namespace std; #define LL long long int main() { LL L, R, D, A; cin >> L >> R >> D; A = R / D - L / D; if (L % D == 0) { A = R / D - L / D + 1; } if (A < 0) { A = 0; } cout << A << endl; }
[ "control_flow.branch.if.condition.change" ]
310,145
310,146
u108993392
cpp
p02606
#include <bits/stdc++.h> using namespace std; #define ll long long const int N = 100005; int main() { ios::sync_with_stdio(false); int n, m, k; cin >> n >> m >> k; int cnt = 0; for (int i = n + 1; i < m; i++) if (i % k == 0) cnt++; cout << cnt << endl; }
#include <bits/stdc++.h> using namespace std; #define ll long long const int N = 100005; int main() { ios::sync_with_stdio(false); int n, m, k; cin >> n >> m >> k; int cnt = 0; for (int i = n; i <= m; i++) if (i % k == 0) cnt++; cout << cnt << endl; }
[ "control_flow.loop.for.initializer.change", "expression.operation.binary.remove", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
310,147
310,148
u221179125
cpp
p02606
#include <bits/stdc++.h> using namespace std; #define ll long long const int N = 100005; int main() { ios::sync_with_stdio(false); int n, m, k; cin >> n >> m >> k; int cnt = 0; for (int i = n; i < m; i++) if (i % k == 0) cnt++; cout << cnt << endl; }
#include <bits/stdc++.h> using namespace std; #define ll long long const int N = 100005; int main() { ios::sync_with_stdio(false); int n, m, k; cin >> n >> m >> k; int cnt = 0; for (int i = n; i <= m; i++) if (i % k == 0) cnt++; cout << cnt << endl; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
310,149
310,148
u221179125
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int L, R, D; cin >> L >> R >> D; int ans = 0; for (int i = L; i <= R; i++) { if (i % D) ans++; } cout << ans << "\n"; }
#include <bits/stdc++.h> using namespace std; int main() { int L, R, D; cin >> L >> R >> D; int ans = 0; for (int i = L; i <= R; i++) { if (i % D == 0) ans++; } cout << ans << "\n"; }
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
310,187
310,188
u465638326
cpp
p02606
#include <iostream> using namespace std; int main() { int l, r, d, c = 0; cin >> l >> r >> d; for (int i = l; i <= r; i++) { if (d % i == 0) c++; } cout << c << endl; }
#include <iostream> using namespace std; int main() { int l, r, d, c = 0; cin >> l >> r >> d; for (int i = l; i <= r; i++) { if (i % d == 0) c++; } cout << c << endl; }
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "control_flow.branch.if.condition.change" ]
310,189
310,190
u995502990
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; int count = 0; for (int i = L; L <= R; L++) { if (i % d == 0) { count++; } } cout << count; }
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; int count = 0; for (int i = L; i <= R; i++) { if (i % d == 0) { count++; } } cout << count; }
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
310,193
310,194
u412946543
cpp
p02606
#include <iostream> using namespace std; int main() { int a; int b; int c; cin >> a >> b >> c; int count = 0; for (int i = a; i <= b; i++) { if (c % i == 0) count++; } cout << count; }
#include <iostream> using namespace std; int main() { int a; int b; int c; cin >> a >> b >> c; int count = 0; for (int i = a; i <= b; i++) { if (i % c == 0) count++; } cout << count; }
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "control_flow.branch.if.condition.change" ]
310,197
310,198
u540435286
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int l, r, d; cin >> l >> r >> d; int x = l / d; int y = r / d; if (x % d == 0) { cout << y - x + 1 << endl; } else { cout << y - x << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int l, r, d; cin >> l >> r >> d; int x = l / d; int y = r / d; if (l % d == 0) { cout << y - x + 1 << endl; } else { cout << y - x << endl; } }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
310,199
310,200
u758405447
cpp
p02606
#include <algorithm> #include <cmath> #include <iostream> using namespace std; int main() { int l, r, d; cin >> l >> r >> d; cout << (r / d - l / d); }
#include <algorithm> #include <cmath> #include <iostream> using namespace std; int main() { int l, r, d; cin >> l >> r >> d; cout << (r / d - (l - 1) / d); }
[]
310,201
310,202
u424608716
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int p, q, d; cin >> p >> q >> d; cout << (q / d) - (p / d) << "\n"; }
#include <bits/stdc++.h> using namespace std; int main() { int p, q, d; cin >> p >> q >> d; cout << (q / d) - ((p - 1) / d) << "\n"; }
[]
310,210
310,211
u630091838
cpp
p02606
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define MOD 1000000007; using namespace std; using ll = long long; int main() { int l, r, d; cin >> l >> r >> d; int ans = l / d - r / d; if (r % d == 0) ans++; cout << ans << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define MOD 1000000007; using namespace std; using ll = long long; int main() { int l, r, d; cin >> l >> r >> d; int ans = r / d - l / d; if (l % d == 0) ans++; cout << ans << endl; return 0; }
[ "identifier.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
310,216
310,217
u025464133
cpp
p02606
#include <iostream> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; if (R == 1) { cout << L / d << endl; } else { cout << L / d - (R - 1) / d << endl; } }
#include <iostream> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; if (R == 1) { cout << R / d << endl; } else { cout << R / d - (L - 1) / d << endl; } }
[ "identifier.change", "io.output.change" ]
310,220
310,221
u868772959
cpp
p02606
#include <bits/stdc++.h> #define rep(i, a, b) for (int i = a; i < b; i++) using namespace std; #define maxn 10000000 int main() { int a, b, c, ans; cin >> a >> b >> c; rep(i, a, b + 1) if (i % c == 0) ans++; cout << ans << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, a, b) for (int i = a; i < b; i++) using namespace std; #define maxn 10000000 int main() { int a, b, c, ans = 0; cin >> a >> b >> c; rep(i, a, b + 1) if (i % c == 0) ans++; cout << ans << endl; return 0; }
[ "variable_declaration.value.change" ]
310,230
310,231
u771316242
cpp
p02606
#include <bits/stdc++.h> using namespace std; #define all(x) (x).begin(), (x).end() #define ll long long #define vi vector<int> #define pii pair<int, int> #define F first #define S second #define pb push_back #define forn(b) for (int i = 0; i < b; i++) #define rforn(b) for (int i = b - 1; i >= 0; i--) #define It(m) for...
#include <bits/stdc++.h> using namespace std; #define all(x) (x).begin(), (x).end() #define ll long long #define vi vector<int> #define pii pair<int, int> #define F first #define S second #define pb push_back #define forn(b) for (int i = 0; i < b; i++) #define rforn(b) for (int i = b - 1; i >= 0; i--) #define It(m) for...
[]
310,240
310,241
u164291877
cpp
p02606
#include <bits/stdc++.h> using namespace std; #define all(x) (x).begin(), (x).end() #define ll long long #define vi vector<int> #define pii pair<int, int> #define F first #define S second #define pb push_back #define forn(b) for (int i = 0; i < b; i++) #define rforn(b) for (int i = b - 1; i >= 0; i--) #define It(m) for...
#include <bits/stdc++.h> using namespace std; #define all(x) (x).begin(), (x).end() #define ll long long #define vi vector<int> #define pii pair<int, int> #define F first #define S second #define pb push_back #define forn(b) for (int i = 0; i < b; i++) #define rforn(b) for (int i = b - 1; i >= 0; i--) #define It(m) for...
[ "variable_declaration.value.change" ]
310,242
310,241
u164291877
cpp
p02606
#include <iostream> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; int count = 0; for (int i = R; i <= L; i++) { if (i % d == 0) { count++; } } cout << count << endl; }
#include <iostream> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; int count = 0; for (int i = L; i <= R; i++) { if (i % d == 0) { count++; } } cout << count << endl; }
[ "variable_declaration.value.change", "identifier.change", "control_flow.loop.for.initializer.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
310,244
310,245
u374575822
cpp
p02606
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < = n; i++) #define REP(i, n) for (int i = 0; i <= n; i++) #define ll long long using namespace std; int keta(int n) { int res; for (int i = 0; i < 100; i++) { n = n / 10; if (n == 0) { res = i + 1; break; } } return res; } i...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < = n; i++) #define REP(i, n) for (int i = 0; i <= n; i++) #define ll long long using namespace std; int keta(int n) { int res; for (int i = 0; i < 100; i++) { n = n / 10; if (n == 0) { res = i + 1; break; } } return res; } i...
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
310,256
310,257
u481657940
cpp
p02606
#include <bits/stdc++.h> #define int long long using namespace std; const int N = 1e5 + 2; int t, n, m, k, L, R, d; int32_t main() { cin >> L >> R >> d; int cnt = 0; for (int i = L; i <= R; i++) if (i % d) cnt++; cout << cnt << endl; }
#include <bits/stdc++.h> #define int long long using namespace std; const int N = 1e5 + 2; int t, n, m, k, L, R, d; int32_t main() { cin >> L >> R >> d; int cnt = 0; for (int i = L; i <= R; i++) if (i % d == 0) cnt++; cout << cnt << endl; }
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
310,258
310,259
u071391111
cpp
p02606
#include <iostream> using namespace std; int main() { int l, r, d; std::cin >> l >> r >> d; int ans = r / d - l / d; if (l == d) ans += 1; std::cout << ans << '\n'; return 0; }
#include <iostream> using namespace std; int main() { int l, r, d; std::cin >> l >> r >> d; int ans = r / d - l / d; if (l % d == 0) ans += 1; std::cout << ans << '\n'; return 0; }
[ "control_flow.branch.if.condition.change" ]
310,271
310,272
u507749492
cpp
p02606
#include <iostream> using namespace std; int main() { int l, r, d, i; int count = 0; cin >> l >> r >> d; for (i = l; i <= d; i++) { if (i % d == 0) count++; } cout << count; }
#include <iostream> using namespace std; int main() { int l, r, d, i; int count = 0; cin >> l >> r >> d; for (i = l; i <= r; i++) { if (i % d == 0) count++; } cout << count; }
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
310,279
310,280
u985335994
cpp
p02606
#include <iostream> using namespace std; int main() { int L; int R; int d; cin >> L >> R >> d; int h = R / d; int i = L / d + 1; cout << R / d - L / d << '\n'; }
#include <iostream> using namespace std; int main() { int L; int R; int d; cin >> L >> R >> d; int h = R / d; int i = L / d + 1; cout << R / d - (L - 1) / d << '\n'; }
[]
310,311
310,312
u637616148
cpp
p02606
#include <bits/stdc++.h> #include <iostream> #include <math.h> #include <numeric> #define ll long long #define ull unsigned long #define mpa make_pair #define pb push_back #define ff first #define pii pair<ll, ll> #define dd double #define trace(x) cerr << #x << " : " << x << endl #define ss second #define boost ios_ba...
#include <bits/stdc++.h> #include <iostream> #include <math.h> #include <numeric> #define ll long long #define ull unsigned long #define mpa make_pair #define pb push_back #define ff first #define pii pair<ll, ll> #define dd double #define trace(x) cerr << #x << " : " << x << endl #define ss second #define boost ios_ba...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
310,317
310,318
u798643234
cpp
p02606
#include <bits/stdc++.h> #define ll long long #define ull unsigned long long #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; int solve() {} int main() { int l, r, d; cin >> l >> r >> d; int cnt = 0; rep(i, r - l + 1) { if ((r + i) % d == 0) cnt++; } cout << cnt << endl; }
#include <bits/stdc++.h> #define ll long long #define ull unsigned long long #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; int solve() {} int main() { int l, r, d; cin >> l >> r >> d; int cnt = 0; rep(i, r - l + 1) { if ((l + i) % d == 0) cnt++; } cout << cnt << endl; }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
310,321
310,322
u424304619
cpp
p02606
#include <bits/stdc++.h> #include <cmath> #include <math.h> #include <stdio.h> using namespace std; #define vsort(vec) sort(vec.begin(), vec.end()) #define vreverse(vec) reverse(vec.begin(), vec.end()) using ll = long long; using ull = unsigned long long; const ll INF = 1001001001; const double PI = 3.14159265358979323...
#include <bits/stdc++.h> #include <cmath> #include <math.h> #include <stdio.h> using namespace std; #define vsort(vec) sort(vec.begin(), vec.end()) #define vreverse(vec) reverse(vec.begin(), vec.end()) using ll = long long; using ull = unsigned long long; const ll INF = 1001001001; const double PI = 3.14159265358979323...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
310,328
310,329
u762502257
cpp
p02606
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; typedef tree<pair<int, int>, null_type, less<pair<int, int>>, rb_tree_tag, tree_order_statistics_node_update> oset; #define sim template <class c #defi...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; typedef tree<pair<int, int>, null_type, less<pair<int, int>>, rb_tree_tag, tree_order_statistics_node_update> oset; #define sim template <class c #defi...
[ "expression.operation.binary.remove", "control_flow.branch.if.condition.change" ]
310,333
310,334
u306697932
cpp
p02606
#include <iostream> using namespace std; int main() { int x, y, z, sum; cin >> x >> y >> z; for (int i = x; i <= y; ++i) { if ((i % z) == 0) sum = sum + 1; } cout << sum; }
#include <iostream> using namespace std; int main() { int x, y, z, sum = 0; cin >> x >> y >> z; for (int i = x; i <= y; ++i) { if ((i % z) == 0) sum = sum + 1; } cout << sum; }
[ "variable_declaration.value.change" ]
310,335
310,336
u942903220
cpp
p02606
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) using namespace std; typedef long long ll; int main() { ll l, r, d; cin >> l >> r >> d; cout << l / d - (r - 1) / d << endl; return 0; }
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) using namespace std; typedef long long ll; int main() { ll l, r, d; cin >> l >> r >> d; cout << r / d - (l - 1) / d << endl; return 0; }
[ "identifier.change", "io.output.change" ]
310,343
310,344
u930561195
cpp
p02606
#include <iostream> using namespace std; int main() { int l, r, d; cin >> l >> r >> d; int ans = 0; for (int i = l; i <= r; i++) { if (i % r == 0) ans++; } cout << ans << endl; return 0; }
#include <iostream> using namespace std; int main() { int l, r, d; cin >> l >> r >> d; int ans = 0; for (int i = l; i <= r; i++) { if (i % d == 0) ans++; } cout << ans << endl; return 0; }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
310,352
310,353
u056912761
cpp
p02606
#include <bits/stdc++.h> using namespace std; #define ALL(x) x.begin(), x.end() #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int l, r, d; cin >> l >> r >> d; int t = 0; for (int i = l; i < r; i++) { if (i % d == 0) { t++; } } cout << t << endl; }
#include <bits/stdc++.h> using namespace std; #define ALL(x) x.begin(), x.end() #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int l, r, d; cin >> l >> r >> d; int t = 0; for (int i = l; i <= r; i++) { if (i % d == 0) { t++; } } cout << t << endl; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
310,354
310,355
u309574344
cpp
p02606
#include <bits/stdc++.h> #define ll long long #define ld long double #define ull unsigned long long #define mp make_pair #define pb(x) push_back(x) #define vi vector<int> #define vs vector<string> #define vll vector<long long> #define vc vector<char> #define vs vector<string> #define pii pair<int, int> #define pll pair...
#include <bits/stdc++.h> #define ll long long #define ld long double #define ull unsigned long long #define mp make_pair #define pb(x) push_back(x) #define vi vector<int> #define vs vector<string> #define vll vector<long long> #define vc vector<char> #define vs vector<string> #define pii pair<int, int> #define pll pair...
[ "io.output.change", "literal.string.change" ]
310,370
310,371
u856436548
cpp
p02606
#include <bits/stdc++.h> #include <math.h> using namespace std; int main() { int a, b, c; int count = 0; int i; cin >> a >> b >> c; for (i = a; i < b; i++) { if (i % c == 0) { count++; } } cout << count << endl; }
#include <bits/stdc++.h> #include <math.h> using namespace std; int main() { int a, b, c; int count = 0; int i; cin >> a >> b >> c; for (i = a; i <= b; i++) { if (i % c == 0) { count++; } } cout << count << endl; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
310,376
310,377
u943151520
cpp
p02606
#include <bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned long long #define ui unsigned int #define us unsigned short #define IOS ios_base::sync_with_stdio(0); #define INF LONG_MAX #define PI 3.1415926535897932384626 #define mp make_pair #define fi first #define se second #define pb push_b...
#include <bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned long long #define ui unsigned int #define us unsigned short #define IOS ios_base::sync_with_stdio(0); #define INF LONG_MAX #define PI 3.1415926535897932384626 #define mp make_pair #define fi first #define se second #define pb push_b...
[ "identifier.change", "expression.operation.binary.change" ]
310,378
310,379
u519720482
cpp
p02606
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int l, r, d; cin >> l >> r >> d; cout << r / d - l / d << endl; return 0; }
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int l, r, d; cin >> l >> r >> d; cout << r / d - (l - 1) / d << endl; return 0; }
[]
310,386
310,387
u447706255
cpp
p02606
/*Author - sambhu show(jgec) */ #include <bits/stdc++.h> using namespace std; #define fio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); #define itc ...
/*Author - sambhu show(jgec) */ #include <bits/stdc++.h> using namespace std; #define fio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); #define itc ...
[]
310,388
310,389
u667632763
cpp
p02606
#include <iostream> using namespace std; int main() { int l, r, d, count = 0; cin >> l >> r >> d; for (int i = l; i <= r; i++) { if (l % d == 0) { count++; } } cout << count; return 0; }
#include <iostream> using namespace std; int main() { int l, r, d, count = 0; cin >> l >> r >> d; for (int i = l; i <= r; i++) { if (i % d == 0) { count++; } } cout << count; return 0; }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
310,396
310,397
u082727451
cpp
p02606
#include <algorithm> #include <cmath> #include <iostream> #include <iterator> #include <map> #include <set> #include <string> #include <unordered_map> using namespace std; int main() { int L, D, R, i, count; cin >> L >> R >> D; for (i = L; i <= R; i += 1) { if (i % D == 0) { count += 1; } } cou...
#include <algorithm> #include <cmath> #include <iostream> #include <iterator> #include <map> #include <set> #include <string> #include <unordered_map> using namespace std; int main() { int L, D, R, i, count = 0; cin >> L >> R >> D; for (i = L; i <= R; i += 1) { if (i % D == 0) { count += 1; } } ...
[ "variable_declaration.value.change" ]
310,398
310,399
u368566261
cpp
p02606
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define repa(i, a, n) for (int i = (a); i < (n); i++) #define rrep(i, n) for (int i = n - 1; i >= 0; i--) #define rrepa(i, a, n) for (int i = n - 1; i >= (a); i--) #define all(a) (a).begin(), (a).end() #define MOD 1000000007...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define repa(i, a, n) for (int i = (a); i < (n); i++) #define rrep(i, n) for (int i = n - 1; i >= 0; i--) #define rrepa(i, a, n) for (int i = n - 1; i >= (a); i--) #define all(a) (a).begin(), (a).end() #define MOD 1000000007...
[]
310,400
310,401
u926025622
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main(void) { int L, R, d; cin >> L >> R >> d; int score = 0; for (int i = L; i < R; ++i) { if (i % d == 0) ++score; } cout << score << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { int L, R, d; cin >> L >> R >> d; int score = 0; for (int i = L; i <= R; ++i) { if (i % d == 0) ++score; } cout << score << endl; return 0; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
310,402
310,403
u830745382
cpp
p02606
//*******Abhijit Burman***********// // Jalpaiguri Government Engineering College// #include <bits/stdc++.h> using namespace std; #define ll long long int #define pb push_back #define ff first #define ss second #define mk make_pair #define MAXX (1000000000000000000 + 7) #define fio ...
//*******Abhijit Burman***********// // Jalpaiguri Government Engineering College// #include <bits/stdc++.h> using namespace std; #define ll long long int #define pb push_back #define ff first #define ss second #define mk make_pair #define MAXX (1000000000000000000 + 7) #define fio ...
[ "expression.unary.arithmetic.add" ]
310,404
310,405
u915235255
cpp
p02606
#include <algorithm> #include <bits/stdc++.h> #include <chrono> #include <iomanip> #include <map> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <thread> #include <typeinfo> #include <vector> // define #define trav(i, v) for (auto i : v) #define rep(i, n) for (int i = 0; i < n; i...
#include <algorithm> #include <bits/stdc++.h> #include <chrono> #include <iomanip> #include <map> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <thread> #include <typeinfo> #include <vector> // define #define trav(i, v) for (auto i : v) #define rep(i, n) for (int i = 0; i < n; i...
[ "expression.operation.unary.logical.remove", "control_flow.branch.if.condition.change" ]
310,422
310,423
u766299200
cpp
p02606
#include <bits/stdc++.h> using namespace std; #define el "\n" #define rep(i, a, n) for (int i = 0; i < n; ++i) int main() { int l, r, d; cin >> l >> r >> d; int ans = 0; rep(i, l, r + 1) { if (i % d == 0) ans++; } cout << ans << el; return 0; }
#include <bits/stdc++.h> using namespace std; #define el "\n" #define rep(i, a, n) for (int i = a; i < n; ++i) int main() { int l, r, d; cin >> l >> r >> d; int ans = 0; rep(i, l, r + 1) { if (i % d == 0) ans++; } cout << ans << el; return 0; }
[ "preprocessor.define.value.change" ]
310,424
310,425
u410967766
cpp
p02606
#include <bits/stdc++.h> #define ll long long #define fastio \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); using namespac...
#include <bits/stdc++.h> #define ll long long #define fastio \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); using namespac...
[ "identifier.change", "io.output.change", "control_flow.loop.for.condition.change" ]
310,450
310,451
u432019955
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; int ans = R / d - L / d; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; int ans = R / d - (L - 1) / d; cout << ans << endl; }
[]
310,456
310,457
u453366189
cpp
p02606
// #include <ext/pb_ds/assoc_container.hpp> // #include <ext/pb_ds/tree_policy.hpp> // #include <boost/multiprecision/cpp_int.hpp> // using namespace boost::multiprecision; // using namespace __gnu_pbds; #include <bits/stdc++.h> using namespace std; #define int long long int #define vi vector<int> #define pii pair<int,...
// #include <ext/pb_ds/assoc_container.hpp> // #include <ext/pb_ds/tree_policy.hpp> // #include <boost/multiprecision/cpp_int.hpp> // using namespace boost::multiprecision; // using namespace __gnu_pbds; #include <bits/stdc++.h> using namespace std; #define int long long int #define vi vector<int> #define pii pair<int,...
[ "variable_declaration.value.change" ]
310,458
310,459
u677186086
cpp
p02606
#include <iostream> using namespace std; int main() { int l, r, d; cin >> l >> r >> d; if (l % d == 0) { cout << r / d - l / d + 1 << endl; } else { cout << r / d - l / d + 1 << endl; } }
#include <iostream> using namespace std; int main() { int l, r, d; cin >> l >> r >> d; if (l % d == 0) { cout << r / d - l / d + 1 << endl; } else { cout << r / d - l / d << endl; } }
[ "expression.operation.binary.remove" ]
310,460
310,461
u215341636
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int a, b, n; cin >> a >> b >> n; int count = 0; for (int i = a; i <= b; i++) { if (a % n == 0) { count++; } } cout << count << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, n; cin >> a >> b >> n; int count = 0; for (int i = a; i <= b; i++) { if (i % n == 0) { count++; } } cout << count << endl; }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
310,470
310,471
u926006934
cpp
p02606
#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() { int l, r, d; cin >> l >> r >> d; int ans = 0; for (int i = l; l <= r; l++) { if (i % d == 0) ans++; } cout << ans << endl; }
#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() { int l, r, d; cin >> l >> r >> d; int ans = 0; for (int i = l; i <= r; i++) { if (i % d == 0) ans++; } cout << ans << endl; }
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
310,482
310,483
u021657949
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int l, r, d; cin >> l >> r >> d; int ans = 0; for (int i = l; i <= r; i++) { if (l % d == 0) ans++; } cout << ans; }
#include <bits/stdc++.h> using namespace std; int main() { int l, r, d; cin >> l >> r >> d; int ans = 0; for (int i = l; i <= r; i++) { if (i % d == 0) ans++; } cout << ans; }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
310,484
310,485
u297195722
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int l, r, d; cin >> l >> r >> d; int ans = 0; for (int i = l; i <= r; i++) { if (i / d == 0) ans++; } cout << ans; }
#include <bits/stdc++.h> using namespace std; int main() { int l, r, d; cin >> l >> r >> d; int ans = 0; for (int i = l; i <= r; i++) { if (i % d == 0) ans++; } cout << ans; }
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
310,486
310,485
u297195722
cpp
p02606
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; cout << R / d - L / d << endl; return 0; }
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { int L, R, d; cin >> L >> R >> d; cout << R / d - (L - 1) / d << endl; return 0; }
[]
310,487
310,488
u270747526
cpp
p02606
#include <algorithm> #include <cassert> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <iterator> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <time.h> #include <vector> #pragma warn...
#include <algorithm> #include <cassert> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <iterator> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <time.h> #include <vector> #pragma warn...
[ "call.arguments.change" ]
310,489
310,490
u209713918
cpp
p02606
/* Author: Ritik Patel */ //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& STL DEBUGGER //&&&&&&&&&&&&&&&&&&&&&&&&&&& // #define _GLIBCXX_DEBUG // Iterator safety; out-of-bounds access for // Containers, etc. #pragma GCC optimize "trapv" // abort() on (signed) integer // overflow. //&&&&&&&&&&&&&&&&&&&&&&&&&&...
/* Author: Ritik Patel */ //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& STL DEBUGGER //&&&&&&&&&&&&&&&&&&&&&&&&&&& // #define _GLIBCXX_DEBUG // Iterator safety; out-of-bounds access for // Containers, etc. #pragma GCC optimize "trapv" // abort() on (signed) integer // overflow. //&&&&&&&&&&&&&&&&&&&&&&&&&&...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "control_flow.branch.if.condition.change" ]
310,493
310,494
u227976892
cpp
p02606
#include <bits/stdc++.h> using namespace std; int main() { int l, r, d, count = 0; cin >> l >> r >> d; for (int i = l; i <= r; i++) { if (d % i == 0) count++; } cout << count; }
// Implement stak using queue // making push operation costly #include <bits/stdc++.h> using namespace std; int main() { int l, r, d, count = 0; cin >> l >> r >> d; for (int i = l; i <= r; i++) { if (i % d == 0) count++; } cout << count; }
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "control_flow.branch.if.condition.change" ]
310,499
310,500
u802406405
cpp