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 |
|---|---|---|---|---|---|---|---|
p00025 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <functional>
#include <iostream>
#include <numeric>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define FOR(i, a, b) for (long long int i = (a); i < (b); i++)
#define REP(i, n) for (long long int i = 0; i < (n); i++)
#define... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <functional>
#include <iostream>
#include <numeric>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define FOR(i, a, b) for (long long int i = (a); i < (b); i++)
#define REP(i, n) for (long long int i = 0; i < (n); i++)
#define... | [] | 20,241 | 20,242 | u529214876 | cpp |
p00025 | #include <stdio.h>
int main(void) {
int a[5], s[5], d, f, g, i, j;
while (scanf("%d %d %d %d %d %d %d %d", &a[1], &a[2], &a[3], &a[4], &s[1],
&s[2], &s[3], &s[4]) != EOF) {
d = 0;
f = 0;
for (i = 1; i <= 4; i++) {
if (a[i] == s[i]) {
d++;
}
if (a[i] != s[i]) {
... | #include <stdio.h>
int main(void) {
int a[5], s[5], d, f, g, i, j;
while (scanf("%d %d %d %d %d %d %d %d", &a[1], &a[2], &a[3], &a[4], &s[1],
&s[2], &s[3], &s[4]) != EOF) {
d = 0;
f = 0;
for (i = 1; i <= 4; i++) {
if (a[i] == s[i]) {
d++;
}
if (a[i] != s[i]) {
... | [
"literal.number.change",
"assignment.value.change",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 20,243 | 20,244 | u513206778 | cpp |
p00025 | #include <iostream>
using namespace std;
int main() {
int a[4], b[4];
int hit, blow;
while (cin >> a[0] >> a[1] >> a[2] >> a[3] >> b[0] >> b[1] >> b[2] >> b[3]) {
hit = blow = 0;
for (int i = 0; i < 4; i++) {
if (a[i] == b[i]) {
hit++;
}
for (int j = 0; i < 4; j++) {
if ... | #include <iostream>
using namespace std;
int main() {
int a[4], b[4];
int hit, blow;
while (cin >> a[0] >> a[1] >> a[2] >> a[3] >> b[0] >> b[1] >> b[2] >> b[3]) {
hit = blow = 0;
for (int i = 0; i < 4; i++) {
if (a[i] == b[i]) {
hit++;
}
for (int j = 0; j < 4; j++) {
if ... | [
"identifier.change",
"control_flow.loop.condition.change"
] | 20,245 | 20,246 | u547616245 | cpp |
p00025 | #include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
int a[4];
int b[4];
while ((scanf("%d", a[0])) != EOF) {
int hitcount = 0;
int bcount = 0;
for (int i = 1; i < 4; i++) {
scanf("%d", a[i]);
}
for (int i = 0; i < 4; i++)
cin >> b[i];
// a??????????... | #include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
int a[4];
int b[4];
while ((scanf("%d", &a[0])) != EOF) {
int hitcount = 0;
int bcount = 0;
for (int i = 1; i < 4; i++) {
scanf("%d", &a[i]);
}
for (int i = 0; i < 4; i++)
cin >> b[i];
// a????????... | [
"control_flow.loop.condition.change",
"expression.operation.unary.reference.add"
] | 20,247 | 20,248 | u748994841 | cpp |
p00025 | #include <iostream>
using namespace std;
int main() {
int a[4];
int b[4];
while (cin >> a[0]) {
int hit = 0, brow = 0;
for (int i = 1; i < 4; i++) {
cin >> a[i];
}
for (int j = 0; j < 4; j++) {
cin >> b[j];
}
for (int k = 0; k < 4; k++) {
for (int l = 0; l < 4; l++) {... | #include <iostream>
using namespace std;
int main() {
int a[4];
int b[4];
while (cin >> a[0]) {
int hit = 0, brow = 0;
for (int i = 1; i < 4; i++) {
cin >> a[i];
}
for (int j = 0; j < 4; j++) {
cin >> b[j];
}
for (int k = 0; k < 4; k++) {
for (int l = 0; l < 4; l++) {... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 20,256 | 20,257 | u631113523 | cpp |
p00025 | #include <iostream>
#define SIZE 4
using namespace std;
int main() {
int a[SIZE], b[SIZE], hit, blo;
while (cin >> a[0] >> a[1] >> a[2] >> a[3] >> b[0] >> b[1] >> b[2] >> b[3]) {
hit = 0;
blo = 0;
for (int i = 0; i < SIZE; i++) {
if (a[i] == b[i]) {
hit++;
a[i] = -1;
b[... | #include <iostream>
#define SIZE 4
using namespace std;
int main() {
int a[SIZE], b[SIZE], hit, blo;
while (cin >> a[0] >> a[1] >> a[2] >> a[3] >> b[0] >> b[1] >> b[2] >> b[3]) {
hit = 0;
blo = 0;
for (int i = 0; i < SIZE; i++) {
if (a[i] == b[i]) {
hit++;
a[i] = -1;
b[... | [
"variable_declaration.value.change",
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.for.initializer.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 20,260 | 20,261 | u910030421 | cpp |
p00025 | #include <iostream>
using namespace std;
int main() {
int a[4], b[4];
while (cin >> a[0] >> a[1] >> a[2] >> a[3] >> b[0] >> b[1] >> b[2] >> b[3]) {
int hit_cnt = 0;
int blow_cnt = 0;
for (int i = 0; i < 4; i++) {
if (a[i] == b[i]) {
hit_cnt++;
a[i] = b[i] = -1;
}
}
... | #include <iostream>
using namespace std;
int main() {
int a[4], b[4];
while (cin >> a[0] >> a[1] >> a[2] >> a[3] >> b[0] >> b[1] >> b[2] >> b[3]) {
int hit_cnt = 0;
int blow_cnt = 0;
for (int i = 0; i < 4; i++) {
if (a[i] == b[i]) {
hit_cnt++;
a[i] = b[i] = -1;
}
}
... | [
"control_flow.break.add"
] | 20,262 | 20,263 | u296194591 | cpp |
p00025 | #include <iostream>
using namespace std;
int main() {
int n = 0;
while (cin >> n) {
int a[4], b[4];
int hit = 0, blow = 0;
a[0] = n;
cin >> a[1] >> a[2] >> a[3];
cin >> b[0] >> b[1] >> b[2] >> b[3];
for (int i = 0; i < 4; ++i) {
for (int j = 0; j < 4; ++j) {
if (i == j && a[i] ... | #include <iostream>
using namespace std;
int main() {
int n = 0;
while (cin >> n) {
int a[4], b[4];
int hit = 0, blow = 0;
a[0] = n;
cin >> a[1] >> a[2] >> a[3];
cin >> b[0] >> b[1] >> b[2] >> b[3];
for (int i = 0; i < 4; ++i) {
for (int j = 0; j < 4; ++j) {
if (i == j && a[i] ... | [
"io.output.change"
] | 20,264 | 20,265 | u494023063 | cpp |
p00025 | #include <iostream>
using namespace std;
int main() {
int a[4] = {0}, b[4] = {0}, hi, br;
while (cin >> a[0] >> a[1] >> a[2] >> a[3] >> b[0] >> b[1] >> b[2] >> b[3]) {
hi = 0;
br = 0;
for (int i = 0; i < 4; i++) {
if (a[i] == b[i]) {
hi++;
}
}
for (int i; i < 4; i++) {
... | #include <iostream>
using namespace std;
int main() {
int a[4] = {0}, b[4] = {0}, hi, br;
while (cin >> a[0] >> a[1] >> a[2] >> a[3] >> b[0] >> b[1] >> b[2] >> b[3]) {
hi = 0;
br = 0;
for (int i = 0; i < 4; i++) {
if (a[i] == b[i]) {
hi++;
}
}
for (int i = 0; i < 4; i++) {
... | [
"control_flow.loop.for.initializer.change",
"variable_declaration.value.change"
] | 20,268 | 20,269 | u876634044 | cpp |
p00025 | #include <stdio.h>
int main() {
int a[4], b[4], x, y;
while (scanf("%d%d%d%d%d%d%d%d", &a[0], &a[1], &a[2], &a[3], &b[0], &b[1],
&b[2], &b[3]) != EOF) {
x = y = 0;
for (int i = 0; i < 4; i++) {
if (a[i] == b[i])
x++;
else if (a[i] == b[(i + 1) % 4] || a[i] == b[(i + 2) % 4... | #include <stdio.h>
int main() {
int a[4], b[4], x, y;
while (scanf("%d%d%d%d%d%d%d%d", &a[0], &a[1], &a[2], &a[3], &b[0], &b[1],
&b[2], &b[3]) != EOF) {
x = y = 0;
for (int i = 0; i < 4; i++) {
if (a[i] == b[i])
x++;
else if (a[i] == b[(i + 1) % 4] || a[i] == b[(i + 2) % 4... | [] | 20,270 | 20,271 | u048151615 | cpp |
p00025 | #include <array>
#include <iostream>
//ヒットの数を数え上げる
int checkNumOfHit(std ::array<int, 4> x, std ::array<int, 4> y) {
int num = 0;
for (int i = 0; i < 4; i++) {
if (x.at(i) == y.at(i))
num++;
}
return num;
}
//ブローの数を数え上げる
int checkNumOfBlow(std ::array<int, 4> x, std ::array<int, 4> y) {
int num = 0... | #include <array>
#include <iostream>
//ヒットの数を数え上げる
int checkNumOfHit(std ::array<int, 4> x, std ::array<int, 4> y) {
int num = 0;
for (int i = 0; i < 4; i++) {
if (x.at(i) == y.at(i))
num++;
}
return num;
}
//ブローの数を数え上げる
int checkNumOfBlow(std ::array<int, 4> x, std ::array<int, 4> y) {
int num = 0... | [
"expression.operation.binary.add"
] | 20,274 | 20,275 | u276410580 | cpp |
p00025 | #include <array>
#include <iostream>
int main() {
std::array<u_int, 4> a, b;
int hit, blow;
while (std::cin >> a[0] >> a[1] >> a[2] >> a[3]) {
std::cin >> b[0] >> b[1] >> b[2] >> b[3];
hit = 0;
blow = 0;
for (int i = 0; i < 4; i++) {
if (a[i] == b[i])
hit++;
for (int j = 0; j... | #include <array>
#include <iostream>
int main() {
std::array<u_int, 4> a, b;
int hit, blow;
while (std::cin >> a[0] >> a[1] >> a[2] >> a[3]) {
std::cin >> b[0] >> b[1] >> b[2] >> b[3];
hit = 0;
blow = 0;
for (int i = 0; i < 4; i++) {
if (a[i] == b[i])
hit++;
for (int j = 0; j... | [
"expression.operation.binary.add"
] | 20,276 | 20,277 | u134566402 | cpp |
p00025 | #include <iostream>
using namespace std;
int main() {
int a[4], b[4];
while (cin >> a[0] >> a[1] >> a[2] >> a[3] >> b[0] >> b[1] >> b[2] >> b[3]) {
int hit = 0, blow = 0;
for (int i = 0; i < 4; i++) {
for (int j = i; j < 4; j++) {
if (i == j && a[i] == b[j])
hit++;
else if ... | #include <iostream>
using namespace std;
int main() {
int a[4], b[4];
while (cin >> a[0] >> a[1] >> a[2] >> a[3]) {
cin >> b[0] >> b[1] >> b[2] >> b[3];
int hit = 0, blow = 0;
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 4; j++) {
if (i == j && a[i] == b[j])
hit++;
... | [
"control_flow.loop.condition.change",
"variable_declaration.value.change",
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.for.initializer.change"
] | 20,280 | 20,281 | u706376958 | cpp |
p00025 | #include <iostream>
using namespace std;
int main() {
int a[4], b[4];
while (cin >> a[0] >> a[1] >> a[2] >> a[3]) {
cin >> b[0] >> b[1] >> b[2] >> b[3];
int hit = 0, blow = 0;
for (int i = 0; i < 4; i++) {
for (int j = i; j < 4; j++) {
if (i == j && a[i] == b[j])
hit++;
... | #include <iostream>
using namespace std;
int main() {
int a[4], b[4];
while (cin >> a[0] >> a[1] >> a[2] >> a[3]) {
cin >> b[0] >> b[1] >> b[2] >> b[3];
int hit = 0, blow = 0;
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 4; j++) {
if (i == j && a[i] == b[j])
hit++;
... | [
"variable_declaration.value.change",
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.for.initializer.change"
] | 20,282 | 20,281 | u706376958 | cpp |
p00025 | #include <iostream>
using namespace std;
int main() {
int a1, a2, a3, a4, b1, b2, b3, b4, h, b;
cin >> a1 >> a2 >> a3 >> a4;
while (cin >> b1 >> b2 >> b3 >> b4) {
h = 0;
b = 0;
if (a1 == b1)
h++;
if (a2 == b2)
h++;
if (a3 == b3)
h++;
if (a4 == b4)
h++;
if (... | #include <iostream>
using namespace std;
int main() {
int a1, a2, a3, a4, b1, b2, b3, b4, h, b;
while (cin >> a1 >> a2 >> a3 >> a4 >> b1 >> b2 >> b3 >> b4) {
h = 0;
b = 0;
if (a1 == b1)
h++;
if (a2 == b2)
h++;
if (a3 == b3)
h++;
if (a4 == b4)
h++;
if (a1 == b2... | [] | 20,286 | 20,287 | u081124728 | cpp |
p00025 | #include <stdio.h>
int main(void) {
int a[4], b[4];
while (scanf("%d %d %d %d\n%d %d %d %d", &a[0], &a[1], &a[2], &a[3], &b[0],
&b[1], &b[2], &b[3]) != EOF) {
int i, j;
int hit = 0;
for (i = 0; i < 4; ++i) {
if (a[i] == b[i]) {
++hit;
}
}
int blow = 0;
f... | #include <stdio.h>
int main(void) {
int a[4], b[4];
while (scanf("%d %d %d %d\n%d %d %d %d", &a[0], &a[1], &a[2], &a[3], &b[0],
&b[1], &b[2], &b[3]) != EOF) {
int i, j;
int hit = 0;
for (i = 0; i < 4; ++i) {
if (a[i] == b[i]) {
++hit;
}
}
int blow = 0;
f... | [
"literal.number.change",
"control_flow.loop.condition.change",
"variable_declaration.value.change"
] | 20,288 | 20,289 | u274667485 | cpp |
p00025 | #include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> a(4), b(4);
int hit = 0, blow = 0;
while (cin >> a[0] >> a[1] >> a[2] >> a[3] >> b[0] >> b[1] >> b[2] >> b[3]) {
for (int i = 0; i < 4; i++) {
if (a[i] == b[i])
hit++;
}
for (int i = 0; i < 4; i++) {
... | #include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> a(4), b(4);
int hit = 0, blow = 0;
while (cin >> a[0] >> a[1] >> a[2] >> a[3] >> b[0] >> b[1] >> b[2] >> b[3]) {
for (int i = 0; i < 4; i++) {
if (a[i] == b[i])
hit++;
}
for (int i = 0; i < 4; i++) {
... | [
"io.output.change"
] | 20,290 | 20,291 | u802096158 | cpp |
p00027 | #include <iostream>
#include <string>
using namespace std;
int main() {
string days[] = {"Mon", "Tues", "Wednes", "Thurs", "Fri", "Satur", "Sun"};
int cal[12][31] = {{0}};
int today = 3;
for (int i = 0; i < 12; i++) {
for (int j = 0; j < 31; j++) {
cal[i][j] = today;
++today %= 7;
if (i =... | #include <iostream>
#include <string>
using namespace std;
int main() {
string days[] = {"Mon", "Tues", "Wednes", "Thurs", "Fri", "Satur", "Sun"};
int cal[12][31] = {{0}};
int today = 3;
for (int i = 0; i < 12; i++) {
for (int j = 0; j < 31; j++) {
cal[i][j] = today;
++today %= 7;
if (i =... | [
"identifier.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 20,555 | 20,556 | u831064957 | cpp |
p00027 | #include <iostream>
#include <string>
using namespace std;
int main() {
string days[] = {"Mon", "Tues", "Wednes", "Thurs", "Fri", "Satur", "Sun"};
int cal[12][31] = {{0}};
int today = 3;
for (int i = 0; i < 12; i++) {
for (int j = 0; j < 31; j++) {
cal[i][j] = today;
++today %= 7;
if (i =... | #include <iostream>
#include <string>
using namespace std;
int main() {
string days[] = {"Mon", "Tues", "Wednes", "Thurs", "Fri", "Satur", "Sun"};
int cal[12][31] = {{0}};
int today = 3;
for (int i = 0; i < 12; i++) {
for (int j = 0; j < 31; j++) {
cal[i][j] = today;
++today %= 7;
if (i =... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 20,557 | 20,556 | u831064957 | cpp |
p00027 | #include <iostream>
#include <map>
#include <string>
using namespace std;
string today(int month, int day) {
string today;
int startMonth = 1, startDay = 1, total = 0;
for (int i = startMonth; i < month; i++) {
switch (i) {
case 4:
case 6:
case 9:
case 11:
total += 30;
break;
... | #include <iostream>
#include <map>
#include <string>
using namespace std;
string today(int month, int day) {
string today;
int startMonth = 1, startDay = 1, total = 0;
for (int i = startMonth; i < month; i++) {
switch (i) {
case 4:
case 6:
case 9:
case 11:
total += 30;
break;
... | [
"expression.operator.change",
"literal.string.change",
"assignment.value.change"
] | 20,562 | 20,563 | u659663128 | cpp |
p00027 | #include <iostream>
#include <map>
#include <string>
using namespace std;
string today(int month, int day) {
string today;
int startMonth = 1, startDay = 1, total = 0;
for (int i = startMonth; i < month; i++) {
switch (i) {
case 4:
case 6:
case 9:
case 11:
total += 30;
break;
... | #include <iostream>
#include <map>
#include <string>
using namespace std;
string today(int month, int day) {
string today;
int startMonth = 1, startDay = 1, total = 0;
for (int i = startMonth; i < month; i++) {
switch (i) {
case 4:
case 6:
case 9:
case 11:
total += 30;
break;
... | [
"literal.string.change",
"assignment.value.change"
] | 20,564 | 20,563 | u659663128 | cpp |
p00027 | #include <iostream>
#include <map>
#include <string>
using namespace std;
string today(int month, int day) {
string today;
int startMonth = 1, startDay = 1, total = 0;
for (int i = startMonth; i < month; i++) {
switch (i) {
case 4:
case 6:
case 9:
case 11:
total += 30;
break;
... | #include <iostream>
#include <map>
#include <string>
using namespace std;
string today(int month, int day) {
string today;
int startMonth = 1, startDay = 1, total = 0;
for (int i = startMonth; i < month; i++) {
switch (i) {
case 4:
case 6:
case 9:
case 11:
total += 30;
break;
... | [
"literal.string.change",
"assignment.value.change"
] | 20,565 | 20,563 | u659663128 | cpp |
p00027 | #include <iostream>
#include <map>
#include <string>
using namespace std;
string today(int month, int day) {
string today;
int startMonth = 1, startDay = 1, total = 0;
for (int i = startMonth; i < month; i++) {
switch (i) {
case 4:
case 6:
case 9:
case 11:
total += 30;
break;
... | #include <iostream>
#include <map>
#include <string>
using namespace std;
string today(int month, int day) {
string today;
int startMonth = 1, startDay = 1, total = 0;
for (int i = startMonth; i < month; i++) {
switch (i) {
case 4:
case 6:
case 9:
case 11:
total += 30;
break;
... | [
"literal.string.change",
"assignment.value.change"
] | 20,566 | 20,563 | u659663128 | cpp |
p00027 | #include <algorithm>
#include <array>
#include <chrono>
#include <fstream>
#include <functional>
#include <iostream>
#include <map>
#include <math.h>
#include <memory.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#pragma warning(disable : ... | #include <algorithm>
#include <array>
#include <chrono>
#include <fstream>
#include <functional>
#include <iostream>
#include <map>
#include <math.h>
#include <memory.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#pragma warning(disable : ... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 20,567 | 20,568 | u520706050 | cpp |
p00027 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int month[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
char date[7][10] = {"Wednesday", "Thursday", "Friday", "Saturday",... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int month[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
char date[7][10] = {"Wednesday", "Thursday", "Friday", "Saturday",... | [
"assignment.add"
] | 20,569 | 20,570 | u414351000 | cpp |
p00027 | #include <stdio.h>
int main() {
int p[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int M, D, sum;
while (1) {
sum = 0;
scanf("%d", &M);
scanf("%d", &D);
if (M == 0)
break;
if (M == 0)
break;
for (int i = 0; i < M - 1; i++)
sum += p[i];
sum += D;
switc... | #include <stdio.h>
int main() {
int p[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int M, D, sum;
while (1) {
sum = 0;
scanf("%d", &M);
scanf("%d", &D);
if (M == 0)
break;
if (M == 0)
break;
for (int i = 0; i < M - 1; i++)
sum += p[i];
sum += D;
switc... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 20,571 | 20,572 | u745328149 | cpp |
p00027 | #include <bits/stdc++.h>
using namespace std;
const int INF = 1e+9 * 2;
double eps = 1e-10;
string days[] = {"Thursday", "Friday", "Saturday", "Sunday",
"Monday", "Tuesday", "Wednesday"};
int main() {
int m, d;
while (cin >> m >> d && (m || d)) {
int cnt = 0;
for (int i = 1; i <= 12; +... | #include <bits/stdc++.h>
using namespace std;
const int INF = 1e+9 * 2;
double eps = 1e-10;
string days[] = {"Thursday", "Friday", "Saturday", "Sunday",
"Monday", "Tuesday", "Wednesday"};
int main() {
int m, d;
while (cin >> m >> d && (m || d)) {
int cnt = 0;
for (int i = 1; i <= 12; +... | [
"variable_access.subscript.index.change",
"io.output.change"
] | 20,573 | 20,574 | u662227160 | cpp |
p00027 | #include <iostream>
#include <string>
using namespace std;
int main() {
string day[] = {"Wednesday", "Thirsday", "Friday", "Saturday",
"Sunday", "Monday", "Tuesday"};
int Mon[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int m, d;
while (cin >> m >> d, m * d) {
int allDay =... | #include <iostream>
#include <string>
using namespace std;
int main() {
string day[] = {"Wednesday", "Thursday", "Friday", "Saturday",
"Sunday", "Monday", "Tuesday"};
int Mon[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int m, d;
while (cin >> m >> d, m * d) {
int allDay =... | [
"literal.string.change",
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.loop.condition.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 20,575 | 20,576 | u171431006 | cpp |
p00027 | #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <time.h>
#include <math.h>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <algorithm>
#include <iterator>
#include <sstream>
#include <string>
#include <bitset>
using namespace std;
#define FOR(I, F, N) for (int I = F; I < (int... | #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <time.h>
#include <math.h>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <algorithm>
#include <iterator>
#include <sstream>
#include <string>
#include <bitset>
using namespace std;
#define FOR(I, F, N) for (int I = F; I < (int... | [
"literal.string.change",
"call.arguments.change"
] | 20,580 | 20,581 | u092829549 | cpp |
p00027 | #include <iostream>
#include <map>
#include <vector>
using namespace std;
void getDays(int month, int day) {
int dayNum[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int fst = 0; // 1/1 ?????? (month-1)??????????????\?????§?????\??°
for (int i = 0; i < month - 1; i++)
fst += dayNum[i];
fst++; //... | #include <iostream>
#include <map>
#include <vector>
using namespace std;
void getDays(int month, int day) {
int dayNum[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int fst = 0; // 1/1 ?????? (month-1)??????????????\?????§?????\??°
for (int i = 0; i < month - 1; i++)
fst += dayNum[i];
fst += da... | [] | 20,582 | 20,583 | u886766186 | cpp |
p00027 | #include <iostream>
using namespace std;
int main() {
int m[13] = {0, 4, 7, 1, 4, 6, 7, 4, 7, 3, 5, 1, 3};
string a[7] = {"Monday", "Tuesday", "Wednesday", "Thursday",
"Friday", "Saturday", "Sunday"};
int M, D;
while (cin >> M >> D && M && D) {
int x = m[M] - 2;
cout << a[(x + D) % 7]... | #include <iostream>
using namespace std;
int main() {
int m[13] = {0, 4, 7, 1, 4, 6, 2, 4, 7, 3, 5, 1, 3};
string a[7] = {"Monday", "Tuesday", "Wednesday", "Thursday",
"Friday", "Saturday", "Sunday"};
int M, D;
while (cin >> M >> D && M && D) {
int x = m[M] - 2;
cout << a[(x + D) % 7]... | [
"literal.number.change"
] | 20,584 | 20,585 | u195954908 | cpp |
p00027 | #include <iostream>
using namespace std;
int main() {
int day30[5] = {3, 4, 6, 9, 11};
while (1) {
int m, d;
cin >> m >> d;
if (m == 0 && d == 0)
break;
int a = 1, b = 1, count = 0;
while (1) {
if (a == m && b == d)
break;
b++;
count++;
if (a == 2 && b... | #include <iostream>
using namespace std;
int main() {
int day30[4] = {4, 6, 9, 11};
while (1) {
int m, d;
cin >> m >> d;
if (m == 0 && d == 0)
break;
int a = 1, b = 1, count = 0;
while (1) {
if (a == m && b == d)
break;
b++;
count++;
if (a == 2 && b ==... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"io.output.change"
] | 20,588 | 20,589 | u841011175 | cpp |
p00027 | #include <iostream>
using namespace std;
int main() {
int day30[5] = {3, 4, 6, 9, 11};
while (1) {
int m, d;
cin >> m >> d;
if (m == 0 && d == 0)
break;
int a = 1, b = 1, count = 0;
while (1) {
if (a == m && b == d)
break;
b++;
count++;
if (a == 2 && b... | #include <iostream>
using namespace std;
int main() {
int day30[4] = {4, 6, 9, 11};
while (1) {
int m, d;
cin >> m >> d;
if (m == 0 && d == 0)
break;
int a = 1, b = 1, count = 0;
while (1) {
if (a == m && b == d)
break;
b++;
count++;
if (a == 2 && b ==... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"io.output.change"
] | 20,590 | 20,589 | u841011175 | cpp |
p00027 | #include <iostream>
using namespace std;
int main() {
int day30[5] = {3, 4, 6, 9, 11};
while (1) {
int m, d;
cin >> m >> d;
if (m == 0 && d == 0)
break;
int a = 1, b = 1, count = 0;
while (1) {
if (a == m && b == d)
break;
b++;
count++;
if (a == 2 && b... | #include <iostream>
using namespace std;
int main() {
int day30[4] = {4, 6, 9, 11};
while (1) {
int m, d;
cin >> m >> d;
if (m == 0 && d == 0)
break;
int a = 1, b = 1, count = 0;
while (1) {
if (a == m && b == d)
break;
b++;
count++;
if (a == 2 && b ==... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"control_flow.branch.if.condition.change"
] | 20,591 | 20,589 | u841011175 | cpp |
p00027 | #include <iostream>
using namespace std;
int a[13][32];
void day(void) {
int check = 3;
for (int i = 1; i < 13; i++) {
for (int j = 1; j < 32; j++) {
a[i][j] = check;
check++;
if (check == 7)
check = 0;
if ((i == 4 || i == 6 || i == 9 || i == 11) && j == 30)
break;
... | #include <iostream>
using namespace std;
int a[13][32];
void day(void) {
int check = 3;
for (int i = 1; i < 13; i++) {
for (int j = 1; j < 32; j++) {
a[i][j] = check;
check++;
if (check == 7)
check = 0;
if ((i == 4 || i == 6 || i == 9 || i == 11) && j == 30)
break;
... | [
"literal.string.change",
"io.output.change"
] | 20,594 | 20,595 | u950683603 | cpp |
p00027 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
#define pb(n) push_back(n)
#define fi first
#define se second
#define all(r) (r).begin(), (r).end()
#define gsort(st, en) sort((st), (en), greater<int>())
#define rep(i, n) for (int i ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
#define pb(n) push_back(n)
#define fi first
#define se second
#define all(r) (r).begin(), (r).end()
#define gsort(st, en) sort((st), (en), greater<int>())
#define rep(i, n) for (int i ... | [
"assignment.add"
] | 20,596 | 20,597 | u073628131 | cpp |
p00027 | // 2004??´???366??\ /1/1 Thursday
#include <cstdio>
using namespace std;
void today(int mon, int day);
int main() {
int mon, day;
while (1) {
scanf("%d %d", &mon, &day);
if (day == 0) {
break;
}
today(mon, day);
}
return (0);
}
void today(int mon, int day) {
int tmp = 0;
for ... | // 2004 366 1/1 Thursday
#include <cstdio>
using namespace std;
void today(int mon, int day);
int main() {
int mon, day;
while (1) {
scanf("%d %d", &mon, &day);
if (mon == 0) {
break;
}
today(mon, day);
}
return (0);
}
void today(int mon, int day) {
int tmp = 0;
for (int i = ... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 20,600 | 20,601 | u881668270 | cpp |
p00027 | // 2004??´???366??\ /1/1 Thursday
#include <cstdio>
using namespace std;
void today(int mon, int day);
int main() {
int mon, day;
while (1) {
scanf("%d %d", &mon, &day);
if (mon == 0) {
break;
}
today(mon, day);
}
return (0);
}
void today(int mon, int day) {
int tmp = 0;
for ... | // 2004 366 1/1 Thursday
#include <cstdio>
using namespace std;
void today(int mon, int day);
int main() {
int mon, day;
while (1) {
scanf("%d %d", &mon, &day);
if (mon == 0) {
break;
}
today(mon, day);
}
return (0);
}
void today(int mon, int day) {
int tmp = 0;
for (int i = ... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 20,602 | 20,601 | u881668270 | cpp |
p00027 | #include <bits/stdc++.h>
using namespace std;
int main() {
int data[] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int month, day;
while (cin >> month >> day, month + day) {
int sum = 0;
for (int i = 0; i < month - 1; i++) {
sum += data[i];
}
sum += day;
sum %= 7;
if (sum =... | #include <bits/stdc++.h>
using namespace std;
int main() {
int data[] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int month, day;
while (cin >> month >> day, month + day) {
int sum = 0;
for (int i = 0; i < month - 1; i++) {
sum += data[i];
}
sum += day;
sum %= 7;
if (sum =... | [
"literal.string.change",
"io.output.change"
] | 20,603 | 20,604 | u695600391 | cpp |
p00027 | #include <iostream>
#include <string>
using namespace std;
int x[13][32], y[13] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}, sum,
n, m;
string T[7] = {"Sunday", "Monday", "Tuesday", "Wednesday",
"Thursday", "Friday", "Saturday"};
int main() {
for (int i = 1; i <= 12; i++) {
... | #include <iostream>
#include <string>
using namespace std;
int x[13][32], y[13] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}, sum,
n, m;
string T[7] = {"Sunday", "Monday", "Tuesday", "Wednesday",
"Thursday", "Friday", "Saturday"};
int main() {
sum = 4;
for (int i = 1; i <= 1... | [
"assignment.add"
] | 20,605 | 20,606 | u852311840 | cpp |
p00027 | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define PRINT(STR) cout << STR << endl;
#defi... | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define PRINT(STR) cout << STR << endl;
#defi... | [
"literal.number.change",
"variable_declaration.value.change",
"expression.operation.binary.remove"
] | 20,607 | 20,608 | u211905117 | cpp |
p00027 | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
string a[7] = {"Monday",... | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
string a[7] = {"Monday",... | [
"expression.operation.binary.remove"
] | 20,609 | 20,610 | u160041984 | cpp |
p00027 | #include <iostream>
#include <string>
using namespace std;
int main() {
string y[7] = {"Wednesday", "Thrsday", "Frinday", "Saturday",
"Sunday", "Monday", "Tuesday"};
int mon[13] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
while (1) {
int m, d;
cin >> m >> d;
if (m ==... | #include <iostream>
#include <string>
using namespace std;
int main() {
string y[7] = {"Wednesday", "Thursday", "Friday", "Saturday",
"Sunday", "Monday", "Tuesday"};
int mon[13] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
while (1) {
int m, d;
cin >> m >> d;
if (m ==... | [
"literal.string.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 20,612 | 20,613 | u843611113 | cpp |
p00027 | #include <iostream>
#include <string>
using namespace std;
int main() {
string y[7] = {"Wednesday", "Thrsday", "Frinday", "Saturday",
"Sunday", "Monday", "Tuesday"};
int mon[13] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
while (1) {
int m, d;
cin >> m >> d;
if (m ==... | #include <iostream>
#include <string>
using namespace std;
int main() {
string y[7] = {"Wednesday", "Thursday", "Friday", "Saturday",
"Sunday", "Monday", "Tuesday"};
int mon[13] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
while (1) {
int m, d;
cin >> m >> d;
if (m ==... | [
"literal.string.change"
] | 20,614 | 20,613 | u843611113 | cpp |
p00027 | #include <iostream>
#include <string>
using namespace std;
string days[7] = {"Wednesday", "Thursday", "Friday", "Saturday",
"Sunday", "Monday", "Tuesday"};
int daysPerMonth[11] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30};
int main() {
int m, d;
while (cin >> m >> d) {
int day = 0;
... | #include <iostream>
#include <string>
using namespace std;
string days[7] = {"Wednesday", "Thursday", "Friday", "Saturday",
"Sunday", "Monday", "Tuesday"};
int daysPerMonth[11] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30};
int main() {
int m, d;
while (cin >> m >> d, m + d) {
int day... | [
"control_flow.loop.condition.change"
] | 20,618 | 20,619 | u726778078 | cpp |
p00027 | #include <iostream>
using namespace std;
int main(void) {
int Month[13]{0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
//??????0?????\???6
int dow = 2;
int in_day, in_month;
while (cin >> in_month >> in_day) {
if (in_month == 0)
break;
dow = 2;
for (int i = 0; i < in_month; i++) {
... | #include <iostream>
#include <vector>
using namespace std;
int main(void) {
/*
double x[3] = { 0,0,0 };
double y[3] = { 0,0,0 };
double xp = 0, yp = 0;
int flag[3] = { 0,0,0 };
while (cin >> x[0]>> y[0]>> x[1]>> y[1]>> x[2]>> y[2]>> xp>> yp) {
for (int i = 0; i < 3; i++) {
in... | [
"import.add",
"literal.string.change",
"io.output.change"
] | 20,620 | 20,621 | u541499927 | cpp |
p00027 | #include <algorithm>
#include <cctype>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
#define shosu(x) fixed << setprecision(x)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vecto... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
#define shosu(x) fixed << setprecision(x)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vecto... | [
"literal.string.change",
"io.output.change"
] | 20,622 | 20,623 | u496100636 | cpp |
p00027 | #include <algorithm>
#include <cctype>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
#define shosu(x) fixed << setprecision(x)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vecto... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
#define shosu(x) fixed << setprecision(x)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vecto... | [
"literal.string.change",
"io.output.change"
] | 20,624 | 20,623 | u496100636 | cpp |
p00027 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, n) for (int i = a; i < n; i++)
#define repr(i, a, n) for (int i = a; i >= n; i--)
#define pb(a) push_back(a)
#define fr first
#define sc second
#define INF 999999999
#define X real()
#define Y imag()
#define EPS (1e-10)
#define EQ(a, b) (abs((a) - (b)) <... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, n) for (int i = a; i < n; i++)
#define repr(i, a, n) for (int i = a; i >= n; i--)
#define pb(a) push_back(a)
#define fr first
#define sc second
#define INF 999999999
#define X real()
#define Y imag()
#define EPS (1e-10)
#define EQ(a, b) (abs((a) - (b)) <... | [
"literal.number.change",
"variable_access.subscript.index.change",
"io.output.change"
] | 20,625 | 20,626 | u155634813 | cpp |
p00027 | #include <iostream>
using namespace std;
int main() {
int m, d, ans, month, i, total = 0;
while (1) {
cin >> m >> d;
if (m == 0)
break;
for (i = 1; i < m; i++) {
if (i == 1 || i == 3 || i == 5 || i == 7 || i == 8 || i == 10 ||
i == 12) {
total += 31;
} else if (i == ... | #include <iostream>
using namespace std;
int main() {
int m, d, ans, month, i, total = 0;
while (1) {
cin >> m >> d;
if (m == 0)
break;
for (i = 1; i < m; i++) {
if (i == 1 || i == 3 || i == 5 || i == 7 || i == 8 || i == 10 ||
i == 12) {
total += 31;
} else if (i == ... | [
"literal.string.change",
"io.output.change"
] | 20,627 | 20,628 | u274552558 | cpp |
p00027 | #include <iostream>
#include <map>
#include <string>
#include <utility>
using namespace std;
map<pair<int, int>, string> mp;
string s[7] = {"Monday", "Tuesday", "Wendnesday", "Thursday",
"Fryday", "Saturday", "Sunday"};
int main() {
int cnt = 3;
for (int i = 1; i <= 12; i++) {
int days;
if (... | #include <iostream>
#include <map>
#include <string>
#include <utility>
using namespace std;
map<pair<int, int>, string> mp;
string s[7] = {"Monday", "Tuesday", "Wednesday", "Thursday",
"Friday", "Saturday", "Sunday"};
int main() {
int cnt = 3;
for (int i = 1; i <= 12; i++) {
int days;
if (i... | [
"literal.string.change",
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 20,629 | 20,630 | u469154576 | cpp |
p00027 | #include <iostream>
#include <map>
#include <string>
#include <utility>
using namespace std;
map<pair<int, int>, string> mp;
string s[7] = {"Monday", "Tuesday", "Wednesday", "Thursday",
"Friday", "Saturday", "Sunday"};
int main() {
int cnt = 3;
for (int i = 1; i <= 12; i++) {
int days;
if (i... | #include <iostream>
#include <map>
#include <string>
#include <utility>
using namespace std;
map<pair<int, int>, string> mp;
string s[7] = {"Monday", "Tuesday", "Wednesday", "Thursday",
"Friday", "Saturday", "Sunday"};
int main() {
int cnt = 3;
for (int i = 1; i <= 12; i++) {
int days;
if (i... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 20,631 | 20,630 | u469154576 | cpp |
p00027 | #include <cstdio>
using namespace std;
bool testcase_ends() {
int m, d;
scanf("%d %d", &m, &d);
if (m == 0 && d == 0)
return 1;
int offset[] = {0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335};
const char *day[] = {"Mon", "Tues", "Wednes", "Thurs", "Fri", "Sat", "Sun"};
printf("%sday\n", day... | #include <cstdio>
using namespace std;
bool testcase_ends() {
int m, d;
scanf("%d %d", &m, &d);
if (m == 0 && d == 0)
return 1;
int offset[] = {0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335};
const char *day[] = {"Mon", "Tues", "Wednes", "Thurs", "Fri", "Satur", "Sun"};
printf("%sday\n", d... | [
"literal.string.change"
] | 20,632 | 20,633 | u144532944 | cpp |
p00027 | #include <algorithm>
#include <bits/stdc++.h>
#include <list>
#include <map>
#include <queue>
#include <stack>
#include <vector>
using namespace std;
int main() {
int mod = 1000000007;
int m, d;
int p[13] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
map<int, string> week;
week[0] = "Monday";
week... | #include <algorithm>
#include <bits/stdc++.h>
#include <list>
#include <map>
#include <queue>
#include <stack>
#include <vector>
using namespace std;
int main() {
int mod = 1000000007;
int m, d;
int p[13] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
map<int, string> week;
week[0] = "Monday";
week... | [
"literal.string.change",
"assignment.value.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 20,634 | 20,635 | u140201022 | cpp |
p00027 | #include <algorithm>
#include <iostream>
#include <stack>
#include <stdio.h>
using namespace std;
int main(void) {
int month, day, ans;
while (1) {
cin >> month >> day;
if (month == 0)
break;
if (month == 1) {
ans = day;
}
if (month == 2) {
ans = day + 31;
}
if (month... | #include <algorithm>
#include <iostream>
#include <stack>
#include <stdio.h>
using namespace std;
int main(void) {
int month, day, ans;
while (1) {
cin >> month >> day;
if (month == 0)
break;
if (month == 1) {
ans = day;
}
if (month == 2) {
ans = day + 31;
}
if (month... | [
"literal.number.change",
"assignment.value.change",
"expression.operation.binary.change",
"literal.string.change",
"io.output.change"
] | 20,636 | 20,637 | u690299834 | cpp |
p00027 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <numeric>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int main() {
int M[13] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
string w[7] = {"Wednesday", "Thursday", "Friday... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <numeric>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int main() {
int M[13] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
string w[7] = {"Wednesday", "Thursday", "Friday... | [
"literal.string.change"
] | 20,639 | 20,640 | u991537731 | cpp |
p00027 | #include <stdio.h>
int main() {
int month, day, n;
int md[12] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 31, 30};
while (1) {
scanf("%d %d", &month, &day);
if (month == 0)
break;
n = 0;
for (int i = 0; i < month; i++) {
n += md[i];
}
n += day;
switch (n % 7) {
case 0:
... | #include <stdio.h>
int main() {
int month, day, n;
int md[12] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30};
while (1) {
scanf("%d %d", &month, &day);
if (month == 0)
break;
n = 0;
for (int i = 0; i < month; i++) {
n += md[i];
}
n += day;
switch (n % 7) {
case ... | [] | 20,641 | 20,642 | u682451950 | cpp |
p00027 | #include <iostream>
#include <string>
using namespace std;
int main() {
string week[7] = {"Mondey", "Tuesday", "Wednesday", "Thursday",
"Friday", "Saturday", "Sunday"};
int month[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int m, d, cnt, mc;
while (cin >> m >> d) {
if (m =... | #include <iostream>
#include <string>
using namespace std;
int main() {
string week[7] = {"Monday", "Tuesday", "Wednesday", "Thursday",
"Friday", "Saturday", "Sunday"};
int month[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int m, d, cnt, mc;
while (cin >> m >> d) {
if (m =... | [
"literal.string.change"
] | 20,645 | 20,646 | u403921290 | cpp |
p00027 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
while (1) {
int month, day;
int days_from_new_year = 0;
cin >> month >> day;
if (month == 0 && day == 0)
break;
for (int i = 1; i < month; i++) {
if (i == 1 || i == 3 || i == 5 || i == 7 || i == 8 || i == 10 || i == 12)
... | #include <bits/stdc++.h>
using namespace std;
int main(void) {
while (1) {
int month, day;
int days_from_new_year = 0;
cin >> month >> day;
if (month == 0 && day == 0)
break;
for (int i = 1; i < month; i++) {
if (i == 1 || i == 3 || i == 5 || i == 7 || i == 8 || i == 10 || i == 12)
... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 20,648 | 20,649 | u327125861 | cpp |
p00027 | #include <iostream>
#include <string>
#include <vector>
int main() {
std::vector<std::string> day_of_week{"Thursday", "Friday", "Suterday",
"Sunday", "Monday", "Tuesday",
"Wednesday"};
std::vector<int> day_num_of_month{31, 29, 31, 30,... | #include <iostream>
#include <string>
#include <vector>
int main() {
std::vector<std::string> day_of_week{"Thursday", "Friday", "Saturday",
"Sunday", "Monday", "Tuesday",
"Wednesday"};
std::vector<int> day_num_of_month{31, 29, 31, 30,... | [
"literal.string.change"
] | 20,650 | 20,651 | u684875789 | cpp |
p00027 | // clang-format off
#include <bits/stdc++.h>
#define int long long
#define main signed main()
// #define main int main()
#define loop(i, a, n) for (int i = (a); i < (n); i++)
#define rep(i, n) loop(i, 0, n)
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
#define prec(n) fixed << setprecis... | // clang-format off
#include <bits/stdc++.h>
#define int long long
#define main signed main()
// #define main int main()
#define loop(i, a, n) for (int i = (a); i < (n); i++)
#define rep(i, n) loop(i, 0, n)
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
#define prec(n) fixed << setprecis... | [
"literal.number.change",
"variable_access.subscript.index.change",
"io.output.change"
] | 20,653 | 20,654 | u449960815 | cpp |
p00027 | #include <iostream>
#include <string>
using namespace std;
int main() {
const int n_day[] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
const string week_name[] = {"Wednesday", "Thursday", "Firday", "Saturday",
"Sunday", "Monday", "Tuesday"};
int m, d, sum = 0;
cin >> ... | #include <iostream>
#include <string>
using namespace std;
int main() {
const int n_day[] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
const string week_name[] = {"Wednesday", "Thursday", "Friday", "Saturday",
"Sunday", "Monday", "Tuesday"};
int m, d, sum = 0;
cin >> ... | [
"literal.string.change"
] | 20,655 | 20,656 | u651428295 | cpp |
p00027 | #include "bits/stdc++.h"
using namespace std;
int main() {
int m, d;
int mm[] = {31, 29, 31, 30, 31, 30, 31, 31, 31, 31, 30, 31};
string s[] = {"Monday", "Tuesday", "Wednesday", "Thursday",
"Friday", "Saturday", "Sunday"};
while (cin >> m >> d) {
if (m == 0)
break;
int dd = 0;
... | #include "bits/stdc++.h"
using namespace std;
int main() {
int m, d;
int mm[] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
string s[] = {"Monday", "Tuesday", "Wednesday", "Thursday",
"Friday", "Saturday", "Sunday"};
while (cin >> m >> d) {
if (m == 0)
break;
int dd = 0;
... | [
"literal.number.change"
] | 20,658 | 20,659 | u321462250 | cpp |
p00025 | #include <iostream>
#include <string>
using namespace std;
int main() {
int a[4];
int b[4];
int c;
int d;
int e;
int f;
while (cin >> a[0] >> a[1] >> a[2] >> a[3] >> b[0] >> b[1] >> b[2] >> b[3]) {
e = 0;
f = 0;
c = 0;
while (c < 4) {
d = 0;
while (d < 4) {
if (a[c] == ... | #include <iostream>
#include <string>
using namespace std;
int main() {
int a[4];
int b[4];
int c;
int d;
int e;
int f;
while (cin >> a[0] >> a[1] >> a[2] >> a[3] >> b[0] >> b[1] >> b[2] >> b[3]) {
e = 0;
f = 0;
c = 0;
while (c < 4) {
d = 0;
while (d < 4) {
if (a[c] == ... | [] | 20,660 | 20,661 | u012061892 | cpp |
p00025 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int a[4];
int b[4];
int brow, hit;
while (cin >> a[0] >> a[1] >> a[2] >> a[3] >> b[0] >> b[1] >> b[2] >> b[3]) {
hit = brow = 0;
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 4; j++) {
if (a[i] == b[i]) {
... | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int a[4];
int b[4];
int brow, hit;
while (cin >> a[0] >> a[1] >> a[2] >> a[3] >> b[0] >> b[1] >> b[2] >> b[3]) {
hit = brow = 0;
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 4; j++) {
if (a[i] == b[j]) {
... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 20,662 | 20,663 | u621997536 | cpp |
p00025 | #include <stdio.h>
int main(void) {
int a[4];
int b[4];
int i, j;
int hit, blow;
while (scanf("%d %d %d %d", &a[0], &a[1], &a[2], &a[3]) != EOF) {
scanf("%d %d %d %d", &b[0], &b[1], &b[2], &b[3]);
hit = 0;
blow = 0;
for (i = 0; i < 4; i++) {
if (a[i] == b[i]) {
hit++;
}
... | #include <stdio.h>
int main(void) {
int a[4];
int b[4];
int i, j;
int hit, blow;
while (scanf("%d %d %d %d", &a[0], &a[1], &a[2], &a[3]) != EOF) {
scanf("%d %d %d %d", &b[0], &b[1], &b[2], &b[3]);
hit = 0;
blow = 0;
for (i = 0; i < 4; i++) {
if (a[i] == b[i]) {
hit++;
}
... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 20,664 | 20,665 | u288691574 | cpp |
p00025 | #include <iostream>
using namespace std;
int main() {
int a[4], b[4];
while (1) {
for (int i = 0; i < 4; ++i)
cin >> a[i];
for (int i = 0; i < 4; ++i)
cin >> b[i];
if (cin.eof())
break;
int hit = 0, blow = 0;
for (int i = 0; i < 4; ++i) {
for (int j = i; j < 4; ++j) {... | #include <iostream>
using namespace std;
int main() {
int a[4], b[4];
while (1) {
for (int i = 0; i < 4; ++i)
cin >> a[i];
for (int i = 0; i < 4; ++i)
cin >> b[i];
if (cin.eof())
break;
int hit = 0, blow = 0;
for (int i = 0; i < 4; ++i) {
for (int j = 0; j < 4; ++j) {... | [
"variable_declaration.value.change",
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.for.initializer.change"
] | 20,666 | 20,667 | u703196441 | cpp |
p00025 | #include <iostream>
using namespace std;
int main() {
int a[4], b[4], count, count_2;
while (cin >> a[0] >> a[1] >> a[2] >> a[4]) {
cin >> b[0] >> b[1] >> b[2] >> b[3];
count = 0;
count_2 = 0;
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 4; j++) {
if (a[i] == b[j]) {
... | #include <iostream>
using namespace std;
int main() {
int a[4], b[4], count, count_2;
while (cin >> a[0] >> a[1] >> a[2] >> a[3]) {
cin >> b[0] >> b[1] >> b[2] >> b[3];
count = 0;
count_2 = 0;
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 4; j++) {
if (a[i] == b[j]) {
... | [
"literal.number.change",
"variable_access.subscript.index.change",
"control_flow.loop.condition.change"
] | 20,668 | 20,669 | u765197056 | cpp |
p00027 | // 1=31,2=29,3=31,4=30,5=31,6=30,7=31,8=31,9=30,10=31,11=30,12=31//
#include <iostream>
#include <string>
using namespace std;
int main() {
string str[7]{"Wednesday", "Thursday", "Friday", "Saturday",
"Sunday", "Monday", "Tuseday"};
int t[11]{31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335};... | // 1=31,2=29,3=31,4=30,5=31,6=30,7=31,8=31,9=30,10=31,11=30,12=31//
#include <iostream>
#include <string>
using namespace std;
int main() {
string str[7]{"Wednesday", "Thursday", "Friday", "Saturday",
"Sunday", "Monday", "Tuesday"};
int t[11]{31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335};... | [
"literal.string.change"
] | 20,766 | 20,767 | u884304694 | cpp |
p00027 | #include <iostream>
using namespace std;
int main() {
int date, month, day;
while (cin >> month >> day && month != 0) {
switch (month) {
case 1:
switch (date % 7) {
case 1:
day = 4;
break;
case 2:
day = 5;
break;
case 3:
day = 6;
break;... | #include <iostream>
using namespace std;
int main() {
int date, month, day;
while (cin >> month >> date && month != 0) {
switch (month) {
case 1:
switch (date % 7) {
case 1:
day = 4;
break;
case 2:
day = 5;
break;
case 3:
day = 6;
break... | [
"identifier.change",
"control_flow.loop.condition.change"
] | 20,769 | 20,770 | u494662220 | cpp |
p00027 | #include <iostream>
using namespace std;
int main() {
int m, d, n = 0, date[50] = {0}, i = 0;
while (cin >> m && m != 0) {
cin >> d;
switch (m) {
case 1:
break;
case 2:
d = d + 3;
break;
case 3:
d = d + 4;
break;
case 4:
break;
case 5:
d = d + 3;... | #include <iostream>
using namespace std;
int main() {
int m = 0, d = 0, n = 0, date[50] = {0}, i = 0;
while (cin >> m && m != 0) {
cin >> d;
switch (m) {
case 1:
break;
case 2:
d = d + 3;
break;
case 3:
d = d + 4;
break;
case 4:
break;
case 5:
d ... | [
"variable_declaration.value.change",
"literal.number.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 20,771 | 20,772 | u876634044 | cpp |
p00027 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int days[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
string youbi[7] = {"Tursday", "Friday", "Saturday", "Sunday",
"Monday", "Tuesday", "Wednesday"};
while (1) {
int m, d, s = 0;
cin... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int days[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
string youbi[7] = {"Thursday", "Friday", "Saturday", "Sunday",
"Monday", "Tuesday", "Wednesday"};
while (1) {
int m, d, s = 0;
c... | [
"literal.string.change"
] | 20,774 | 20,775 | u273843182 | cpp |
p00027 | #include <bits/stdc++.h>
using namespace std;
int main() {
for (;;) {
int m, d;
cin >> m >> d;
if (m == 0)
break;
vector<int> day = {31, 29, 31, 30, 31, 30, 31, 30, 31, 30, 30, 31};
int tmp = d;
for (int i = 0; i < m - 1; i++) {
tmp += day.at(i);
}
int ans = tmp % 7;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
for (;;) {
int m, d;
cin >> m >> d;
if (m == 0)
break;
vector<int> day = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int tmp = d;
for (int i = 0; i < m - 1; i++) {
tmp += day.at(i);
}
int ans = tmp % 7;
... | [] | 20,776 | 20,777 | u070640908 | cpp |
p00027 | #include <iostream>
using namespace std;
int main() {
int month, day;
cin >> month >> day;
while (month != 0 && day != 0) {
if (month >= 1)
day = day;
if (month >= 2)
day = day + 31;
if (month >= 3)
day = day + 28;
if (month >= 4)
day = day + 31;
if (month >= 5)
... | #include <iostream>
using namespace std;
int main() {
int month, day;
cin >> month >> day;
while (month != 0 && day != 0) {
if (month >= 1)
day = day;
if (month >= 2)
day = day + 31;
if (month >= 3)
day = day + 29;
if (month >= 4)
day = day + 31;
if (month >= 5)
... | [
"literal.number.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 20,778 | 20,779 | u717810231 | cpp |
p00027 | #include <iostream>
using namespace std;
int main() {
int m, d;
while (cin >> m >> d) {
if (!m)
break;
int daym[12] = {0, 31, 60, 91, 121, 152, 183, 213, 244, 274, 305, 335};
int wd = (daym[m - 1] + d + 2) % 7;
switch (wd) {
case 0:
cout << "Monday" << endl;
break;
case 1:
... | #include <iostream>
using namespace std;
int main() {
int m, d;
while (cin >> m >> d) {
if (!m)
break;
int daym[12] = {0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335};
int wd = (daym[m - 1] + d + 2) % 7;
switch (wd) {
case 0:
cout << "Monday" << endl;
break;
case 1:
... | [
"literal.number.change"
] | 20,782 | 20,783 | u535943957 | cpp |
p00027 | #include <stdio.h>
void y(int x) {
if (x == 0)
puts("Thursday");
else if (x == 1)
puts("Friday");
else if (x == 2)
puts("Suturday");
else if (x == 3)
puts("Sunday");
else if (x == 4)
puts("Monday");
else if (x == 5)
puts("Tuesday");
else if (x == 6)
puts("Wednesday");
}
int m... | #include <stdio.h>
void y(int x) {
if (x == 0)
puts("Thursday");
else if (x == 1)
puts("Friday");
else if (x == 2)
puts("Saturday");
else if (x == 3)
puts("Sunday");
else if (x == 4)
puts("Monday");
else if (x == 5)
puts("Tuesday");
else if (x == 6)
puts("Wednesday");
}
int m... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 20,784 | 20,785 | u182453220 | cpp |
p00027 | #include <iostream>
#include <string>
using namespace std;
int main() {
int days[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
string youbi[7] = {"Monsay", "Tuesday", "Wednesday", "Thursday",
"Friday", "Saturday", "Sunday"};
while (1) {
int mon, day;
cin >> mon >> day;
... | #include <iostream>
#include <string>
using namespace std;
int main() {
int days[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
string youbi[7] = {"Monday", "Tuesday", "Wednesday", "Thursday",
"Friday", "Saturday", "Sunday"};
while (1) {
int mon, day;
cin >> mon >> day;
... | [
"literal.string.change"
] | 20,786 | 20,787 | u480459673 | cpp |
p00027 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
vector<int> r;
string d[7] = {"Saturday", "Sunday", "Monday", "Tuesday",
"Wednesday", "Thursday", "Friday"};
while (true) {
int m, d;
cin >> m >> d;
if (m == 0)
break;
if (m < 3)
... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
vector<int> r;
string d[7] = {"Saturday", "Sunday", "Monday", "Tuesday",
"Wednesday", "Thursday", "Friday"};
while (true) {
int m, d;
cin >> m >> d;
if (m == 0)
break;
if (m < 3) {
... | [] | 20,790 | 20,791 | u456755759 | cpp |
p00027 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <v... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <v... | [
"literal.string.change"
] | 20,794 | 20,795 | u434428594 | cpp |
p00027 | #include <iostream>
using namespace std;
int main(void) {
int m, d;
while (1) {
cin >> m >> d;
if (m == 0)
break;
for (int i = m; i > 1; i--) {
if (i - 1 == 4 || i - 1 == 6 || i - 1 == 9 || i - 1 == 11)
d += 30;
else if (i - 1 == 2)
d += 29;
else if (i - 1 == 1 ... | #include <iostream>
using namespace std;
int main(void) {
int m, d;
while (1) {
cin >> m >> d;
if (m == 0)
break;
for (int i = m; i > 1; i--) {
if (i - 1 == 4 || i - 1 == 6 || i - 1 == 9 || i - 1 == 11)
d += 30;
else if (i - 1 == 2)
d += 29;
else if (i - 1 == 1 ... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 20,796 | 20,797 | u263247628 | cpp |
p00027 | #include <iostream>
using namespace std;
int main(void) {
int m, d;
while (1) {
cin >> m >> d;
if (m == 0)
break;
for (int i = m; i > 1; i--) {
if (i - 1 == 4 || i - 1 == 6 || i - 1 == 9 || i - 1 == 11)
d += 30;
else if (i - 1 == 2)
d += 29;
else if (i - 1 == 1 ... | #include <iostream>
using namespace std;
int main(void) {
int m, d;
while (1) {
cin >> m >> d;
if (m == 0)
break;
for (int i = m; i > 1; i--) {
if (i - 1 == 4 || i - 1 == 6 || i - 1 == 9 || i - 1 == 11)
d += 30;
else if (i - 1 == 2)
d += 29;
else if (i - 1 == 1 ... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 20,798 | 20,797 | u263247628 | cpp |
p00027 | #include <iostream>
using namespace std;
int main() {
int n, m;
int x[12] = {0, 3, 4, 0, 2, 5, 0, 3, 6, 1, 4, 0};
while (cin >> n >> m, n || m) {
if ((m + x[n - 1]) % 7 == 1)
cout << "Thursday" << endl;
if ((m + x[n - 1]) % 7 == 2)
cout << "Friday" << endl;
if ((m + x[n - 1]) % 7 == 3)
... | #include <iostream>
using namespace std;
int main() {
int n, m;
int x[12] = {0, 3, 4, 0, 2, 5, 0, 3, 6, 1, 4, 6};
while (cin >> n >> m, n || m) {
if ((m + x[n - 1]) % 7 == 1)
cout << "Thursday" << endl;
if ((m + x[n - 1]) % 7 == 2)
cout << "Friday" << endl;
if ((m + x[n - 1]) % 7 == 3)
... | [
"literal.number.change"
] | 20,799 | 20,800 | u712500775 | cpp |
p00027 | #include <iostream>
using namespace std;
int main() {
int a, b;
int day[12] = {0, 3, 4, 0, 2, 5, 0, 3, 6, 1, 4, 6};
while (cin >> a >> b, a || b) {
b += day[a - 1];
switch (b % 7) {
case 0:
cout << "" << endl;
break;
case 1:
cout << "Thursday" << endl;
break;
case 2:
... | #include <iostream>
using namespace std;
int main() {
int a, b;
int day[12] = {0, 3, 4, 0, 2, 5, 0, 3, 6, 1, 4, 6};
while (cin >> a >> b, a || b) {
b += day[a - 1];
switch (b % 7) {
case 0:
cout << "Wednesday" << endl;
break;
case 1:
cout << "Thursday" << endl;
break;
c... | [
"literal.string.change",
"io.output.change"
] | 20,801 | 20,802 | u712500775 | cpp |
p00027 | //曜日を当てる
#include <cstdio>
#include <string>
using namespace std;
int main(void) {
string name[7] = {"Mondey", "Tuesday", "Wednesday", "Thursday",
"Friday", "Saturday", "Sunday"};
int mond[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int month, day, m, c;
int i; //ループカウンタ
wh... | //曜日を当てる
#include <cstdio>
#include <string>
using namespace std;
int main(void) {
string name[7] = {"Monday", "Tuesday", "Wednesday", "Thursday",
"Friday", "Saturday", "Sunday"};
int mond[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int month, day, m, c;
int i; //ループカウンタ
wh... | [
"literal.string.change"
] | 20,803 | 20,804 | u056405822 | cpp |
p00027 | #include <iostream>
using namespace std;
int main() {
int monthNum[13] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
string dayName[7] = {"Thursday", "Friday", "Saturday", "Sunday",
"Monday", "Tuesday", "Wednesday"};
int month, day, passDay = 0;
while (1) {
cin >> month... | #include <iostream>
using namespace std;
int main() {
int monthNum[13] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
string dayName[7] = {"Thursday", "Friday", "Saturday", "Sunday",
"Monday", "Tuesday", "Wednesday"};
int month, day, passDay = 0;
while (1) {
cin >> month >... | [
"assignment.add"
] | 20,807 | 20,808 | u358260180 | cpp |
p00027 | #include <iostream>
#include <string>
using namespace std;
int main() {
// arrays with number of days in month and the days names
int days[] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
string week[7] = {"Wednesday", "Thursday", "Friday", "Saturday",
"Sunday", "Monday", "Tuesday"};... | #include <iostream>
#include <string>
using namespace std;
int main() {
// arrays with number of days in month and the days names
int days[] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
string week[7] = {"Wednesday", "Thursday", "Friday", "Saturday",
"Sunday", "Monday", "Tuesday"};... | [
"control_flow.loop.condition.change"
] | 20,811 | 20,812 | u674364816 | cpp |
p00027 | #include <iostream>
using namespace std;
int main() {
int a[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int n, m, d;
while (cin >> n >> m, n, m) {
d = 0;
for (int i = 0; i < n - 1; i++)
d = a[i] + d;
d = d + m;
while (d > 6)
d -= 7;
if (d == 5)
cout << "Mo... | #include <iostream>
using namespace std;
int main() {
int a[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int n, m, d;
while (cin >> n >> m, n, m) {
d = 0;
for (int i = 0; i < n - 1; i++)
d = a[i] + d;
d = d + m;
while (d > 6)
d -= 7;
if (d == 5)
cout << "Mo... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 20,816 | 20,817 | u464972055 | cpp |
p00027 | #include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vect... | #include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vect... | [
"identifier.replace.add",
"literal.replace.remove"
] | 20,818 | 20,819 | u012934318 | cpp |
p00027 | #include <iostream>
using namespace std;
int day(int month) {
switch (month) {
case 4:
case 6:
case 9:
case 11:
return 30;
break;
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
return 31;
break;
case 2:
return 18;
break;
}
}
int main() {
int m, d, num;
... | #include <iostream>
using namespace std;
int day(int month) {
switch (month) {
case 4:
case 6:
case 9:
case 11:
return 30;
break;
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
return 31;
break;
case 2:
return 29;
break;
}
}
int main() {
int m, d, num;
... | [
"literal.number.change",
"function.return_value.change"
] | 20,820 | 20,821 | u228756885 | cpp |
p00027 | #include <cmath>
#include <iostream>
#include <vector>
using namespace std;
typedef long long ll;
const int MNUM = 12, leapMNUM = 12;
const int ML[] = {31, 28, 31, 30, 31, 30,
31, 31, 30, 31, 30, 31}; // day/month in usual year
const int leapML[] = {31, 29, 31, 30, 31, 30,
31, 3... | #include <cmath>
#include <iostream>
#include <vector>
using namespace std;
typedef long long ll;
const int MNUM = 12, leapMNUM = 12;
const int ML[] = {31, 28, 31, 30, 31, 30,
31, 31, 30, 31, 30, 31}; // day/month in usual year
const int leapML[] = {31, 29, 31, 30, 31, 30,
31, 3... | [
"literal.string.change"
] | 20,824 | 20,825 | u003114686 | cpp |
p00027 | #include <iostream>
using namespace std;
main() {
int month[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
string day[7] = {"Wednesday", "Thursday", "Friday", "Saturday",
"Sunday", "Monday", "Tuesday"};
int n[2];
while (cin >> n[0] >> n[1], n[0], n[1]) {
int sum = 0;
for... | #include <iostream>
using namespace std;
main() {
int month[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
string day[7] = {"Wednesday", "Thursday", "Friday", "Saturday",
"Sunday", "Monday", "Tuesday"};
int n[2];
while (cin >> n[0] >> n[1], n[0], n[1]) {
int sum = 0;
for... | [
"expression.operation.binary.remove"
] | 20,826 | 20,827 | u128939728 | cpp |
p00027 | #include <fstream>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <complex>
#include <map>
#include <math.h>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define li long... | #include <fstream>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <complex>
#include <map>
#include <math.h>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define li long... | [
"assignment.add"
] | 20,828 | 20,829 | u632720093 | cpp |
p00027 | #include <iostream>
using namespace std;
int main(void) {
int month;
int day;
int day2;
while (1) {
day2 = 0;
cin >> month >> day;
if (month == 0 && day == 0)
break;
for (int i = 1; i < month; i++) {
switch (i) {
case 1:
case 3:
case 5:
case 7:
ca... | #include <iostream>
using namespace std;
int main(void) {
int month;
int day;
int day2;
while (1) {
day2 = 0;
cin >> month >> day;
if (month == 0 && day == 0)
break;
for (int i = 1; i < month; i++) {
switch (i) {
case 1:
case 3:
case 5:
case 7:
ca... | [] | 20,832 | 20,833 | u195155547 | cpp |
p00027 | #include <iostream>
using namespace std;
int main(void) {
while (1) {
int mon, day;
cin >> mon;
if (cin.eof())
break;
cin >> day;
for (int i = 1; i < mon; i++) {
switch (i) {
case 2:
day += 29;
break;
case 4:
case 6:
case 9:
case 11:
... | #include <iostream>
using namespace std;
int main(void) {
while (1) {
int mon, day;
cin >> mon;
if (mon == 0)
break;
cin >> day;
for (int i = 1; i < mon; i++) {
switch (i) {
case 2:
day += 29;
break;
case 4:
case 6:
case 9:
case 11:
... | [
"call.arguments.change"
] | 20,836 | 20,837 | u842986906 | cpp |
p00027 | #include <stdio.h>
int main() {
int y, d, m;
int h;
char *date[] = {"Saturday", "Sunday", "Monday", "Tuesday",
"Wednesday", "Thursday", "Friday"};
for (;;) {
int Y, C, G;
y = 2004;
scanf("%d %d", &m, &d);
if (d == 0 || m == 0)
break;
if (m == 1 || m == 2) {
... | #include <stdio.h>
int main() {
int y, d, m;
int h;
char *date[] = {"Saturday", "Sunday", "Monday", "Tuesday",
"Wednesday", "Thursday", "Friday"};
for (;;) {
int Y, C, G;
y = 2004;
scanf("%d %d", &m, &d);
if (d == 0 || m == 0)
break;
if (m == 1 || m == 2) {
... | [
"assignment.value.change",
"expression.operation.binary.change"
] | 20,838 | 20,839 | u809815599 | cpp |
p00027 | #include <iostream>
#include <string>
using namespace std;
int main() {
string youbi[7] = {"Wednesday", "Thursday", "Friday", "Suturday",
"Sunday", "Monday", "Tuesday"};
int month[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int gathu, nichi;
while (cin >> gathu >> nichi, ... | #include <iostream>
#include <string>
using namespace std;
int main() {
string youbi[7] = {"Wednesday", "Thursday", "Friday", "Saturday",
"Sunday", "Monday", "Tuesday"};
int month[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int gathu, nichi;
while (cin >> gathu >> nichi, ... | [
"literal.string.change",
"expression.operation.binary.remove"
] | 20,840 | 20,841 | u437039370 | cpp |
p00027 | #include <iostream>
#include <string>
using namespace std;
int main() {
string youbi[7] = {"Wednesday", "Thursday", "Friday", "Suturday",
"Sunday", "Monday", "Tuesday"};
int month[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int gathu, nichi;
while (cin >> gathu >> nichi, ... | #include <iostream>
#include <string>
using namespace std;
int main() {
string youbi[7] = {"Wednesday", "Thursday", "Friday", "Saturday",
"Sunday", "Monday", "Tuesday"};
int month[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int gathu, nichi;
while (cin >> gathu >> nichi, ... | [
"literal.string.change"
] | 20,842 | 20,841 | u437039370 | cpp |
p00027 | #include <iostream>
#include <string>
int day(int m, int d) {
if (m == 1)
return d;
if (m == 2)
return 31 + d;
if (m == 3)
return 60 + d;
if (m == 4)
return 91 + d;
if (m == 5)
return 121 + d;
if (m == 6)
return 152 + d;
if (m == 7)
return 182 + d;
if (m == 8)
return 213... | #include <iostream>
#include <string>
int day(int m, int d) {
if (m == 1)
return d;
if (m == 2)
return 31 + d;
if (m == 3)
return 60 + d;
if (m == 4)
return 91 + d;
if (m == 5)
return 121 + d;
if (m == 6)
return 152 + d;
if (m == 7)
return 182 + d;
if (m == 8)
return 213... | [
"literal.number.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 20,843 | 20,844 | u376194616 | cpp |
p00027 | #include <iostream>
#include <string>
int day(int m, int d) {
if (m == 1)
return d;
if (m == 2)
return 31 + d;
if (m == 3)
return 60 + d;
if (m == 4)
return 91 + d;
if (m == 5)
return 121 + d;
if (m == 6)
return 152 + d;
if (m == 7)
return 182 + d;
if (m == 8)
return 213... | #include <iostream>
#include <string>
int day(int m, int d) {
if (m == 1)
return d;
if (m == 2)
return 31 + d;
if (m == 3)
return 60 + d;
if (m == 4)
return 91 + d;
if (m == 5)
return 121 + d;
if (m == 6)
return 152 + d;
if (m == 7)
return 182 + d;
if (m == 8)
return 213... | [] | 20,845 | 20,844 | u376194616 | cpp |
p00027 | #include <cstdio>
#include <iostream>
int main(int argc, const char *argv[]) {
int month[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int m, d;
while (scanf("%d %d", &m, &d) != 0) {
int cnt = 0;
if (m == 0 && d == 0) {
return 0;
}
for (int i = 0; i < m - 1; i++) {
cnt += mo... | #include <cstdio>
#include <iostream>
int main(int argc, const char *argv[]) {
int month[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int m, d;
while (scanf("%d %d", &m, &d) != 0) {
int cnt = 0;
if (m == 0 && d == 0) {
return 0;
}
for (int i = 0; i < m - 1; i++) {
cnt += mo... | [
"assignment.value.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 20,846 | 20,847 | u991779216 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.