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 |
|---|---|---|---|---|---|---|---|
p00274 | #include <stdio.h>
int main(void) {
int i, s, k, max, kai;
while (0 == 0) {
scanf("%d", &k);
if (k == 0)
break;
kai = k;
scanf("%d", &s);
max = s;
if (s == 0)
kai--;
for (i = 1; i < k; i++) {
scanf(" %d", &s);
if (max < s)
max = s;
if (s == 0)
... | #include <stdio.h>
int main(void) {
int i, s, k, max, kai;
while (0 == 0) {
scanf("%d", &k);
if (k == 0)
break;
kai = k;
scanf("%d", &s);
max = s;
if (s == 0)
kai--;
for (i = 1; i < k; i++) {
scanf(" %d", &s);
if (max < s)
max = s;
if (s == 0)
... | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 45,736 | 45,737 | u219635315 | cpp |
p00274 | #include <stdio.h>
int main(void) {
int i, s, k, max, kai;
while (0 == 0) {
scanf("%d", &k);
if (k == 0)
break;
kai = k;
scanf("%d", &s);
max = s;
if (s == 0)
kai--;
for (i = 1; i < k; i++) {
scanf(" %d", &s);
if (max < s)
max = s;
if (s == 0)
... | #include <stdio.h>
int main(void) {
int i, s, k, max, kai;
while (0 == 0) {
scanf("%d", &k);
if (k == 0)
break;
kai = k;
scanf("%d", &s);
max = s;
if (s == 0)
kai--;
for (i = 1; i < k; i++) {
scanf(" %d", &s);
if (max < s)
max = s;
if (s == 0)
... | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 45,738 | 45,737 | u219635315 | cpp |
p00274 |
#include <algorithm>
#include <iostream>
using namespace std;
#define MAX 11000
int main() {
long long int n;
long long int input[MAX];
while (cin >> n && n != 0) {
long long int _min = 99999999;
long long int all = 0;
long long int _max = 0;
long long int zero = 0;
for (long long int i ... | #include <algorithm>
#include <iostream>
using namespace std;
#define MAX 11000
int main() {
long long int n;
long long int input[MAX];
while (cin >> n && n != 0) {
long long int _min = 99999999;
long long int all = 0;
long long int _max = 0;
long long int zero = 0;
for (long long int i =... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 45,739 | 45,740 | u917646831 | cpp |
p00274 | #include <iostream>
using namespace std;
int main() {
// your code goes here
int n, k[10000];
while (cin >> n) {
if (n == 0)
break;
int maxim = 0, sum = 0;
for (int i = 0; i < n; i++) {
cin >> k[i];
sum += (1 & k[i]);
maxim = max(maxim, k[i]);
}
if (maxim <= 1)
c... | #include <iostream>
using namespace std;
int main() {
// your code goes here
int n, k[10000];
while (cin >> n) {
if (n == 0)
break;
int maxim = 0, sum = 0;
for (int i = 0; i < n; i++) {
cin >> k[i];
sum += (int)(bool)(k[i]);
maxim = max(maxim, k[i]);
}
if (maxim <= 1)
... | [
"type_conversion.add"
] | 45,743 | 45,744 | u875838458 | cpp |
p00275 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int N;
int field = 0;
const int CARDS = 100;
const int MAX_PLAYERS = 10;
vector<int> Hand(CARDS);
vector<char> Draw(MAX_PLAYERS);
while (1) {
cin >> N;
if (N == 0) {
break;
... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int N;
int field = 0;
const int CARDS = 100;
const int MAX_PLAYERS = 10;
vector<int> Hand(CARDS);
vector<char> Draw(MAX_PLAYERS);
while (1) {
field = 0;
cin >> N;
if (N == 0) {
... | [
"assignment.add"
] | 45,765 | 45,766 | u385991569 | cpp |
p00275 | #include <algorithm>
#include <iostream>
using namespace std;
string Card;
int pk[10] = {0};
int N;
int field;
int main() {
while (1) {
int cnt = 0;
cin >> N;
if (N == 0)
break;
cin >> Card;
while (cnt < 100) {
for (int j = 0; j < N; j++, cnt++) {
if (cnt > 100)
br... | #include <algorithm>
#include <iostream>
using namespace std;
string Card;
int pk[10] = {0};
int N;
int field;
int main() {
while (1) {
int cnt = 0;
cin >> N;
if (N == 0)
break;
cin >> Card;
while (cnt < 100) {
for (int j = 0; j < N; j++, cnt++) {
if (cnt >= 100)
b... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 45,768 | 45,769 | u635328368 | cpp |
p00275 | #include <bits/stdc++.h>
using namespace std;
int n;
string str;
int p[10], f;
int main() {
while (cin >> n, n) {
cin >> str;
memset(p, 0, sizeof(p));
for (int i = 0; i < 100; i++) {
int cur = i % n;
if (str[i] == 'M')
p[cur]++;
else if (str[i] == 'S') {
f += p[cur] +... | #include <bits/stdc++.h>
using namespace std;
int n;
string str;
int p[10], f;
int main() {
while (cin >> n, n) {
cin >> str;
memset(p, 0, sizeof(p));
f = 0;
for (int i = 0; i < 100; i++) {
int cur = i % n;
if (str[i] == 'M')
p[cur]++;
else if (str[i] == 'S') {
f ... | [
"assignment.add"
] | 45,770 | 45,771 | u334031393 | cpp |
p00275 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int n, f = 0, i;
char c;
while (cin >> n, n != 0) {
int a[n];
for (i = 0; i < n; i++) {
a[i] = 0;
}
for (i = 0; i < 100; i++) {
cin >> c;
switch (c) {
case 'M':
a[i % n]++;
break;
... | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int n, f, i;
char c;
while (cin >> n, n != 0) {
f = 0;
int a[n];
for (i = 0; i < n; i++) {
a[i] = 0;
}
for (i = 0; i < 100; i++) {
cin >> c;
switch (c) {
case 'M':
a[i % n]++;
br... | [
"assignment.add"
] | 45,776 | 45,777 | u625204421 | cpp |
p00275 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
while (1) {
int n;
cin >> n;
if (n == 0)
break;
string card;
cin >> card;
int p[10] = {0}, f = 0, t = 0;
int c = 0;
while (c < 100) {
string s =... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
while (1) {
int n;
cin >> n;
if (n == 0)
break;
string card;
cin >> card;
int p[10] = {0}, f = 0, t = 0;
int c = 0;
while (c < 100) {
string s =... | [
"assignment.value.change"
] | 45,780 | 45,781 | u662227160 | cpp |
p00275 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string S;
int N;
vector<int> P;
int R;
while (true) {
cin >> N;
if (N == 0) {
break;
}
P = vector<int>(N, 0);
R = 0;
cin >> S;
for (int i = 0; i < S.size(); ... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string S;
int N;
vector<int> P;
int R;
while (true) {
cin >> N;
if (N == 0) {
break;
}
P = vector<int>(N, 0);
R = 0;
cin >> S;
for (int i = 0; i < S.size(); ... | [
"assignment.value.change",
"assignment.change"
] | 45,782 | 45,783 | u823513038 | cpp |
p00275 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string S;
int N;
vector<int> P;
int R;
while (true) {
cin >> N;
if (N == 0) {
break;
}
P = vector<int>(N, 0);
R = 0;
cin >> S;
for (int i = 0; i < S.size(); ... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string S;
int N;
vector<int> P;
int R;
while (true) {
cin >> N;
if (N == 0) {
break;
}
P = vector<int>(N, 0);
R = 0;
cin >> S;
for (int i = 0; i < S.size(); ... | [
"assignment.value.change"
] | 45,784 | 45,783 | u823513038 | cpp |
p00275 | #include <iostream>
using namespace std;
#include <algorithm>
#include <cstring>
int main() {
int n;
int hand[100];
while (cin >> n && n != 0) {
memset(hand, 0, sizeof(hand));
int field = 0;
int num = 0;
for (int i = 0; i < 100; i++) {
char c;
cin >> c;
if (c == 'M')
... | #include <iostream>
using namespace std;
#include <algorithm>
#include <cstring>
int main() {
int n;
int hand[100];
while (cin >> n && n != 0) {
memset(hand, 0, sizeof(hand));
int field = 0;
int num = 0;
for (int i = 0; i < 100; i++) {
char c;
cin >> c;
if (c == 'M')
... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 45,792 | 45,793 | u490319842 | cpp |
p00275 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
while (1) {
int ba = 0;
int a;
string x;
cin >> a;
if (a == 0)
break;
cin >> x;
vector<int> s(a);
for (int b = 0; b < 100; b++) {
s[b % a]++;
switch (x[b]) ... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
while (1) {
int ba = 0;
int a;
string x;
cin >> a;
if (a == 0)
break;
cin >> x;
vector<int> s(a);
for (int b = 0; b < 100; b++) {
s[b % a]++;
switch (x[b]) ... | [] | 45,794 | 45,795 | u584110575 | cpp |
p00275 | #include <algorithm>
#include <iostream>
using namespace std;
/*void sort(int* array, int index){
bool finish = true;
while(finish){
finish = false;
for(int i = 1; i < index; i++){
if(array[i - 1] > array[i]){
int temp = array[i - 1];
array[i - 1] = a... | #include <algorithm>
#include <iostream>
using namespace std;
/*void sort(int* array, int index){
bool finish = true;
while(finish){
finish = false;
for(int i = 1; i < index; i++){
if(array[i - 1] > array[i]){
int temp = array[i - 1];
array[i - 1] = a... | [
"identifier.replace.add",
"literal.replace.remove",
"variable_declaration.array_dimensions.change",
"io.output.newline.add"
] | 45,796 | 45,797 | u267897253 | cpp |
p00275 | #include <algorithm>
#include <iostream>
using namespace std;
/*void sort(int* array, int index){
bool finish = true;
while(finish){
finish = false;
for(int i = 1; i < index; i++){
if(array[i - 1] > array[i]){
int temp = array[i - 1];
array[i - 1] = a... | #include <algorithm>
#include <iostream>
using namespace std;
/*void sort(int* array, int index){
bool finish = true;
while(finish){
finish = false;
for(int i = 1; i < index; i++){
if(array[i - 1] > array[i]){
int temp = array[i - 1];
array[i - 1] = a... | [
"identifier.replace.add",
"literal.replace.remove",
"variable_declaration.array_dimensions.change"
] | 45,798 | 45,797 | u267897253 | cpp |
p00275 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
while (1) {
int N;
cin >> N;
if (N == 0)
break;
int player[N + 1];
for (int i = 0; i < N + 1; i++) {
player[i] = 0;
}
int all = 0;
int num = 1;
for (int i = 1; i < 101; i++) {
char x;
... | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
while (1) {
int N;
cin >> N;
if (N == 0)
break;
int player[N + 1];
for (int i = 0; i < N + 1; i++) {
player[i] = 0;
}
int all = 0;
int num = 1;
for (int i = 1; i < 101; i++) {
char x;
... | [
"expression.operation.binary.add"
] | 45,799 | 45,800 | u507373322 | cpp |
p00275 | #include <iostream>
using namespace std;
int main() {
int n, m[15], st;
int b;
char f[150];
int i, j;
int tmp;
while (cin >> n, n) {
for (i = 0; i < 15; i++)
m[i] = 0;
b = 0;
st = 0;
cin >> f;
for (i = 0; i < 100; i++) {
if (st == n)
st = 0;
if (f[i] == '... | #include <iostream>
using namespace std;
int main() {
int n, m[15], st;
int b;
char f[150];
int i, j;
int tmp;
while (cin >> n, n) {
for (i = 0; i < 15; i++)
m[i] = 0;
b = 0;
st = 0;
cin >> f; // scanf("%s",f);
for (i = 0; i < 100; i++) {
if (st == n)
st = 0;
... | [
"assignment.change"
] | 45,801 | 45,802 | u669006075 | cpp |
p00263 | #include <cstdio>
#include <iostream>
using namespace std;
void bit_16to2(char);
int bit_2[32], a;
int main() {
char bit_16[8];
long long b, n, ans_1, ans_2, c = 5000000;
bool check1, check2;
cin >> n;
for (int j = 0; j < n; j++) {
check1 = false;
check2 = false;
a = 0;
b = 8389608;
... | #include <cstdio>
#include <iostream>
using namespace std;
void bit_16to2(char);
int bit_2[32], a;
int main() {
char bit_16[8];
long long b, n, ans_1, ans_2, c = 5000000;
bool check1, check2;
cin >> n;
for (int j = 0; j < n; j++) {
check1 = false;
check2 = false;
a = 0;
b = 8388608;
... | [
"literal.number.change",
"assignment.value.change"
] | 45,823 | 45,824 | u081053257 | cpp |
p00263 | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pint;
typedef vector<int> vint;
#define pb push_back
#define mp make_pair
#define rep(i, n) for (int i = 0; i < (n); i++)
template <class T, class U> void chmin(T &t, U f) {
if (t > f)
t = f;
}
template <class T, class U> void chmax(T &t, U f) {... | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pint;
typedef vector<int> vint;
#define pb push_back
#define mp make_pair
#define rep(i, n) for (int i = 0; i < (n); i++)
template <class T, class U> void chmin(T &t, U f) {
if (t > f)
t = f;
}
template <class T, class U> void chmax(T &t, U f) {... | [
"expression.operation.binary.add"
] | 45,828 | 45,829 | u113716229 | cpp |
p00263 | #include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;
string S;
char T[17] = "0123456789abcdef";
int Q;
int U[32];
int power[4] = {1, 2, 4, 8};
void Bit(string W) {
int c[8], v[32];
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 16; j++) {
if (W[i] == T[j]) {
... | #include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;
string S;
char T[17] = "0123456789abcdef";
int Q;
int U[32];
int power[4] = {1, 2, 4, 8};
void Bit(string W) {
int c[8], v[32];
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 16; j++) {
if (W[i] == T[j]) {
... | [
"assignment.add"
] | 45,830 | 45,831 | u852311840 | cpp |
p00263 | #include <cctype>
#include <iomanip>
#include <iostream>
using namespace std;
string getBit(char ch) {
int x = isdigit(ch) ? ch - '0' : ch - 'a' + 10;
string res = "";
for (int i = 8; i >= 1; i /= 2) {
if (x & i)
res += "1";
else
res += "0";
}
return res;
}
int main() {
int Q;
cin >>... | #include <cctype>
#include <iomanip>
#include <iostream>
using namespace std;
string getBit(char ch) {
int x = isdigit(ch) ? ch - '0' : ch - 'a' + 10;
string res = "";
for (int i = 8; i >= 1; i /= 2) {
if (x & i)
res += "1";
else
res += "0";
}
return res;
}
int main() {
int Q;
cin >>... | [
"literal.number.change",
"io.output.change"
] | 45,838 | 45,839 | u642549559 | cpp |
p00263 | #include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
unsigned int num = 0;
for (int j = 0; j < 8; j++) {
num <<= 4;
if (isdigit(s[j]))
num += s[j] - '0';
else
n... | #include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
unsigned int num = 0;
for (int j = 0; j < 8; j++) {
num <<= 4;
if (isdigit(s[j]))
num += s[j] - '0';
else
n... | [
"control_flow.loop.condition.change",
"control_flow.loop.for.condition.change"
] | 45,840 | 45,841 | u324171823 | cpp |
p00263 | #include <cmath>
#include <cstdio>
using namespace std;
typedef unsigned int ui;
int main() {
int q;
scanf("%d", &q);
while (q--) {
ui bit;
scanf("%x", &bit);
if (bit >> 31 & 1)
putchar('-');
int Seisu = (bit & 0x7FFFFFFF) >> 7;
int Syosu = (bit & 0x0000007F) * 78125;
double ans = 0.... | #include <cmath>
#include <cstdio>
using namespace std;
typedef unsigned int ui;
int main() {
int q;
scanf("%d", &q);
while (q--) {
ui bit;
scanf("%x", &bit);
if (bit >> 31 & 1)
putchar('-');
int Seisu = (bit & 0x7FFFFFFF) >> 7;
int Syosu = (bit & 0x0000007F);
double ans = 0.0;
i... | [
"expression.operation.binary.remove",
"variable_declaration.value.change"
] | 45,842 | 45,843 | u095377734 | cpp |
p00264 | #include <complex>
#include <iostream>
#include <math.h>
#include <vector>
#define EPS 1e-4
#define PI 3.141592
#define EQ(a, b) (abs((a) - (b)) < EPS)
using namespace std;
typedef complex<double> P;
vector<P> house;
vector<P> ume, sak, mo;
double cross(P v1, P v2) {
return v1.real() * v2.imag() - v1.imag() * v2... | #include <complex>
#include <iostream>
#include <math.h>
#include <vector>
#define EPS 1e-4
#define PI 3.141592
#define EQ(a, b) (abs((a) - (b)) < EPS)
using namespace std;
typedef complex<double> P;
vector<P> house;
vector<P> ume, sak, mo;
double cross(P v1, P v2) {
return v1.real() * v2.imag() - v1.imag() * v2... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 45,859 | 45,860 | u334491063 | cpp |
p00264 | #include <algorithm>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
#include <set>
#include <vector>
using namespace std;
typedef long long ll;
typedef long double R;
typedef complex<R> P;
namespace std {
bool operator<(P a, P b) {
r... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
#include <set>
#include <vector>
using namespace std;
typedef long long ll;
typedef long double R;
typedef complex<R> P;
namespace std {
bool operator<(P a, P b) {
r... | [
"expression.operation.binary.add"
] | 45,861 | 45,862 | u849555829 | cpp |
p00264 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int, int> pii;
#define reps(i, f, n) for (int i = f; i < int(n); ++i)
#define rep(i, n) reps(i, 0, n)
const double PI = acos(-1);
bool ... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int, int> pii;
#define reps(i, f, n) for (int i = f; i < int(n); ++i)
#define rep(i, n) reps(i, 0, n)
const double PI = acos(-1);
bool ... | [
"expression.operation.binary.add"
] | 45,863 | 45,864 | u223628983 | cpp |
p00265 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef tuple<int, int> duo;
#define TT template <typename T>
#define ET(T) typename T::value_type
TT inline T sq(T x) { return x * x; }
TT inline T In() {
T x;
cin >> x;
return x;
}
TT inline int ubnd(T &v, ET(T) x) {
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef tuple<int, int> duo;
#define TT template <typename T>
#define ET(T) typename T::value_type
TT inline T sq(T x) { return x * x; }
TT inline T In() {
T x;
cin >> x;
return x;
}
TT inline int ubnd(T &v, ET(T) x) {
... | [
"control_flow.loop.for.initializer.change",
"expression.operation.binary.remove"
] | 45,882 | 45,883 | u490032117 | cpp |
p00265 | #include <bits/stdc++.h>
using namespace std;
#define for_(i, a, b) for (int i = a; i < b; ++i)
#define for_rev(i, a, b) for (int i = a; i >= b; --i)
#define allof(a) a.begin(), a.end()
#define minit(a, b) memset(a, b, sizeof(a))
#define size_of(a) (int)a.size()
typedef long long lint;
typedef double Double;
typedef ... | #include <bits/stdc++.h>
using namespace std;
#define for_(i, a, b) for (int i = a; i < b; ++i)
#define for_rev(i, a, b) for (int i = a; i >= b; --i)
#define allof(a) a.begin(), a.end()
#define minit(a, b) memset(a, b, sizeof(a))
#define size_of(a) (int)a.size()
typedef long long lint;
typedef double Double;
typedef ... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 45,884 | 45,885 | u725607905 | cpp |
p00265 | #include <algorithm>
#include <cstdio>
#define M 50
using namespace std;
int n, q;
int c[300100], x;
int main() {
scanf("%d%d", &n, &q);
int lim = 0;
for (int i = 0; i < n; i++) {
scanf("%d", &c[i]);
lim = max(lim, c[i]);
}
sort(c, c + n);
int m[M] = {0};
for (int i = 1; i <= M; i++) {
for (... | #include <algorithm>
#include <cstdio>
#define M 50
using namespace std;
int n, q;
int c[300100], x;
int main() {
scanf("%d%d", &n, &q);
int lim = 0;
for (int i = 0; i < n; i++) {
scanf("%d", &c[i]);
lim = max(lim, c[i]);
}
sort(c, c + n);
int m[M + 1] = {0};
for (int i = 1; i <= M; i++) {
f... | [
"variable_declaration.array_dimensions.change",
"assignment.change"
] | 45,886 | 45,887 | u914140574 | cpp |
p00265 | #include <algorithm>
#include <cstdio>
#include <vector>
using namespace std;
int arr[300002];
int mo[300001];
int main() {
int n, q;
scanf("%d%d", &n, &q);
for (int i = 0; i < n; i++)
scanf("%d", &arr[i + 1]);
arr[0] = 0;
sort(arr, arr + n + 1);
arr[n + 1] = 300001;
for (int i = 0; i < n + 1; i++) {
... | #include <algorithm>
#include <cstdio>
#include <vector>
using namespace std;
int arr[300002];
int mo[300001];
int main() {
int n, q;
scanf("%d%d", &n, &q);
for (int i = 0; i < n; i++)
scanf("%d", &arr[i + 1]);
arr[0] = 0;
sort(arr, arr + n + 1);
arr[n + 1] = 300001;
for (int i = 0; i < n + 1; i++) {
... | [
"assignment.change"
] | 45,888 | 45,889 | u113716229 | cpp |
p00265 | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
#define INF 1000000000007
using namespace std;
typedef long long int ll;
int main() {
int n, q;
cin >> n... | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
#define INF 1000000000007
using namespace std;
typedef long long int ll;
int main() {
int n, q;
cin >> n... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 45,890 | 45,891 | u534550471 | cpp |
p00265 | #include <cstdio>
#define MAX_N 300000
#define MAX_C 300000
int main() {
int N, Q;
scanf("%d %d\n", &N, &Q);
int card[MAX_N];
bool has_card[MAX_C + 1];
for (int i = 0; i < N; i++) {
scanf("%d", &card[i]);
// printf("card %d ", card[i]);
}
for (int i = 0; i <= MAX_C; i++) {
has_card[i] = fals... | #include <cstdio>
#define MAX_N 300000
#define MAX_C 300000
int main() {
int N, Q;
scanf("%d %d\n", &N, &Q);
int card[MAX_N];
bool has_card[MAX_C + 1];
for (int i = 0; i < N; i++) {
scanf("%d", &card[i]);
// printf("card %d ", card[i]);
}
for (int i = 0; i <= MAX_C; i++) {
has_card[i] = fals... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 45,892 | 45,893 | u975539923 | cpp |
p00265 | #include <iostream>
using namespace std;
int main() {
int n, q, last[300001];
cin >> n >> q;
for (int i = 0; i <= 300000; i++)
last[i] = -1;
for (int i = 0; i < n; i++) {
int c;
cin >> c;
last[c] = c;
}
last[0] = 0;
for (int i = 1; i <= 300000; i++) {
if (last[i] == -1)
last[i] ... | #include <iostream>
using namespace std;
int main() {
int n, q, last[300001];
cin >> n >> q;
for (int i = 0; i <= 300000; i++)
last[i] = -1;
for (int i = 0; i < n; i++) {
int c;
cin >> c;
last[c] = c;
}
last[0] = 0;
for (int i = 1; i <= 300000; i++) {
if (last[i] == -1)
last[i] ... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.initializer.change"
] | 45,896 | 45,897 | u642694278 | cpp |
p00265 | #include <iostream>
using namespace std;
int main() {
int N, Q, q;
int c[300000] = {0};
cin >> N >> Q;
while (N-- > 0) {
int i;
cin >> i;
c[i] = i;
}
for (int i = 1; i < 300000; i++) {
if (!c[i])
c[i] = c[i - 1];
}
while (Q-- > 0) {
int res = 0;
cin >> q;
for (int i = ... | // Modular Query
// c[i] = i 以下のカードのうち最大のカード
// wrong answer
// 1/5
#include <iostream>
using namespace std;
int main() {
int N, Q, q;
int c[300001] = {0};
cin >> N >> Q;
while (N-- > 0) {
int i;
cin >> i;
c[i] = i;
}
for (int i = 1; i < 300001; i++) {
if (!c[i])
c[i] = c[i - 1];
... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"control_flow.loop.for.initializer.change",
"control_flow.loop.condition.change"
] | 45,902 | 45,903 | u392015442 | cpp |
p00265 | // Modular Query
// c[i] = i 以下のカードのうち最大のカード
// wrong answer
// 1/5
#include <iostream>
using namespace std;
int main() {
int N, Q, q;
int c[300001] = {0};
cin >> N >> Q;
while (N-- > 0) {
int i;
cin >> i;
c[i] = i;
}
for (int i = 1; i < 300001; i++) {
if (!c[i])
c[i] = c[i - 1];
... | // Modular Query
// c[i] = i 以下のカードのうち最大のカード
// wrong answer
// 1/5
#include <iostream>
using namespace std;
int main() {
int N, Q, q;
int c[300001] = {0};
cin >> N >> Q;
while (N-- > 0) {
int i;
cin >> i;
c[i] = i;
}
for (int i = 1; i < 300001; i++) {
if (!c[i])
c[i] = c[i - 1];
... | [
"control_flow.loop.for.initializer.change"
] | 45,904 | 45,903 | u392015442 | cpp |
p00265 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define FOR(i, a, n) for (int i = (a); ... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define FOR(i, a, n) for (int i = (a); ... | [
"variable_access.subscript.index.change",
"expression.operation.binary.change",
"call.add",
"assignment.value.change",
"call.arguments.change"
] | 45,905 | 45,906 | u934534598 | cpp |
p00265 | #include <iostream>
using namespace std;
#define rep(i, n) for (int i = 0; i < int(n); ++i)
int main() {
int n, q;
cin >> n >> q;
int c[300001];
fill(c, c + 300001, 0);
rep(i, n) {
int cc;
cin >> cc;
c[cc] = cc;
}
rep(i, 300000) c[i + 1] = max(c[i], c[i + 1]);
rep(i, q) {
int a;
c... | #include <iostream>
using namespace std;
#define rep(i, n) for (int i = 0; i < int(n); ++i)
int main() {
int n, q;
cin >> n >> q;
int c[300001];
fill(c, c + 300001, 0);
rep(i, n) {
int cc;
cin >> cc;
c[cc] = cc;
}
rep(i, 300000) c[i + 1] = max(c[i], c[i + 1]);
rep(i, q) {
int a;
c... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.initializer.change"
] | 45,910 | 45,911 | u823048060 | cpp |
p00266 | #include <iostream>
#include <map>
#include <vector>
using namespace std;
const int divisor = 1000000007;
int main() {
vector<int> ansvec;
// 100000!までの数をdivisorで割った余りを格納しておく
long long *factmodary = new long long[100001];
long long fact = 1;
for (int i = 1; i <= 100000; i++) {
fact *= i;
fact %= di... | #include <iostream>
#include <map>
#include <vector>
using namespace std;
const int divisor = 1000000007;
int main() {
vector<int> ansvec;
// 100000!までの数をdivisorで割った余りを格納しておく
long long *factmodary = new long long[100001];
long long fact = 1;
for (int i = 1; i <= 100000; i++) {
fact *= i;
fact %= di... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change",
"call.add"
] | 45,920 | 45,921 | u359799861 | cpp |
p00266 | #include <iostream>
#include <map>
#include <vector>
using namespace std;
const int divisor = 1000000007;
int main() {
vector<int> ansvec;
// 100000!までの数をdivisorで割った余りを格納しておく
long long *factmodary = new long long[100001];
long long fact = 1;
for (int i = 1; i <= 100000; i++) {
fact *= i;
fact %= di... | #include <iostream>
#include <map>
#include <vector>
using namespace std;
const int divisor = 1000000007;
int main() {
vector<int> ansvec;
// 100000!までの数をdivisorで割った余りを格納しておく
long long *factmodary = new long long[100001];
long long fact = 1;
for (int i = 1; i <= 100000; i++) {
fact *= i;
fact %= di... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change",
"call.add"
] | 45,920 | 45,922 | u359799861 | cpp |
p00259 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int p;
int ppow(int a) {
int b = p - 2, res = 1;
while (b) {
if (b & 1)
res = (res * a) % p;
a = (a * a) % p;
b >>= 1;
}
return res;
}
int o2(string &s, int &i);
int o3(string &s, int &i);
int num(st... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int p;
int ppow(int a) {
int b = p - 2, res = 1;
while (b) {
if (b & 1)
res = (res * a) % p;
a = (a * a) % p;
b >>= 1;
}
return res;
}
int o2(string &s, int &i);
int o3(string &s, int &i);
int num(st... | [
"assignment.change"
] | 45,935 | 45,936 | u220324665 | cpp |
p00259 | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
ll expression();
ll term();
ll factor();
ll number();
int now;
string s;
ll P;
bool fg;
ll extgcd(ll a, ll b, ll &x, ll &y) {
ll d = a;
if (b != 0) {
... | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
ll expression();
ll term();
ll factor();
ll number();
int now;
string s;
ll P;
bool fg;
ll extgcd(ll a, ll b, ll &x, ll &y) {
ll d = a;
if (b != 0) {
... | [
"assignment.add"
] | 45,939 | 45,940 | u047988051 | cpp |
p00261 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
char getNext(char now, int way) {
switch (now) {
case 'a':
return way ? 'y' : 'x';
case 'x':
return way ? 'z' : 'o';
case 'z':
return way ? 'b' : 'w';
case 'b':
return way ? 'x' : 'y';
case 'w':... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
char getNext(char now, int way) {
switch (now) {
case 'a':
return way ? 'y' : 'x';
case 'x':
return way ? 'z' : 'o';
case 'z':
return way ? 'b' : 'w';
case 'b':
return way ? 'x' : 'y';
case 'w':... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 45,971 | 45,972 | u875838458 | cpp |
p00261 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
char getNext(char now, int way) {
switch (now) {
case 'a':
return way ? 'y' : 'x';
case 'x':
return way ? 'z' : 'o';
case 'z':
return way ? 'b' : 'w';
case 'b':
return way ? 'x' : 'y';
case 'w':... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
char getNext(char now, int way) {
switch (now) {
case 'a':
return way ? 'y' : 'x';
case 'x':
return way ? 'z' : 'o';
case 'z':
return way ? 'b' : 'w';
case 'b':
return way ? 'x' : 'y';
case 'w':... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 45,973 | 45,972 | u875838458 | cpp |
p00261 | #include <cstdio>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
const int to[7][2] = {{1, 3}, {6, 2}, {4, 5}, {1, 6}, {5, 3}, {3, 1}};
while (1) {
char s[128];
scanf("%s", s);
if (s[0] == '#')
break;
int u = 0;
for (int i = 0; s[i]; i++)
u = t... | #include <cstdio>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
const int to[7][2] = {{1, 3}, {6, 2}, {4, 5}, {1, 6}, {5, 3}, {3, 1}, {6, 6}};
while (1) {
char s[128];
scanf("%s", s);
if (s[0] == '#')
break;
int u = 0;
for (int i = 0; s[i]; i++)
... | [] | 45,974 | 45,975 | u157859087 | cpp |
p00261 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
#define reep(i, n, m) for (int i = (n); i < (m); i++)
#define rep(i, n) reep(i, 0, n)
using namespace std;
char road[100][2] = {0};
int main() {
string str;
road['A'][0] = 'X';
road['A'][1] = 'Y';
road['X'][1] = 'Z';
road['Z'][... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
#define reep(i, n, m) for (int i = (n); i < (m); i++)
#define rep(i, n) reep(i, 0, n)
using namespace std;
char road[100][2] = {0};
int main() {
string str;
road['A'][0] = 'X';
road['A'][1] = 'Y';
road['X'][1] = 'Z';
road['Z'][... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 45,978 | 45,979 | u907152698 | cpp |
p00261 | #include <cstdio>
#include <string.h>
using namespace std;
int main() {
while (1) {
char buf[90][2];
char str[128];
buf['A']['0'] = 'X';
buf['A']['1'] = 'Y';
buf['X']['1'] = 'Z';
// buf['X']['0']='n';
buf['Y']['0'] = 'X';
// buf['Y']['1']='n';
buf['Z']['0'] = 'W';
buf['Z']['1']... | #include <cstdio>
#include <string.h>
using namespace std;
int main() {
while (1) {
char buf[127][2];
char str[128];
buf['A']['0'] = 'X';
buf['A']['1'] = 'Y';
buf['X']['1'] = 'Z';
// buf['X']['0']='n';
buf['Y']['0'] = 'X';
// buf['Y']['1']='n';
buf['Z']['0'] = 'W';
buf['Z']['1'... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 45,987 | 45,991 | u814387366 | cpp |
p00261 | #include <cstdio>
#include <string.h>
using namespace std;
int main() {
while (1) {
char buf[90][2];
char str[128];
buf['A']['0'] = 'X';
buf['A']['1'] = 'Y';
buf['X']['1'] = 'Z';
// buf['X']['0']='n';
buf['Y']['0'] = 'X';
// buf['Y']['1']='n';
buf['Z']['0'] = 'W';
buf['Z']['1']... | #include <cstdio>
#include <string.h>
using namespace std;
int main() {
while (1) {
char buf[120][2];
char str[128];
buf['A']['0'] = 'X';
buf['A']['1'] = 'Y';
buf['X']['1'] = 'Z';
// buf['X']['0']='n';
buf['Y']['0'] = 'X';
// buf['Y']['1']='n';
buf['Z']['0'] = 'W';
buf['Z']['1'... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 45,987 | 45,992 | u814387366 | cpp |
p00261 | #include <cstdio>
#include <string.h>
using namespace std;
int main() {
while (1) {
char buf[90][2];
char str[128];
buf['A']['0'] = 'X';
buf['A']['1'] = 'Y';
buf['X']['1'] = 'Z';
// buf['X']['0']='n';
buf['Y']['0'] = 'X';
// buf['Y']['1']='n';
buf['Z']['0'] = 'W';
buf['Z']['1']... | #include <cstdio>
#include <string.h>
using namespace std;
int main() {
while (1) {
char buf[115][2];
char str[128];
buf['A']['0'] = 'X';
buf['A']['1'] = 'Y';
buf['X']['1'] = 'Z';
// buf['X']['0']='n';
buf['Y']['0'] = 'X';
// buf['Y']['1']='n';
buf['Z']['0'] = 'W';
buf['Z']['1'... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 45,987 | 45,993 | u814387366 | cpp |
p00261 | #include <cstdio>
#include <string.h>
using namespace std;
int main() {
while (1) {
char buf[110][2];
char str[128];
buf['A']['0'] = 'X';
buf['A']['1'] = 'Y';
buf['X']['1'] = 'Z';
// buf['X']['0']='n';
buf['Y']['0'] = 'X';
// buf['Y']['1']='n';
buf['Z']['0'] = 'W';
buf['Z']['1'... | #include <cstdio>
#include <string.h>
using namespace std;
int main() {
while (1) {
char buf[115][2];
char str[128];
buf['A']['0'] = 'X';
buf['A']['1'] = 'Y';
buf['X']['1'] = 'Z';
// buf['X']['0']='n';
buf['Y']['0'] = 'X';
// buf['Y']['1']='n';
buf['Z']['0'] = 'W';
buf['Z']['1'... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 45,994 | 45,993 | u814387366 | cpp |
p00261 | #include <algorithm>
#include <cstdio>
#include <vector>
using namespace std;
int main() {
int g[6][2] = {{1, 2}, {10, 3}, {1, 10}, {4, 5}, {5, 2}, {2, 1}};
char str[128];
while (scanf("%s", str), str[0] != '#') {
int pos = 0;
bool flag = false;
for (int i = 0; str[i]; i++) {
pos = g[pos][str[i]... | #include <algorithm>
#include <cstdio>
#include <vector>
using namespace std;
int main() {
int g[6][2] = {{1, 2}, {10, 3}, {1, 10}, {4, 5}, {5, 2}, {2, 1}};
char str[128];
while (scanf("%s", str), str[0] != '#') {
int pos = 0;
bool flag = false;
for (int i = 0; str[i]; i++) {
pos = g[pos][str[i]... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 45,995 | 45,996 | u113716229 | cpp |
p00261 | #include <algorithm>
#include <cstdio>
#include <vector>
using namespace std;
int main() {
int g[6][2] = {{1, 2}, {10, 3}, {1, 10}, {4, 5}, {5, 2}, {2, 1}};
char str[128];
while (scanf("%s", str), str[0] != '#') {
int pos = 0;
bool flag = false;
for (int i = 0; str[i]; i++) {
pos = g[pos][str[i]... | #include <algorithm>
#include <cstdio>
#include <vector>
using namespace std;
int main() {
int g[6][2] = {{1, 2}, {10, 3}, {1, 10}, {4, 5}, {5, 2}, {2, 1}};
char str[128];
while (scanf("%s", str), str[0] != '#') {
int pos = 0;
bool flag = false;
for (int i = 0; str[i]; i++) {
pos = g[pos][str[i]... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 45,997 | 45,996 | u113716229 | cpp |
p00261 | #include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
int b[6][2] = {{1, 2}, {-1, 3}, {1, -1}, {4, 5}, {5, 2}, {1, 0}};
int main() {
int i, j, a[1000], f = 0;
char s[10000];
while (1) {
scanf("%s\0", s);
f = 0;
if (s[0] == '#')
break;
int ans = 0;
for (i = 0; i ... | #include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
int b[6][2] = {{1, 2}, {-1, 3}, {1, -1}, {4, 5}, {5, 2}, {2, 1}};
int main() {
int i, j, a[1000], f = 0;
char s[10000];
while (1) {
scanf("%s\0", s);
f = 0;
if (s[0] == '#')
break;
int ans = 0;
for (i = 0; i ... | [
"literal.number.change"
] | 46,000 | 46,001 | u721001324 | cpp |
p00261 | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vecto... | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vecto... | [
"literal.number.change"
] | 46,002 | 46,003 | u270308012 | cpp |
p00261 | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <ve... | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <ve... | [
"literal.number.change",
"call.arguments.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 46,006 | 46,007 | u802096158 | cpp |
p00261 | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <ve... | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <ve... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 46,008 | 46,007 | u802096158 | cpp |
p00261 | #include <iostream>
using namespace std;
int d[10][10];
void init() {
for (int i = 0; i < 6; i++)
for (int j = 0; j < 6; j++)
d[i][j] = -1;
d[0][0] = d[5][1] = d[2][0] = 1;
d[0][1] = d[4][1] = d[5][0] = 2;
d[1][1] = 3;
d[3][0] = 4;
d[3][1] = d[4][0] = 5;
}
string s;
void solve() {
int p = 0;
f... | #include <iostream>
using namespace std;
int d[10][10];
void init() {
for (int i = 0; i < 6; i++)
for (int j = 0; j < 6; j++)
d[i][j] = -1;
d[0][0] = d[5][1] = d[2][0] = 1;
d[0][1] = d[4][1] = d[5][0] = 2;
d[1][1] = 3;
d[3][0] = 4;
d[3][1] = d[4][0] = 5;
}
string s;
void solve() {
int p = 0;
f... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 46,009 | 46,010 | u835092486 | cpp |
p00261 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int n;
int v[11][2];
int main(void) {
v[0][0] = 2;
v[0][1] = 3;
v[1][0] = 5;
v[1][1] = 3;
v[2][0] = -1;
v[2][1] = 4;
v[3][0] = 2;
v[3][1] = -1;
v[4][0] = 1;
v[4][1] = 5;
v[5][0] = 3;
v[5][1] = 2;
... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int n;
int v[11][2];
int main(void) {
v[0][0] = 2;
v[0][1] = 3;
v[1][0] = 5;
v[1][1] = 3;
v[2][0] = -1;
v[2][1] = 4;
v[3][0] = 2;
v[3][1] = -1;
v[4][0] = 1;
v[4][1] = 5;
v[5][0] = 3;
v[5][1] = 2;
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 46,011 | 46,012 | u183179710 | cpp |
p00261 | #include <iostream>
#include <string>
using namespace std;
int main() {
int root[6][2] = {{1, 2}, {-1, 3}, {1, -1}, {4, 5}, {5, 2}, {2, 1}};
int now;
string p;
while (cin >> p) {
if (p == "#")
break;
now = 0;
for (int i = 0; i < p.size(); i++) {
now = root[now][p[i] - '0'];
if (n... | #include <iostream>
#include <string>
using namespace std;
int main() {
int root[6][2] = {{1, 2}, {-1, 3}, {1, -1}, {4, 5}, {5, 2}, {2, 1}};
int now;
string p;
while (cin >> p) {
if (p == "#")
break;
now = 0;
for (int i = 0; i < p.size(); i++) {
now = root[now][p[i] - '0'];
if (n... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 46,013 | 46,014 | u127856137 | cpp |
p00261 | #include <iostream>
main() {
int i, n, m[7][2] = {4, 3, 3, 4, 0, 4, 6, 5, 3, 6, 2};
for (std::string p; std::cin >> p, n = p != "#";
std::cout << (n ? "No\n" : "Yes\n"))
for (i = 0; i < p.size();)
n = m[n][p[i++] - 48];
} | #include <iostream>
main() {
int i, n, m[7][2] = {4, 3, 3, 4, 0, 4, 6, 5, 3, 6, 2, 0, 6, 6};
for (std::string p; std::cin >> p, n = p != "#";
std::cout << (n ? "No\n" : "Yes\n"))
for (i = 0; i < p.size();)
n = m[n][p[i++] - 48];
} | [] | 46,015 | 46,016 | u392015442 | cpp |
p00261 | #include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <string>
using namespace std;
int main() {
string str;
while (1) {
int flg = 0;
char NOW = 'A';
cin >> str;
if (str == "#")
break;
for (int i = 0; i < str.size() && flg == 0; i++) {
if (str[i] == '0') {
... | #include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <string>
using namespace std;
int main() {
string str;
while (1) {
int flg = 0;
char NOW = 'A';
cin >> str;
if (str == "#")
break;
for (int i = 0; i < str.size() && flg == 0; i++) {
if (str[i] == '0') {
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 46,017 | 46,018 | u095377734 | cpp |
p00261 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
using namespace std;
#define F(i, n) for (int i = 0; i < (int)(n); i++)
#define BW(x, a, b) (a <= x && x < b)
#define SV(v, w) ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
using namespace std;
#define F(i, n) for (int i = 0; i < (int)(n); i++)
#define BW(x, a, b) (a <= x && x < b)
#define SV(v, w) ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 46,021 | 46,022 | u338303352 | cpp |
p00262 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
while (cin >> n, n) {
int num[2000] = {}, co = n;
for (int i = 0; i < n; i++)
cin >> num[i];
for (int i = 0;; i++) {
bool kawa = 1;
if (i == 10000) {
cout << -1 << endl;
break;
}
for (int j = ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
while (cin >> n, n) {
int num[2000] = {}, co = n;
for (int i = 0; i < n; i++)
cin >> num[i];
for (int i = 0;; i++) {
bool kawa = 1;
if (i == 10000) {
cout << -1 << endl;
break;
}
for (int j = ... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 46,045 | 46,046 | u950683603 | cpp |
p00262 | #include <algorithm>
#include <cstdio>
#include <vector>
#define LIMIT 10000
using namespace std;
bool ck(vector<int> &v) {
for (int i = 0; i < v.size(); i++)
if (v[i] != i + 1)
return false;
return true;
}
main() {
int n, i, j, s, x, l;
vector<int> tri;
for (i = 1; i < 99; i++)
tri.push_back(i ... | #include <algorithm>
#include <cstdio>
#include <vector>
#define LIMIT 10000
using namespace std;
bool ck(vector<int> &v) {
for (int i = 0; i < v.size(); i++)
if (v[i] != i + 1)
return false;
return true;
}
main() {
int n, i, j, s, x, l;
vector<int> tri;
for (i = 1; i < 199; i++)
tri.push_back(i... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 46,049 | 46,050 | u300645821 | cpp |
p00262 | #include <algorithm>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <vector>
#define REP(i, m, n) for (int i = m; i < n; i++)
#define rep(i, ... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <vector>
#define REP(i, m, n) for (int i = m; i < n; i++)
#define rep(i, ... | [
"control_flow.branch.if.condition.change"
] | 46,056 | 46,057 | u192116640 | cpp |
p00291 | #include <stdio.h>
int main(void) {
int c1, c5, c10, c50, c100, c500, i, a, b, c, d, e, f;
i = 0;
scanf("%d %d %d %d %d %d", &c1, &c5, &c10, &c50, &c100, &c500);
a = c1 * 1;
b = c5 * 5;
c = c10 * 10;
d = c50 * 50;
e = c100 * 100;
f = c500 * 500;
i = a + b + c + d + e + f;
if (i > 1000) {
print... | #include <stdio.h>
int main(void) {
int c1, c5, c10, c50, c100, c500, i, a, b, c, d, e, f;
i = 0;
scanf("%d %d %d %d %d %d", &c1, &c5, &c10, &c50, &c100, &c500);
a = c1 * 1;
b = c5 * 5;
c = c10 * 10;
d = c50 * 50;
e = c100 * 100;
f = c500 * 500;
i = a + b + c + d + e + f;
if (i >= 1000) {
prin... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 46,165 | 46,166 | u909782545 | cpp |
p00291 | #include <stdio.h>
int main(void) {
int a, b, c, d, e, f;
scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &f);
a += b * 5 + c * 10 + d * 50 + e * 100 + f * 500;
if (a > 1000)
printf("1\n");
else
printf("0\n");
} | #include <stdio.h>
int main(void) {
int a, b, c, d, e, f;
scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &f);
a += b * 5 + c * 10 + d * 50 + e * 100 + f * 500;
if (a >= 1000)
printf("1\n");
else
printf("0\n");
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 46,167 | 46,168 | u774866143 | cpp |
p00291 | #include <stdio.h>
int main(void) {
int a, b, c, d, e, f, s;
scanf("%d %d %d %d %d", &a, &b, &c, &d, &e, &f);
s = a + b * 5 + c * 10 + d * 50 + e * 100 + f * 500;
if (1000 <= s) {
printf("1\n");
} else {
printf("0\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int a, b, c, d, e, f, s;
scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &f);
s = a * 1 + b * 5 + c * 10 + d * 50 + e * 100 + f * 500;
if (1000 <= s) {
printf("1\n");
} else {
printf("0\n");
}
return 0;
} | [
"literal.string.change",
"call.arguments.change",
"assignment.change"
] | 46,169 | 46,170 | u578058364 | cpp |
p00291 | #include <stdio.h>
int main(void) {
int a, b, c, d, e, f, s;
scanf("%d %d %d %d %d", &a, &b, &c, &d, &e, &f);
s = a * 1 + b * 5 + c * 10 + d * 50 + e * 100 + f * 500;
if (1000 <= s) {
printf("1\n");
} else {
printf("0\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int a, b, c, d, e, f, s;
scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &f);
s = a * 1 + b * 5 + c * 10 + d * 50 + e * 100 + f * 500;
if (1000 <= s) {
printf("1\n");
} else {
printf("0\n");
}
return 0;
} | [
"literal.string.change",
"call.arguments.change"
] | 46,172 | 46,170 | u578058364 | cpp |
p00291 | #include <iostream>
int main() {
int a, b, c, d, e, f;
std::cin >> a >> b >> c >> d >> e >> f;
if (a + b * 5 + c * 10 + d * 50 + e * 100 + f * 500 > 1000)
std::cout << 1 << std::endl;
else
std::cout << 0 << std::endl;
} | #include <iostream>
int main() {
int a, b, c, d, e, f;
std::cin >> a >> b >> c >> d >> e >> f;
if (a + b * 5 + c * 10 + d * 50 + e * 100 + f * 500 >= 1000)
std::cout << 1 << std::endl;
else
std::cout << 0 << std::endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 46,173 | 46,174 | u428603841 | cpp |
p00291 | #include <iostream>
int main() {
int a, b, c, d, e, f;
std::cin >> a >> b >> c >> d >> e >> f;
if (a + b * 5 + c * 10 + d * 50 + e * 100 + f * 500 > 1000)
std::cout << 1 << std::endl;
else
std::cout << 0 << std::endl;
return 0;
} | #include <iostream>
int main() {
int a, b, c, d, e, f;
std::cin >> a >> b >> c >> d >> e >> f;
if (a + b * 5 + c * 10 + d * 50 + e * 100 + f * 500 >= 1000)
std::cout << 1 << std::endl;
else
std::cout << 0 << std::endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 46,175 | 46,174 | u428603841 | cpp |
p00291 | #include <iostream>
#include <vector>
int main() {
int sum;
std::vector<int> c(6);
for (int i = 0; i < 6; i++) {
std::cin >> c[i];
}
c[1] *= 5;
c[2] *= 10;
c[3] *= 50;
c[4] *= 100;
c[5] *= 500;
for (int i = 0; i < 6; i++) {
sum += c[i];
}
if (sum >= 1000)
std::cout << "1" << std::en... | #include <iostream>
#include <vector>
int main() {
int sum = 0;
std::vector<int> c(6);
for (int i = 0; i < 6; i++) {
std::cin >> c[i];
}
c[1] *= 5;
c[2] *= 10;
c[3] *= 50;
c[4] *= 100;
c[5] *= 500;
for (int i = 0; i < 6; i++) {
sum += c[i];
}
if (sum >= 1000)
std::cout << "1" << std... | [
"variable_declaration.value.change"
] | 46,176 | 46,177 | u646488483 | cpp |
p00291 | #include <iostream>
int main() {
int a, b, c, d, e, f, g;
std::cin >> a >> b >> c >> d >> e >> f;
g = a * 1 + b * 5 + c * 10 + d * 50 + e * 100 + f * 500;
if (g < 1000) {
std::cout << 0 << std::endl;
}
if (g > 1000) {
std::cout << 1 << std::endl;
} else if (g = 1000) {
std::cout << 1 << std::... | #include <iostream>
int main() {
int a, b, c, d, e, f, g;
std::cin >> a >> b >> c >> d >> e >> f;
g = a * 1 + b * 5 + c * 10 + d * 50 + e * 100 + f * 500;
if (g < 1000) {
std::cout << 0 << std::endl;
} else if (g > 1000) {
std::cout << 1 << std::endl;
} else if (g = 1000) {
std::cout << 1 << st... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 46,179 | 46,180 | u534313171 | cpp |
p00291 | #include <iostream>
int a[6];
int c[6] = {1.5, 10, 50, 100, 500};
int sum = 0;
int main() {
for (int i = 0; i < 6; ++i) {
std::cin >> a[i];
sum += c[i] * a[i];
}
if (sum >= 1000)
std::cout << 1 << std::endl;
else
std::cout << 0 << std::endl;
return 0;
} | #include <iostream>
int a[6];
int c[6] = {1, 5, 10, 50, 100, 500};
int sum = 0;
int main() {
for (int i = 0; i < 6; ++i) {
std::cin >> a[i];
sum += c[i] * a[i];
}
if (sum >= 1000)
std::cout << 1 << std::endl;
else
std::cout << 0 << std::endl;
return 0;
} | [
"literal.number.change"
] | 46,181 | 46,182 | u501076500 | cpp |
p00291 | #include <iostream>
int main() {
int a, b, c, d, e, f;
std::cin >> a >> b >> c >> d >> e >> f;
if (a + 5 * b + 10 * c + 50 * d + 100 * e + 500 * f > +1000) {
std::cout << 1 << std::endl;
} else {
std::cout << 0 << std::endl;
}
return 0;
} | #include <iostream>
int main() {
int a, b, c, d, e, f;
std::cin >> a >> b >> c >> d >> e >> f;
if (a + 5 * b + 10 * c + 50 * d + 100 * e + 500 * f >= 1000) {
std::cout << 1 << std::endl;
} else {
std::cout << 0 << std::endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 46,183 | 46,184 | u205984037 | cpp |
p00291 | #include <stdio.h>
int main(void) {
int m, n;
m = 0;
scanf("%d", &n);
m += n * 1;
scanf("%d", &n);
m += n * 5;
scanf("%d", &n);
m += n * 10;
scanf("%d", &n);
m += n * 50;
scanf("%d", &n);
m += n * 100;
scanf("%d", &n);
m += n * 500;
printf("%d\n", m > 1000 ? 1 : 0);
} | #include <stdio.h>
int main(void) {
int m, n;
m = 0;
scanf("%d", &n);
m += n * 1;
scanf("%d", &n);
m += n * 5;
scanf("%d", &n);
m += n * 10;
scanf("%d", &n);
m += n * 50;
scanf("%d", &n);
m += n * 100;
scanf("%d", &n);
m += n * 500;
printf("%d\n", m >= 1000 ? 1 : 0);
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 46,185 | 46,186 | u182576515 | cpp |
p00291 | #include <stdio.h>
int main(void) {
int a, b, c, d, e, f;
int g, h, i, j, k, n;
int ans;
scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &f);
g = a * 1;
h = b * 5;
i = c * 10;
j = d * 50;
k = e * 100;
n = f * 500;
ans = g + h + i + j + k + n;
if (ans > 1000) {
ans = 1;
} else {
... | #include <stdio.h>
int main(void) {
int a, b, c, d, e, f;
int g, h, i, j, k, n;
int ans;
scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &f);
g = a * 1;
h = b * 5;
i = c * 10;
j = d * 50;
k = e * 100;
n = f * 500;
ans = g + h + i + j + k + n;
if (ans >= 1000) {
ans = 1;
} else {
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 46,187 | 46,188 | u692394646 | cpp |
p00291 | #include <cstdio>
int main() {
int a[5];
scanf("%d %d %d %d %d %d", &a[0], &a[1], &a[2], &a[3], &a[4], &a[5]);
int sum =
a[0] * 1 + a[1] * 5 + a[2] * 10 + a[3] * 50 + a[4] * 100 + a[5] * 500;
if (sum % 1000 == 0)
printf("1\n");
else
printf("0\n");
return 0;
} | #include <cstdio>
int main() {
int a[5];
scanf("%d %d %d %d %d %d", &a[0], &a[1], &a[2], &a[3], &a[4], &a[5]);
int sum =
a[0] * 1 + a[1] * 5 + a[2] * 10 + a[3] * 50 + a[4] * 100 + a[5] * 500;
if (sum >= 1000)
printf("1\n");
else
printf("0\n");
return 0;
} | [
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove"
] | 46,189 | 46,190 | u972730157 | cpp |
p00291 | #include <cstdio>
int main() {
int a[5];
scanf("%d %d %d %d %d %d", &a[0], &a[1], &a[2], &a[3], &a[4], &a[5]);
int sum =
a[0] * 1 + a[1] * 5 + a[2] * 10 + a[3] * 50 + a[4] * 100 + a[5] * 500;
if (sum % 1000 > 0)
printf("1\n");
else
printf("0\n");
return 0;
} | #include <cstdio>
int main() {
int a[5];
scanf("%d %d %d %d %d %d", &a[0], &a[1], &a[2], &a[3], &a[4], &a[5]);
int sum =
a[0] * 1 + a[1] * 5 + a[2] * 10 + a[3] * 50 + a[4] * 100 + a[5] * 500;
if (sum >= 1000)
printf("1\n");
else
printf("0\n");
return 0;
} | [
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove"
] | 46,191 | 46,190 | u972730157 | cpp |
p00291 | #include <cstdio>
using namespace std;
int main(void) {
int a, b, c, d, e, f;
scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &f);
int sum = 0;
sum += a + b * 5 + c * 10 + d * 50 + e * 100 + f * 500;
if (sum >= 5000) {
puts("1");
} else {
puts("0");
}
} | #include <cstdio>
using namespace std;
int main(void) {
int a, b, c, d, e, f;
scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &f);
int sum = 0;
sum += a + b * 5 + c * 10 + d * 50 + e * 100 + f * 500;
if (sum >= 1000) {
puts("1");
} else {
puts("0");
}
} | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 46,192 | 46,193 | u873749699 | cpp |
p00291 | #include <iostream>
using namespace std;
int a, b, c, d, e, f, g;
int main() {
cin >> a >> b >> c >> d >> e >> f;
g = a + b * 5 + c * 10 + d * 50 + e * 100 + f * 500;
if (g >= 1000) {
cout << '1' << endl;
} else {
cout << ' ' << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int a, b, c, d, e, f, g;
int main() {
cin >> a >> b >> c >> d >> e >> f;
g = a + b * 5 + c * 10 + d * 50 + e * 100 + f * 500;
if (g >= 1000) {
cout << '1' << endl;
} else {
cout << '0' << endl;
}
return 0;
} | [
"literal.string.change",
"io.output.change"
] | 46,194 | 46,195 | u852311840 | cpp |
p00291 | #include <bits/stdc++.h>
using namespace std;
int main() {
int c, c5, c10, c50, c100, c500;
cin >> c >> c5 >> c10 >> c50 >> c100 >> c500;
if (c + c5 * 5 + c10 * 10 + c50 * 50 + c100 * 100 + c500 * 500 <= 1000) {
cout << 0 << endl;
} else {
cout << 1 << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int c, c5, c10, c50, c100, c500;
cin >> c >> c5 >> c10 >> c50 >> c100 >> c500;
if (c + c5 * 5 + c10 * 10 + c50 * 50 + c100 * 100 + c500 * 500 < 1000) {
cout << 0 << endl;
} else {
cout << 1 << endl;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 46,197 | 46,198 | u801331581 | cpp |
p00291 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, f, y;
cin >> a >> b >> c >> d >> e >> f;
y = (a * 1) + (b * 5) + (c * 10) + (d * 50) + (e * 100) + (d * 500);
if (y >= 1000) {
cout << 1 << endl;
} else
cout << 0 << endl;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, f, y;
cin >> a >> b >> c >> d >> e >> f;
y = (a * 1) + (b * 5) + (c * 10) + (d * 50) + (e * 100) + (f * 500);
if (y >= 1000) {
cout << 1 << endl;
} else
cout << 0 << endl;
} | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 46,199 | 46,200 | u908905250 | cpp |
p00291 | #include <iostream>
using namespace std;
int main() {
unsigned c, c1, c5, c10, c50, c100, c500;
cin >> c1 >> c5 >> c10 >> c50 >> c100 >> c500;
c = c1 * 1 + c5 * 5 + c10 * 10 + c50 * 50 + c100 * 100 + c500 * 500;
cout << (c > 1000) << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
unsigned c, c1, c5, c10, c50, c100, c500;
cin >> c1 >> c5 >> c10 >> c50 >> c100 >> c500;
c = c1 * 1 + c5 * 5 + c10 * 10 + c50 * 50 + c100 * 100 + c500 * 500;
cout << (c >= 1000) << endl;
return 0;
} | [
"expression.operator.compare.change",
"io.output.change"
] | 46,206 | 46,207 | u978626746 | cpp |
p00291 | #include <iostream>
using namespace std;
int main() {
int c1, c5, c10, c50, c100, c500;
cin >> c1 >> c10 >> c50 >> c100 >> c500;
if ((((c1 * 1) + (c5 * 5) + (c10 * 10) + (c50 * 50) + (c100 * 100) +
(c500 * 500)) /
1000) >= 1) {
cout << 1 << endl;
} else {
cout << 0 << endl;
}
return ... | #include <iostream>
using namespace std;
int main() {
int c1, c5, c10, c50, c100, c500;
cin >> c1 >> c5 >> c10 >> c50 >> c100 >> c500;
if ((((c1 * 1) + (c5 * 5) + (c10 * 10) + (c50 * 50) + (c100 * 100) +
(c500 * 500)) /
1000) >= 1) {
cout << 1 << endl;
} else {
cout << 0 << endl;
}
r... | [
"expression.operation.binary.add"
] | 46,212 | 46,213 | u584279913 | cpp |
p00291 | #include <iostream>
using namespace std;
int main() {
int c1, c5, c10, c50, c100, c500;
cin >> c1 >> c5 >> c10 >> c50 >> c100 >> c500;
int g;
g = c1 + 5 * c5 + 10 * c10 + 50 * c50 + 100 * c100 + 500 * c500;
if (g > 1000)
cout << 1 << endl;
else
cout << 0 << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int c1, c5, c10, c50, c100, c500;
cin >> c1 >> c5 >> c10 >> c50 >> c100 >> c500;
int g;
g = c1 + 5 * c5 + 10 * c10 + 50 * c50 + 100 * c100 + 500 * c500;
if (g >= 1000)
cout << 1 << endl;
else
cout << 0 << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 46,214 | 46,215 | u485615218 | cpp |
p00291 | #include <iostream>
using namespace std;
int main() {
int c[] = {1, 5, 10, 50, 100, 500};
int n = 0, m;
for (int i = 0; i < 6; i++) {
cin >> m;
n = m * c[i];
if (n >= 1000) {
cout << 1 << endl;
return 0;
}
}
cout << 0 << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int c[] = {1, 5, 10, 50, 100, 500};
int n = 0, m;
for (int i = 0; i < 6; ++i) {
cin >> m;
n += m * c[i];
if (n >= 1000) {
cout << 1 << endl;
return 0;
}
}
cout << 0 << endl;
return 0;
} | [
"assignment.value.change"
] | 46,218 | 46,217 | u355281878 | cpp |
p00291 | #include <iostream>
using namespace std;
int main() {
int c[] = {1, 5, 10, 50, 100, 500};
int n = 0, m;
for (int i = 0; i < 6; i++) {
cin >> m;
n = m * c[i];
}
if (n >= 1000) {
cout << 1 << endl;
return 0;
}
cout << 0 << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int c[] = {1, 5, 10, 50, 100, 500};
int n = 0, m;
for (int i = 0; i < 6; ++i) {
cin >> m;
n += m * c[i];
if (n >= 1000) {
cout << 1 << endl;
return 0;
}
}
cout << 0 << endl;
return 0;
} | [
"assignment.value.change"
] | 46,220 | 46,217 | u355281878 | cpp |
p00291 | #include <iostream>
using namespace std;
int main() {
int c1, c5, c10, c50, c100, c500, kanesum;
cin >> c1 >> c5 >> c10 >> c50 >> c100 >> c500;
kanesum = 1 * c1 + 5 * c5 + 10 * c10 + c50 * 50 * c100 * 100 + c500 * 500;
if (kanesum >= 1000) {
cout << 1 << endl;
} else if (kanesum < 1000) {
cout << 0 <<... | #include <iostream>
using namespace std;
int main() {
int c1, c5, c10, c50, c100, c500, kanesum;
cin >> c1 >> c5 >> c10 >> c50 >> c100 >> c500;
kanesum = 1 * c1 + 5 * c5 + 10 * c10 + c50 * 50 + c100 * 100 + c500 * 500;
if (kanesum >= 1000) {
cout << 1 << endl;
} else if (kanesum < 1000) {
cout << 0 <<... | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 46,221 | 46,222 | u748757006 | cpp |
p00291 | #include <stdio.h>
int main(void) {
int a, s, d, f, g, h, j;
h = 0;
scanf("%d %d %d %d %d %d", &a, &s, &d, &f, &g, &j);
h = (a * 1) + (s * 5) + (d * 10) + (f * 50) + (g * 100) + (j * 500);
if (1000 >= h) {
printf("1\n");
} else {
printf("0\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int a, s, d, f, g, h, j;
h = 0;
scanf("%d %d %d %d %d %d", &a, &s, &d, &f, &g, &j);
h = (a * 1) + (s * 5) + (d * 10) + (f * 50) + (g * 100) + (j * 500);
if (1000 <= h) {
printf("1\n");
} else {
printf("0\n");
}
return 0;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 46,223 | 46,224 | u856394425 | cpp |
p00291 | #include <stdio.h>
int main(void) {
int c1, c5, c10, c50, c100, c500, sum;
scanf("%d %d %d %d %d %d", &c1, &c5, &c10, &c50, &c100, &c500);
sum = c1 * 1 + c5 * 5 + c10 * 10 + c50 * 50 + c100 * 100 + c500 * 500;
if ("1000<sum") {
printf("1\n");
} else {
printf("0\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int c1, c5, c10, c50, c100, c500, sum;
scanf("%d %d %d %d %d %d", &c1, &c5, &c10, &c50, &c100, &c500);
sum = c1 * 1 + c5 * 5 + c10 * 10 + c50 * 50 + c100 * 100 + c500 * 500;
if (sum >= 1000) {
printf("1\n");
} else {
printf("0\n");
}
return 0;
} | [] | 46,226 | 46,227 | u117098586 | cpp |
p00291 | #include <stdio.h>
int main(void) {
int c1, c5, c10, c50, c100, c500, sum;
scanf("%d %d %d %d %d %d", &c1, &c5, &c10, &c50, &c100, &c500);
sum = c1 * 1 + c5 * 5 + c10 * 10 + c50 * 50 + c100 * 100 + c500 * 500;
if (1000 < sum) {
printf("1\n");
} else {
printf("0\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int c1, c5, c10, c50, c100, c500, sum;
scanf("%d %d %d %d %d %d", &c1, &c5, &c10, &c50, &c100, &c500);
sum = c1 * 1 + c5 * 5 + c10 * 10 + c50 * 50 + c100 * 100 + c500 * 500;
if (sum >= 1000) {
printf("1\n");
} else {
printf("0\n");
}
return 0;
} | [
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change"
] | 46,229 | 46,227 | u117098586 | cpp |
p00291 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, f, total = 0;
cin >> a >> b >> c >> d >> e >> f;
total += a * 1 + b * 5 + c * 10 + d * 50 + e * 100 + d * 500;
if (total >= 1000)
cout << 1 << endl;
else
cout << 0 << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, f, total = 0;
cin >> a >> b >> c >> d >> e >> f;
total += a * 1 + b * 5 + c * 10 + d * 50 + e * 100 + f * 500;
if (total >= 1000)
cout << 1 << endl;
else
cout << 0 << endl;
} | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 46,230 | 46,231 | u274552558 | cpp |
p00291 | #include <iostream>
using namespace std;
int main(void) {
int c[5];
int ans, sum;
for (int i = 0; i < 6; i++) {
cin >> c[i];
}
sum = c[0] * 1;
sum = (c[1] * 5) + sum;
sum = (c[2] * 10) + sum;
sum = (c[3] * 50) + sum;
sum = (c[4] * 100) + sum;
sum = (c[5] * 500) + sum;
if (sum > 1000)
... | #include <iostream>
using namespace std;
int main(void) {
int c[5];
int ans, sum;
for (int i = 0; i < 6; i++) {
cin >> c[i];
}
sum = c[0] * 1;
sum = (c[1] * 5) + sum;
sum = (c[2] * 10) + sum;
sum = (c[3] * 50) + sum;
sum = (c[4] * 100) + sum;
sum = (c[5] * 500) + sum;
if (sum >= 1000)
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 46,234 | 46,235 | u237800109 | cpp |
p00292 | #define _USE_MATH_DEFINES
#define INF 0x3f3f3f3f
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
using... | #define _USE_MATH_DEFINES
#define INF 0x3f3f3f3f
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
using... | [
"identifier.change",
"control_flow.branch.if.condition.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 46,287 | 46,288 | u274875240 | cpp |
p00292 | #include <iostream>
using namespace std;
int main() {
int K, P, n;
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> K >> P;
int a;
if (K % P < P && K % P != 0) {
cout << K % P << endl;
}
if (K % P == 0) {
cout << P << endl;
}
if (K < P) {
cout << K << endl;
}
}
... | #include <iostream>
using namespace std;
int main() {
int K, P, n;
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> K >> P;
int a;
if (K % P < P && K % P != 0) {
cout << K % P << endl;
} else if (K % P == 0) {
cout << P << endl;
} else if (K < P) {
cout << K << endl;
}
}... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 46,292 | 46,293 | u359254383 | cpp |
p00292 | #include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
int s = 0;
vector<int> a(n);
vector<int> b(n);
while (s <= n - 1) {
cin >> a[s] >> b[s];
s++;
}
s = 0;
while (s <= n - 1) {
if (a[s] % b[s] == 0) {
cout << n << endl;
s++;
} else {
... | #include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
int s = 0;
vector<int> a(n);
vector<int> b(n);
while (s <= n - 1) {
cin >> a[s] >> b[s];
s++;
}
s = 0;
while (s <= n - 1) {
if (a[s] % b[s] == 0) {
cout << b[s] << endl;
s++;
} else {
... | [
"io.output.change"
] | 46,294 | 46,295 | u677655130 | cpp |
p00292 | #include <iostream>
using std::cin;
using std::cout;
int main(int argc, const char *argv[]) {
std::ios::sync_with_stdio(false);
int stone725_is_pro;
int a, b;
cin >> stone725_is_pro;
for (int i = 0; i < stone725_is_pro; ++i) {
cin >> a >> b;
cout << a % b << "\n";
}
return 0;
} | #include <iostream>
using std::cin;
using std::cout;
int main(int argc, const char *argv[]) {
std::ios::sync_with_stdio(false);
int stone725_is_pro;
int a, b;
cin >> stone725_is_pro;
for (int i = 0; i < stone725_is_pro; ++i) {
cin >> a >> b;
cout << (a - 1) % b + 1 << "\n";
}
return 0;
} | [
"expression.operation.binary.add"
] | 46,303 | 46,304 | u953079421 | cpp |
p00292 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, k, p;
for (; n--;) {
cin >> k >> p;
if (k % p)
cout << k % p << endl;
else
cout << p << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, k, p;
for (cin >> n; n--;) {
cin >> k >> p;
if (k % p)
cout << (k % p) << endl;
else
cout << p << endl;
}
} | [
"control_flow.loop.for.initializer.change"
] | 46,306 | 46,307 | u464972055 | cpp |
p00292 | #include <iostream>
using namespace std;
int main() {
int n, a, b;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> a >> b;
cout << a % b + 1 << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int n, a, b;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> a >> b;
cout << (a + b - 1) % b + 1 << endl;
}
return 0;
} | [] | 46,313 | 46,314 | u852311840 | cpp |
p00292 | #include <iostream>
using namespace std;
int main() {
int n, a, b;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> a >> b;
cout << (a + 2) % b + 1 << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int n, a, b;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> a >> b;
cout << (a + b - 1) % b + 1 << endl;
}
return 0;
} | [
"identifier.replace.add",
"literal.replace.remove",
"io.output.change"
] | 46,315 | 46,314 | u852311840 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.