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 |
|---|---|---|---|---|---|---|---|
p03773 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (A + B <= 24) {
cout << A + B << endl;
} else {
cout << (A + B) - 24 << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (A + B < 24) {
cout << A + B << endl;
} else {
cout << (A + B) - 24 << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,229 | 1,413,230 | u694951525 | cpp |
p03773 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b;
c = a + b;
if (c <= 24) {
c -= 24;
}
cout << c << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b;
c = a + b;
if (c >= 24) {
c -= 24;
}
cout << c << endl;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,240 | 1,413,241 | u073398103 | cpp |
p03773 | #include <algorithm>
#include <bitset>
#include <cstdlib>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <stdio.h>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
int main() {
int i, j, k;
int a, b;... | #include <algorithm>
#include <bitset>
#include <cstdlib>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <stdio.h>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
int main() {
int i, j, k;
int a, b;... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 1,413,242 | 1,413,243 | u271719815 | cpp |
p03773 | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <vector>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << (a + b) % 2 << endl;
} | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <vector>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << (a + b) % 24 << endl;
} | [
"literal.number.change",
"io.output.change"
] | 1,413,244 | 1,413,245 | u546943614 | cpp |
p03773 | #include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
int a, b;
scanf("%d%d", &a, &b);
if (a + b > 24) {
printf("%d\n", a + b - 24);
}
if (a + b < 25) {
printf("%d\n", a + b);
}
return 0;
}
| #include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
int a, b;
scanf("%d%d", &a, &b);
if (a + b > 23) {
printf("%d\n", a + b - 24);
}
if (a + b < 24) {
printf("%d\n", a + b);
}
return 0;
}
| [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 1,413,248 | 1,413,249 | u560670090 | cpp |
p03773 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a + b - 24 << endl;
return 0;
} | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << (a + b) % 24 << endl;
return 0;
} | [
"io.output.change"
] | 1,413,250 | 1,413,251 | u560670090 | cpp |
p03773 | #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << (a + b > 23 ? (a + b) : (a + b - 24)) << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << (a + b > 23 ? (a + b - 24) : (a + b)) << endl;
return 0;
} | [
"expression.operation.binary.remove"
] | 1,413,252 | 1,413,253 | u734519000 | cpp |
p03773 | #include <iostream>
using namespace std;
int main(void) {
int x, y;
cin >> x >> y;
cout << (x + y - 1) % 24 + 1 << endl;
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int x, y;
cin >> x >> y;
cout << (x + y) % 24 << endl;
return 0;
} | [
"expression.operation.binary.remove"
] | 1,413,257 | 1,413,258 | u023463844 | cpp |
p03773 | #include <iostream>
using namespace std;
int main(void) {
// Your code here!
int a, b;
cin >> a >> b;
if (a + b > 24) {
cout << a + b - 24 << endl;
} else
cout << a + b << endl;
}
| #include <iostream>
using namespace std;
int main(void) {
// Your code here!
int a, b;
cin >> a >> b;
if (a + b >= 24) {
cout << a + b - 24 << endl;
} else
cout << a + b << endl;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,261 | 1,413,262 | u833064541 | cpp |
p03773 | #include <iostream>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
int ans = (A + B);
if (ans >= 24)
ans -= 42;
cout << ans << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
int ans = (A + B);
if (ans >= 24)
ans -= 24;
cout << ans << endl;
return 0;
}
| [
"literal.number.change",
"assignment.value.change"
] | 1,413,263 | 1,413,264 | u968803854 | cpp |
p03773 | #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a + b >= 24) {
cout << -24 << endl;
} else {
cout << +0 << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a + b >= 24) {
cout << a + b - 24 << endl;
} else {
cout << a + b << endl;
}
} | [
"identifier.replace.add",
"literal.replace.remove",
"io.output.change"
] | 1,413,268 | 1,413,269 | u400806762 | cpp |
p03773 | #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a + b << endl;
} | #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << (a + b) % 24 << endl;
} | [
"expression.operation.binary.add"
] | 1,413,270 | 1,413,271 | u570708314 | cpp |
p03773 | #include <algorithm>
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int a, b, ans;
cin >> a >> b;
ans = a + b;
while (ans > 24)
ans -= 24;
cout << ans << endl;
return 0;
}
| #include <algorithm>
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int a, b, ans;
cin >> a >> b;
ans = a + b;
while (ans >= 24)
ans -= 24;
cout << ans << endl;
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 1,413,275 | 1,413,276 | u351521513 | cpp |
p03773 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d = 0;
cin >> a >> b;
c = a + b;
if (c > 24) {
c = c - 24;
}
cout << c << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d = 0;
cin >> a >> b;
c = a + b;
if (c >= 24) {
c = c - 24;
}
cout << c << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,277 | 1,413,278 | u451417461 | cpp |
p03773 | #include <bits/stdc++.h>
#define o(output) cout << output << endl
using namespace std;
string s, t, u;
int a, b, c, d;
char A, B;
priority_queue<int, vector<int>, greater<int>> small;
int main() {
cin >> a >> b;
o((a + B) % 24);
}
| #include <bits/stdc++.h>
#define o(output) cout << output << endl
using namespace std;
string s, t, u;
int a, b, c, d;
char A, B;
priority_queue<int, vector<int>, greater<int>> small;
int main() {
cin >> a >> b;
o((a + b) % 24);
} | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 1,413,281 | 1,413,282 | u130196064 | cpp |
p03773 | #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a + b > 24)
cout << a + b - 24 << endl;
else
cout << a + b << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a + b < 24)
cout << a + b << endl;
else
cout << a + b - 24 << endl;
return 0;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add",
"control_flow.branch.else.remove"
] | 1,413,283 | 1,413,284 | u416397383 | cpp |
p03773 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (A + B > 24) {
cout << (A + B) - 24 << endl;
} else {
cout << A + B << endl;
}
return 0;
} | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (A + B >= 24) {
cout << (A + B) - 24 << endl;
} else {
cout << A + B << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,285 | 1,413,286 | u992076031 | cpp |
p03773 | #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a + b > 24) {
cout << (a + b) % 24 << endl;
} else {
cout << a + b << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a + b >= 24) {
cout << (a + b) % 24 << endl;
} else {
cout << a + b << endl;
}
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,290 | 1,413,291 | u053227023 | cpp |
p03773 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
const double PI = 3.14159265358979323846;
const double EPS = 1e-12;
const ll INF = 1LL << 29;
const ll mod = 1e9 + 7;
#define rep(i, a, b) for (ll(i) = (a); (i) < (b); ++i)
ll gcd(ll x, ll y) {
if (x % y == 0) {
return... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
const double PI = 3.14159265358979323846;
const double EPS = 1e-12;
const ll INF = 1LL << 29;
const ll mod = 1e9 + 7;
#define rep(i, a, b) for (ll(i) = (a); (i) < (b); ++i)
ll gcd(ll x, ll y) {
if (x % y == 0) {
return... | [] | 1,413,295 | 1,413,296 | u386806796 | cpp |
p03773 | #include <iostream>
int main() {
int a, b;
std::cin >> a >> b;
int c = a + b;
if (c > 24) {
std::cout << c - 24 << std::endl;
} else {
std::cout << c << std::endl;
}
return 0;
}
| #include <iostream>
int main() {
int a, b;
std::cin >> a >> b;
int c = a + b;
if (c > 23) {
std::cout << c - 24 << std::endl;
} else {
std::cout << c << std::endl;
}
return 0;
}
| [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 1,413,378 | 1,413,379 | u913226400 | cpp |
p03773 | #include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <list>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b;
c = a + b;
if (c > 24)
c -= 24;
cout << c << endl;
}
| #include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <list>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b;
c = a + b;
if (c >= 24)
c -= 24;
cout << c << endl;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,382 | 1,413,383 | u125612300 | cpp |
p03773 | #include <algorithm>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
char a, b;
cin >> a >> b;
cout << (a + b) % 24 << endl;
}
| #include <algorithm>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << (a + b) % 24 << endl;
} | [
"variable_declaration.type.primitive.change"
] | 1,413,384 | 1,413,385 | u086366728 | cpp |
p03773 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (A + B <= 24) {
cout << A + B;
} else {
cout << A + B - 24;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (A + B < 24) {
cout << A + B;
} else {
cout << A + B - 24;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,386 | 1,413,387 | u529813812 | cpp |
p03773 | #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << ((a + b <= 24) ? a + b : a + b - 24) << endl;
}
| #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << ((a + b < 24) ? a + b : a + b - 24) << endl;
}
| [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"io.output.change"
] | 1,413,388 | 1,413,389 | u398610336 | cpp |
p03773 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (A + B <= 24) {
cout << A + B - 24 << endl;
} else {
cout << A + B << endl;
}
} | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (A + B >= 24) {
cout << A + B - 24 << endl;
} else {
cout << A + B << endl;
}
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,392 | 1,413,393 | u343355096 | cpp |
p03773 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
int n = ((a + b) > 24) ? (a + b) % 24 : (a + b);
cout << n << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
int n = ((a + b) >= 24) ? (a + b) % 24 : (a + b);
cout << n << endl;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 1,413,394 | 1,413,395 | u883323885 | cpp |
p03773 | #include <iostream>
int main() {
int A;
int B;
std::cin >> A >> B;
if ((A + B) <= 24) {
std::cout << A + B << std::endl;
} else if (A + B > 24) {
std::cout << A + B - 24 << std::endl;
} else {
std::cout << 0 << std::endl;
}
return 0;
} | #include <iostream>
int main() {
int A;
int B;
std::cin >> A >> B;
if ((A + B) < 24) {
std::cout << A + B << std::endl;
} else if (A + B > 24) {
std::cout << A + B - 24 << std::endl;
} else {
std::cout << 0 << std::endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,396 | 1,413,397 | u240226076 | cpp |
p03773 | #include <iostream>
int main() {
int A;
int B;
std::cin >> A >> B;
if ((A + B) > 24) {
std::cout << A + B << std::endl;
} else if (A + B > 24) {
std::cout << A + B - 24 << std::endl;
} else {
std::cout << 0 << std::endl;
}
return 0;
} | #include <iostream>
int main() {
int A;
int B;
std::cin >> A >> B;
if ((A + B) < 24) {
std::cout << A + B << std::endl;
} else if (A + B > 24) {
std::cout << A + B - 24 << std::endl;
} else {
std::cout << 0 << std::endl;
}
return 0;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,398 | 1,413,397 | u240226076 | cpp |
p03773 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <unordered_map>
#include <vector>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i+... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <unordered_map>
#include <vector>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i+... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,401 | 1,413,402 | u136378781 | cpp |
p03773 | #include <bits/stdc++.h>
#define REP(i, x, n) for (int i = x; i < (int)(n); i++)
#define rep(i, n) REP(i, 0, x);
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
using namespace std;
int gcd(int a, int b) {
if (b == 0)
return a;
return gcd(b, a % b);
}
int lcm(int a, int b) { r... | #include <bits/stdc++.h>
#define REP(i, x, n) for (int i = x; i < (int)(n); i++)
#define rep(i, n) REP(i, 0, x);
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
using namespace std;
int gcd(int a, int b) {
if (b == 0)
return a;
return gcd(b, a % b);
}
int lcm(int a, int b) { r... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 1,413,409 | 1,413,410 | u284092157 | cpp |
p03773 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
int ans;
ans = B + A;
if (B + A > 24)
ans -= 24;
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
int ans;
ans = B + A;
if (B + A >= 24)
ans -= 24;
cout << ans << endl;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,414 | 1,413,415 | u106297876 | cpp |
p03773 | #include <algorithm>
#include <iostream>
#include <limits>
#include <math.h>
#include <numeric>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <type_traits>
#include <vector>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repi(i, a, b) for (in... | #include <algorithm>
#include <iostream>
#include <limits>
#include <math.h>
#include <numeric>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <type_traits>
#include <vector>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repi(i, a, b) for (in... | [
"call.arguments.change",
"expression.operator.arithmetic.change",
"expression.operation.binary.change"
] | 1,413,418 | 1,413,419 | u190907730 | cpp |
p03773 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <list>
#include <map>
#include <set>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
#define MOD 1000000007
#define p(x) cout << x << endl;
#define el cout << endl;
#define rep(i, n) ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <list>
#include <map>
#include <set>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
#define MOD 1000000007
#define p(x) cout << x << endl;
#define el cout << endl;
#define rep(i, n) ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,420 | 1,413,421 | u492288342 | cpp |
p03773 | #include <algorithm>
#include <complex>
#include <iostream>
#include <string.h>
#include <vector>
using namespace std;
typedef long long int llint;
int main() {
int a, b;
cin >> a >> b;
int c = a + b;
if (c > 24) {
c -= 24;
}
cout << c << endl;
return 0;
}
| #include <algorithm>
#include <complex>
#include <iostream>
#include <string.h>
#include <vector>
using namespace std;
typedef long long int llint;
int main() {
int a, b;
cin >> a >> b;
int c = a + b;
if (c >= 24) {
c -= 24;
}
cout << c << endl;
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,439 | 1,413,440 | u376082984 | cpp |
p03773 | #include <iostream>
int main() {
int a, b;
std::cin >> a, b;
std::cout << (a + b) % 24 << std::endl;
} | #include <iostream>
int main() {
int a, b;
std::cin >> a >> b;
std::cout << (a + b) % 24 << std::endl;
} | [] | 1,413,441 | 1,413,442 | u394033362 | cpp |
p03773 | #include <iostream>
int main(void) {
int a, b;
std::cin >> a >> b;
std::cout << a + b << std::endl;
return 0;
} | #include <iostream>
int main(void) {
int a, b;
std::cin >> a >> b;
std::cout << (a + b) % 24 << std::endl;
return 0;
}
| [
"expression.operation.binary.add"
] | 1,413,443 | 1,413,444 | u148555958 | cpp |
p03773 | #include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
int main() {
int a, b;
cin >> a >> b;
cout << a + b % 24;
return 0;
}
| #include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
int main() {
int a, b;
cin >> a >> b;
cout << (a + b) % 24;
return 0;
}
| [] | 1,413,445 | 1,413,446 | u770161743 | cpp |
p03773 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
#define FOR(... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
#define FOR(... | [
"expression.operator.arithmetic.change",
"io.output.change"
] | 1,413,449 | 1,413,450 | u423143252 | cpp |
p03773 | #include <iostream>
using namespace std;
int main(void) {
int x, y;
cin >> x >> y;
x += y;
x = x >= 24 ? x - 24 : 0;
cout << x << endl;
} | #include <iostream>
using namespace std;
int main(void) {
int x, y;
cin >> x >> y;
x += y;
x = x >= 24 ? x - 24 : x;
cout << x << endl;
} | [
"identifier.replace.add",
"literal.replace.remove"
] | 1,413,451 | 1,413,452 | u560522955 | cpp |
p03773 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
// Your code here!
int a, b;
cin >> a >> b;
int sums = 0;
int &sum = sums;
sum = a + b;
if (sum <= 24)
cout << sum << endl;
else if (sum > 24)
cout << sum % 24 << endl;
}
|
#include <iostream>
#include <string>
using namespace std;
int main(void) {
// Your code here!
int a, b;
cin >> a >> b;
int sums = 0;
int &sum = sums;
sum = a + b;
if (sum < 24)
cout << sum << endl;
else if (sum >= 24)
cout << sum % 24 << endl;
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 1,413,453 | 1,413,454 | u030509373 | cpp |
p03773 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
// Your code here!
int a, b;
cin >> a >> b;
int sums = 0;
int &sum = sums;
sum = a + b;
if (sum <= 24)
cout << sum << endl;
else if (sum > 24)
cout << sum - 24 << endl;
return 0;
} |
#include <iostream>
#include <string>
using namespace std;
int main(void) {
// Your code here!
int a, b;
cin >> a >> b;
int sums = 0;
int &sum = sums;
sum = a + b;
if (sum < 24)
cout << sum << endl;
else if (sum >= 24)
cout << sum % 24 << endl;
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change",
"io.output.change"
] | 1,413,455 | 1,413,454 | u030509373 | cpp |
p03773 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int a, b;
cin >> a >> b;
cout << (a + b) / 24 << endl;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int a, b;
cin >> a >> b;
cout << (a + b) % 24 << endl;
} | [
"expression.operator.arithmetic.change",
"io.output.change"
] | 1,413,456 | 1,413,457 | u003019316 | cpp |
p03773 | #include <iostream>
using namespace std;
int main(void) {
int a = 0;
int b = 0;
int sum = 0;
cin >> a >> b;
sum = a + b;
if (sum > 24)
cout << sum - 24 << endl;
else
cout << sum << endl;
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int a = 0;
int b = 0;
int sum = 0;
cin >> a >> b;
sum = a + b;
if (sum > 23)
cout << sum - 24 << endl;
else
cout << sum << endl;
return 0;
} | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 1,413,462 | 1,413,463 | u793601658 | cpp |
p03773 | #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
int ans = 0;
if (a + b > 24)
ans = a + b - 24;
else
ans = a + b;
cout << ans << endl;
}
| #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
int ans = 0;
if (a + b >= 24)
ans = a + b - 24;
else
ans = a + b;
cout << ans << endl;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,482 | 1,413,483 | u693701349 | cpp |
p03773 | #include <algorithm>
#include <cctype>
#include <cstdio>
#include <deque>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
int ans = a + b;
if (ans > 24) {
ans = ans - 24;
}
cout << ans << endl;
} | #include <algorithm>
#include <cctype>
#include <cstdio>
#include <deque>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
int ans = a + b;
if (ans >= 24) {
ans = ans - 24;
}
cout << ans << endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,486 | 1,413,487 | u907049739 | cpp |
p03773 | #include <algorithm> // std::copy()
#include <cctype> // std::isdigit()
#include <climits> // INT_MIN
#include <cmath>
#include <cstdio>
#include <functional> // std::greater<T>()
#include <iostream>
#include <iterator> // std::back_inserter()
#include <numeric> // accumulate(ALL(vec), 0) 0 は初期値
#include <string... | #include <algorithm> // std::copy()
#include <cctype> // std::isdigit()
#include <climits> // INT_MIN
#include <cmath>
#include <cstdio>
#include <functional> // std::greater<T>()
#include <iostream>
#include <iterator> // std::back_inserter()
#include <numeric> // accumulate(ALL(vec), 0) 0 は初期値
#include <string... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,492 | 1,413,493 | u870998297 | cpp |
p03773 | #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a + b % 24;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << (a + b) % 24;
return 0;
}
| [] | 1,413,494 | 1,413,495 | u468811760 | cpp |
p03773 | #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a + b;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << (a + b) % 24;
return 0;
}
| [
"expression.operation.binary.add"
] | 1,413,496 | 1,413,495 | u468811760 | cpp |
p03773 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b;
c = a + b;
if (c > 24) {
cout << c - 24 << endl;
} else {
cout << c << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b;
c = a + b;
if (c >= 24) {
cout << c - 24 << endl;
} else {
cout << c << endl;
}
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,501 | 1,413,502 | u392423112 | cpp |
p03773 | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
if (X + Y <= 24) {
cout << X + Y << endl;
} else {
cout << X + Y - 24 << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
if (X + Y < 24) {
cout << X + Y << endl;
} else {
cout << X + Y - 24 << endl;
}
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,507 | 1,413,508 | u993131035 | cpp |
p03773 | #include <iostream>
#include <string>
#include <vector>
typedef unsigned int UINT;
using namespace std;
int main(void) {
int A, B;
cin >> A >> B;
cout << A + B << endl;
return 0;
}
| #include <iostream>
#include <string>
#include <vector>
typedef unsigned int UINT;
using namespace std;
int main(void) {
int A, B;
cin >> A >> B;
cout << (A + B) % 24 << endl;
return 0;
} | [
"expression.operation.binary.add"
] | 1,413,513 | 1,413,514 | u581348871 | cpp |
p03773 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
static const int MAX = 200000;
int main() {
int a, b;
cin >> a >> b;
a += b;
a /= 24;
cout << a << endl;
return 0;
} | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
static const int MAX = 200000;
int main() {
int a, b;
cin >> a >> b;
a += b;
a %= 24;
cout << a << endl;
return 0;
} | [
"expression.operator.change"
] | 1,413,515 | 1,413,516 | u461833298 | cpp |
p03773 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int A, B, C;
cin >> A >> B;
C = A + B;
if (C > 24)
C = C - 24;
cout << C << endl;
return 0;
}
| #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int A, B, C;
cin >> A >> B;
C = A + B;
if (C >= 24)
C = C - 24;
cout << C << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,519 | 1,413,520 | u234415519 | cpp |
p03773 | #include <algorithm> //sort など
#include <iostream> //cinなど
#include <map> //写像
#include <math.h> //paw(冪乗など)
#include <set> // 集合
#include <stack>
#include <stdio.h> //printf
#include <string> //文字列
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (A + B > 24) {
cout << A + B - ... |
#include <algorithm> //sort など
#include <iostream> //cinなど
#include <map> //写像
#include <math.h> //paw(冪乗など)
#include <set> // 集合
#include <stack>
#include <stdio.h> //printf
#include <string> //文字列
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (A + B >= 24) {
cout << A + B... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,524 | 1,413,525 | u482366049 | cpp |
p03773 | #include <bits/stdc++.h>
#define repd(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, n) repd(i, 0, n)
typedef long long ll;
using namespace std;
const int MOD = 1000000007;
const int INF = 1010000000;
const double EPS = 1e-10;
int h, w, x;
char s[1000][1000];
bool visited[1000][1000];
pair<int, int> start, go... | #include <bits/stdc++.h>
#define repd(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, n) repd(i, 0, n)
typedef long long ll;
using namespace std;
const int MOD = 1000000007;
const int INF = 1010000000;
const double EPS = 1e-10;
int h, w, x;
char s[1000][1000];
bool visited[1000][1000];
pair<int, int> start, go... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"io.output.change"
] | 1,413,530 | 1,413,531 | u317754719 | cpp |
p03773 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if ((a + b) >= 24) {
cout << (a + b) - 24 << endl;
return 0;
}
cout << a - b << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if ((a + b) >= 24) {
cout << (a + b) - 24 << endl;
return 0;
}
cout << a + b << endl;
} | [
"misc.opposites",
"expression.operator.arithmetic.change",
"io.output.change"
] | 1,413,535 | 1,413,536 | u483737025 | cpp |
p03773 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if ((a + b) > 24) {
cout << (a + b) - 24 << endl;
return 0;
}
cout << a - b << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if ((a + b) >= 24) {
cout << (a + b) - 24 << endl;
return 0;
}
cout << a + b << endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"misc.opposites",
"expression.operator.arithmetic.change",
"io.output.change"
] | 1,413,537 | 1,413,536 | u483737025 | cpp |
p03773 | #include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int a, b;
cin >> a >> b;
if (a + b > 24)
cout << a + b - 24 << endl;
else
cout << a + b << endl;
return 0;
} | #include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int a, b;
cin >> a >> b;
if (a + b >= 24)
cout << a + b - 24 << endl;
else
cout << a + b << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,538 | 1,413,539 | u595276801 | cpp |
p03773 | #include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <string>
#include <vector>
int main() {
int a, b;
std::cin >> a >> b;
int res;
if (a + b <= 24) {
res = a + b;
} else {
res = a + b - 24;
}
std::cout << res << std::endl;
... | #include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <string>
#include <vector>
int main() {
int a, b;
std::cin >> a >> b;
int res;
if (a + b < 24) {
res = a + b;
} else {
res = a + b - 24;
}
std::cout << res << std::endl;
r... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,549 | 1,413,550 | u295961023 | cpp |
p03773 | #include <cstdio>
#ifdef _MSC_VER
#include <conio.h>
#else
#define getch()
#endif
int main() {
int A = 0;
int B = 0;
scanf(" %d %d", &A, &B);
printf("%d\n", A + B <= 24 ? A + B : A + B - 24);
getch();
return 0;
} | #include <cstdio>
#ifdef _MSC_VER
#include <conio.h>
#else
#define getch()
#endif
int main() {
int A = 0;
int B = 0;
scanf(" %d %d", &A, &B);
printf("%d\n", A + B < 24 ? A + B : A + B - 24);
getch();
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 1,413,299 | 1,413,300 | u644856766 | cpp |
p03773 | #include <iostream>
using namespace std;
int main() {
int A;
int B;
cin >> A >> B;
if ((A + B) <= 24) {
cout << A + B << endl;
} else {
cout << (A + B) - 24 << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int A;
int B;
cin >> A >> B;
if ((A + B) < 24) {
cout << A + B << endl;
} else {
cout << (A + B) - 24 << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,301 | 1,413,302 | u271651326 | cpp |
p03773 | #include <stdio.h>
int main(void) {
int A, B;
scanf("%d", &A);
scanf("%d", &B);
int c = A + B;
if (c <= 24) {
printf("%d\n", c);
} else {
printf("%d\n", c - 24);
}
return 0;
}
| #include <stdio.h>
int main(void) {
int A, B;
scanf("%d", &A);
scanf("%d", &B);
int c = A + B;
if (c < 24) {
printf("%d\n", c);
} else {
printf("%d\n", c - 24);
}
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,308 | 1,413,309 | u749644779 | cpp |
p03773 | #include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int i = 0; i < (n); i++)
#define REP2(i, x, n) for (int i = x; i < (n); i++)
#define ALL(n) begin(n), end(n)
int main() {
int a, b;
cin >> a >> b;
cout << (a + b <= 24 ? a + b : a + b - 24) << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int i = 0; i < (n); i++)
#define REP2(i, x, n) for (int i = x; i < (n); i++)
#define ALL(n) begin(n), end(n)
int main() {
int a, b;
cin >> a >> b;
cout << (a + b < 24 ? a + b : a + b - 24) << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"io.output.change"
] | 1,413,310 | 1,413,311 | u679904527 | cpp |
p03773 | #include <iostream>
#include <string>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (A + B > 24) {
cout << A + B - 24 << endl;
} else {
cout << A + B << endl;
}
return 0;
}
| #include <iostream>
#include <string>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (A + B >= 24) {
cout << A + B - 24 << endl;
} else {
cout << A + B << endl;
}
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,312 | 1,413,313 | u093420647 | cpp |
p03773 | #include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
a = a + b;
if (a > 24) {
printf("%d\n", a - 24);
} else {
printf("%d\n", a);
}
return 0;
} | #include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
a = a + b;
if (a > 23) {
printf("%d\n", a - 24);
} else {
printf("%d\n", a);
}
return 0;
} | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 1,413,321 | 1,413,322 | u584459098 | cpp |
p03773 | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <s... | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <s... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,333 | 1,413,334 | u978109511 | cpp |
p03773 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define vvi vector<vector<int>>
#define vi vector<int>
#define All(X) X.begin(), X.end()
#define FOR(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define pb push_back
#define pii pair<int, int>... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define vvi vector<vector<int>>
#define vi vector<int>
#define All(X) X.begin(), X.end()
#define FOR(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define pb push_back
#define pii pair<int, int>... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,335 | 1,413,336 | u086355897 | cpp |
p03773 | #include <iostream>
using namespace std;
int main(void) {
int a;
int b;
cin >> a;
cin >> b;
if (a + b > 24) {
cout << a + b - 24 << endl;
} else {
cout << a + b << endl;
}
}
| #include <iostream>
using namespace std;
int main(void) {
int a;
int b;
cin >> a;
cin >> b;
if (a + b > 23) {
cout << a + b - 24 << endl;
} else {
cout << a + b << endl;
}
}
| [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 1,413,339 | 1,413,340 | u858520692 | cpp |
p03773 | #include <iostream>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (A + B > 24)
cout << A + B - 24;
else
cout << A + B;
} | #include <iostream>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (A + B >= 24)
cout << A + B - 24;
else
cout << A + B;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,345 | 1,413,346 | u798129018 | cpp |
p03773 | #include <iostream>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
cout << ((A + B > 24) ? (A + B - 24) : (A + B)) << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
cout << ((A + B >= 24) ? (A + B - 24) : (A + B)) << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"io.output.change"
] | 1,413,355 | 1,413,356 | u125031511 | cpp |
p03773 | // Template by [thunder_blade]
// IIIT ALLAHABAD
// includes :)
#include <bits/stdc++.h>
using namespace std;
#define TEST \
int test_case; \
cin >> test_case; ... | // Template by [thunder_blade]
// IIIT ALLAHABAD
// includes :)
#include <bits/stdc++.h>
using namespace std;
#define TEST \
int test_case; \
cin >> test_case; ... | [
"literal.number.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 1,413,555 | 1,413,556 | u210033542 | cpp |
p03773 | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main(void) {
int a, b;
scanf("%d %d", &a, &b);
printf("%d\n", a + b % 24);
return 0;
}
| #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main(void) {
int a, b;
scanf("%d %d", &a, &b);
printf("%d\n", (a + b) % 24);
return 0;
}
| [
"call.arguments.change"
] | 1,413,559 | 1,413,560 | u081211918 | cpp |
p03773 | #include <iostream>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
int ans = A + B;
if (ans > 24) {
ans -= 24;
}
cout << ans << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
int ans = A + B;
if (ans >= 24) {
ans -= 24;
}
cout << ans << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,563 | 1,413,564 | u729751570 | cpp |
p03773 | #include <stdio.h>
int main(void) {
int A, B;
scanf("%d%d", &A, &B);
if (A + B <= 24) {
printf("%d\n", A + B);
} else {
printf("%d\n", (A + B) % 24);
}
return 0;
} | #include <stdio.h>
int main(void) {
int A, B;
scanf("%d%d", &A, &B);
if (A + B <= 23) {
printf("%d\n", A + B);
} else {
printf("%d\n", (A + B) % 24);
}
return 0;
} | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 1,413,569 | 1,413,570 | u399080687 | cpp |
p03773 | #include <algorithm>
#include <array>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#define MOD 1000000007
#define INF 11234567890... | #include <algorithm>
#include <array>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#define MOD 1000000007
#define INF 11234567890... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,585 | 1,413,586 | u660613376 | cpp |
p03773 | #include <iostream>
#include <string>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int a, b;
cin >> a >> b;
int ans = a + b;
if (ans > 24)
ans -= 24;
cout << ans << "\n";
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int a, b;
cin >> a >> b;
int ans = a + b;
if (ans >= 24)
ans -= 24;
cout << ans << "\n";
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,593 | 1,413,594 | u085486962 | cpp |
p03773 | #include <iostream>
int main() {
int a, b;
std::cin >> a >> b;
std::cout << (a + b > 24 ? a + b - 24 : a + b) << std::endl;
return 0;
} | #include <iostream>
int main() {
int a, b;
std::cin >> a >> b;
std::cout << (a + b >= 24 ? a + b - 24 : a + b) << std::endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 1,413,609 | 1,413,610 | u939641510 | cpp |
p03773 | #include <iostream>
using namespace std;
int main(void) {
int a, b;
cin >> a >> b;
cout << (a + b < 24 ? a + b : 24 - (a + b)) << endl;
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int a, b;
cin >> a >> b;
cout << (a + b < 24 ? a + b : a + b - 24) << endl;
return 0;
} | [
"expression.operation.binary.remove",
"io.output.change"
] | 1,413,613 | 1,413,614 | u978494963 | cpp |
p03773 | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a + b <= 24)
cout << a + b;
else
cout << a + b - 24;
syste... | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a + b < 24)
cout << a + b;
else
cout << a + b - 24;
system... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,615 | 1,413,616 | u824132304 | cpp |
p03773 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <exception>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
typedef long long ll;
typedef unsigned lo... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <exception>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
typedef long long ll;
typedef unsigned lo... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 1,413,617 | 1,413,618 | u869835499 | cpp |
p03773 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
int a, b;
cin >> a >> b;
int s;
s = a + b;
while (s >= 23) {
s = s - 24;
}
cout << s << endl;
return 0;
}
| #include <iostream>
#include <string>
using namespace std;
int main(void) {
int a, b;
cin >> a >> b;
int s;
s = a + b;
while (s > 23) {
s = s - 24;
}
cout << s << endl;
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 1,413,623 | 1,413,624 | u418810472 | cpp |
p03773 | #include <iostream>
int main() {
int A, B;
std::cin >> A >> B;
if (A + B > 24)
std::cout << A + B - 24 << std::endl;
else
std::cout << A + B << std::endl;
} | #include <iostream>
int main() {
int A, B;
std::cin >> A >> B;
if (A + B >= 24)
std::cout << A + B - 24 << std::endl;
else
std::cout << A + B << std::endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,625 | 1,413,626 | u517700219 | cpp |
p03773 | //============================================================================
// Name : atcoder.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <i... | //============================================================================
// Name : atcoder.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <i... | [
"literal.number.change",
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 1,413,627 | 1,413,628 | u084549125 | cpp |
p03773 | //============================================================================
// Name : atcoder.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <i... | //============================================================================
// Name : atcoder.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <i... | [
"literal.number.change",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"expression.operator.arithmetic.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 1,413,630 | 1,413,628 | u084549125 | cpp |
p03773 | //============================================================================
// Name : atcoder.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <i... | //============================================================================
// Name : atcoder.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <i... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 1,413,631 | 1,413,628 | u084549125 | cpp |
p03773 | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b;
if ((0 <= a + b) && (a + b <= 24)) {
c = a + b;
} else {
c = a + b - 24;
}
cout << c << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b;
if ((0 <= a + b) && (a + b < 24)) {
c = a + b;
} else {
c = a + b - 24;
}
cout << c << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,636 | 1,413,637 | u273352618 | cpp |
p03773 | #include <iostream>
using namespace std;
int main() {
int A, B, i;
cin >> A >> B;
i = A + B;
if (i <= 24) {
cout << i << endl;
} else {
cout << i - 24 << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int A, B, i;
cin >> A >> B;
i = A + B;
if (i < 24) {
cout << i << endl;
} else {
cout << i - 24 << endl;
}
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,638 | 1,413,639 | u270170852 | cpp |
p03773 | #include "bits/stdc++.h"
using namespace std;
using ll = long long;
using P = pair<int, int>;
using vi = vector<int>;
using vii = vector<P>;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};
#define INF 1LL << 62
#define MOD (int)1e9 + 7
#define rep(i, n) for (int i = 0; i < n; i++)
#define all(x) x.... | #include "bits/stdc++.h"
using namespace std;
using ll = long long;
using P = pair<int, int>;
using vi = vector<int>;
using vii = vector<P>;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};
#define INF 1LL << 62
#define MOD (int)1e9 + 7
#define rep(i, n) for (int i = 0; i < n; i++)
#define all(x) x.... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,642 | 1,413,643 | u538244943 | cpp |
p03773 | #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
int n = a + b;
if (n > 24)
n -= 24;
cout << n;
}
| #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
int n = a + b;
if (n >= 24)
n -= 24;
cout << n;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,644 | 1,413,645 | u937164028 | cpp |
p03773 | #include <iostream>
#include <string>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a + b > 24) {
cout << (a + b) % 24 << endl;
} else
cout << a + b << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a + b >= 24) {
cout << (a + b) % 24 << endl;
} else
cout << a + b << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,648 | 1,413,649 | u960286066 | cpp |
p03773 | #include <iostream>
#include <string>
using namespace std;
int main() {
int A;
int B;
cin >> A;
cin >> B;
if (A + B < 24) {
cout << (A + B) << endl;
} else {
cout << 24 - (A + B) << endl;
}
}
| #include <iostream>
#include <string>
using namespace std;
int main() {
int A;
int B;
cin >> A;
cin >> B;
if (A + B < 24) {
cout << A + B << endl;
} else {
cout << (A + B) - 24 << endl;
}
}
| [
"expression.operation.binary.remove"
] | 1,413,650 | 1,413,651 | u576039333 | cpp |
p03773 | #include <iostream>
#include <string>
using namespace std;
int main() {
int A;
int B;
cin >> A;
cin >> B;
if (A + B < 24) {
cout << A + B << endl;
} else {
cout << 24 - (A + B) << endl;
}
}
| #include <iostream>
#include <string>
using namespace std;
int main() {
int A;
int B;
cin >> A;
cin >> B;
if (A + B < 24) {
cout << A + B << endl;
} else {
cout << (A + B) - 24 << endl;
}
}
| [
"expression.operation.binary.remove"
] | 1,413,652 | 1,413,651 | u576039333 | cpp |
p03773 | #include <iostream>
#include <string>
using namespace std;
int main() {
int A;
int B;
cin >> A;
cin >> B;
if (A + B > 24) {
cout << A + B << endl;
} else {
cout << A + B - 24 << endl;
}
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int A;
int B;
cin >> A;
cin >> B;
if (A + B < 24) {
cout << A + B << endl;
} else {
cout << A + B - 24 << endl;
}
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,655 | 1,413,656 | u791448889 | cpp |
p03773 | #include <iostream>
#include <string>
using namespace std;
int main() {
int A;
int B;
cin >> A;
cin >> B;
if (A + B >= 24) {
cout << A + B << endl;
} else {
cout << A + B - 24 << endl;
}
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int A;
int B;
cin >> A;
cin >> B;
if (A + B < 24) {
cout << A + B << endl;
} else {
cout << A + B - 24 << endl;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,657 | 1,413,656 | u791448889 | cpp |
p03773 | #include <cstdio>
int a, b;
int main() {
scanf("%d %d", &a, &b);
a = a + b;
if (a > 24)
a = a % 25 + 1;
printf("%d\n", a);
return 0;
}
| #include <cstdio>
int a, b;
int main() {
scanf("%d %d", &a, &b);
a = a + b;
if (a >= 24)
a = a % 24;
printf("%d\n", a);
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.number.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 1,413,660 | 1,413,661 | u559820201 | cpp |
p03773 | #include <iostream>
#include <string>
using namespace std;
int max(int x, int y) {
if (x > y)
return x;
return y;
}
int abs(int x) {
if (x < 0) {
return -x;
}
return x;
}
int A, B;
bool match[100001];
int main() {
cin >> A >> B;
if (A + B > 24) {
cout << A + B - 24 << endl;
} else {
c... | #include <iostream>
#include <string>
using namespace std;
int max(int x, int y) {
if (x > y)
return x;
return y;
}
int abs(int x) {
if (x < 0) {
return -x;
}
return x;
}
int A, B;
bool match[100001];
int main() {
cin >> A >> B;
if (A + B >= 24) {
cout << A + B - 24 << endl;
} else {
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,664 | 1,413,665 | u568682546 | cpp |
p03773 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
int a, b;
cin >> a >> b;
if (a + b > 24) {
cout << a + b - 24 << endl;
} else {
cout << a + b << endl;
}
return 0;
}
| #include <iostream>
#include <string>
using namespace std;
int main(void) {
int a, b;
cin >> a >> b;
if (a + b >= 24) {
cout << a + b - 24 << endl;
} else {
cout << a + b << endl;
}
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,413,670 | 1,413,671 | u057611820 | cpp |
p03773 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b;
cout << (a + b) / 24 << endl;
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b;
cout << (a + b) % 24 << endl;
return 0;
} | [
"expression.operator.arithmetic.change",
"io.output.change"
] | 1,413,678 | 1,413,679 | u300752229 | cpp |
p03773 | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <numeric>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
int main() {
int A, B;
std::cin >> A >> B;
printf("%d\n", (A + B) % 23);
} | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <numeric>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
int main() {
int A, B;
std::cin >> A >> B;
printf("%d\n", (A + B) % 24);
} | [
"literal.number.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 1,413,687 | 1,413,688 | u456065785 | cpp |
p03773 | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <numeric>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
int main() {
int A, B;
std::cin >> A >> B;
printf("%d\n", (A - B) % 23);
} | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <numeric>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
int main() {
int A, B;
std::cin >> A >> B;
printf("%d\n", (A + B) % 24);
} | [
"misc.opposites",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change",
"literal.number.change"
] | 1,413,689 | 1,413,688 | u456065785 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.