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 |
|---|---|---|---|---|---|---|---|
p00015 | #include <algorithm>
#include <bits/stdc++.h>
#include <list>
#include <queue>
#include <stack>
#include <vector>
using namespace std;
int main() {
int t;
scanf("%d", &t);
while (t--) {
char c1[80], c2[80];
scanf("%s", &c1);
scanf("%s", &c2);
string s1, s2;
s1 = c1, s2 = c2;
if (s1 == "0"... | #include <algorithm>
#include <bits/stdc++.h>
#include <list>
#include <queue>
#include <stack>
#include <vector>
using namespace std;
int main() {
int t;
scanf("%d", &t);
while (t--) {
char c1[1000], c2[1000];
scanf("%s", &c1);
scanf("%s", &c2);
string s1, s2;
s1 = c1, s2 = c2;
if (s1 ==... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 14,739 | 14,740 | u140201022 | cpp |
p00015 | #include <algorithm>
#include <bits/stdc++.h>
#include <list>
#include <queue>
#include <stack>
#include <vector>
using namespace std;
int main() {
int t;
scanf("%d", &t);
while (t--) {
char c1[80], c2[80];
scanf("%s", &c1);
scanf("%s", &c2);
string s1, s2;
s1 = c1, s2 = c2;
if (s1 == "0"... | #include <algorithm>
#include <bits/stdc++.h>
#include <list>
#include <queue>
#include <stack>
#include <vector>
using namespace std;
int main() {
int t;
scanf("%d", &t);
while (t--) {
char c1[1000], c2[1000];
scanf("%s", &c1);
scanf("%s", &c2);
string s1, s2;
s1 = c1, s2 = c2;
if (s1 ==... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 14,741 | 14,740 | u140201022 | cpp |
p00015 | #include <algorithm>
#include <bits/stdc++.h>
#include <list>
#include <queue>
#include <stack>
#include <vector>
using namespace std;
int main() {
int t;
scanf("%d", &t);
while (t--) {
char c1[80], c2[80];
scanf("%s", &c1);
scanf("%s", &c2);
string s1, s2;
s1 = c1, s2 = c2;
if (s1 == "0"... | #include <algorithm>
#include <bits/stdc++.h>
#include <list>
#include <queue>
#include <stack>
#include <vector>
using namespace std;
int main() {
int t;
scanf("%d", &t);
while (t--) {
//???????????±?????§????????????
char c1[1000], c2[1000];
scanf("%s", &c1);
scanf("%s", &c2);
string s1, s2... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 14,739 | 14,742 | u140201022 | cpp |
p00015 | #include <algorithm>
#include <bits/stdc++.h>
#include <list>
#include <queue>
#include <stack>
#include <vector>
using namespace std;
int main() {
int t;
scanf("%d", &t);
while (t--) {
char c1[80], c2[80];
scanf("%s", &c1);
scanf("%s", &c2);
string s1, s2;
s1 = c1, s2 = c2;
if (s1 == "0"... | #include <algorithm>
#include <bits/stdc++.h>
#include <list>
#include <queue>
#include <stack>
#include <vector>
using namespace std;
int main() {
int t;
scanf("%d", &t);
while (t--) {
//???????????±?????§????????????
char c1[1000], c2[1000];
scanf("%s", &c1);
scanf("%s", &c2);
string s1, s2... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 14,741 | 14,742 | u140201022 | cpp |
p00015 | #include <algorithm>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <... | #include <algorithm>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 14,743 | 14,744 | u261561433 | cpp |
p00015 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
int n, num1[101], num2[101], num3[102];
cin >> n;
for (int i = 0; i < n; ++i) {
memset(num1, 0, sizeof(num1));
memset(num2, 0, sizeof(num2));
memset(num3, 0, sizeof(num3));
cin >> s;
for (int i = 0, len = s.size(); ... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
int n, num1[101], num2[101], num3[102];
cin >> n;
for (int i = 0; i < n; ++i) {
memset(num1, 0, sizeof(num1));
memset(num2, 0, sizeof(num2));
memset(num3, 0, sizeof(num3));
cin >> s;
for (int i = 0, len = s.size(); ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 14,745 | 14,746 | u290226505 | cpp |
p00015 | #include <bits/stdc++.h>
using namespace std;
char str[102], str1[102], ans[102];
int sam(int ma1, int ma2) {
int co, carry = 0, a, b;
for (int i = 0; ma1 - i >= 0 || ma2 - i >= 0 || carry == 1; i++) {
if (ma1 - i >= 0 && ma2 - i >= 0) {
a = str[ma1 - i] - '0';
b = str1[ma2 - i] - '0';
if (a +... | #include <bits/stdc++.h>
using namespace std;
char str[102], str1[102], ans[102];
int sam(int ma1, int ma2) {
int co, carry = 0, a, b;
for (int i = 0; ma1 - i >= 0 || ma2 - i >= 0 || carry == 1; i++) {
if (ma1 - i >= 0 && ma2 - i >= 0) {
a = str[ma1 - i] - '0';
b = str1[ma2 - i] - '0';
if (a +... | [] | 14,749 | 14,748 | u950683603 | cpp |
p00015 | #include <bits/stdc++.h>
using namespace std;
char str[102], str1[102], ans[102];
int sam(int ma1, int ma2) {
int co, carry = 0, a, b;
for (int i = 0; ma1 - i >= 0 || ma2 - i >= 0 || carry == 1; i++) {
if (ma1 - i >= 0 && ma2 - i >= 0) {
a = str[ma1 - i] - '0';
b = str1[ma2 - i] - '0';
if (a +... | #include <bits/stdc++.h>
using namespace std;
char str[102], str1[102], ans[102];
int sam(int ma1, int ma2) {
int co, carry = 0, a, b;
for (int i = 0; ma1 - i >= 0 || ma2 - i >= 0 || carry == 1; i++) {
if (ma1 - i >= 0 && ma2 - i >= 0) {
a = str[ma1 - i] - '0';
b = str1[ma2 - i] - '0';
if (a +... | [] | 14,749 | 14,750 | u950683603 | cpp |
p00015 | #include <iostream>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
while (n--) {
string a, b;
bool cu = false;
cin >> a >> b;
int al = a.length(), bl = b.length(), ans[101] = {0};
for (int i = 0; i < min(al, bl); i++) {
ans[i] = a[al - i - 1] + b[bl - i - 1] - 48 * ... | #include <iostream>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
while (n--) {
string a, b;
bool cu = false;
cin >> a >> b;
int al = a.length(), bl = b.length(), ans[101] = {0};
for (int i = 0; i < min(al, bl); i++) {
ans[i] = a[al - i - 1] + b[bl - i - 1] - 48 * ... | [
"expression.operation.binary.remove"
] | 14,751 | 14,752 | u082125213 | cpp |
p00015 | #include <cstring>
#include <iostream>
#include <string>
using namespace std;
string S, T;
int n, x[10000], a[10000], b[10000], cnt;
char U[11] = "0123456789";
int main() {
cin >> n;
for (int times = 0; times < n; times++) {
cin >> S >> T;
memset(x, 0, sizeof(x));
memset(a, 0, sizeof(a));
memset(b, ... | #include <cstring>
#include <iostream>
#include <string>
using namespace std;
string S, T;
int n, x[10000], a[10000], b[10000], cnt;
char U[11] = "0123456789";
int main() {
cin >> n;
for (int times = 0; times < n; times++) {
cin >> S >> T;
memset(x, 0, sizeof(x));
memset(a, 0, sizeof(a));
memset(b, ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 14,753 | 14,754 | u852311840 | cpp |
p00015 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(void) {
string a, b;
vector<int> ans;
int n, num, ai, bi, c = 0;
bool flag;
cin >> n;
if (n > 0 && n <= 100) {
for (int i = 0; i < n; i++) {
cin >> a >> b;
flag = false;
for (int j = 0; j < 100; j... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(void) {
string a, b;
vector<int> ans;
int n, num, ai, bi, c = 0;
bool flag;
cin >> n;
if (n > 0 && n <= 100) {
for (int i = 0; i < n; i++) {
cin >> a >> b;
flag = false;
for (int j = 0; j < 100; j... | [] | 14,755 | 14,756 | u071491115 | cpp |
p00015 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define FOR(i, a, b) for (int i = a; i <= b; ++i)
#define LL long long
using namespace std;
static const LL INF = 1LL << 61LL;
typedef pair<int, int> PII;
string a, b;
string ans;
int M;
char t[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'}... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define FOR(i, a, b) for (int i = a; i <= b; ++i)
#define LL long long
using namespace std;
static const LL INF = 1LL << 61LL;
typedef pair<int, int> PII;
string a, b;
string ans;
int M;
char t[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'}... | [
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add",
"assignment.add"
] | 14,757 | 14,758 | u720827585 | cpp |
p00015 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int n;
cin >> n;
for (int i = 0; i < n; i++) {
string s1, s2;
cin >> s1;
cin >> s2;
int s1_itr = s1.length() - 1;
int s2_itr = s2.length... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int n;
cin >> n;
for (int i = 0; i < n; i++) {
string s1, s2;
cin >> s1;
cin >> s2;
int s1_itr = s1.length() - 1;
int s2_itr = s2.length... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 14,759 | 14,760 | u368876271 | cpp |
p00015 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
int N;
cin >> N;
for (int N_i = 0; N_i < N; N_i++) {
bool overflow = false;
string str_data1, str_data2;
cin >> str_data1;
cin >> str_data2;
stack<int> data1, data2;
for (int da... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
int N;
cin >> N;
for (int N_i = 0; N_i < N; N_i++) {
bool overflow = false;
string str_data1, str_data2;
cin >> str_data1;
cin >> str_data2;
stack<int> data1, data2;
for (int da... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 14,762 | 14,763 | u080939948 | cpp |
p00015 | #include <stdio.h>
void rev_str(char str[1024]) {
int length = 0;
char str2[1024];
int temp;
int i;
for (i = 0; i < 1024; i++)
str2[i] = '\0';
while (str[length])
length++;
temp = length;
i = 0;
while (temp) {
str2[temp - 1] = str[i];
i++;
temp--;
}
for (i = 0; i < length... | #include <stdio.h>
void rev_str(char str[1024]) {
int length = 0;
char str2[1024];
int temp;
int i;
for (i = 0; i < 1024; i++)
str2[i] = '\0';
while (str[length])
length++;
temp = length;
i = 0;
while (temp) {
str2[temp - 1] = str[i];
i++;
temp--;
}
for (i = 0; i < length... | [
"literal.number.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 14,764 | 14,765 | u662697164 | cpp |
p00015 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
for (int j = 0; j < n; ++j) {
string numA;
string numB;
cin >> numA >> numB;
/*
if(numA.size()<numB.size())swap(numA,numB);
while(numA.size()>numB.size())numB="... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
for (int j = 0; j < n; ++j) {
string numA;
string numB;
cin >> numA >> numB;
while (numA.size() != numB.size()) {
if (numA.size() < numB.size()) {
numA =... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 14,768 | 14,769 | u726778078 | cpp |
p00015 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
for (int j = 0; j < n; ++j) {
string numA;
string numB;
cin >> numA >> numB;
/*
if(numA.size()<numB.size())swap(numA,numB);
while(numA.size()>numB.size())numB="... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
for (int j = 0; j < n; ++j) {
string numA;
string numB;
cin >> numA >> numB;
while (numA.size() != numB.size()) {
if (numA.size() < numB.size()) {
numA =... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 14,771 | 14,769 | u726778078 | cpp |
p00015 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
using namespace std;
int main(void) {
int n = 0;
string as;
string bs;
int a[100] = {};
int b[100] = {};
int c[100] = {};
int i = 0;
int alen = 0;
int blen = 0;
int clen = 0;
int k = 0;... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
using namespace std;
int main(void) {
int n = 0;
string as;
string bs;
int a[100] = {};
int b[100] = {};
int c[100] = {};
int i = 0;
int alen = 0;
int blen = 0;
int clen = 0;
int k = 0;... | [
"literal.number.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"control_flow.branch.else.add"
] | 14,772 | 14,773 | u656466853 | cpp |
p00015 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
using namespace std;
int main(void) {
int n = 0;
string as;
string bs;
int a[100] = {};
int b[100] = {};
int c[100] = {};
int i = 0;
int alen = 0;
int blen = 0;
int clen = 0;
int k = 0;... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
using namespace std;
int main(void) {
int n = 0;
string as;
string bs;
int a[100] = {};
int b[100] = {};
int c[100] = {};
int i = 0;
int alen = 0;
int blen = 0;
int clen = 0;
int k = 0;... | [
"control_flow.branch.else.add"
] | 14,774 | 14,773 | u656466853 | cpp |
p00015 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
string str1;
string str2;
stack<int> sta;
int main() {
int n;
int i, j;
int exc; //??°?????????
int sum;
cin >> n;
for (i = 0; i < n; i++) {
cin >> str1;
cin >> str2;
if (str1.siz... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
string str1;
string str2;
stack<int> sta;
int main() {
int n;
int i, j;
int exc; //??°?????????
int sum;
cin >> n;
for (i = 0; i < n; i++) {
cin >> str1;
cin >> str2;
if (str1.siz... | [
"control_flow.return.remove",
"control_flow.continue.add"
] | 14,777 | 14,778 | u467070262 | cpp |
p00015 | #include <math.h>
#include <stdio.h>
using namespace std;
int main() {
char buf1[101], buf2[101];
bool overflowFLG;
int n, length1, length2, kuriagari, tmp, output[101];
scanf("%d", &n);
for (int loop = 0; loop < n; loop++) {
length1 = length2 = 0;
scanf("%s", buf1);
scanf("%s", buf2);
for ... | #include <math.h>
#include <stdio.h>
using namespace std;
int main() {
char buf1[101], buf2[101];
bool overflowFLG;
int n, length1, length2, kuriagari, tmp, output[101];
scanf("%d", &n);
for (int loop = 0; loop < n; loop++) {
length1 = length2 = 0;
scanf("%s", buf1);
scanf("%s", buf2);
for ... | [
"assignment.value.change"
] | 14,783 | 14,784 | u697145890 | cpp |
p00015 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
while (N--) {
string a, b;
cin >> a >> b;
reverse(a.begin(), a.end());
reverse(b.begin(), b.end());
while (a.size() > b.size())
b += '0';
while (a.size() < b.size())
a += '0';
string r;
int c =... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
while (N--) {
string a, b;
cin >> a >> b;
reverse(a.begin(), a.end());
reverse(b.begin(), b.end());
while (a.size() > b.size())
b += '0';
while (a.size() < b.size())
a += '0';
string r;
int c =... | [
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add",
"assignment.add"
] | 14,785 | 14,786 | u595694949 | cpp |
p00015 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <stack>
using namespace std;
int main() {
stack<int> n1, n2;
int n, nn1, nn2, up, k, f, num[100];
char c;
cin >> n;
scanf("%c", &c);
for (int i = 0; i < n; i++) {
while (1) {
scanf("%c", &c);
if (c == '\n')
break;
... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <stack>
using namespace std;
int main() {
stack<int> n1, n2;
int n, nn1, nn2, up, k, f, num[1000];
char c;
cin >> n;
scanf("%c", &c);
for (int i = 0; i < n; i++) {
while (1) {
scanf("%c", &c);
if (c == '\n')
break;
... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"expression.operation.binary.remove"
] | 14,787 | 14,788 | u784626891 | cpp |
p00015 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
int n;
scanf("%d", &n);
rep(i, n) {
string s, t;
cin >> s >> t;
string ans;
int back = 0;
for (int j = 1; j <= min(s.size(), t.size()); j++) {
int d = s[s.size() - j] - '0' + t[t.siz... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
int n;
scanf("%d", &n);
rep(i, n) {
string s, t;
cin >> s >> t;
string ans;
int back = 0;
for (int j = 1; j <= min(s.size(), t.size()); j++) {
int d = s[s.size() - j] - '0' + t[t.siz... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add"
] | 14,789 | 14,790 | u220324665 | cpp |
p00015 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
int n;
scanf("%d", &n);
rep(i, n) {
string s, t;
cin >> s >> t;
string ans;
int back = 0;
for (int j = 1; j <= min(s.size(), t.size()); j++) {
int d = s[s.size() - j] - '0' + t[t.siz... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
int n;
scanf("%d", &n);
rep(i, n) {
string s, t;
cin >> s >> t;
string ans;
int back = 0;
for (int j = 1; j <= min(s.size(), t.size()); j++) {
int d = s[s.size() - j] - '0' + t[t.siz... | [
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add"
] | 14,791 | 14,790 | u220324665 | cpp |
p00015 | #include <bits/stdc++.h>
using namespace std;
int main() {
char a[200];
int n, k, l, i;
cin >> n;
while (n--) {
string s1, s2;
cin >> s1 >> s2;
for (i = 0; i < 200; i++)
a[i] = '0';
for (k = 0, i = s2.size() - 1; i >= 0; i--)
a[k++] = s2[i];
for (l = 0, i = s1.size() - 1; i >= 0;... | #include <bits/stdc++.h>
using namespace std;
int main() {
char a[200];
int n, k, l, i;
cin >> n;
while (n--) {
string s1, s2;
cin >> s1 >> s2;
for (i = 0; i < 200; i++)
a[i] = '0';
for (k = 0, i = s2.size() - 1; i >= 0; i--)
a[k++] = s2[i];
for (l = 0, i = s1.size() - 1; i >= 0;... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 14,793 | 14,794 | u962041986 | cpp |
p00015 | #include <algorithm>
#include <cctype>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int N;
cin >> N;
while (N--) {
string... | #include <algorithm>
#include <cctype>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int N;
cin >> N;
while (N--) {
string... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 14,795 | 14,796 | u813097547 | cpp |
p00015 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
string reverse(const string &str) {
string ret;
string::const_reverse_iterator it = str.rbegin();
for (; it != str.rend(); it++) {
ret.push_back(*it);
}
return ret;
}
int main() {
int N;
cin >> N;
for (int i = 0; i < N... | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
string reverse(const string &str) {
string ret;
string::const_reverse_iterator it = str.rbegin();
for (; it != str.rend(); it++) {
ret.push_back(*it);
}
return ret;
}
int main() {
int N;
cin >> N;
for (int i = 0; i < N... | [
"expression.operation.binary.remove"
] | 14,803 | 14,804 | u495230359 | cpp |
p00015 | #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define INF 2000000000
//#define int ll
#define ll long long
#define ld long double
#define vi vector<int>
#define pa pair<int, int>
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define INIT ... | #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define INF 2000000000
//#define int ll
#define ll long long
#define ld long double
#define vi vector<int>
#define pa pair<int, int>
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define INIT ... | [
"literal.string.change",
"function.return_value.change"
] | 14,809 | 14,810 | u799031017 | cpp |
p00015 | #include <iostream>
#include <string>
using namespace std;
int main() {
int n;
for (cin >> n; n--;) {
int k = 0;
string a, b;
cin >> a;
cin >> b;
if (a.size() < b.size())
swap(a, b); //????????????a>b?????????
while (b.size() < a.size())
b = '0' + b; //... | #include <iostream>
#include <string>
using namespace std;
int main() {
int n;
for (cin >> n; n--;) {
int k = 0;
string a, b;
cin >> a;
cin >> b;
if (a.size() < b.size())
swap(a, b); //????????????a>b?????????
while (b.size() < a.size())
b = '0' + b; //... | [
"expression.operation.binary.remove"
] | 14,811 | 14,812 | u205248875 | cpp |
p00015 | #include <bits/stdc++.h>
using namespace std;
using VI = vector<int>;
using VVI = vector<VI>;
using PII = pair<int, int>;
using LL = long long;
using VL = vector<LL>;
using VVL = vector<VL>;
using PLL = pair<LL, LL>;
using VS = vector<string>;
#define ALL(a) begin((a)), end((a))
#define RALL(a) (a).rbegin(), (a).rend... | #include <bits/stdc++.h>
using namespace std;
using VI = vector<int>;
using VVI = vector<VI>;
using PII = pair<int, int>;
using LL = long long;
using VL = vector<LL>;
using VVL = vector<VL>;
using PLL = pair<LL, LL>;
using VS = vector<string>;
#define ALL(a) begin((a)), end((a))
#define RALL(a) (a).rbegin(), (a).rend... | [
"control_flow.loop.condition.change"
] | 14,816 | 14,814 | u855989123 | cpp |
p00015 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
vector<int> sum(string A, string B);
int main() {
int n;
cin >> n;
string a, b;
for (int i = 0; i < n; i++) {
cin >> a;
cin >> b;
if ((int)a.size() > 80 || (int)b.size() > 80)
cout << "overflow\n";
else {
... | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
vector<int> sum(string A, string B);
int main() {
int n;
cin >> n;
string a, b;
for (int i = 0; i < n; i++) {
cin >> a;
cin >> b;
if ((int)a.size() > 80 || (int)b.size() > 80)
cout << "overflow\n";
else {
... | [
"identifier.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 14,819 | 14,820 | u886089509 | cpp |
p00015 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <set>
#include <string>
#include <vector>
using namespace std;
typedef long long LL;
static const double EPS = 1e-9;
#define FOR(i, k, n) for (int i = (k); i < (int)(n); ++i)
#define REP(i, n) FOR(i, 0, n)
int main(void) {
int n;
cin >> n;
REP... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <set>
#include <string>
#include <vector>
using namespace std;
typedef long long LL;
static const double EPS = 1e-9;
#define FOR(i, k, n) for (int i = (k); i < (int)(n); ++i)
#define REP(i, n) FOR(i, 0, n)
int main(void) {
int n;
cin >> n;
REP... | [] | 14,823 | 14,824 | u535943957 | cpp |
p00015 | #include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
char ans[101];
char n1[101];
char n2[101];
int main() {
int d;
int h1, h2, limit;
for (cin >> d; d > 0; d--) {
for (int j = 0; j < 100; j++)
ans[j] = '0';
scanf("%s", n1);
scanf("%s", n2);
h1 = strlen(n1) - 1;
... | #include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
char ans[101];
char n1[101];
char n2[101];
int main() {
int d;
int h1, h2, limit;
for (cin >> d; d > 0; d--) {
for (int j = 0; j < 100; j++)
ans[j] = '0';
scanf("%s", n1);
scanf("%s", n2);
h1 = strlen(n1) - 1;
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 14,825 | 14,826 | u769144819 | cpp |
p00015 | // 0015 National Budget
// 80
ÜÅÌ2Â̮̫µZÊðo͹æ
// 1sÚÉf[^Zbgnª^¦çêé
//^¦çê½â»Ìaª80
𴦽êAoverflowÆo͵ľ³¢
#include <algorithm>
#include <cstring>
#include <iostream>
#include <string>
using namespace std;
int main(void) {
int n;
cin >> n;
whi... | // 0015 National Budget
// 80
ÜÅÌ2Â̮̫µZÊðo͹æ
// 1sÚÉf[^Zbgnª^¦çêé
//^¦çê½â»Ìaª80
𴦽êAoverflowÆo͵ľ³¢
#include <algorithm>
#include <cstring>
#include <iostream>
#include <string>
using namespace std;
int main(void) {
int n;
cin >> n;
whi... | [
"literal.number.change",
"variable_declaration.value.change",
"expression.operation.binary.change"
] | 14,827 | 14,828 | u260615292 | cpp |
p00016 | #include <algorithm>
#include <array>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <tuple>
#include <vector>
const int MOD = 1000000007;
... | #include <algorithm>
#include <array>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <tuple>
#include <vector>
const int MOD = 1000000007;
... | [] | 15,013 | 15,014 | u990186494 | cpp |
p00016 | #include <bits/stdc++.h>
using namespace std;
using uint = unsigned int;
using lint = long long int;
using ulint = unsigned long long int;
template <class T = int> using V = vector<T>;
template <class T = int> using VV = V<V<T>>;
template <class T, class U> void assign(V<T> &v, int n, const U &a) {
v.assign(n, a);
}
... | #include <bits/stdc++.h>
using namespace std;
using uint = unsigned int;
using lint = long long int;
using ulint = unsigned long long int;
template <class T = int> using V = vector<T>;
template <class T = int> using VV = V<V<T>>;
template <class T, class U> void assign(V<T> &v, int n, const U &a) {
v.assign(n, a);
}
... | [
"literal.string.change",
"io.output.change"
] | 15,017 | 15,018 | u640847666 | cpp |
p00016 | #include <complex>
#include <cstdio>
#include <iostream>
using namespace std;
const double PI = 3.141592653589793238462643383279502884L;
int main(int argc, char **argv) {
int degree = 90;
int d, t;
char c;
complex<double> v(0, 0);
while (cin >> d >> c >> t) {
if (!d && !t)
break;
auto next = ... | #include <complex>
#include <cstdio>
#include <iostream>
using namespace std;
const double PI = 3.141592653589793238462643383279502884L;
int main(int argc, char **argv) {
int degree = 90;
int d, t;
char c;
complex<double> v(0, 0);
while (cin >> d >> c >> t) {
if (!d && !t)
break;
auto next = ... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 15,021 | 15,022 | u514153326 | cpp |
p00016 | #include <complex>
#include <cstdio>
#include <iostream>
#define _USE_MATH_DEFFINES
#include <cmath>
using namespace std;
typedef complex<double> P;
double convert(double angle) { return ((M_PI * (angle / 180.0))); }
P now(0, 0);
double angle = 0;
int main(void) {
int fd, spin;
while (scanf("%d,%d", &fd, &spin)... | #include <complex>
#include <cstdio>
#include <iostream>
#define _USE_MATH_DEFFINES
#include <cmath>
using namespace std;
typedef complex<double> P;
double convert(double angle) { return ((M_PI * (angle / 180.0))); }
P now(0, 0);
double angle = 0;
int main(void) {
int fd, spin;
while (scanf("%d,%d", &fd, &spin)... | [
"identifier.change",
"call.function.change",
"expression.operation.binary.change"
] | 15,023 | 15,024 | u273981871 | cpp |
p00016 | #include <complex>
#include <cstdio>
#include <iostream>
#define _USE_MATH_DEFFINES
#include <cmath>
using namespace std;
typedef complex<double> P;
double convert(double angle) { return ((M_PI * (angle / 180.0))); }
P now(0, 0);
double angle = 0;
int main(void) {
int fd, spin;
while (scanf("%d,%d", &fd, &spin)... | #include <complex>
#include <cstdio>
#include <iostream>
#define _USE_MATH_DEFFINES
#include <cmath>
using namespace std;
typedef complex<double> P;
double convert(double angle) { return ((M_PI * (angle / 180.0))); }
P now(0, 0);
double angle = 0;
int main(void) {
int fd, spin;
while (scanf("%d,%d", &fd, &spin)... | [
"expression.operation.binary.remove",
"io.output.change"
] | 15,025 | 15,024 | u273981871 | cpp |
p00016 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int r, deg, theta;
double x, y, rad;
x = 0.0;
y = 0.0;
theta = 0;
rad = M_PI / 180;
do {
scanf("%d, %d", &r, °);
if (r == 0 && deg == 0)
break;
x += r * cos(theta * rad);
y += r * sin(theta... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int r, deg, theta;
double x, y, rad;
x = 0.0;
y = 0.0;
theta = 0;
rad = M_PI / 180;
do {
scanf("%d, %d", &r, °);
if (r == 0 && deg == 0)
break;
x += r * cos(theta * rad);
y += r * sin(theta... | [
"expression.operation.binary.remove",
"io.output.change"
] | 15,026 | 15,027 | u694202139 | cpp |
p00016 | #include <cmath>
#include <iostream>
using namespace std;
int main() {
double nx = 0, ny = 0, x, y, ro = 0;
while (true) {
cin >> x;
cin.ignore();
cin >> y;
if (x == 0 && y == 0)
break;
ny += x * sin(ro / 180 * M_PI);
nx += x * cos(ro / 180 * M_PI);
ro += y;
// cout<<nx<<" "<<n... | #include <cmath>
#include <iostream>
using namespace std;
int main() {
double nx = 0, ny = 0, x, y, ro = 90;
while (true) {
cin >> x;
cin.ignore();
cin >> y;
if (x == 0 && y == 0)
break;
ny += x * sin(ro / 180 * M_PI);
nx += x * cos(ro / 180 * M_PI);
ro -= y;
// if(ro<0)ro=360-... | [
"literal.number.change",
"variable_declaration.value.change",
"expression.operator.change"
] | 15,030 | 15,031 | u746860079 | cpp |
p00016 | #define _USE_MATH_DEFINES
#include <cmath>
#include <iostream>
using namespace std;
int main() {
double x = 0, y = 0, a, b, now = 90;
char c;
while (cin >> a >> c >> b, a || b) {
x += a * cos(M_PI * now / 180);
y += a * sin(M_PI * now / 180);
now = now - b;
}
if (x >= 0)
x = floor(x);
else ... | #define _USE_MATH_DEFINES
#include <cmath>
#include <iostream>
using namespace std;
int main() {
double x = 0, y = 0, a, b, now = 90;
char c;
while (cin >> a >> c >> b, a || b) {
x += a * cos(M_PI * now / 180);
y += a * sin(M_PI * now / 180);
now = now - b;
}
if (x >= 0)
x = floor(x);
else ... | [] | 15,034 | 15,035 | u017200929 | cpp |
p00016 | #include <math.h>
#include <stdio.h>
#define pi 3.14159265358979
int main() {
double teku[10000] = {0.0}, sita = pi / 2, set_sita[10000] = {0.0}, x = 0.0,
y = 0.0;
int i = 0;
while (scanf("%lf,%lf", &teku[i], &set_sita[i]) != EOF) {
if (teku[i] == 0 && set_sita[i] == 0)
break;
set_sita[i... | #include <math.h>
#include <stdio.h>
#define pi 3.14159265358979
int main() {
double teku[10000] = {0.0}, sita = pi / 2, set_sita[10000] = {0.0}, x = 0.0,
y = 0.0;
int i = 0;
while (scanf("%lf,%lf", &teku[i], &set_sita[i]) != EOF) {
if (teku[i] == 0 && set_sita[i] == 0)
break;
set_sita[i... | [
"expression.operator.change"
] | 15,041 | 15,042 | u416593310 | cpp |
p00016 | #include <iostream>
#include <math.h>
#include <stdio.h>
#define PI 3.141592
using namespace std;
int main() {
int a, b;
double x = 0, y = 0, dig = 0;
while (scanf("%d,%d", &a, &b)) {
if (a == 0 && b == 0)
break;
x += a * sin(dig * PI / 180.0);
y += a * cos(dig * PI / 180.0);
dig += b;
}
... | #include <iostream>
#include <math.h>
#include <stdio.h>
#define PI 3.141592
using namespace std;
int main() {
int a, b;
double x = 0, y = 0, dig = 0;
while (scanf("%d,%d", &a, &b)) {
if (a == 0 && b == 0)
break;
x += a * sin(dig * PI / 180.0);
y += a * cos(dig * PI / 180.0);
dig += b;
}
... | [
"io.output.newline.add"
] | 15,043 | 15,044 | u817106493 | cpp |
p00016 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
double PI = 4 * atan(1);
int l, t1, t2 = 0, c = 0;
double x = 0, y = 0;
while (scanf("%d,%d", &l,... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
double PI = 4 * atan(1);
int l, t1, t2 = 0, c = 0;
double x = 0, y = 0;
while (scanf("%d,%d", &l,... | [] | 15,047 | 15,048 | u407582807 | cpp |
p00016 | #include <iostream>
#define _USE_MATH_DEFINES
#include <cmath>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
double x = 0, y = 0;
double m, d;
char c;
double next = 0;
while (cin >> m >> c >> d && m != 0 && d != 0) {
double rad = (90 - next) / 180.0 * M_PI;
x += m *... | #include <iostream>
#define _USE_MATH_DEFINES
#include <cmath>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
double x = 0, y = 0;
double m, d;
char c;
double next = 0;
while (cin >> m >> c >> d && (m != 0 || d != 0)) {
double rad = (90 - next) / 180.0 * M_PI;
x += m... | [
"control_flow.loop.condition.change",
"misc.opposites"
] | 15,049 | 15,050 | u820425665 | cpp |
p00015 | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include ... | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include ... | [
"expression.operation.binary.remove"
] | 15,055 | 15,056 | u823048060 | cpp |
p00015 | #include <iostream>
using namespace std;
int main() {
string s, t, u;
int n;
char ch;
cin >> n;
for (int loop = 0; loop < n; loop++) {
cin >> s >> t;
// cout << "\ns=" << s << endl << "t=" << t << endl;
if (s.length() > 80 || t.length() > 80) {
cout << "overflow" << endl;
conti... | #include <iostream>
using namespace std;
int main() {
string s, t, u;
int n;
char ch;
cin >> n;
for (int loop = 0; loop < n; loop++) {
cin >> s >> t;
// cout << "\ns=" << s << endl << "t=" << t << endl;
if (s.length() > 80 || t.length() > 80) {
cout << "overflow" << endl;
conti... | [
"control_flow.loop.for.initializer.change",
"assignment.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 15,057 | 15,058 | u081952516 | cpp |
p00015 | #include <iostream>
using namespace std;
int main() {
string s, t, u;
int n;
char ch;
cin >> n;
for (int loop = 0; loop < n; loop++) {
cin >> s >> t;
// cout << "\ns=" << s << endl << "t=" << t << endl;
if (s.length() > 80 || t.length() > 80) {
cout << "overflow" << endl;
conti... | #include <iostream>
using namespace std;
int main() {
string s, t, u;
int n;
char ch;
cin >> n;
for (int loop = 0; loop < n; loop++) {
cin >> s >> t;
// cout << "\ns=" << s << endl << "t=" << t << endl;
if (s.length() > 80 || t.length() > 80) {
cout << "overflow" << endl;
conti... | [
"control_flow.loop.for.initializer.change"
] | 15,059 | 15,058 | u081952516 | cpp |
p00015 | #include <cmath>
#include <iostream>
#include <sstream>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 0; i < n; i++) {
int p1[100], p2[100];
for (int i = 0; i < 100; i++) {
p1[i] = 0;
p2[i] = 0;
}
string a, b;
cin >> a;
cin >> b;
if (a.size() > 80 || b.si... | #include <cmath>
#include <iostream>
#include <sstream>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 0; i < n; i++) {
int p1[100], p2[100];
for (int i = 0; i < 100; i++) {
p1[i] = 0;
p2[i] = 0;
}
string a, b;
cin >> a;
cin >> b;
if (a.size() > 80 || b.si... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"literal.number.change"
] | 15,060 | 15,061 | u391466962 | cpp |
p00015 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <sstream>
#include <stack>
using namespace std;
int main() {
int t;
scanf("%d", &t);
for (int i = 0; i < t; i++) {
string a;
string b;
cin >> a;
cin >> b;
string res;
reverse(a.begin(), a.end());
rev... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <sstream>
#include <stack>
using namespace std;
int main() {
int t;
scanf("%d", &t);
for (int i = 0; i < t; i++) {
string a;
string b;
cin >> a;
cin >> b;
string res;
reverse(a.begin(), a.end());
rev... | [
"literal.string.change"
] | 15,065 | 15,066 | u274875240 | cpp |
p00015 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
while (n--) {
string a, b;
cin >> a >> b;
int num[500] = {0}, tab = 0, i = 0;
int as = a.size() - 1;
int bs = b.size() - 1;
int nmi = min(as, bs);
int nma = max(as, bs);
fo... | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
while (n--) {
string a, b;
cin >> a >> b;
int num[900] = {0}, tab = 0, i = 0;
int as = a.size() - 1;
int bs = b.size() - 1;
int nmi = min(as, bs);
int nma = max(as, bs);
fo... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"assignment.change"
] | 15,069 | 15,070 | u712500775 | cpp |
p00015 | #include <iostream>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
while (n--) {
string a, b, ans;
cin >> a >> b;
int as = a.size(), bs = b.size(), ms = (as > bs) ? as : bs, t = 0;
for (int i = 0; i < ms; i++) {
if (i < as && i < bs) {
t = a[as - i - 1] + b[bs -... | #include <iostream>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
while (n--) {
string a, b, ans;
cin >> a >> b;
int as = a.size(), bs = b.size(), ms = (as > bs) ? as : bs, t = 0;
for (int i = 0; i < ms; i++) {
if (i < as && i < bs) {
t = a[as - i - 1] + b[bs -... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"io.output.change"
] | 15,072 | 15,073 | u712500775 | cpp |
p00015 | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int i, j, n, f;
string s1, s2;
cin >> n;
while (n--) {
cin >> s1 >> s2;
f = 0;
if (s1.size() < s2.size())
s... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int i, j, n, f;
string s1, s2;
cin >> n;
while (n--) {
cin >> s1 >> s2;
f = 0;
if (s1.size() < s2.size())
s... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 15,082 | 15,083 | u896370991 | cpp |
p00015 | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef complex<double> P;
int main() {
int t;
cin >> t;
while (t--) {
string s, t;
... | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef complex<double> P;
int main() {
int t;
cin >> t;
while (t--) {
string s, t;
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 15,084 | 15,085 | u879952462 | cpp |
p00015 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string a, b;
vector<int> sum;
int al, bl, sl;
int n, up, num;
cin >> n;
for (int i = 0; i < n; ++i) {
cin >> a >> b;
al = a.size() - 1;
bl = b.size() - 1;
up = 0;
while (al >= 0 || bl >= 0) {
... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string a, b;
vector<int> sum;
int al, bl, sl;
int n, up, num;
cin >> n;
for (int i = 0; i < n; ++i) {
cin >> a >> b;
al = a.size() - 1;
bl = b.size() - 1;
up = 0;
while (al >= 0 || bl >= 0) {
... | [] | 15,088 | 15,089 | u716038039 | cpp |
p00015 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string a, b;
vector<int> sum;
int al, bl, sl;
int n, up, num;
cin >> n;
for (int i = 0; i < n; ++i) {
cin >> a >> b;
al = a.size() - 1;
bl = b.size() - 1;
up = 0;
while (al >= 0 || bl >= 0) {
... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string a, b;
vector<int> sum;
int al, bl, sl;
int n, up, num;
cin >> n;
for (int i = 0; i < n; ++i) {
cin >> a >> b;
al = a.size() - 1;
bl = b.size() - 1;
up = 0;
while (al >= 0 || bl >= 0) {
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 15,090 | 15,089 | u716038039 | cpp |
p00015 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <string>
using namespace std;
int main(void) {
int y;
scanf("%d", &y);
for (int z = 0; z < y; z++) {
char suji1[100000], suji2[100000];
char ans[100000] = {0};
for (int i = 0; i < 82; i++) {
suji1[i] = '0';
suji2[i] = '0';... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <string>
using namespace std;
int main(void) {
int y;
scanf("%d", &y);
for (int z = 0; z < y; z++) {
char suji1[100000], suji2[100000];
char ans[100000] = {0};
for (int i = 0; i < 82; i++) {
suji1[i] = '0';
suji2[i] = '0';... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.remove"
] | 15,093 | 15,094 | u904101743 | cpp |
p00015 | #include <algorithm>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <vector>
#define EPS (1e-10)
using namespace std;
#define PI (3.1415926535)
int main() {
string a, b;
... | #include <algorithm>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <vector>
#define EPS (1e-10)
using namespace std;
#define PI (3.1415926535)
int main() {
string a, b;
... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 15,095 | 15,096 | u934534598 | cpp |
p00015 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#define MOJI 48
using namespace std;
int multiple(string a, string b);
char c[111111];
int main() {
int n;
string a, b;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> a;
cin >> b;
int k = multiple(a, b);
... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#define MOJI 48
using namespace std;
int multiple(string a, string b);
char c[111111];
int main() {
int n;
string a, b;
while (cin >> n) {
for (int i = 0; i < n; i++) {
cin >> a;
cin >> b;
int k =... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 15,099 | 15,100 | u816759634 | cpp |
p00015 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#define MOJI 48
using namespace std;
int multiple(string a, string b);
char c[111111];
int main() {
int n;
string a, b;
while (cin >> n) {
for (int i = 0; i < n; i++) {
cin >> a;
cin >> b;
int k =... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#define MOJI 48
using namespace std;
int multiple(string a, string b);
char c[111111];
int main() {
int n;
string a, b;
while (cin >> n) {
for (int i = 0; i < n; i++) {
cin >> a;
cin >> b;
int k =... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 15,101 | 15,100 | u816759634 | cpp |
p00015 |
#include <algorithm>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring> //strlen
#include <iostream>
#include <stack>
#include <vector>
using namespace std;
bool solve() {
// なぜかわからないがstirngだと数字が大きいとSegmentation fault
/*
string str1,str2;
... |
#include <algorithm>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring> //strlen
#include <iostream>
#include <stack>
#include <vector>
using namespace std;
bool solve() {
// なぜかわからないがstirngだと数字が大きいとSegmentation fault
/*
string str1,str2;
... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 15,102 | 15,103 | u778955858 | cpp |
p00015 |
#include <algorithm>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring> //strlen
#include <iostream>
#include <stack>
#include <vector>
using namespace std;
bool solve() {
char str1[10000], str2[10000];
scanf("%s %s", str1, str2);
int n1 = strlen(str1)... |
#include <algorithm>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring> //strlen
#include <iostream>
#include <stack>
#include <vector>
using namespace std;
bool solve() {
// なぜかわからないがstirngだと数字が大きいとSegmentation fault
/*
string str1,str2;
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 15,104 | 15,103 | u778955858 | cpp |
p00015 | #include <algorithm>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define re... | #include <algorithm>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define re... | [
"control_flow.return.remove",
"control_flow.continue.add"
] | 15,105 | 15,106 | u317038881 | cpp |
p00015 | #include <stdio.h>
#include <string.h>
int main() {
int n, ans[100], kuri, i, j, ap, bp;
char a[1000], b[1000];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%s%s", a, b);
if (strlen(a) > 80 || strlen(b) > 80) {
printf("overflow\n");
continue;
}
ap = strlen(a) - 1;
bp = strl... | #include <stdio.h>
#include <string.h>
int main() {
int n, ans[100], kuri, i, j, ap, bp;
char a[1000], b[1000];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%s%s", a, b);
if (strlen(a) > 80 || strlen(b) > 80) {
printf("overflow\n");
continue;
}
ap = strlen(a) - 1;
bp = strl... | [
"assignment.compound.arithmetic.replace.add",
"expression.operator.arithmetic.replace.remove",
"expression.operation.binary.change",
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 15,109 | 15,110 | u697737442 | cpp |
p00015 | #include <stdio.h>
#include <string.h>
int main() {
int n, ans[100], kuri, i, j, ap, bp;
char a[1000], b[1000];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%s%s", a, b);
if (strlen(a) > 80 || strlen(b) > 80) {
printf("overflow\n");
continue;
}
ap = strlen(a) - 1;
bp = strl... | #include <stdio.h>
#include <string.h>
int main() {
int n, ans[100], kuri, i, j, ap, bp;
char a[1000], b[1000];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%s%s", a, b);
if (strlen(a) > 80 || strlen(b) > 80) {
printf("overflow\n");
continue;
}
ap = strlen(a) - 1;
bp = strl... | [
"assignment.compound.arithmetic.replace.add",
"expression.operator.arithmetic.replace.remove",
"expression.operation.binary.change"
] | 15,111 | 15,110 | u697737442 | cpp |
p00015 | #include <cstdio>
#include <cstring>
#define MAX_NUM 100
using namespace std;
void array_add(int *a, int *b) {
int i;
for (i = MAX_NUM - 1; i > 0; i--) {
a[i] = a[i] + b[i];
a[i - 1] = a[i - 1] + a[i] / 10;
a[i] %= 10;
}
}
int main(void) {
int n, i, j, len1, len2, val1[MAX_NUM], val2[MAX_NUM];
... | #include <cstdio>
#include <cstring>
#define MAX_NUM 32767
using namespace std;
void array_add(int *a, int *b) {
int i;
for (i = MAX_NUM - 1; i > 0; i--) {
a[i] = a[i] + b[i];
a[i - 1] = a[i - 1] + a[i] / 10;
a[i] %= 10;
}
}
int main(void) {
int n, i, j, len1, len2, val1[MAX_NUM], val2[MAX_NUM];
... | [
"preprocessor.define.value.change",
"literal.integer.change"
] | 15,114 | 15,115 | u682037079 | cpp |
p00015 | #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
string a;
string b;
int kari;
cin >> kari;
for (int o = 0; o < kari; o++) {
int c[80] = {0};
int d[80] = {0};
int e[81] = {0};
int counter;
cin >> a;
cin >> b;
if (a.size() > 80 || b.s... | #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
string a;
string b;
int kari;
cin >> kari;
for (int o = 0; o < kari; o++) {
int c[80] = {0};
int d[80] = {0};
int e[81] = {0};
int counter = 0;
cin >> a;
cin >> b;
if (a.size() > 80 ||... | [
"variable_declaration.value.change"
] | 15,116 | 15,117 | u278285028 | cpp |
p00015 | #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
string a;
string b;
int kari;
cin >> kari;
for (int o = 0; o < kari; o++) {
int c[80] = {0};
int d[80] = {0};
int e[81] = {0};
int counter;
cin >> a;
cin >> b;
if (a.size() > 80 || b.s... | #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
string a;
string b;
int kari;
cin >> kari;
for (int o = 0; o < kari; o++) {
int c[80] = {0};
int d[80] = {0};
int e[81] = {0};
int counter = 0;
cin >> a;
cin >> b;
if (a.size() > 80 ||... | [
"variable_declaration.value.change",
"control_flow.break.remove",
"control_flow.continue.add"
] | 15,118 | 15,117 | u278285028 | cpp |
p00015 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
char calc(char x, char y, char z, bool &C) {
int a = x - '0', b = y - '0', c = z - '0';
int d = a + b + c;
if (d >= 10) {
C = true;
d -= 10;
}
return d + '0';
}
string sum(string a, string b) {
string res = "";
r... | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
char calc(char x, char y, char z, bool &C) {
int a = x - '0', b = y - '0', c = z - '0';
int d = a + b + c;
if (d >= 10) {
C = true;
d -= 10;
}
return d + '0';
}
string sum(string a, string b) {
string res = "";
r... | [
"control_flow.loop.for.condition.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 15,122 | 15,123 | u881100444 | cpp |
p00015 | #include <cstdio>
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
while (n-- > 0) {
string num1, num2;
cin >> num1 >> num2;
if (num1.size() > 80 || num2.size() > 80) {
cout << "overflow" << endl;
continue;
}
int sum[101];... | #include <cstdio>
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
while (n-- > 0) {
string num1, num2;
cin >> num1 >> num2;
if (num1.size() > 80 || num2.size() > 80) {
cout << "overflow" << endl;
continue;
}
int sum[101];... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 15,125 | 15,126 | u879745691 | cpp |
p00015 | #include <algorithm>
#include <iostream>
#include <string>
int main() {
int n;
std::cin >> n;
for (int i = 0; i < n; i++) {
std::string str, str2, res;
std::cin >> str >> str2;
std::reverse(str.begin(), str.end());
std::reverse(str2.begin(), str2.end());
bool up = 0;
for (int i = 0; u... | #include <algorithm>
#include <iostream>
#include <string>
int main() {
int n;
std::cin >> n;
for (int i = 0; i < n; i++) {
std::string str, str2, res;
std::cin >> str >> str2;
std::reverse(str.begin(), str.end());
std::reverse(str2.begin(), str2.end());
bool up = 0;
for (int i = 0; u... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 15,129 | 15,130 | u426260581 | cpp |
p00016 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int len, angle;
int sum_ang = 90; // start
double x = 0.0, y = 0.0;
// ang(+) -> right
while (scanf("%d,%d", &len, &angle), len != 0 && angle != 0) {
x += len * cos(M_PI * sum_ang / 180.0);
y += len * sin(M_PI *... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int len, angle;
int sum_ang = 90; // start
double x = 0.0, y = 0.0;
// ang(+) -> right
while (scanf("%d,%d", &len, &angle), len != 0 || angle != 0) {
x += len * cos(M_PI * sum_ang / 180.0);
y += len * sin(M_PI *... | [
"misc.opposites",
"control_flow.loop.condition.change",
"assignment.change"
] | 15,280 | 15,281 | u881668270 | cpp |
p00016 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int len, angle;
int sum_ang = 90; // start
double x = 0.0, y = 0.0;
// ang(+) -> right
while (scanf("%d,%d", &len, &angle), len != 0 && angle != 0) {
x += len * cos(M_PI * sum_ang / 180.0);
y += len * sin(M_PI *... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int len, angle;
int sum_ang = 90; // start
double x = 0.0, y = 0.0;
// ang(+) -> right
while (scanf("%d,%d", &len, &angle), len != 0 || angle != 0) {
x += len * cos(M_PI * sum_ang / 180.0);
y += len * sin(M_PI *... | [
"misc.opposites",
"control_flow.loop.condition.change"
] | 15,282 | 15,281 | u881668270 | cpp |
p00016 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#define PI 3.1415926535897932384626433
using namespace std;
int main() {
double nowx = 0, nowy = 0, nowkaku = PI / 2;
while (1) {
double ho, kaku;
scanf("%lf,%lf", &ho, &kaku);
if (ho == 0 && kaku == 0)
break;
nowy += ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#define PI 3.1415926535897932384626433
using namespace std;
int main() {
double nowx = 0, nowy = 0, nowkaku = PI / 2;
while (1) {
double ho, kaku;
scanf("%lf,%lf", &ho, &kaku);
if (ho == 0 && kaku == 0)
break;
nowy += ... | [
"expression.operation.binary.add"
] | 15,285 | 15,286 | u243365795 | cpp |
p00016 | #include <cmath>
#include <iostream>
#define PI 3.14159265
using namespace std;
int main() {
int len, rot;
float x, y, shita;
x = y = shita = 0;
while (1) {
scanf("%d,%d", &len, &rot);
if (len == 0 && rot == 0) {
break;
}
x += len * cos(shita * PI / 180);
y += len * sin(shita * PI / 18... | #include <cmath>
#include <iostream>
#define PI 3.14159265
using namespace std;
int main() {
int len, rot;
float x, y, shita;
x = y = shita = 0;
while (1) {
scanf("%d,%d", &len, &rot);
if (len == 0 && rot == 0) {
break;
}
x += len * cos(shita * PI / 180);
y += len * sin(shita * PI / 18... | [
"type_conversion.add"
] | 15,291 | 15,292 | u873028431 | cpp |
p00016 | #include <cmath>
#include <iostream>
#define PI 3.14159265359
using namespace std;
int main() {
int d, a = 90, a2;
double x, y;
char c;
while (cin >> d >> c >> a2) {
if (d == 0 && a == 0)
break;
double rad = a * (PI / 180);
x += d * cos(rad);
y += d * sin(rad);
a += a2;
}
cout << ... | #include <cmath>
#include <iostream>
#define PI 3.14159265359
using namespace std;
int main() {
int d, a = 90, a2;
double x, y;
char c;
while (cin >> d >> c >> a2) {
if (d == 0 && a == 0)
break;
else {
double rad = a * (PI / 180.0);
x += d * cos(rad);
y += d * sin(rad);
a... | [
"control_flow.branch.else.add",
"literal.number.change",
"expression.operation.binary.change",
"expression.operation.unary.add"
] | 15,300 | 15,301 | u403618837 | cpp |
p00016 | #include <cmath>
#include <cstdio>
#include <iostream>
const double PI = 3.14159265359;
using namespace std;
int main() {
double x = 0.0, y = 0.0;
int d, a;
int ca = 90; //????????????????????????
scanf("%d,%d", &d, &a);
do {
x += d * cos(ca / 180.0 * PI);
y += d * sin(ca / 180.0 * PI);
ca += ... | #include <cmath>
#include <cstdio>
#include <iostream>
const double PI = 3.14159265359;
using namespace std;
int main() {
double x = 0.0, y = 0.0;
int d, a;
int ca = 90; //????????????????????????
scanf("%d,%d", &d, &a);
do {
x += d * cos(ca / 180.0 * PI);
y += d * sin(ca / 180.0 * PI);
ca -= ... | [
"expression.operator.change",
"io.output.newline.add"
] | 15,302 | 15,303 | u683997870 | cpp |
p00016 | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, l, r) for (int i = (l); i < (r); i++)
#define ALL(x) (x).begin(), (x).end()
template <typename T> bool chmax(T &a, const T &b) {
return a < b ? (a = b, true) : false;
}
template <typename T> bool chmin(T &a, const T &b) {
return b < a ? (a = b, true) : f... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, l, r) for (int i = (l); i < (r); i++)
#define ALL(x) (x).begin(), (x).end()
template <typename T> bool chmax(T &a, const T &b) {
return a < b ? (a = b, true) : false;
}
template <typename T> bool chmin(T &a, const T &b) {
return b < a ? (a = b, true) : f... | [
"control_flow.loop.condition.change",
"misc.opposites"
] | 15,305 | 15,306 | u964040941 | cpp |
p00016 | #include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int main() {
double sum, x, y, b, c;
int a, d;
a = 0;
x = 0;
y = 0;
sum = 0;
while (scanf("%d,%d", &d, &a)) {
if (a == 0 && d == 0)
break;
b = (double)a;
c = (double)d;
x += c * cos(sum * 3.1416 / 180);
... | #include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int main() {
double sum, x, y, b, c;
int a, d;
a = 0;
x = 0;
y = 0;
sum = 0;
while (scanf("%d,%d", &d, &a)) {
if (a == 0 && d == 0)
break;
b = (double)a;
c = (double)d;
x += c * cos(sum * 3.1416 / 180);
... | [] | 15,307 | 15,308 | u133262182 | cpp |
p00016 | // C++14 (Clang 3.8.0)
#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#includ... | // C++14 (Clang 3.8.0)
#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#includ... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 15,311 | 15,312 | u444102531 | cpp |
p00016 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <... | [
"literal.number.change",
"variable_declaration.value.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 15,315 | 15,314 | u827448139 | cpp |
p00016 | #include <cmath>
#include <cstdio>
#include <iostream>
#define R (3.1415926535898 / 180.0)
using namespace std;
int main() {
int go, turn;
double x = 0, y = 0, cur = 0;
while (scanf("%d,%d\n", &go, &turn), (go && turn)) {
y += cos(cur * R) * go;
x += sin(cur * R) * go;
cur += turn;
}
cout << (in... | #include <cmath>
#include <cstdio>
#include <iostream>
#define R (3.1415926535898 / 180.0)
using namespace std;
int main() {
int go, turn;
double x = 0, y = 0, cur = 0;
while (scanf("%d,%d\n", &go, &turn), (go || turn)) {
y += cos(cur * R) * go;
x += sin(cur * R) * go;
cur += turn;
}
cout << (in... | [
"misc.opposites",
"control_flow.loop.condition.change"
] | 15,316 | 15,317 | u458173932 | cpp |
p00016 | #include <iostream>
#include <math.h>
using namespace std;
int main() {
double x = 0, y = 0;
int degree = 90;
double t;
int d;
char c;
double pi = 3.141592;
while (true) {
cin >> t;
x += t * cos(degree * pi / 180);
y += t * sin(degree * pi / 180);
cin >> c;
cin >> d;
degree += d;... | #include <iostream>
#include <math.h>
using namespace std;
int main() {
double x = 0, y = 0;
int degree = 90;
double t;
int d;
char c;
double pi = 3.141592;
while (true) {
cin >> t;
x += t * cos(degree * pi / 180);
y += t * sin(degree * pi / 180);
cin >> c;
cin >> d;
degree += d;... | [
"expression.operation.unary.add"
] | 15,318 | 15,319 | u977061810 | cpp |
p00016 | #include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double x = 0;
double y = 0;
double angle = 0;
double r, th;
while (1) {
scanf("%lf,%lf", &r, &th);
if (r == 0 && th == 0)
break;
x += r * sin(M_PI * angle / 90);
y += r * cos(M_PI * angle / 90);
... | #include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double x = 0;
double y = 0;
double angle = 0;
double r, th;
while (1) {
scanf("%lf,%lf", &r, &th);
if (r == 0 && th == 0)
break;
x += r * sin(2 * M_PI * angle / 360);
y += r * cos(2 * M_PI * angle ... | [
"assignment.change",
"literal.number.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 15,320 | 15,321 | u918188633 | cpp |
p00016 | #include <cmath>
#include <cstdio>
using namespace std;
int main() {
int r, d, sd = 90;
double x = 0.0, y = 0.0;
while (scanf("%d,%d", &r, &d) == 2 && r != 0 && d != 0) {
x += r * cos(sd * 3.141592 / 180.0);
y += r * sin(sd * 3.141592 / 180.0);
sd -= d;
if (sd > 180)
sd -= 360;
else if ... | #include <cmath>
#include <cstdio>
using namespace std;
int main() {
int r, d, sd = 90;
double x = 0.0, y = 0.0;
while (scanf("%d,%d", &r, &d) == 2 && !(r == 0 && d == 0)) {
x += r * cos(sd * 3.141592 / 180.0);
y += r * sin(sd * 3.141592 / 180.0);
sd -= d;
if (sd > 180)
sd -= 360;
else ... | [
"control_flow.loop.condition.change",
"misc.opposites",
"expression.operator.compare.change"
] | 15,322 | 15,323 | u390862001 | cpp |
p00016 | #include <cmath>
#include <cstdlib>
#include <iostream>
#include <string>
#define PI 3.141592653589793
using namespace std;
int main() {
string str;
int to;
double x, y, direction, r, theta;
x = 0;
y = 0;
r = 0;
theta = 0;
direction = 90;
while (cin >> str) {
to = str.find(",", 0);
r = (doub... | #include <cmath>
#include <cstdlib>
#include <iostream>
#include <string>
#define PI 3.141592653589793
using namespace std;
int main() {
string str;
int to;
double x, y, direction, r, theta;
x = 0;
y = 0;
r = 0;
theta = 0;
direction = 90;
while (cin >> str) {
to = str.find(",", 0);
r = (doub... | [
"type_conversion.add"
] | 15,324 | 15,325 | u444904956 | cpp |
p00016 | // 0016
// Time-stamp: <2012-07-10 18:44:05 naga>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#define PI 3.1415926535
using namespace std;
int main() {
int walk, deg;
double x, y;
int direction;
x = y = 0;
direction = 90;
while (true) {
// radian = (double)(direction *... | // 0016
// Time-stamp: <2012-07-10 18:48:35 naga>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#define PI 3.1415926535
using namespace std;
int main() {
int walk, deg;
double x, y;
int direction;
x = y = 0;
direction = 90;
while (true) {
// radian = (double)(direction *... | [
"expression.operation.unary.add",
"io.output.change"
] | 15,334 | 15,335 | u743490335 | cpp |
p00016 | // 0016
// Time-stamp: <2012-07-10 18:45:05 naga>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#define PI 3.1415926535
using namespace std;
int main() {
int walk, deg;
double x, y;
int direction;
x = y = 0;
direction = 90;
while (true) {
// radian = (double)(direction *... | // 0016
// Time-stamp: <2012-07-10 18:48:35 naga>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#define PI 3.1415926535
using namespace std;
int main() {
int walk, deg;
double x, y;
int direction;
x = y = 0;
direction = 90;
while (true) {
// radian = (double)(direction *... | [
"expression.operation.unary.add",
"io.output.newline.add"
] | 15,336 | 15,335 | u743490335 | cpp |
p00016 | // 0016
// Time-stamp: <2012-07-10 18:47:25 naga>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#define PI 3.1415926535
using namespace std;
int main() {
int walk, deg;
double x, y;
int direction;
x = y = 0;
direction = 90;
while (true) {
// radian = (double)(direction *... | // 0016
// Time-stamp: <2012-07-10 18:48:35 naga>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#define PI 3.1415926535
using namespace std;
int main() {
int walk, deg;
double x, y;
int direction;
x = y = 0;
direction = 90;
while (true) {
// radian = (double)(direction *... | [
"expression.operation.unary.add"
] | 15,337 | 15,335 | u743490335 | cpp |
p00016 | #include <cmath>
#include <cstdio>
double rad = 90.00000000000; //回転角
double x = 0.0, y = 0.0; //現在地
int answer_x, answer_y;
double PI = 6 * asin(0.5) / 180;
int main() {
int a, b;
while (scanf("%d,%d", &a, &b) != EOF) {
if (a == 0 && b == 0)
break;
y += sin(rad * PI) * a;
x += cos(rad * PI)... | #include <cmath>
#include <cstdio>
double rad = 90.00000000000; //回転角
double x = 0.0, y = 0.0; //現在地
int answer_x, answer_y;
double PI = 6 * asin(0.5) / 180;
int main() {
int a, b;
while (scanf("%d,%d", &a, &b) != EOF) {
if (a == 0 && b == 0)
break;
y += sin(rad * PI) * a;
x += cos(rad * PI)... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 15,338 | 15,339 | u898551204 | cpp |
p00016 | #include <cmath>
#include <cstdio>
double rad = 90.00000000000; //回転角
double x = 0.0, y = 0.0; //現在地
int answer_x, answer_y;
double PI = 6 * asin(0.5) / 180;
int main() {
int a, b;
while (scanf("%d,%d", &a, &b) != EOF) {
if (a == 0 && b == 0)
break;
y += sin(rad * PI) * a;
x += cos(rad * PI)... | #include <cmath>
#include <cstdio>
double rad = 90.00000000000; //回転角
double x = 0.0, y = 0.0; //現在地
int answer_x, answer_y;
double PI = 6 * asin(0.5) / 180;
int main() {
int a, b;
while (scanf("%d,%d", &a, &b) != EOF) {
if (a == 0 && b == 0)
break;
y += sin(rad * PI) * a;
x += cos(rad * PI)... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"call.arguments.add"
] | 15,340 | 15,339 | u898551204 | cpp |
p00016 | #include <cmath>
#include <cstdio>
#define PI 3.14159265358979323
int correct(int d) {
if (d < 0) {
return d + 360;
} else if (d > 360) {
return d - 360;
} else {
return d;
}
}
int main() {
double x = 0, y = 0;
int l, d, dir = -90;
while (scanf("%d,%d", &l, &d), l) {
x += l * cos(PI * d... | #include <cmath>
#include <cstdio>
#define PI 3.14159265358979323846
int correct(int d) {
if (d < 0) {
return d + 360;
} else if (d > 360) {
return d - 360;
} else {
return d;
}
}
int main() {
double x = 0, y = 0;
int l, d, dir = 0;
while (scanf("%d,%d", &l, &d), l) {
x += l * sin(PI * ... | [
"preprocessor.define.value.change",
"literal.float.change",
"literal.number.change",
"variable_declaration.value.change",
"assignment.value.change",
"identifier.change",
"call.function.change",
"expression.operation.binary.change"
] | 15,341 | 15,342 | u746184552 | cpp |
p00016 | #include <math.h>
#include <stdio.h>
double na;
double nx, ny;
int main() {
int d;
int a;
na = 90;
nx = 0;
ny = 0;
while (1) {
scanf("%d,%d", &d, &a);
if (d == 0 && a == 0)
break;
nx += (double)d * cos(M_PI * na / 180);
ny += (double)d * sin(M_PI * na / 180);
na -= a;
}
printf... | #include <math.h>
#include <stdio.h>
double na;
double nx, ny;
int main() {
int d;
int a;
na = 90;
nx = 0;
ny = 0;
while (1) {
scanf("%d,%d", &d, &a);
if (d == 0 && a == 0)
break;
nx += (double)d * cos(M_PI * na / 180);
ny += (double)d * sin(M_PI * na / 180);
na -= a;
}
printf... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 15,343 | 15,344 | u567696381 | cpp |
p00016 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <stack>
#include <string>
#include <vector>
#define INIT_DIR 90
#define PI 3.141592
using namespace std;
int main() {
double dir = INIT_DIR * ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <stack>
#include <string>
#include <vector>
#define INIT_DIR 90
#define PI 3.141592
using namespace std;
int main() {
double dir = INIT_DIR * ... | [
"assignment.change"
] | 15,351 | 15,352 | u463431521 | cpp |
p00016 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <stack>
#include <string>
#include <vector>
#define INIT_DIR 90
#define PI 3.141592
using namespace std;
int main() {
double dir = INIT_DIR * ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <stack>
#include <string>
#include <vector>
#define INIT_DIR 90
#define PI 3.141592
using namespace std;
int main() {
double dir = INIT_DIR * ... | [
"assignment.change"
] | 15,351 | 15,353 | u463431521 | cpp |
p00016 | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int i, j;
char c;
double x, y, a, pi = 3.1415926;
x = y = 0;
a = 90 * pi / 180;
while (1) {
cin >> i >> c >> j;
if (i == 0 && j == 0)
break;
x += i * cos(a);
y += i * sin(a);
a += j * pi / 180;
}
cout << tru... | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int i, j;
char c;
double x, y, a, pi = 3.1415926;
x = y = 0;
a = 90 * pi / 180;
while (1) {
cin >> i >> c >> j;
if (i == 0 && j == 0)
break;
x += i * cos(a);
y += i * sin(a);
a -= j * pi / 180;
}
cout << tru... | [
"expression.operator.change"
] | 15,357 | 15,358 | u425782371 | cpp |
p00016 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double ln, cta, x = 0, y = 0, angle = 90.0;
while (1) {
scanf("%lf,%lf", &ln, &cta);
if (ln == 0 && cta == 0)
break;
x += ln * cos((angle / 180) * M_PI);
y += ln * sin((angle / 180) * M_PI);
angle ... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double ln, cta, x = 0, y = 0, angle = 90.0;
while (1) {
scanf("%lf,%lf", &ln, &cta);
if (ln == 0 && cta == 0)
break;
x += ln * cos((angle / 180) * M_PI);
y += ln * sin((angle / 180) * M_PI);
angle ... | [
"type_conversion.add"
] | 15,359 | 15,360 | u107750881 | cpp |
p00016 | #include <cmath>
#include <iostream>
#define PI acos(-1)
using namespace std;
int main() {
double x = 0.0, y = 0.0;
double nr = PI / 2.0;
int l, r;
while (true) {
cin >> l;
cin.ignore();
cin >> r;
if (!(l | r))
break;
x += l * cos(nr);
y += l * sin(nr);
nr -= r * PI / 180.0;
... | #include <cmath>
#include <iostream>
#define PI acos(-1)
using namespace std;
int main() {
double x = 0.0, y = 0.0;
double nr = PI / 2.0;
int l, r;
while (true) {
cin >> l;
cin.ignore();
cin >> r;
if (!(l | r))
break;
x += l * cos(nr);
y += l * sin(nr);
nr -= r * PI / 180.0;
... | [
"io.output.change"
] | 15,361 | 15,362 | u365178144 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.