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 |
|---|---|---|---|---|---|---|---|
p03835 | #include <iostream>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int res = 0;
for (int X = 0; X <= K; ++X) {
for (int Y = 0; Y <= K; ++Y) {
int Z = S - X - Y;
if (0 <= Z <= K)
++res;
}
}
cout << res << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int res = 0;
for (int X = 0; X <= K; ++X) {
for (int Y = 0; Y <= K; ++Y) {
int Z = S - X - Y;
if (Z >= 0 && Z <= K) {
++res;
}
}
}
cout << res << endl;
return 0;
}
| [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,454,540 | 1,454,541 | u802658869 | cpp |
p03835 | #include <iostream>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int count = 0;
for (int x = 0; x <= K; x++) {
for (int y = x; y <= K; y++) {
if (x + y + K < S || x + 2 * y > S)
break;
int z = S - x - y;
int c = int(x == y) + int(y == z) + int(z == x); // 0 or 1 or... | #include <iostream>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int count = 0;
for (int x = 0; x <= K; x++) {
for (int y = x; y <= K; y++) {
if (x + y + K < S || x + 2 * y > S)
continue;
int z = S - x - y;
int c = int(x == y) + int(y == z) + int(z == x); // 0 or 1... | [
"control_flow.break.remove",
"control_flow.continue.add"
] | 1,454,542 | 1,454,543 | u257134612 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
int main() {
int k, s, ans = 0;
cin >> k >> s;
for (int i = 0; i <= k; i++)
for (int j = 0; j <= k - i; j++) {
if (0 <= s - i - j && s - i - j <= k)
ans++;
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
int main() {
int k, s, ans = 0;
cin >> k >> s;
for (int i = 0; i <= k; i++)
for (int j = 0; j <= k; j++) {
if (0 <= s - i - j && s - i - j <= k)
ans++;
}
cout << ans << endl;
}
| [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 1,454,551 | 1,454,552 | u855016901 | cpp |
p03835 | #include <iostream>
using namespace std;
int main() {
int max, sum;
cin >> max >> sum;
int counter = 0;
for (int i = 0; i <= max; i++) {
for (int j = 0; j <= max; j++) {
if ((sum - i - j > 0) & (sum - i - j <= max))
counter++;
}
}
cout << counter << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int max, sum;
cin >> max >> sum;
int counter = 0;
for (int i = 0; i <= max; i++) {
for (int j = 0; j <= max; j++) {
if ((0 <= sum - i - j) & (sum - i - j <= max))
counter++;
}
}
cout << counter << endl;
return 0;
} | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 1,454,559 | 1,454,560 | u597274557 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int ans = 0;
for (int i = 0; i < k; i++) {
for (int j = 0; j < k; j++) {
int z = s - i - k;
if (z >= 0 && z <= k) {
ans++;
}
}
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int ans = 0;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++) {
int z = s - i - j;
if (z >= 0 && z <= k) {
ans++;
}
}
}
cout << ans << endl;
}
| [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"identifier.change"
] | 1,454,561 | 1,454,562 | u052800459 | cpp |
p03835 | #include <algorithm>
#include <iostream>
#include <map>
#include <random>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int k, s;
int count = 0;
int z;
cin >> k >> s;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++) {
z = s - i + j;
if ... | #include <algorithm>
#include <iostream>
#include <map>
#include <random>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int k, s;
int count = 0;
int z;
cin >> k >> s;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++) {
z = s - i - j;
if ... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,454,565 | 1,454,566 | u928591554 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int k, s;
cin >> k >> s;
ll cnt = 0;
REP(i, k + 1) {
REP(j, k + 1) {
if (s - i - j <= k + 1 && s - i - j >= 0) {
cnt++;
}
}
}
cout << cnt << endl... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int k, s;
cin >> k >> s;
ll cnt = 0;
REP(i, k + 1) {
REP(j, k + 1) {
if (s - i - j <= k && s - i - j >= 0) {
cnt++;
}
}
}
cout << cnt << endl;
} | [
"expression.operation.binary.remove"
] | 1,454,567 | 1,454,568 | u376859266 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define REP(i, n) for (ll i = 0; i < n; ++i)
int main(void) {
int K, S;
cin >> K >> S;
ll res = 0;
REP(x, K + 1) {
REP(y, K + 1) {
int z = S - x - y;
if (0 <= z <= K) {
res++;
}
}
}
cout << res << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define REP(i, n) for (ll i = 0; i < n; ++i)
int main(void) {
int K, S;
cin >> K >> S;
ll res = 0;
REP(x, K + 1) {
REP(y, K + 1) {
int z = S - x - y;
if (0 <= z && z <= K) {
res++;
}
}
}
cout << res << endl... | [
"control_flow.branch.if.condition.change"
] | 1,454,569 | 1,454,570 | u811612390 | cpp |
p03835 | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cstdint>
#include <cstdio>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
usi... | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cstdint>
#include <cstdio>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
usi... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 1,454,583 | 1,454,584 | u745134826 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, s;
cin >> k, s;
long long p = 0;
for (int i = 0; i < k + 1; i++) {
for (int j = 0; j < k + 1; j++) {
if (s - i - j >= 0 && s - i - j <= k) {
p++;
}
}
}
cout << p;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, s;
cin >> k >> s;
long long p = 0;
for (int i = 0; i < k + 1; i++) {
for (int j = 0; j < k + 1; j++) {
if (s - i - j >= 0 && s - i - j <= k) {
p++;
}
}
}
cout << p;
} | [] | 1,454,590 | 1,454,591 | u513211419 | cpp |
p03835 | #include <bits/stdc++.h>
#define fast ios::sync_with_stdio(false), cin.tie(0);
#define ll long long
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define endl '\n'
using namespace std;
main() {
fast;
int k, s, x, y, z, ans = 0;
cin >> k >> s;
int l;
for (x = 0; x <= k; x++) {
... | #include <bits/stdc++.h>
#define fast ios::sync_with_stdio(false), cin.tie(0);
#define ll long long
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define endl '\n'
using namespace std;
main() {
fast;
int k, s, x, y, z, ans = 0;
cin >> k >> s;
int l;
for (x = 0; x <= k; x++) {
... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,454,592 | 1,454,593 | u041940198 | cpp |
p03835 | #include <algorithm>
#include <iostream>
#include <vector>
// #include <map>
// #include <cmath>
// #include <string>
using namespace std;
// typedef unsigned long long ull;
int main(int argc, char const *argv[]) {
int K, S;
cin >> K >> S;
int ans = 0;
for (int Z = 0; Z <= K; Z++) {
if (S - Z <= K) {
... | #include <algorithm>
#include <iostream>
#include <vector>
// #include <map>
// #include <cmath>
// #include <string>
using namespace std;
// typedef unsigned long long ull;
int main(int argc, char const *argv[]) {
int K, S;
cin >> K >> S;
int ans = 0;
for (int Z = 0; Z <= min(K, S); Z++) {
if (S - Z <= ... | [
"control_flow.loop.for.condition.change",
"call.add",
"call.arguments.add"
] | 1,454,602 | 1,454,603 | u645041608 | cpp |
p03835 | #include <iostream>
using namespace std;
int main(void) {
int K, S, ans = 0;
cin >> K >> S;
for (int x = 0; x <= K; x++) {
for (int y = 0; y <= K - x; y++) {
int z = S - x - y;
if (0 <= z <= K) {
ans += 1;
}
}
}
cout << ans;
}
| #include <iostream>
using namespace std;
int main(void) {
int K, S, ans = 0;
cin >> K >> S;
for (int x = 0; x <= K; x++) {
for (int y = 0; y <= K; y++) {
int z = S - x - y;
if (0 <= z and z <= K) {
ans += 1;
}
}
}
cout << ans;
}
| [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change"
] | 1,454,612 | 1,454,613 | u582396808 | cpp |
p03835 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1000000;
using ll = long long;
using namespace std;
int main() {
int k, s, all_sum, count = 0;
cin >> k >> s;
rep(i, k + 1) {
rep(j, k + 1) {
... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1000000;
using ll = long long;
using namespace std;
int main() {
int k, s, all_sum, count = 0;
cin >> k >> s;
rep(i, k + 1) {
rep(j, k + 1) {
... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 1,454,614 | 1,454,615 | u716970267 | cpp |
p03835 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1000000;
using ll = long long;
using namespace std;
int main() {
int k, s, all_sum, count = 0;
cin >> k >> s;
rep(i, k + 1) {
rep(j, k + 1) {
... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1000000;
using ll = long long;
using namespace std;
int main() {
int k, s, all_sum, count = 0;
cin >> k >> s;
rep(i, k + 1) {
rep(j, k + 1) {
... | [
"misc.opposites",
"control_flow.branch.if.condition.change",
"expression.operator.compare.change"
] | 1,454,616 | 1,454,615 | u716970267 | cpp |
p03835 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int k, s, cnt = 0;
cin >> k >> s;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++) {
int z = max(0, s - i - j);
if (i + j + z == s)
cnt++;
}
}
cout << cnt;
}
| #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int k, s, cnt = 0;
cin >> k >> s;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++) {
int z = max(0, s - i - j);
if (i + j + z == s && z <= k)
cnt++;
}
}
cout << cnt;
}
| [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,454,623 | 1,454,624 | u639300218 | cpp |
p03835 | #include <algorithm>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int z;
int cnt = 0;
for (int i = 0; i <= K; i++) {
for (int j = 0; j <= K; j++) {
z = S - i - j;
if (z <= K) {
if (i + j + z == S) {
cnt++;
}
... | #include <algorithm>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int z;
int cnt = 0;
for (int i = 0; i <= K; i++) {
for (int j = 0; j <= K; j++) {
z = S - i - j;
if (z <= K && z >= 0) {
if (i + j + z == S) {
cnt++;
... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,454,630 | 1,454,631 | u361557064 | cpp |
p03835 | #include <iostream>
using namespace std;
int main() {
int s, k, ans = 0;
cin >> k >> s;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k - i; j++)
if (s - j - i >= 0 && s - i - j <= k)
ans++;
}
cout << ans << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int s, k, ans = 0;
cin >> k >> s;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++)
if (s - j - i >= 0 && s - i - j <= k)
ans++;
}
cout << ans << endl;
return 0;
} | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 1,454,632 | 1,454,633 | u723721005 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int ans = 0;
int z;
for (int x = 0; x <= K; x++) {
for (int y = 0; y <= K; y++) {
z = S - x - y;
if (z <= K)
ans++;
}
}
cout << ans << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int ans = 0;
int z;
for (int x = 0; x <= K; x++) {
for (int y = 0; y <= K; y++) {
z = S - x - y;
if (z <= K && z >= 0)
ans++;
}
}
cout << ans << endl;
return 0;
} | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,454,639 | 1,454,640 | u449303900 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(), (x).end()
using ll = long long;
int main() {
ll k, s, x, y, z, ans = 0;
cin >> k >> s;
for (x = 1; x < k; x++) {
for (y = 1; y < k; y++) {
z = s - x - y;
if (z >= 0 && z <= k)
ans++;
}
}
cout << ans;
retu... | #include <bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(), (x).end()
using ll = long long;
int main() {
ll k, s, x, y, z, ans = 0;
cin >> k >> s;
for (x = 0; x <= k; x++) {
for (y = 0; y <= k; y++) {
z = s - x - y;
if (z >= 0 && z <= k)
ans++;
}
}
cout << ans;
re... | [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 1,454,646 | 1,454,647 | u555091608 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int K, S;
cin >> K >> S;
int count = 0;
for (int i = 0; i <= K; i++) {
for (int j = 0; j <= K; j++) {
int z = S - i - j;
if (z >= 0 && z <= 2500) {
count++;
}
}
}
printf("%d", count);
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int K, S;
cin >> K >> S;
int count = 0;
for (int i = 0; i <= K; i++) {
for (int j = 0; j <= K; j++) {
int z = S - i - j;
if (z >= 0 && z <= K) {
count++;
}
}
}
printf("%d", count);
} | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 1,454,648 | 1,454,649 | u855871994 | cpp |
p03835 | #include <algorithm>
#include <cmath>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <numeric>
#include <string>
#include <tuple>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
using ... | #include <algorithm>
#include <cmath>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <numeric>
#include <string>
#include <tuple>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
using ... | [
"control_flow.loop.for.condition.change"
] | 1,454,652 | 1,454,653 | u275797573 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
int s, k;
int main() {
cin >> k >> s;
int Out = 0;
for (int i = 1; i <= k; i++) {
for (int j = 1; j <= k; j++) {
int sb = s - i - j;
if (sb >= 0 && sb <= k)
Out++;
}
}
printf("%d\n", Out);
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int s, k;
int main() {
cin >> k >> s;
long long Out = 0;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++) {
int sb = s - i - j;
if (sb >= 0 && sb <= k)
Out++;
}
}
printf("%lld\n", Out);
return 0;
}
| [
"variable_declaration.type.primitive.change",
"variable_declaration.type.widen.change",
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 1,454,663 | 1,454,664 | u035183549 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int ans = 0;
int C;
for (int A = 0; A <= K; A++) {
for (int B = 0; B <= K; B++) {
C = S - A - B;
if (0 < C && C < K) {
ans++;
}
}
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int ans = 0;
int C;
for (int A = 0; A <= K; A++) {
for (int B = 0; B <= K; B++) {
C = S - A - B;
if (0 <= C && C <= K) {
ans++;
}
}
}
cout << ans << endl;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,454,667 | 1,454,668 | u454081619 | cpp |
p03835 | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int k, s, ans = 0;
cin >> k >> s;
for (int i = 0; i < k; ++i) {
for (int j = 0; j < k; j++) {
int z = s - j - i;
if (z >= 0 && z <= k)
ans++;
}
}
cout << ans << endl;
} | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int k, s, ans = 0;
cin >> k >> s;
for (int i = 0; i <= k; ++i) {
for (int j = 0; j <= k; j++) {
int z = s - j - i;
if (z >= 0 && z <= k)
ans++;
}
}
cout << ans << endl;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 1,454,671 | 1,454,672 | u301012028 | cpp |
p03835 | #include <iostream>
using namespace std;
int main() {
int K, S;
int count = 0;
cin >> K >> S;
for (int x = 0; x <= K; x++) {
for (int y = 0; y <= K; y++) {
int z = S - x - y;
if (z == 0) {
count++;
}
}
}
cout << count << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int K, S;
int count = 0;
cin >> K >> S;
for (int x = 0; x <= K; x++) {
for (int y = 0; y <= K; y++) {
int z = S - x - y;
if (z >= 0 && z <= K) {
count++;
}
}
}
cout << count << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,454,673 | 1,454,674 | u223200011 | cpp |
p03835 | #include <iostream>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int res = 0;
for (int x = 0; x <= K; x++) {
for (int y = 0; y <= K; y++) {
int z = S - x - y;
if (z <= K) {
int sum = x + y + z;
if (sum == S) {
res++;
}
}
}
}
cout <... | #include <iostream>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int res = 0;
for (int x = 0; x <= K; x++) {
for (int y = 0; y <= K; y++) {
int z = S - x - y;
if (z >= 0 && z <= K) {
int sum = x + y + z;
if (sum == S) {
res++;
}
}
}
}... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,454,675 | 1,454,676 | u872837870 | cpp |
p03835 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
using namespace std;
int K;
int S;
int main() {
int count = 0;
cin >> K >> S;
for (int x; x <= K; x++) {
for (int y; y <= K; y++) {
int z = S - x - y;
int total = x + y + z;
if (0 <= z and z <= K) {
count++;... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
using namespace std;
int K;
int S;
int main() {
int count = 0;
cin >> K >> S;
for (int x = 0; x <= K; x++) {
for (int y = 0; y <= K; y++) {
int z = S - x - y;
int total = x + y + z;
if (0 <= z and z <= K) {
... | [
"control_flow.loop.for.initializer.change",
"variable_declaration.value.change"
] | 1,454,677 | 1,454,678 | u976795333 | cpp |
p03835 | //変数の数を減らす
// loopの上限は
#include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
int main() {
int K, S;
cin >> K >> S;
int counter = 0;
for (int i = 0; i <= K; i++) {
for (int j = 0; j <= K; j++) {
int k = S - i - j;
if (k >= 0 && k <= K) {
counter += 0;
}
}
}
... | //変数の数を減らす
// loopの上限は 1e8回/秒
#include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
int main() {
int K, S;
cin >> K >> S;
int counter = 0;
for (int i = 0; i <= K; i++) {
for (int j = 0; j <= K; j++) {
int k = S - i - j;
if (k >= 0 && k <= K) {
counter++;
}
}
... | [] | 1,454,679 | 1,454,680 | u158583803 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
int main() {
int K, S;
cin >> K >> S;
int counter = 0;
for (int i = 0; i <= K; i++) {
for (int j = i; j <= K; j++) {
for (int k = j; k <= K; k++) {
if ((i + j + k) == S) {
if (i != j && j != k && k != i)
... | #include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
int main() {
int K, S;
cin >> K >> S;
int counter = 0;
for (int i = 0; i <= K; i++) {
for (int j = i; j <= K; j++) {
for (int k = j; k <= K; k++) {
if ((i + j + k) == S) {
if (i != j && j != k && k != i)
... | [] | 1,454,681 | 1,454,682 | u158583803 | cpp |
p03835 | #include "bits/stdc++.h"
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int res = 0;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++) {
if ((i + j) <= k && (i + j) >= 0)
res++;
}
}
cout << res;
}
| #include "bits/stdc++.h"
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int res = 0;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++) {
if ((i + j) <= s && (i + j) >= s - k)
res++;
}
}
cout << res;
} | [
"identifier.change",
"control_flow.branch.if.condition.change",
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.condition.change"
] | 1,454,701 | 1,454,702 | u392419780 | cpp |
p03835 | #include <algorithm>
#include <cstdlib>
#include <iomanip> //小数点以下を表示させる(setprecision())
#include <iostream> //入出力
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
//#include <bits/stdc++.h>
using namespace std;
typedef long long ... | #include <algorithm>
#include <cstdlib>
#include <iomanip> //小数点以下を表示させる(setprecision())
#include <iostream> //入出力
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
//#include <bits/stdc++.h>
using namespace std;
typedef long long ... | [] | 1,454,708 | 1,454,709 | u966508131 | cpp |
p03835 | #include <bits/stdc++.h>
#define HAIRETU(N, A) \
for (int i = 0; i < N; i++) \
cin >> A[i]
using namespace std;
int main() {
int K, S, cnt = 0;
cin >> K >> S;
for (int X = 0; X < K; X++) {
for (int Y... | #include <bits/stdc++.h>
#define HAIRETU(N, A) \
for (int i = 0; i < N; i++) \
cin >> A[i]
using namespace std;
int main() {
int K, S, cnt = 0;
cin >> K >> S;
for (int X = 0; X <= K; X++) {
for (int ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 1,454,710 | 1,454,711 | u966508131 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int K, S;
cin >> K >> S;
int z, cnt = 0;
rep(x, K + 1) {
rep(y, K + 1) {
z = S - (x + y);
if (z <= K)
cnt++;
}
}
cout << cnt << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int K, S;
cin >> K >> S;
int z, cnt = 0;
rep(x, K + 1) {
rep(y, K + 1) {
z = S - (x + y);
if (0 <= z and z <= K)
cnt++;
}
}
cout << cnt << endl;
} | [
"control_flow.branch.if.condition.change"
] | 1,454,712 | 1,454,713 | u487530783 | cpp |
p03835 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define repr(i, a, b) for (in... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define repr(i, a, b) for (in... | [
"control_flow.branch.if.condition.change"
] | 1,454,722 | 1,454,723 | u314008046 | cpp |
p03835 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int cnt = 0;
for (int i = 0; i < K; i++) {
for (int j = 0; j < K; j++) {
if (i + j <= S && i + j >= S - K)
cnt++;
}
}
cout << cnt <... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int cnt = 0;
for (int i = 0; i <= K; i++) {
for (int j = 0; j <= K; j++) {
if (i + j <= S && i + j >= S - K)
cnt++;
}
}
cout << cnt... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 1,454,724 | 1,454,725 | u314008046 | cpp |
p03835 | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0, i##_len = int(n); i < i##_len; ++i)
#define rep(i, a, b) for (int i = int(a); i < int(b); ++i)
#define All(x) (x).begin(), (x).end()
#define rAll(x) (x).rbegin(), (x).rend()
using namespace std;
using ll = long long;
int main() {
int K, S;
cin >> K >> S;
... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0, i##_len = int(n); i < i##_len; ++i)
#define rep(i, a, b) for (int i = int(a); i < int(b); ++i)
#define All(x) (x).begin(), (x).end()
#define rAll(x) (x).rbegin(), (x).rend()
using namespace std;
using ll = long long;
int main() {
int K, S;
cin >> K >> S;
... | [
"identifier.change",
"expression.operation.binary.change"
] | 1,454,728 | 1,454,729 | u203033720 | cpp |
p03835 | /*
* wafuIroha.cpp
*
* Created on: 2020/02/23
* Author: black
*/
#include <algorithm>
#include <iostream>
#include <utility>
using namespace std;
int main() {
int k, s, z;
cin >> k >> s;
int count = 0;
for (int i = 0; i <= k; ++i) {
for (int j = 0; j <= k; ++j) {
z = s - i - j;
if (... | /*
* wafuIroha.cpp
*
* Created on: 2020/02/23
* Author: black
*/
#include <algorithm>
#include <iostream>
#include <utility>
using namespace std;
int main() {
int k, s, z;
cin >> k >> s;
int count = 0;
for (int i = 0; i <= k; ++i) {
for (int j = 0; j <= k; ++j) {
z = s - i - j;
if (... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,454,730 | 1,454,731 | u183987726 | cpp |
p03835 |
#include <algorithm>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int X, Y, Z;
int count = 0;
for (int X = 0; X <= K; X++) {
for (int Y = 0; Y <= K; Y++) {
Z = S - X + Y;
if (Z >= 0 && Z <= K)
count++;
}
... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int X, Y, Z;
int count = 0;
for (int X = 0; X <= K; X++) {
for (int Y = 0; Y <= K; Y++) {
Z = S - X - Y;
if (Z >= 0 && Z <= K)
count++;
}
}... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 1,454,740 | 1,454,741 | u760416403 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define FOR(i, a, b) for (int i = (a); i <= (b); i++)
#define rep(i, n) \
; \
for (int i = 0; i < (n); i++)
#def... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define FOR(i, a, b) for (int i = (a); i <= (b); i++)
#define rep(i, n) \
; \
for (int i = 0; i < (n); i++)
#def... | [
"expression.operation.binary.add"
] | 1,454,742 | 1,454,743 | u552847961 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define FOR(i, a, b) for (int i = (a); i <= (b); i++)
#define rep(i, n) \
; \
for (int i = 0; i < (n); i++)
#def... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define FOR(i, a, b) for (int i = (a); i <= (b); i++)
#define rep(i, n) \
; \
for (int i = 0; i < (n); i++)
#def... | [
"expression.operation.binary.remove"
] | 1,454,744 | 1,454,745 | u552847961 | cpp |
p03835 | #include <algorithm>
#include <cerrno>
#include <cfenv>
#include <cmath>
#include <cstring>
#include <functional>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int tmpX, tmpY, tmpZ;
int SminusZ;
int count = 0;
for (int i = 0; i < K + 1; i++) {
tmpZ =... | #include <algorithm>
#include <cerrno>
#include <cfenv>
#include <cmath>
#include <cstring>
#include <functional>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int tmpX, tmpY, tmpZ;
int SminusZ;
int count = 0;
for (int i = 0; i < K + 1; i++) {
tmpZ =... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 1,454,746 | 1,454,747 | u564244050 | cpp |
p03835 | #include <algorithm>
#include <cerrno>
#include <cfenv>
#include <cmath>
#include <cstring>
#include <functional>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int tmpX, tmpY, tmpZ;
int SminusZ;
int count = 0;
for (int i = 0; i < K + 1; i++) {
tmpZ =... | #include <algorithm>
#include <cerrno>
#include <cfenv>
#include <cmath>
#include <cstring>
#include <functional>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int tmpX, tmpY, tmpZ;
int SminusZ;
int count = 0;
for (int i = 0; i < K + 1; i++) {
tmpZ =... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,454,748 | 1,454,747 | u564244050 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
main() {
long long k, s, ans = 0;
cin >> k >> s;
for (int i = 0; i <= k; i++)
for (int j = 0; j <= k; j++) {
ans += (0 <= s - i - j and s - i - j <= j);
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
main() {
long long k, s, ans = 0;
cin >> k >> s;
for (int i = 0; i <= k; i++)
for (int j = 0; j <= k; j++) {
ans += (0 <= s - i - j and s - i - j <= k);
}
cout << ans << endl;
}
| [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 1,454,749 | 1,454,750 | u495699318 | cpp |
p03835 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define _GLIBCXX_DEBUG
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int count = 0;
for (int x; x <= k; x++) {
for (int y; y <= k; y++) {
int z = s - x - y;
if (0 <= z <= k)
count++;
}
}
cout << ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define _GLIBCXX_DEBUG
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int count = 0;
for (int x = 0; x <= k; x++) {
for (int y = 0; y <= k; y++) {
int z = s - x - y;
if (0 <= z && z <= k)
count++;
}
... | [
"control_flow.loop.for.initializer.change",
"variable_declaration.value.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,454,751 | 1,454,752 | u863717702 | cpp |
p03835 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define _GLIBCXX_DEBUG
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int count = 0;
for (int x; x <= k; x++) {
for (int y; y <= k; y++) {
int z = s - x - y;
if (0 <= z <= k)
count++;
}
}
cout << ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define _GLIBCXX_DEBUG
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int count = 0;
for (int x = 0; x <= k; x++) {
for (int y = 0; y <= k; y++) {
int z = s - x - y;
if (0 <= z && z <= k)
count++;
}
... | [
"control_flow.loop.for.initializer.change",
"variable_declaration.value.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,454,753 | 1,454,752 | u863717702 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int count = 0;
for (int i = 0; i <= K; i++) {
for (int j = 0; j <= K; j++) {
int k = S - j - i;
if (k > 0 && k <= K)
count++;
}
}
cout << count << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int count = 0;
for (int i = 0; i <= K; i++) {
for (int j = 0; j <= K; j++) {
int k = S - j - i;
if (k >= 0 && k <= K)
count++;
}
}
cout << count << endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,454,756 | 1,454,757 | u620626180 | cpp |
p03835 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main(void) {
// Your code here!
int a, s;
int result = 0;
cin >> a >> s;
for (int i = 0; i <= a; i++) {
for (int j = 1; j <= a; j++) {
int sum = s - (i + j);
if (sum <= a ... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main(void) {
// Your code here!
int a, s;
int result = 0;
cin >> a >> s;
for (int i = 0; i <= a; i++) {
for (int j = 0; j <= a; j++) {
int sum = s - (i + j);
if (sum <= a ... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 1,454,761 | 1,454,762 | u729404925 | cpp |
p03835 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main(void) {
// Your code here!
int a, s;
int result = 0;
cin >> a >> s;
for (int i = 0; i <= a; i++) {
for (int j = 1; j <= a; j++) {
int sum = s - (i + j);
if (sum <= a)... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main(void) {
// Your code here!
int a, s;
int result = 0;
cin >> a >> s;
for (int i = 0; i <= a; i++) {
for (int j = 0; j <= a; j++) {
int sum = s - (i + j);
if (sum <= a ... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,454,763 | 1,454,762 | u729404925 | cpp |
p03835 | #include <iomanip>
#include <iostream>
using namespace std;
#define rep(i, a, n) for (int i = (a); i < (n); ++i)
void Main() {
int K, s;
cin >> K >> s;
int cnt = 0;
rep(i, 0, K + 1) {
rep(j, 0, K + 1) {
int k = s - i - j;
if (0 <= k && i + j + k == s) {
cnt++;
}
}
}
cout... | #include <iomanip>
#include <iostream>
using namespace std;
#define rep(i, a, n) for (int i = (a); i < (n); ++i)
void Main() {
int K, s;
cin >> K >> s;
int cnt = 0;
rep(i, 0, K + 1) {
rep(j, 0, K + 1) {
int k = s - i - j;
if (0 <= k && k <= K && i + j + k == s) {
cnt++;
}
}
... | [
"control_flow.branch.if.condition.change"
] | 1,454,766 | 1,454,767 | u277956366 | cpp |
p03835 | #include <cmath>
#include <fstream>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define REP(i, n) for (int i = 0; i < (n); ++i)
typedef long long ll;
int main() {
int k, s;
cin >> k;
cin >> s;
int ans = 0;
for (int a = 0; a <= k; ++a) {
for (int b = ... | #include <cmath>
#include <fstream>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define REP(i, n) for (int i = 0; i < (n); ++i)
typedef long long ll;
int main() {
int k, s;
cin >> k;
cin >> s;
int ans = 0;
for (int a = 0; a <= k; ++a) {
for (int b = ... | [
"identifier.change",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change"
] | 1,454,768 | 1,454,769 | u833549197 | cpp |
p03835 | #include <algorithm>
#include <array>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <unorder... | #include <algorithm>
#include <array>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <unorder... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 1,454,770 | 1,454,771 | u162948713 | cpp |
p03835 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <chrono>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <stri... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <chrono>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <stri... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,454,775 | 1,454,776 | u348155686 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
int main() {
int K;
int S;
cin >> K >> S;
int ans = 0;
for (int i = 0; i <= K; i++) {
for (int j = 0; j <= K; j++) {
int k = S - i - j;
if (k >= 0) {
ans++;
}
}
}
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int K;
int S;
cin >> K >> S;
int ans = 0;
for (int i = 0; i <= K; i++) {
for (int j = 0; j <= K; j++) {
int k = S - i - j;
if (k >= 0 && k <= K) {
ans++;
}
}
}
cout << ans << endl;
} | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,454,777 | 1,454,778 | u564060397 | cpp |
p03835 | #include <iostream>
using namespace std;
int main() {
int k, s, count = 0;
cin >> k >> s;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++) {
if ((i + j <= s) && (s - 2500 <= i + j)) {
count++;
}
}
}
cout << count << endl;
} | #include <iostream>
using namespace std;
int main() {
int k, s, count = 0;
cin >> k >> s;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++) {
if ((i + j <= s) && (s - k <= i + j)) {
count++;
}
}
}
cout << count << endl;
} | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 1,454,779 | 1,454,780 | u595607222 | cpp |
p03835 | #include <cmath>
#include <ctype.h>
#include <iostream>
#include <string>
using namespace std;
int K, S;
int main() {
cin >> K >> S;
int cnt = 0;
for (int i = K; i >= 0; --i) {
for (int j = 0; j <= K; ++j) {
if (S - i - j < 0 || S - i - j > K) {
break;
} else {
cnt++;
}
}... | #include <cmath>
#include <ctype.h>
#include <iostream>
#include <string>
using namespace std;
int K, S;
int main() {
cin >> K >> S;
int cnt = 0;
for (int i = K; i >= 0; --i) {
for (int j = 0; j <= K; ++j) {
if (S - i - j < 0 || S - i - j > K) {
continue;
} else {
cnt++;
}
... | [
"control_flow.break.remove",
"control_flow.continue.add"
] | 1,454,781 | 1,454,782 | u181719868 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep2(i, n) for (int i = 1; i < n; i++)
int main() {
int k, s, ans = 0;
cin >> k >> s;
for (int x = 0; x <= k; x++) {
for (int y = 0; x <= k; x++) {
int z = s - x - y;
if (z <= k && z >= 0)
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep2(i, n) for (int i = 1; i < n; i++)
int main() {
int k, s, ans = 0;
cin >> k >> s;
for (int x = 0; x <= k; x++) {
for (int y = 0; y <= k; y++) {
int z = s - x - y;
if (z <= k && z >= 0)
... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 1,454,789 | 1,454,788 | u705561278 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int answer = 0;
for (int x = 0; x <= k; x++) {
for (int y = 0; y <= k; y++) {
int z = s - x + y;
if (z >= 0 && z <= k) {
answer++;
}
}
}
cout << answer << '\n';
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int answer = 0;
for (int x = 0; x <= k; x++) {
for (int y = 0; y <= k; y++) {
int z = s - x - y;
if (z >= 0 && z <= k) {
answer++;
}
}
}
cout << answer << '\n';
return 0;
}
| [
"misc.opposites",
"expression.operator.arithmetic.change",
"expression.operation.binary.change"
] | 1,454,790 | 1,454,791 | u118501689 | cpp |
p03835 | #include <algorithm>
#include <climits>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
void solve() {
int K, S;
cin >> K >> S;
int count = 0;
rep(i, K + 1) {
if (S - i > 2 * K)
continue;
if (S - i < 0)
break;... | #include <algorithm>
#include <climits>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
void solve() {
int K, S;
cin >> K >> S;
int count = 0;
rep(i, K + 1) {
if (S - i > 2 * K)
continue;
if (S - i < 0)
break;... | [] | 1,454,794 | 1,454,795 | u058809975 | cpp |
p03835 | // include
//------------------------------------------
#include <bits/stdc++.h>
using namespace std;
// conversion
//------------------------------------------
inline int toInt(string s) {
int v;
istringstream sin(s);
sin >> v;
return v;
}
template <class T> inline string toString(T x) {
ostringstream sout;
... | // include
//------------------------------------------
#include <bits/stdc++.h>
using namespace std;
// conversion
//------------------------------------------
inline int toInt(string s) {
int v;
istringstream sin(s);
sin >> v;
return v;
}
template <class T> inline string toString(T x) {
ostringstream sout;
... | [
"expression.operation.binary.remove"
] | 1,454,803 | 1,454,804 | u934272719 | cpp |
p03835 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
int main() {
int k;
int s;
cin >> k;
cin >> s;
int count = 0;
for (int x = 0; x < k; x++) {
for (int y = 0; y < k; y++) {
if ((s - x - y <= k) && (s - x - y >= 0)) {
count... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
int main() {
int k;
int s;
cin >> k;
cin >> s;
int count = 0;
for (int x = 0; x <= k; x++) {
for (int y = 0; y <= k; y++) {
if ((s - x - y <= k) && (s - x - y >= 0)) {
cou... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 1,454,805 | 1,454,806 | u394974273 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repa(i, a, n) for (int i = (int)(a); i < (int)(n); i++)
#define PI (acos(-1))
#define _GLIBCXX_DEBUG
int main() {
int k, s;
cin >> k >> s;
int ans = 0;
rep(i, k + 1) {
rep(j, k... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repa(i, a, n) for (int i = (int)(a); i < (int)(n); i++)
#define PI (acos(-1))
#define _GLIBCXX_DEBUG
int main() {
int k, s;
cin >> k >> s;
int ans = 0;
rep(i, k + 1) {
rep(j, k... | [
"identifier.change",
"expression.operation.binary.change"
] | 1,454,820 | 1,454,821 | u939552576 | cpp |
p03835 | #include <iostream>
#include <string>
using namespace std;
int main() {
int t = 0, k, s;
cin >> k >> s;
for (int x = 0; x < k; x++) {
for (int y = 0; y < k; y++) {
if (s - x - y >= 0 && s - x - y <= k) {
t += 1;
}
}
}
cout << t << endl;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int t = 0, k, s;
cin >> k >> s;
for (int x = 0; x <= k; x++) {
for (int y = 0; y <= k; y++) {
if (s - x - y >= 0 && s - x - y <= k) {
t += 1;
}
}
}
cout << t << endl;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 1,454,824 | 1,454,825 | u934980458 | cpp |
p03835 | #include <bits/stdc++.h>
#define rep(var, cnt) for (int(var) = 0; (var) < (int)(cnt); ++(var))
#define Rep(var, init, cnt) for (int(var) = (init); (var) < (int)(cnt); ++(var))
#define REP(var, init, cnt) \
for (int(var) = (init); (var) <= (int)(cnt); ++(var))
#define... | #include <bits/stdc++.h>
#define rep(var, cnt) for (int(var) = 0; (var) < (int)(cnt); ++(var))
#define Rep(var, init, cnt) for (int(var) = (init); (var) < (int)(cnt); ++(var))
#define REP(var, init, cnt) \
for (int(var) = (init); (var) <= (int)(cnt); ++(var))
#define... | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change"
] | 1,454,838 | 1,454,839 | u143572112 | cpp |
p03835 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define PI 3.1415926535897932384626433832795
#define MOD (1000000007)
#define rep(i, n) for (int i = 0; i ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define PI 3.1415926535897932384626433832795
#define MOD (1000000007)
#define rep(i, n) for (int i = 0; i ... | [
"control_flow.branch.if.condition.change"
] | 1,454,842 | 1,454,841 | u547448704 | cpp |
p03835 | #include <iostream>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int count = 0;
for (int x = 0; x <= K; x++) {
for (int y = 0; y <= K; y++) {
int z = S - x - y;
if (z >= 0) {
count++;
}
}
}
cout << count << endl;
}
| #include <iostream>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int count = 0;
for (int x = 0; x <= K; x++) {
for (int y = 0; y <= K; y++) {
int z = S - x - y;
if (z >= 0 && z <= K) {
count++;
}
}
}
cout << count << endl;
}
| [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,454,845 | 1,454,846 | u077051605 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int count = 0;
for (int x = 0; x <= K; x++) {
for (int y = 0; y <= K; y++) {
int z = S - x - y;
if (z >= 0 && z <= S) {
count++;
}
}
}
cout << count << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int count = 0;
for (int x = 0; x <= K; x++) {
for (int y = 0; y <= K; y++) {
int z = S - x - y;
if (z >= 0 && z <= K) {
count++;
}
}
}
cout << count << endl;
return 0;
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,454,847 | 1,454,848 | u077051605 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int count = 0;
for (int x = 0; x <= K; x++) {
for (int y = 0; y <= K; y++) {
int z = S - x - y;
if (z >= 0 && z <= S) {
count++;
}
}
}
cout << count << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int count = 0;
for (int x = 0; x <= K; x++) {
for (int y = 0; y <= K; y++) {
int z = S - x - y;
if (z >= 0 && z <= K) {
count++;
}
}
}
cout << count << endl;
return 0;
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,454,847 | 1,454,849 | u077051605 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, k;
int ans = 0;
// freopen("input.txt","r",stdin);
cin >> n >> k;
for (int i = 0; i <= n; i++) {
for (int j = 0; j <= n; j++) {
int s = k - i - j;
if (s >= 0 && s <= k) {
ans++;
}
}
}
cout << ans << ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, k;
int ans = 0;
// freopen("input.txt","r",stdin);
cin >> n >> k;
for (int i = 0; i <= n; i++) {
for (int j = 0; j <= n; j++) {
int s = k - i - j;
if (s >= 0 && s <= n) {
ans++;
}
}
}
cout << ans << ... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,454,859 | 1,454,860 | u258469084 | cpp |
p03835 | #define DBG 0 // submit 0
#define ll long long
#if DBG
#include <algorithm>
#include <array>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <numeric>
#include <queue>
#include <string>
#include <unordered_map>
#include <vector>
#else
#include <bits/stdc++.h>
#endif
using namespace st... | #define DBG 0 // submit 0
#define ll long long
#if DBG
#include <algorithm>
#include <array>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <numeric>
#include <queue>
#include <string>
#include <unordered_map>
#include <vector>
#else
#include <bits/stdc++.h>
#endif
using namespace st... | [] | 1,454,863 | 1,454,864 | u099619676 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, cnt = 0;
cin >> x >> y;
for (int i = 0; i <= x; i++)
for (int j = 0; j <= x; j++) {
int z = y - i - j;
if (z >= 0 && z <= y)
cnt++;
}
cout << cnt;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, cnt = 0;
cin >> x >> y;
for (int i = 0; i <= x; i++)
for (int j = 0; j <= x; j++) {
int z = y - i - j;
if (z >= 0 && z <= x)
cnt++;
}
cout << cnt;
return 0;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,454,865 | 1,454,866 | u115867677 | cpp |
p03835 | #include <iostream>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int ct = 0;
for (int a = 0; a <= K; a++) {
for (int b = 0; b <= K; b++) {
int c = S - b - a;
if (c <= K) {
ct++;
}
}
}
cout << ct << endl;
} | #include <iostream>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int ct = 0;
for (int a = 0; a <= K; a++) {
for (int b = 0; b <= K; b++) {
int c = S - b - a;
if (c <= K && 0 <= c) {
ct++;
}
}
}
cout << ct << endl;
} | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,454,874 | 1,454,875 | u015757875 | cpp |
p03835 | #include <iostream>
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int res = 0;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++) {
int tmp = s - i - j;
if (s >= 0 && s <= k) {
res++;
}
}
}
cout << res << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int res = 0;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++) {
int tmp = s - i - j;
if (tmp >= 0 && tmp <= k) {
res++;
}
}
}
cout << res << endl;
return 0;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,454,883 | 1,454,884 | u324549724 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int kai = 0;
for (int x = 0; x <= k; x++) {
for (int y = 0; y <= k; y++) {
if (s - x - y >= 0 && s - x - y <= k) {
kai++;
break;
}
}
}
cout << kai << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int kai = 0;
for (int x = 0; x <= k; x++) {
for (int y = 0; y <= k; y++) {
if (s - x - y >= 0 && s - x - y <= k) {
kai++;
}
}
}
cout << kai << endl;
}
| [] | 1,454,887 | 1,454,888 | u323864528 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int kai = 0;
for (int x = 0; x < k; x++) {
for (int y = 0; y < k; y++) {
if (s - x - y >= 0 && s - x - y <= k) {
kai++;
break;
}
}
}
cout << kai << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int kai = 0;
for (int x = 0; x <= k; x++) {
for (int y = 0; y <= k; y++) {
if (s - x - y >= 0 && s - x - y <= k) {
kai++;
}
}
}
cout << kai << endl;
}
| [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 1,454,889 | 1,454,888 | u323864528 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int count = 0;
for (int i = 0; i < K; i++) {
for (int j = 0; j < K; j++) {
if (i + j <= S && S - i - j <= K)
count++;
}
}
cout << count << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int count = 0;
for (int i = 0; i <= K; i++) {
for (int j = 0; j <= K; j++) {
if (i + j <= S && S - i - j <= K)
count++;
}
}
cout << count << endl;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 1,454,892 | 1,454,893 | u384267577 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cout.tie(0);
cin.tie(0);
int k, s, ans = 0;
cin >> k >> s;
for (int x = 0; x <= k; x++) {
for (int y = 0; y <= k; y++) {
int z = s - x - y;
if (z <= 0 and z <= k)
ans++;
}
}
cout << an... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cout.tie(0);
cin.tie(0);
int k, s, ans = 0;
cin >> k >> s;
for (int x = 0; x <= k; x++) {
for (int y = 0; y <= k; y++) {
int z = s - x - y;
if (z >= 0 and z <= k)
ans++;
}
}
cout << an... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,454,909 | 1,454,910 | u369355792 | cpp |
p03835 | #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,454,913 | 1,454,914 | u154645927 | cpp |
p03835 | #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,454,915 | 1,454,914 | u154645927 | cpp |
p03835 | #include <algorithm>
#include <bits/stdc++.h>
#include <cmath> // abs() for float, and fabs()
#include <cstdlib> // abs() for integer 絶対値求めやつ
#include <iomanip> //浮動小数点数を出力する制度の指定
#include <string>
#include <vector>
//使い方 数値をnumとして cout<<setprecision(n)<<num ;nは桁数
#define rep(i, n) for (int i = 0; i < (n); i++)
#defi... | #include <algorithm>
#include <bits/stdc++.h>
#include <cmath> // abs() for float, and fabs()
#include <cstdlib> // abs() for integer 絶対値求めやつ
#include <iomanip> //浮動小数点数を出力する制度の指定
#include <string>
#include <vector>
//使い方 数値をnumとして cout<<setprecision(n)<<num ;nは桁数
#define rep(i, n) for (int i = 0; i < (n); i++)
#defi... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,454,924 | 1,454,925 | u298620933 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define all(v) v.begin(), v.end()
using in = int64_t;
#define rep(i, n) for (in i = 0; i < (in)(n); i++)
const double PI = 3.14159265358979323846;
const int64_t waru = 1000000007;
const in INF = 1 << 30;
#define vec2(a, y, x) vector<vector<int>> a(y, ... | #include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define all(v) v.begin(), v.end()
using in = int64_t;
#define rep(i, n) for (in i = 0; i < (in)(n); i++)
const double PI = 3.14159265358979323846;
const int64_t waru = 1000000007;
const in INF = 1 << 30;
#define vec2(a, y, x) vector<vector<int>> a(y, ... | [
"expression.operation.binary.add"
] | 1,454,926 | 1,454,927 | u424602097 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int sum = 0;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++) {
int z = s - i - j;
if (z <= k && z) {
sum++;
}
}
}
cout << sum << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int sum = 0;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++) {
int z = s - i - j;
if (z <= k && z >= 0) {
sum++;
}
}
}
cout << sum << endl;
} | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,454,928 | 1,454,929 | u723083115 | cpp |
p03835 | #include <iostream>
using namespace std;
int main() {
int x, y, z, s, k, rc = 0;
cin >> k >> s;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++) {
if (s - i - j <= 5 && s - i - j >= 0) {
rc++;
}
}
}
cout << rc;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y, z, s, k, rc = 0;
cin >> k >> s;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++) {
if (s - i - j <= k && s - i - j >= 0) {
rc++;
}
}
}
cout << rc;
return 0;
} | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 1,454,932 | 1,454,933 | u834488582 | cpp |
p03835 | #include <iostream>
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int res = 0;
for (int a = 0; a < k + 1; a++) {
for (int b = 0; b < k + 1; b++) {
int total = a + b;
if (0 <= s - total <= k)
++res;
}
}
cout << res << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int res = 0;
for (int a = 0; a < k + 1; a++) {
for (int b = 0; b < k + 1; b++) {
int total = a + b;
if (0 <= s - total && s - total <= k)
++res;
}
}
cout << res << endl;
return 0;
}
| [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,454,937 | 1,454,938 | u745267317 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define irep(i, n) for (int i = n - 1; i >= (int)0; i--)
#define reprep(i, j, h, w) rep(i, h) rep(j, w)
#define rrep(i, m, n) for (int i = m; i < (int)(n); i++)
#define all(x) (x).begin(... | #include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define irep(i, n) for (int i = n - 1; i >= (int)0; i--)
#define reprep(i, j, h, w) rep(i, h) rep(j, w)
#define rrep(i, m, n) for (int i = m; i < (int)(n); i++)
#define all(x) (x).begin(... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,454,939 | 1,454,940 | u539011156 | cpp |
p03835 | #include <iostream>
using namespace std;
int main(void) {
int k, s;
cin >> k >> s;
int num = 0;
for (int x = 0; x <= k; ++x) {
for (int y = 0; y <= k - x; ++y) {
int z = s - x - y;
if (z >= 0 and z <= k)
num++;
}
}
cout << num;
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int k, s;
cin >> k >> s;
int num = 0;
for (int x = 0; x <= k; ++x) {
for (int y = 0; y <= k; ++y) {
int z = s - x - y;
if (z >= 0 and z <= k)
num++;
}
}
cout << num;
return 0;
} | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 1,454,949 | 1,454,950 | u050947191 | cpp |
p03835 | #include <iostream>
using namespace std;
int main(void) {
int k, s;
cin >> k >> s;
int num = 0;
for (int x = 0; x <= k; x++) {
for (int y = 0; y <= k - x; y++) {
int z = s - x - y;
if (z >= 0 and z <= k)
num++;
}
}
cout << num;
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int k, s;
cin >> k >> s;
int num = 0;
for (int x = 0; x <= k; ++x) {
for (int y = 0; y <= k; ++y) {
int z = s - x - y;
if (z >= 0 and z <= k)
num++;
}
}
cout << num;
return 0;
} | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 1,454,951 | 1,454,950 | u050947191 | cpp |
p03835 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main() {
int k, s;
cin >> k >> s;
int ans = 0;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++) {
if (s >= i + j || s - (i + j) <= k)
a... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main() {
int k, s;
cin >> k >> s;
int ans = 0;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++) {
if (s >= i + j && s - (i + j) <= k)
a... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 1,454,963 | 1,454,964 | u681559222 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int ct = 0;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++) {
int temp = s - (i + j);
if (temp <= k) {
ct++;
// cout<<i<<" "<<j<<" "<<temp<<endl;
}
}
}
cout << ct << endl... | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int ct = 0;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++) {
int temp = s - (i + j);
if (temp <= k and temp >= 0) {
ct++;
// cout<<i<<" "<<j<<" "<<temp<<endl;
}
}
}
cout... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,454,969 | 1,454,970 | u546575131 | cpp |
p03835 | #include <bits/stdc++.h>
#include <iomanip>
using namespace std;
typedef long long ll;
typedef long l;
typedef pair<int, int> P;
#define rep(i, n) for (int i = 0; i < n; i++)
#define fs first
#define sc second
#define pb push_back
#define mp make_pair
#define eb emplace_back
#define ALL(A) A.begin(), A.end()
const doub... | #include <bits/stdc++.h>
#include <iomanip>
using namespace std;
typedef long long ll;
typedef long l;
typedef pair<int, int> P;
#define rep(i, n) for (int i = 0; i < n; i++)
#define fs first
#define sc second
#define pb push_back
#define mp make_pair
#define eb emplace_back
#define ALL(A) A.begin(), A.end()
const doub... | [
"control_flow.branch.if.condition.change"
] | 1,454,971 | 1,454,972 | u634999820 | cpp |
p03835 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
int count(int a, int b, int c) {
int ret[] = {1, 3, 6};
vector<int> v = {a, b, c};
sort(v.begin(), v.end());
v.erase(unique(v.begin(), v.end()), v.end());
return ret[v.size() - 1];
}
int main() {
int K, S, ans... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
int count(int a, int b, int c) {
int ret[] = {1, 3, 6};
vector<int> v = {a, b, c};
sort(v.begin(), v.end());
v.erase(unique(v.begin(), v.end()), v.end());
return ret[v.size() - 1];
}
int main() {
int K, S, ans... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,454,973 | 1,454,974 | u024469792 | cpp |
p03835 | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <queue>
#include <string>
#include <time.h>
#include <unordered_map>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
int main() {
int k, s;
double sum = 0;
cin >> k >> s;
rep(i, k + 1) ... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <queue>
#include <string>
#include <time.h>
#include <unordered_map>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
int main() {
int k, s;
int sum = 0;
cin >> k >> s;
rep(i, k + 1) {
... | [
"variable_declaration.type.primitive.change",
"expression.operation.binary.remove"
] | 1,455,000 | 1,454,999 | u965336480 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main() {
int K, S;
cin >> K >> S;
// cout << "S-K: " << S-K << " S: " << S << endl;
int ans = 0;
for (int x = 0; x <= K; x++) {
for (int y = 0; y <= K; y++) {
// for(int z=0; z<=K; z++){
// if(... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main() {
int K, S;
cin >> K >> S;
// cout << "S-K: " << S-K << " S: " << S << endl;
int ans = 0;
for (int x = 0; x <= K; x++) {
for (int y = 0; y <= K; y++) {
// for(int z=0; z<=K; z++){
// if(... | [
"expression.operation.binary.remove"
] | 1,455,001 | 1,455,002 | u153607901 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
int main() {
int K;
int S;
cin >> K >> S;
int X;
int Y;
int Z;
int num = 0;
for (X = K; X >= 0; --X) {
for (Y = K; Y >= K; --Y) {
Z = S - X - Y;
if (Z >= 0 && Z <= K) {
num++;
}
}
}
cout << num << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int K;
int S;
cin >> K >> S;
int X;
int Y;
int Z;
int num = 0;
for (X = K; X >= 0; --X) {
for (Y = K; Y >= 0; --Y) {
Z = S - X - Y;
if (Z >= 0 && Z <= K) {
num++;
}
}
}
cout << num << endl;
}
| [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 1,455,027 | 1,455,028 | u091026689 | cpp |
p03835 | #include <bits/stdc++.h>
#define rep(i, k) for (int i = 0; i < k; i++)
using namespace std;
int main() {
int s, k;
int count = 0;
cin >> k >> s;
rep(i, k + 1) rep(j, k + 1) {
int z = s - i - j;
if (i + j + z == s && z <= k)
count++;
}
cout << count << endl;
return 0;
} | #include <bits/stdc++.h>
#define rep(i, k) for (int i = 0; i < k; i++)
using namespace std;
int main() {
int s, k;
int count = 0;
cin >> k >> s;
rep(i, k + 1) rep(j, k + 1) {
int z = s - i - j;
if (i + j + z == s && z <= k && 0 <= z)
count++;
}
cout << count << endl;
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 1,455,031 | 1,455,032 | u370445755 | cpp |
p03835 | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, S, X;
int c = 0;
cin >> K >> S;
for (X = 0; X < K + 1 || X < S + 1; X++) {
if (S - X <= K)
c += S - X + 1;
else if (S - X <= 2 * K)
c += 2 * K - (S - X) + 1;
}
cout << c << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int K, S, X;
int c = 0;
cin >> K >> S;
for (X = 0; X < K + 1 && X < S + 1; X++) {
if (S - X <= K)
c += S - X + 1;
else if (S - X <= 2 * K)
c += 2 * K - (S - X) + 1;
}
cout << c << endl;
}
| [
"misc.opposites",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 1,455,037 | 1,455,038 | u941578525 | cpp |
p03835 | // ABC051B.cpp : このファイルには 'main'
// 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//
#include <iostream>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int count = 0;
for (int i = 0; i <= K; i++) {
for (int j = 0; j <= K; j++) {
int z = S - i - j;
if (0 <= z && z <= S)
count++;
}
... | // ABC051B.cpp : このファイルには 'main'
// 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//
#include <iostream>
using namespace std;
int main() {
int K, S;
cin >> K >> S;
int count = 0;
for (int i = 0; i <= K; i++) {
for (int j = 0; j <= K; j++) {
int z = S - i - j;
if (0 <= z && z <= K)
count++;
}
... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,455,042 | 1,455,043 | u940042567 | cpp |
p03835 | #include <iostream>
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int ans = 0;
for (int x = 0; x <= k; x++) {
for (int y = 0; y <= k; y++) {
if (s - x + y >= 0 && s - x + y <= k)
ans++;
}
}
cout << ans << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int k, s;
cin >> k >> s;
int ans = 0;
for (int x = 0; x <= k; x++) {
for (int y = 0; y <= k; y++) {
if (s - x - y >= 0 && s - x - y <= k)
ans++;
}
}
cout << ans << endl;
return 0;
} | [
"misc.opposites",
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 1,455,046 | 1,455,047 | u907518238 | cpp |
p03835 | #include <bits/stdc++.h>
#define int long long
#define rep(i, n) for (int i = 0; i <= n; i++)
#define rep1(i, n) for (int i = 1; i <= n; i++)
#define all(a) a.begin(), a.end()
#define P pair<long long, long long>
#define double long double
using namespace std;
signed main() {
int a, b;
cin >> a >> b;
int d = 0;
... | #include <bits/stdc++.h>
#define int long long
#define rep(i, n) for (int i = 0; i <= n; i++)
#define rep1(i, n) for (int i = 1; i <= n; i++)
#define all(a) a.begin(), a.end()
#define P pair<long long, long long>
#define double long double
using namespace std;
signed main() {
int a, b;
cin >> a >> b;
int d = 0;
... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"expression.operation.binary.change"
] | 1,455,048 | 1,455,049 | u341447450 | cpp |
p03835 | #include <bits/stdc++.h>
#define int long long
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep1(i, n) for (int i = 1; i <= n; i++)
#define all(a) a.begin(), a.end()
#define P pair<long long, long long>
#define double long double
using namespace std;
signed main() {
int a, b;
cin >> a >> b;
int d = 0;
... | #include <bits/stdc++.h>
#define int long long
#define rep(i, n) for (int i = 0; i <= n; i++)
#define rep1(i, n) for (int i = 1; i <= n; i++)
#define all(a) a.begin(), a.end()
#define P pair<long long, long long>
#define double long double
using namespace std;
signed main() {
int a, b;
cin >> a >> b;
int d = 0;
... | [
"expression.operator.compare.change",
"preprocessor.define.value.change",
"identifier.change",
"misc.opposites",
"expression.operator.arithmetic.change",
"expression.operation.binary.change"
] | 1,455,050 | 1,455,049 | u341447450 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.