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 |
|---|---|---|---|---|---|---|---|
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] == t[i])
ans++;
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] != t[i])
ans++;
}
cout << ans << endl;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 329,961 | 329,962 | u798086274 | cpp |
p02622 | #include <iostream>
using namespace std;
int main() {
string S, T;
int count = 0;
cin >> S >> T;
int size = S.size();
for (int x = 0; x < size; x++) {
if (S.at(x) == T.at(x)) {
count++;
}
}
cout << count;
} | #include <iostream>
using namespace std;
int main() {
string S, T;
int count = 0;
cin >> S >> T;
int size = S.size();
for (int x = 0; x < size; x++) {
if (S.at(x) != T.at(x)) {
count++;
}
}
cout << count;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 329,969 | 329,970 | u796060038 | cpp |
p02622 | #include <iostream>
#include <string>
using namespace std;
int main() {
int x;
string S, T;
cin >> S >> T;
for (int i = 0; i < S.length(); i++) {
if (S[i] != T[i])
x += 1;
}
cout << x << "\n";
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int x = 0;
string S, T;
cin >> S >> T;
for (int i = 0; i < S.length(); i++) {
if (S[i] != T[i])
x += 1;
}
cout << x << "\n";
} | [
"variable_declaration.value.change"
] | 329,971 | 329,972 | u589509358 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
string a, c;
cin >> a >> c;
ll b = a.size();
ll d = 0;
for (ll i = 0; i < b; i++) {
if (a.at(i) != c.at(i))
d += 0;
}
cout << d << endl;
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
string a, c;
cin >> a >> c;
ll b = a.size();
ll d = 0;
for (ll i = 0; i < b; i++) {
if (a.at(i) != c.at(i))
d += 1;
}
cout << d << endl;
}
| [
"literal.number.change",
"assignment.value.change"
] | 329,974 | 329,975 | u883297128 | cpp |
p02622 | #include <cstring>
#include <iostream>
using namespace std;
int main() {
int x = 0;
int z = 0;
char S[200001], T[200001];
cin >> S >> T;
for (int i = 0; i < strlen(S); i++) {
if (S[i] == T[i])
z++;
else
x++;
}
if (z == 0)
cout << z;
else
cout << x;
return 0;
}
| #include <cstring>
#include <iostream>
using namespace std;
int main() {
int x = 0;
int z = 0;
char S[200001], T[200001];
cin >> S >> T;
for (int i = 0; i < strlen(S); i++) {
if (S[i] == T[i])
z++;
else
x++;
}
if (z == 0 && x == 0)
cout << z;
else
cout << x;
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 329,982 | 329,983 | u863370423 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
#define fast_io \
ios_base::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
int main() {
... | #include <bits/stdc++.h>
using namespace std;
#define fast_io \
ios_base::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
int main() {
... | [
"variable_declaration.value.change"
] | 329,984 | 329,985 | u621864261 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
int count;
string s, t;
cin >> s >> t;
if (s == t) {
cout << 0 << endl;
return 0;
}
for (int n = 0; n < s.size(); n++) {
if (s.at(n) != t.at(n)) {
s.at(n) = t.at(n);
count++;
}
}
cout << count << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int count = 0;
string s, t;
cin >> s >> t;
if (s == t) {
cout << 0 << endl;
return 0;
}
for (int n = 0; n < s.size(); n++) {
if (s.at(n) != t.at(n)) {
s.at(n) = t.at(n);
count++;
}
}
cout << count << endl;
}
| [
"variable_declaration.value.change"
] | 329,996 | 329,997 | u405747908 | cpp |
p02622 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string S, T;
cin >> S >> T;
int ans = 0;
for (int i = 0; S.size(); i++) {
if (S[i] != T[i])
ans++;
}
cout << ans << endl;
}
| #include <iostream>
#include <string>
using namespace std;
int main(void) {
string S, T;
cin >> S >> T;
int ans = 0;
for (int i = 0; i < S.size(); i++) {
if (S[i] != T[i])
ans++;
}
cout << ans << endl;
}
| [
"control_flow.loop.for.condition.change"
] | 330,005 | 330,006 | u963353562 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string str1, str2;
cin >> str1 >> str2;
int c;
for (int i = 0; i < str1.size(); i++) {
if (str1[i] != str2[i]) {
c++;
}
}
cout << c << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string str1, str2;
cin >> str1 >> str2;
int c = 0;
for (int i = 0; i < str1.size(); i++) {
if (str1[i] != str2[i]) {
c++;
}
}
cout << c << endl;
return 0;
} | [
"variable_declaration.value.change"
] | 330,028 | 330,029 | u011573031 | cpp |
p02622 | #include <iostream>
#include <string>
using namespace std;
int main() {
string str1, str2;
int x;
cin >> str1;
cin >> str2;
for (int i = 0; i < str1.size(); i++) {
if (str1[i] != str2[i]) {
x++;
}
}
cout << x;
}
| #include <iostream>
#include <string>
using namespace std;
int main() {
string str1, str2;
int x = 0;
cin >> str1;
cin >> str2;
for (int i = 0; i < str1.size(); i++) {
if (str1[i] != str2[i]) {
x++;
}
}
cout << x;
}
| [
"variable_declaration.value.change"
] | 330,035 | 330,036 | u593392188 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
int main() {
string x;
string y;
cin >> x;
cin >> y;
int ans = 0;
rep(i, (int)x.size()) {
if (x[i] == y[i])
ans++;
}
cout << ans;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
int main() {
string x;
string y;
cin >> x;
cin >> y;
int ans = 0;
rep(i, (int)x.size()) {
if (x[i] != y[i])
ans++;
}
cout << ans;
return 0;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 330,049 | 330,050 | u020933954 | cpp |
p02622 | #include <iostream>
using namespace std;
int main(void) {
string S, T;
cin >> S >> T;
int ans = 0;
for (int i = 0; i < S.size(); i++) {
if (S[i] == !T[i])
ans++;
}
cout << ans << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main(void) {
string S, T;
cin >> S >> T;
int ans = 0;
for (int i = 0; i < S.size(); i++) {
if (S[i] != T[i])
ans++;
}
cout << ans << endl;
return 0;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operation.unary.logical.remove"
] | 330,064 | 330,065 | u083513584 | cpp |
p02622 | #include <iostream>
using namespace std;
int main(void) {
// Your code here!
string a, b;
int c, k = 0;
cin >> a >> b;
c = a.size();
for (int z = 0; z <= c; z++) {
if (a[z] == b[z]) {
k++;
}
}
cout << k << endl;
}
| #include <iostream>
using namespace std;
int main(void) {
// Your code here!
string a, b;
int c, k = 0;
cin >> a >> b;
c = a.size();
for (int z = 0; z <= c; z++) {
if (a[z] != b[z]) {
k++;
}
}
cout << k << endl;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 330,066 | 330,067 | u783388585 | cpp |
p02622 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
// using ll = long long;
// using P = pair<int,int>;
int main() {
int counts;
string s, t;
cin >> s >> t;
rep(i, s.size()) {
if (s.at(i) != t.at(i))
counts++;
}
cout << counts << endl;
} | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
// using ll = long long;
// using P = pair<int,int>;
int main() {
int counts = 0;
string s, t;
cin >> s >> t;
rep(i, s.size()) {
if (s.at(i) != t.at(i))
counts++;
}
cout << counts << endl;
} | [
"variable_declaration.value.change"
] | 330,129 | 330,130 | u052656528 | cpp |
p02622 | #include <iostream>
int main() {
std::string s, t;
int n;
std::cin >> s >> t;
for (int i = 0; i < s.size(); i++) {
if (s[i] != t[i]) {
n++;
}
}
std::cout << n << std::endl;
return 0;
} | #include <iostream>
int main() {
std::string s, t;
int n = 0;
std::cin >> s >> t;
for (int i = 0; i < s.size(); i++) {
if (s[i] != t[i]) {
n++;
}
}
std::cout << n << std::endl;
return 0;
} | [
"variable_declaration.value.change"
] | 330,138 | 330,139 | u384804826 | cpp |
p02622 | #include <iostream>
using namespace std;
int main() {
string a, b;
cin >> a;
cin >> b;
int l = a.length();
int c = 0;
for (int i = 0; i < l; i++) {
if (a[i] == b[i])
c++;
}
cout << c;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
string a, b;
cin >> a;
cin >> b;
int l = a.length();
int c = 0;
for (int i = 0; i < l; i++) {
if (a[i] != b[i])
c++;
}
cout << c;
return 0;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 330,150 | 330,151 | u878114269 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
string s, t;
int a;
int main() {
cin >> s >> t;
for (int q = 0; a < t.size(); a++)
if (s[q] != t[q])
a++;
cout << a;
} | #include <bits/stdc++.h>
using namespace std;
string s, t;
int a;
int main() {
cin >> s >> t;
for (int q = 0; q < t.size(); q++)
if (s[q] != t[q])
a++;
cout << a;
} | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 330,185 | 330,186 | u938253521 | cpp |
p02622 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string a, b;
cin >> a >> b;
int k = 0;
for (int i = 0; i < a.size(); i++) {
if (a[i] == b[i]) {
k++;
}
}
cout << k;
return 0;
}
| #include <iostream>
#include <string>
using namespace std;
int main(void) {
string a, b;
cin >> a >> b;
int k = 0;
for (int i = 0; i < a.size(); i++) {
if (a[i] == b[i]) {
k++;
}
}
cout << a.size() - k;
return 0;
}
| [
"expression.operation.binary.add"
] | 330,218 | 330,219 | u048840514 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
int N;
int C = 0;
cin >> S >> T;
N = S.size();
for (int i = 0; i < N; i++) {
if (S.at(i) == T.at(i)) {
C++;
}
}
cout << C << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
int N;
int C = 0;
cin >> S >> T;
N = S.size();
for (int i = 0; i < N; i++) {
if (S.at(i) != T.at(i)) {
C++;
}
}
cout << C << endl;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 330,245 | 330,246 | u714624983 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
ll GetDigit(ll num) { return log10(num) + 1; } // numの桁数を求める
int main() {
string s, t;
cin >> s >> t;
int size = s.length();
int ans;
rep(i, size) {
if (s[i] != t[i])
ans++;
}
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
ll GetDigit(ll num) { return log10(num) + 1; } // numの桁数を求める
int main() {
string s, t;
cin >> s >> t;
int size = s.length();
int ans = 0;
rep(i, size) {
if (s[i] != t[i])
ans++;
... | [
"variable_declaration.value.change"
] | 330,273 | 330,274 | u848148267 | cpp |
p02622 | #include <iostream>
using namespace std;
int main() {
string s1, s2;
cin >> s1 >> s2;
int ans = 0;
int n = s1.length();
for (int i = 0; i < n; i++) {
if (s1[i] == s2[i])
ans++;
}
cout << ans + 1 << endl;
} | #include <iostream>
using namespace std;
int main() {
string s1, s2;
cin >> s1 >> s2;
int ans = 0;
int n = s1.length();
for (int i = 0; i < n; i++) {
if (s1[i] != s2[i])
ans++;
}
cout << ans << endl;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove"
] | 330,283 | 330,284 | u428322930 | cpp |
p02622 | #include <iostream>
using namespace std;
int main() {
string s1, s2;
cin >> s1 >> s2;
int ans = 0;
int n = s1.length();
for (int i = 0; i < n; i++) {
if (s1[i] == s2[i])
ans++;
}
cout << ans << endl;
} | #include <iostream>
using namespace std;
int main() {
string s1, s2;
cin >> s1 >> s2;
int ans = 0;
int n = s1.length();
for (int i = 0; i < n; i++) {
if (s1[i] != s2[i])
ans++;
}
cout << ans << endl;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 330,285 | 330,284 | u428322930 | cpp |
p02622 | #include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
#include <vector>
#define clr(a, b) memset(a, b, sizeof(a))
#define inf 0x3f3f3f3f
using namespace std;
typedef long long ll;
string s, t;
int main() {
// freopen("test.in", "r", stdin... | #include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
#include <vector>
#define clr(a, b) memset(a, b, sizeof(a))
#define inf 0x3f3f3f3f
using namespace std;
typedef long long ll;
string s, t;
int main() {
// freopen("test.in", "r", stdin... | [
"identifier.change",
"io.output.change"
] | 330,305 | 330,306 | u871890105 | cpp |
p02622 | #include <bits/stdc++.h>
#define debug(x) \
cout << "DEBUG" \
<< " " << #x << ":" << x << '\n'
#define rep(i, n) \
for (int_... | #include <bits/stdc++.h>
#define debug(x) \
cout << "DEBUG" \
<< " " << #x << ":" << x << '\n'
#define rep(i, n) \
for (int_... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 330,325 | 330,326 | u457985479 | cpp |
p02622 | #include <iostream>
#include <string>
using namespace std;
int main() {
string a, b;
int n = 0;
cin >> a;
cin >> b;
for (int i = 0; i < n; ++i) {
if (a[i] != b[i]) {
n++;
}
}
cout << n;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string a, b;
int n = 0;
cin >> a;
cin >> b;
for (int i = 0; i < a.size(); ++i) {
if (a[i] != b[i]) {
n++;
}
}
cout << n;
}
| [
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"call.add"
] | 330,329 | 330,330 | u433837501 | cpp |
p02622 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main(void) {
string a, b;
cin >> a >> b;
int c;
for (int i = 0; i < a.length(); i++) {
if (a[i] != b[i])
c++;
}
cout << c;
return 0;
}
| #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main(void) {
string a, b;
cin >> a >> b;
int c = 0;
for (int i = 0; i < a.length(); i++) {
if (a[i] != b[i])
c++;
}
cout << c;
return 0;
}
| [
"variable_declaration.value.change"
] | 330,339 | 330,340 | u043964516 | cpp |
p02622 | #include <iostream>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int i, a;
for (i = 0; i < s.size(); i++) {
if (s[i] != t[i]) {
a++;
}
}
cout << a << endl;
} | #include <iostream>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int i, a = 0;
for (i = 0; i < s.size(); i++) {
if (s[i] != t[i]) {
a++;
}
}
cout << a << endl;
} | [
"variable_declaration.value.change"
] | 330,341 | 330,342 | u344028423 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int result = 0;
for (int i = 0; i < S.length(); i++) {
if (S[i] == T[i]) {
result++;
}
}
cout << result << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int result = 0;
for (int i = 0; i < S.length(); i++) {
if (S[i] != T[i]) {
result++;
}
}
cout << result << endl;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 330,343 | 330,344 | u584185861 | cpp |
p02622 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespac... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespac... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 330,360 | 330,361 | u314008046 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
typedef long long ll;
#define _GLIBCXX_DEBUG
typedef vector<int> vec;
typedef vector<ll> lvec;
typedef vector<char> cvec;
typedef vector<double> dvec;... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
typedef long long ll;
#define _GLIBCXX_DEBUG
typedef vector<int> vec;
typedef vector<ll> lvec;
typedef vector<char> cvec;
typedef vector<double> dvec;... | [
"control_flow.branch.if.condition.change"
] | 330,369 | 330,370 | u981759938 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
using UL = unsigned int;
using ULL = unsigned long long;
using LL = long long;
#define rep(i, n) for (UL i = 0; i < (n); i++)
int main() {
string S, T;
cin >> S >> T;
UL ans = 0;
rep(i, S.size()) if (S[i] == T[i]) ans++;
cout << ans << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
using UL = unsigned int;
using ULL = unsigned long long;
using LL = long long;
#define rep(i, n) for (UL i = 0; i < (n); i++)
int main() {
string S, T;
cin >> S >> T;
UL ans = 0;
rep(i, S.size()) if (S[i] != T[i]) ans++;
cout << ans << endl;
return 0;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 330,375 | 330,376 | u331948661 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int count = 0;
for (int i = 0; i < (int)S.size(); i++) {
if (S[i] == T[i])
count++;
}
printf("%d\n", count);
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int count = 0;
for (int i = 0; i < (int)S.size(); i++) {
if (S[i] != T[i])
count++;
}
printf("%d\n", count);
return 0;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 330,394 | 330,395 | u590293411 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b;
cin >> a >> b;
int c;
for (int i = 0; i < a.length(); i++) {
if (a[i] != b[i])
c++;
}
cout << c << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b;
cin >> a >> b;
int c = 0;
for (int i = 0; i < a.length(); i++) {
if (a[i] != b[i])
c++;
}
cout << c << endl;
return 0;
} | [
"variable_declaration.value.change"
] | 330,405 | 330,406 | u683042356 | cpp |
p02622 | #include <algorithm>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long unsigned int ... | #include <algorithm>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long unsigned int ... | [
"variable_declaration.value.change",
"call.function.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 330,412 | 330,413 | u232711814 | cpp |
p02622 | #pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
ll ans = 0;
string str1, str2;
cin >> str1 >> str2;
for (ll i = 0; i < str1.length(); i++) {
... | #pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
ll ans = 0;
string str1, str2;
cin >> str1 >> str2;
for (ll i = 0; i < str1.length(); i++) {
... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 330,418 | 330,419 | u656753546 | cpp |
p02622 | #include <bits/stdc++.h>
#define DEBUG
using namespace std;
template <class T> void print_vect(std::vector<T> v) {
for (int i = 0; i < v.size(); i++)
cout << v[i] << " ";
cout << endl;
}
void solve() {
std::string S, T;
cin >> S >> T;
uint32_t count = 0;
for (uint32_t i = 0; i < S.size(); i++) {
... | #include <bits/stdc++.h>
//#define DEBUG
using namespace std;
template <class T> void print_vect(std::vector<T> v) {
for (int i = 0; i < v.size(); i++)
cout << v[i] << " ";
cout << endl;
}
void solve() {
std::string S, T;
cin >> S >> T;
uint32_t count = 0;
for (uint32_t i = 0; i < S.size(); i++) {
... | [] | 330,434 | 330,435 | u161190523 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int len = s.size(), ctr = 0;
for (int i = 0; i < len; i++) {
if (s.at(i) == t.at(i)) {
ctr++;
}
}
cout << ctr;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int len = s.size(), ctr = 0;
for (int i = 0; i < len; i++) {
if (s.at(i) != t.at(i)) {
ctr++;
}
}
cout << ctr;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 330,441 | 330,442 | u016534287 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
#define all(v) v.begin(), v.end()
typedef long long ll;
typedef pair<int, int> P;
typedef pair<long long, long long> Pll;
typedef vector<int> vi;
typedef vector<v... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
#define all(v) v.begin(), v.end()
typedef long long ll;
typedef pair<int, int> P;
typedef pair<long long, long long> Pll;
typedef vector<int> vi;
typedef vector<v... | [
"variable_declaration.value.change"
] | 330,454 | 330,455 | u025501820 | cpp |
p02622 | #include <iostream>
using namespace std;
int main() {
string s, t;
int diff;
cin >> s >> t;
for (int i = 0; i < s.length(); i++) {
diff += s[i] != t[i];
}
cout << diff;
} | #include <iostream>
using namespace std;
int main() {
string s, t;
int diff = 0;
cin >> s >> t;
for (int i = 0; i < s.length(); i++) {
diff += s[i] != t[i];
}
cout << diff;
}
| [
"variable_declaration.value.change"
] | 330,470 | 330,471 | u630255265 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
void solve() {
string s, t;
cin >> s >> t;
int ans = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] != t[i])
ans++;
}
cout << ans;
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
long long t = 1;
cin >> t;
whil... | #include <bits/stdc++.h>
using namespace std;
void solve() {
string s, t;
cin >> s >> t;
int ans = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] != t[i])
ans++;
}
cout << ans;
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
long long t = 1;
// cin>>t;
whi... | [] | 330,472 | 330,473 | u405154751 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
string t;
int count;
cin >> s >> t;
int size = s.size();
for (int i = 0; i < size; i++) {
if (s.at(i) != t.at(i)) {
count += 1;
}
}
cout << count << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
string t;
int count = 0;
cin >> s >> t;
int size = s.size();
for (int i = 0; i < size; i++) {
if (s.at(i) != t.at(i)) {
count += 1;
}
}
cout << count << endl;
} | [
"variable_declaration.value.change"
] | 330,485 | 330,486 | u887962467 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define mp make_pair
#define pb push_back
#define pii pair<int, int>
#define vi vector<int>
// #define vb vector<bool>
// #define vc vector<char>
#define vii vector<pii>
//#define mi map<int,int>
//#define mii map<pii... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define mp make_pair
#define pb push_back
#define pii pair<int, int>
#define vi vector<int>
// #define vb vector<bool>
// #define vc vector<char>
#define vii vector<pii>
//#define mi map<int,int>
//#define mii map<pii... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 330,510 | 330,511 | u576641570 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int cnt;
for (int i = 0; i < (int)S.size(); ++i)
if (S[i] != T[i])
++cnt;
cout << cnt << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int cnt = 0;
for (int i = 0; i < (int)S.size(); ++i)
if (S[i] != T[i])
++cnt;
cout << cnt << endl;
} | [
"variable_declaration.value.change"
] | 330,512 | 330,513 | u767358239 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define N 1000005
typedef long long int ll;
// int n,m;
// vector<int> adj[mx];
//---dfs--
// bool visited[mx];
// vector<int> val(n,0);
// void dfs(int s, int & cnt_vert, int & cnt_edge){
// assert(!visited[s]);
// visited[s]=true;
// ++cnt_vert... | #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define N 1000005
typedef long long int ll;
// int n,m;
// vector<int> adj[mx];
//---dfs--
// bool visited[mx];
// vector<int> val(n,0);
// void dfs(int s, int & cnt_vert, int & cnt_edge){
// assert(!visited[s]);
// visited[s]=true;
// ++cnt_vert... | [] | 330,522 | 330,523 | u771590706 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b;
cin >> a >> b;
int n = a.length();
int ans = 0;
for (int i = 0; i < n; ++i)
ans += (a[i] == b[i]);
cout << ans;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b;
cin >> a >> b;
int n = a.length();
int ans = 0;
for (int i = 0; i < n; ++i)
ans += (a[i] != b[i]);
cout << ans;
return 0;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 330,558 | 330,559 | u970315942 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = 0;
for (int i = 0; i < s.length(); i++) {
if (s[i] == t[i]) {
ans++;
}
}
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = 0;
for (int i = 0; i < s.length(); i++) {
if (s[i] != t[i]) {
ans++;
}
}
cout << ans << endl;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 330,563 | 330,564 | u086313715 | cpp |
p02622 | #include <bits/stdc++.h>
#include <cstring>
using namespace std;
int main() {
char s[200002], t[200002];
int count;
cin >> s >> t;
for (int i = 0; i < strlen(s); i++) {
if (s[i] != t[i]) {
count++;
}
}
cout << count << endl;
}
| #include <bits/stdc++.h>
#include <cstring>
using namespace std;
int main() {
char s[200002], t[200002];
int count = 0;
cin >> s >> t;
for (int i = 0; i < strlen(s); i++) {
if (s[i] != t[i]) {
count++;
}
}
cout << count << endl;
}
| [
"variable_declaration.value.change"
] | 330,576 | 330,577 | u883009720 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
string s, t;
int main() {
ios_base::sync_with_stdio(false);
cin >> s, t;
int c = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] != t[i])
c++;
}
cout << c;
} | #include <bits/stdc++.h>
using namespace std;
string s, t;
int main() {
ios_base::sync_with_stdio(false);
cin >> s >> t;
int c = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] != t[i]) {
c++;
}
}
cout << c;
} | [] | 330,581 | 330,582 | u281053019 | cpp |
p02622 | #include <iostream>
#include <string>
using namespace std;
int main() {
string S, T;
int i;
cin >> S >> T;
int N = S.size(), count = 0;
for (i = 0; i < N; i++) {
if (S[i] != T[i])
count;
}
cout << count << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string S, T;
int i;
cin >> S >> T;
int N = S.size(), count = 0;
for (i = 0; i < N; i++) {
if (S[i] != T[i])
count++;
}
cout << count << endl;
return 0;
} | [] | 330,583 | 330,584 | u227978210 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b;
getline(cin, a);
cin >> b;
int c;
for (int i = 0; i < a.length(); i++) {
if (a[i] != b[i])
c++;
}
cout << c;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b;
getline(cin, a);
cin >> b;
int c = 0;
for (int i = 0; i < a.length(); i++) {
if (a[i] != b[i])
c++;
}
cout << c;
return 0;
}
| [
"variable_declaration.value.change"
] | 330,592 | 330,593 | u997124935 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
typedef long long ll;
int main() {
string S, T;
cin >> S, T;
ll ans = 0;
for (ll i = 0; i < S.size(); ++i) {
if (S[i] != T[i]) {
++ans;
}
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
typedef long long ll;
int main() {
string S, T;
cin >> S >> T;
ll ans = 0;
for (ll i = 0; i < S.size(); ++i) {
if (S[i] != T[i]) {
++ans;
}
}
cout << ans << endl;
}
| [] | 330,601 | 330,602 | u653388379 | cpp |
p02622 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main(void) {
string s;
string t;
cin >> s;
cin >> t;
int ans = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] = t[i])
ans++;
}
cout << ans << endl;
}
| #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main(void) {
string s;
string t;
cin >> s;
cin >> t;
int ans = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] != t[i])
ans++;
}
cout << ans << endl;
}
| [
"control_flow.branch.if.condition.change"
] | 330,603 | 330,604 | u359856428 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
#define SORT(c) sort((c).begin(), (c).end());
#define pb push_back
#define MP make_pair
#define pii pair<int, int>
#define pcc pair<char, char>
#define pic pair<int, char>
#define pci pair<char, int>
#define VS vector<string>
#define VI vector<int>
#define pi 3.141592653589... | #include <bits/stdc++.h>
using namespace std;
#define SORT(c) sort((c).begin(), (c).end());
#define pb push_back
#define MP make_pair
#define pii pair<int, int>
#define pcc pair<char, char>
#define pic pair<int, char>
#define pci pair<char, int>
#define VS vector<string>
#define VI vector<int>
#define pi 3.141592653589... | [
"identifier.change",
"expression.operation.binary.change"
] | 330,607 | 330,608 | u851588947 | cpp |
p02622 | #include <algorithm>
#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
string s, t;
int main() {
cin >> s >> t;
int cnt = 1;
for (int i = 0; i < s.length() - 1; i++) {
if (s[i] != t[i])
cnt++;
}
cout << cnt << endl;
return 0;
} | #include <algorithm>
#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
string s, t;
int main() {
cin >> s >> t;
int cnt = 0;
for (int i = 0; i <= s.length() - 1; i++) {
if (s[i] != t[i])
cnt++;
}
cout << cnt << endl;
return 0;
} | [
"literal.number.change",
"variable_declaration.value.change",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 330,620 | 330,621 | u885133973 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
signed main(void) {
string s, t;
int ans = 0;
cin >> s >> t;
for (int i = 0; i < s.size(); i++)
if (s[i] != t[i])
ans++;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
signed main(void) {
string s, t;
int ans = 0;
cin >> s >> t;
for (int i = 0; i < s.size(); i++)
if (s[i] != t[i])
ans++;
cout << ans;
return 0;
} | [] | 330,636 | 330,637 | u123016906 | cpp |
p02622 | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (int)(n); i++)
#define int long long
#define ll long long
using namespace std;
signed main() {
string s, t;
cin >> s >> t;
int ans;
rep(i, s.size()) {
if (s.at(i) != t.at(i)) {
ans++;
}
}
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (int)(n); i++)
#define int long long
#define ll long long
using namespace std;
signed main() {
string s, t;
cin >> s >> t;
int ans = 0;
rep(i, s.size()) {
if (s.at(i) != t.at(i)) {
ans++;
}
}
cout << ans << endl;
return 0;
} | [
"variable_declaration.value.change"
] | 330,652 | 330,653 | u086930089 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s;
cin >> t;
int c;
int m = t.length();
for (int i = 0; i < m; i++) {
if (s[i] != t[i])
c++;
}
cout << c;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s;
cin >> t;
int c = 0;
int m = t.length();
for (int i = 0; i < m; i++) {
if (s[i] != t[i])
c++;
}
cout << c;
return 0;
} | [
"variable_declaration.value.change"
] | 330,683 | 330,684 | u604419417 | cpp |
p02622 | const int isDebugMode = 1;
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<long long, long long> P;
struct edge {
long long to, cost;
};
const int inf = 1 << 27;
const long long INF = 1LL << 60;
const int COMBMAX = 1001001;
const long long MOD = 1000000007;
const long long dy[] = {-1,... | const int isDebugMode = 1;
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<long long, long long> P;
struct edge {
long long to, cost;
};
const int inf = 1 << 27;
const long long INF = 1LL << 60;
const int COMBMAX = 1001001;
const long long MOD = 1000000007;
const long long dy[] = {-1,... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 330,685 | 330,686 | u926099741 | cpp |
p02622 |
#include <bits/stdc++.h>
//#include<pair>
using namespace std;
typedef long long ll;
typedef int ii;
typedef vector<int> vi;
#define T while (t--)
#define for2(i, a, b) for (i = a; i >= b; i--)
#define for1(i, a, b) for (i = a; i < b; i++)
#define pb push_back
//#define mp make_pair
ii main() {
string s, t;
ci... | #include <bits/stdc++.h>
//#include<pair>
using namespace std;
typedef long long ll;
typedef int ii;
typedef vector<int> vi;
#define T while (t--)
#define for2(i, a, b) for (i = a; i >= b; i--)
#define for1(i, a, b) for (i = a; i < b; i++)
#define pb push_back
//#define mp make_pair
ii main() {
string s, t;
cin... | [] | 330,694 | 330,695 | u013945195 | cpp |
p02622 | #include <iostream>
using namespace std;
int main() {
int result = 0;
string S;
string T;
cin >> S >> T;
for (int i = 0; i < sizeof(S); i++) {
if (S[i] != T[i]) {
result++;
}
}
cout << result;
} | #include <iostream>
using namespace std;
int main() {
int result = 0;
string S;
string T;
cin >> S >> T;
for (unsigned int i = 0; i < S.size(); i++) {
if (S[i] != T[i]) {
result++;
}
}
cout << result;
} | [
"variable_declaration.type.widen.change",
"control_flow.loop.for.condition.change",
"call.add"
] | 330,734 | 330,735 | u330104783 | cpp |
p02622 | #include <iostream>
using namespace std;
int main() {
string a, b;
cin >> a >> b;
int c;
for (int i = 0; i < a.size(); i++) {
if (a[i] != b[i]) {
c++;
}
}
cout << c << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
string a, b;
cin >> a >> b;
int c = 0;
for (int i = 0; i < a.size(); i++) {
if (a[i] != b[i]) {
c++;
}
}
cout << c << endl;
return 0;
}
| [
"variable_declaration.value.change"
] | 330,742 | 330,743 | u258545123 | cpp |
p02622 | #include <iostream>
#include <string>
using namespace std;
int main() {
int x;
int n = 0;
string s;
string t;
cin >> s;
cin >> t;
x = s.length();
for (int i = 1; i <= x; i++) {
if (s[i] != t[i]) {
n += 1;
}
}
cout << n << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int x;
int n = 0;
string s;
string t;
cin >> s;
cin >> t;
x = s.length();
for (int i = 0; i < x; i++) {
if (s[i] != t[i]) {
n += 1;
}
}
cout << n << endl;
return 0;
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 330,750 | 330,751 | u251199151 | cpp |
p02622 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s, t;
int num = 0;
cin >> s, t;
for (int i = 0; i < (int)s.size(); ++i) {
if (s[i] != t[i]) {
num++;
}
}
cout << num;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string s, t;
int num = 0;
cin >> s >> t;
for (int i = 0; i < (int)s.size(); ++i) {
if (s[i] != t[i]) {
num++;
}
}
cout << num;
} | [] | 330,780 | 330,781 | u050533697 | cpp |
p02622 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string S, T;
cin >> S >> T;
int len = S.size(), counter = 0;
for (int i = 0; i < len; i++) {
if (S[i] == T[i])
counter++;
}
cout << counter << endl;
}
| #include <iostream>
#include <string>
using namespace std;
int main(void) {
string S, T;
cin >> S >> T;
int len = S.size(), counter = 0;
for (int i = 0; i < len; i++) {
if (S[i] != T[i])
counter++;
}
cout << counter << endl;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 330,791 | 330,792 | u663052581 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
int i, j, l;
cin >> S >> T;
l = S.size();
for (i = 0; i < l; i++) {
if (S[i] != T[i]) {
j++;
}
}
cout << j << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
long i, j = 0, l;
cin >> S >> T;
l = S.size();
for (i = 0; i < l; i++) {
if (S[i] != T[i]) {
j++;
}
}
cout << j << endl;
} | [
"variable_declaration.type.primitive.change",
"variable_declaration.value.change"
] | 330,793 | 330,794 | u403452698 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
string T;
cin >> S;
cin >> T;
int counter = 0;
for (int i = 1; i < S.size(); i++) {
if (S.at(i) != T.at(i)) {
++counter;
}
}
cout << counter << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
string T;
cin >> S;
cin >> T;
int counter = 0;
for (int i = 0; i < S.size(); i++) {
if (S.at(i) != T.at(i)) {
++counter;
}
}
cout << counter << endl;
}
| [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 330,821 | 330,822 | u762150881 | cpp |
p02622 | #include <iostream>
#include <string>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int n = (int)S.size();
int ans = 0;
for (int i = 0; i < n; i++) {
if (S[i] == T[i])
ans++;
}
cout << ans << endl;
}
| #include <iostream>
#include <string>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int n = (int)S.size();
int ans = 0;
for (int i = 0; i < n; i++) {
if (S[i] != T[i])
ans++;
}
cout << ans << endl;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 330,830 | 330,831 | u058186113 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int len = s.length();
int cnt = 0;
for (int i = 0; i < len; i++) {
if (s[i] == t[i])
cnt++;
}
cout << cnt;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int len = s.length();
int cnt = 0;
for (int i = 0; i < len; i++) {
if (s[i] != t[i])
cnt++;
}
cout << cnt;
return 0;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 330,852 | 330,853 | u748944064 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int a = 0;
for (int i = 0; i < S.size(); i++) {
if (S.at(i) == T.at(i)) {
a++;
} else {
continue;
}
}
cout << a << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int a = 0;
for (int i = 0; i < S.size(); i++) {
if (S.at(i) != T.at(i)) {
a++;
} else {
continue;
}
}
cout << a << endl;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 330,854 | 330,855 | u692965534 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string firstStr, secondStr;
cin >> firstStr >> secondStr;
int ans;
for (int i = 0; i < firstStr.size(); i++) {
if (firstStr.at(i) != secondStr.at(i)) {
ans++;
}
}
cout << ans << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string firstStr, secondStr;
cin >> firstStr >> secondStr;
int ans = 0;
for (int i = 0; i < firstStr.size(); i++) {
if (firstStr.at(i) != secondStr.at(i)) {
ans++;
}
}
cout << ans << endl;
return 0;
}
| [
"variable_declaration.value.change"
] | 330,858 | 330,859 | u157933935 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
string T;
cin >> S;
cin >> T;
int ans = 0;
for (int i = 1; i < S.length(); i++) {
char s = S[i - 1];
char t = T[i - 1];
if (s == t)
;
else
ans++;
}
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
string T;
cin >> S;
cin >> T;
int ans = 0;
for (int i = 1; i < (S.length() + 1); i++) {
char s = S[i - 1];
char t = T[i - 1];
if (s == t)
;
else
ans++;
}
cout << ans << endl;
} | [
"control_flow.loop.for.condition.change"
] | 330,884 | 330,885 | u074640452 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
string S, T;
cin >> S >> T;
int N = S.size();
int sum = 0;
if (S == T) {
cout << 0 << endl;
} else {
for (int i = 0; i < N; i++) {
if (S.at(i) != T.at(i)) {
sum++;
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
string S, T;
cin >> S >> T;
int N = S.size();
int sum = 0;
if (S == T) {
cout << 0 << endl;
} else {
for (int i = 0; i < N; i++) {
if (S.at(i) != T.at(i)) {
sum++;
... | [] | 330,888 | 330,889 | u044562021 | cpp |
p02622 | #include <bits/stdc++.h>
#define PI 3.141592653589793
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(i, n) for (int i = 0; (int)(n) < i; i--)
#define Int long long
using namespace std;
int main(void) {
string a, b;
int c;
cin >> a;
cin >> b;
for (int i = 0; i < a.size(); i++) {
for (i... | #include <bits/stdc++.h>
#define PI 3.141592653589793
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(i, n) for (int i = 0; (int)(n) < i; i--)
#define Int long long
using namespace std;
int main(void) {
string a, b;
int c = 0;
cin >> a;
cin >> b;
for (int i = 0; i < a.size(); i++) {
fo... | [
"variable_declaration.value.change"
] | 330,916 | 330,917 | u053797146 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
string s, t;
cin >> s >> t;
int cnt = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] != t[i])
cnt++;
cout << cnt << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
string s, t;
cin >> s >> t;
int cnt = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] != t[i])
cnt++;
}
cout << cnt << endl;
} | [] | 330,924 | 330,925 | u241312295 | cpp |
p02622 | #include "bits/stdc++.h"
#include <algorithm>
#include <math.h>
#include <vector>
using namespace std;
int64_t i, j, k; // preparation for
int main() {
string s, t;
int64_t p;
p = 0;
cin >> s >> t;
for (i = 0; i < s.length(); i++) {
if (s[i] == t[i]) {
p += 1;
}
}
cout << p;
return 0;
} | #include "bits/stdc++.h"
#include <algorithm>
#include <math.h>
#include <vector>
using namespace std;
int64_t i, j, k; // preparation for
int main() {
string s, t;
int64_t p;
p = 0;
cin >> s >> t;
for (i = 0; i < s.length(); i++) {
if (s[i] != t[i]) {
p += 1;
}
}
cout << p;
return 0;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 330,940 | 330,941 | u710713865 | cpp |
p02622 | #include "bits/stdc++.h"
#include <algorithm>
#include <math.h>
#include <vector>
using namespace std;
int64_t i, j, k; // preparation for
int main() {
string s, t;
int p;
p = 0;
cin >> s >> t;
for (i = 0; i < s.length(); i++) {
if (s[i] == t[i]) {
p += 1;
}
}
cout << p;
return 0;
} | #include "bits/stdc++.h"
#include <algorithm>
#include <math.h>
#include <vector>
using namespace std;
int64_t i, j, k; // preparation for
int main() {
string s, t;
int64_t p;
p = 0;
cin >> s >> t;
for (i = 0; i < s.length(); i++) {
if (s[i] != t[i]) {
p += 1;
}
}
cout << p;
return 0;
} | [
"variable_declaration.type.primitive.change",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 330,942 | 330,941 | u710713865 | cpp |
p02622 | #include <iostream>
using namespace std;
int main() {
string S, T;
int count = 0;
cin >> S >> T;
for (int i = 0; i < S.size() - 1; i++) {
if (S.at(i) != T.at(i)) {
count++;
}
}
cout << count << endl;
} | #include <iostream>
using namespace std;
int main() {
string S, T;
int count = 0;
cin >> S >> T;
for (int i = 0; i < S.size(); i++) {
if (S.at(i) != T.at(i)) {
count++;
}
}
cout << count << endl;
} | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 330,943 | 330,944 | u199648123 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
int n, ans;
cin >> S >> T;
n = S.size();
vector<int> vec(n);
for (int i = 0; i < n; i++) {
if (S.at(i) == T.at(i)) {
vec.at(i) = 1;
} else {
vec.at(i) = 0;
}
}
ans = 0;
for (int j = 0; j < n; j++) {
an... | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
int n, ans;
cin >> S >> T;
n = S.size();
vector<int> vec(n);
for (int i = 0; i < n; i++) {
if (S.at(i) == T.at(i)) {
vec.at(i) = 1;
} else {
vec.at(i) = 0;
}
}
ans = 0;
for (int j = 0; j < n; j++) {
an... | [
"expression.operation.binary.add"
] | 330,954 | 330,955 | u158677249 | cpp |
p02622 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string input_1, input_2;
long long counts = 0;
cin >> input_1 >> input_2;
for (int i = 0; i < input_1.length(); i++) {
if (input_1 != input_2) {
counts++;
}
}
cout << counts << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string input_1, input_2;
long long counts = 0;
cin >> input_1 >> input_2;
for (int i = 0; i < input_1.length(); i++) {
if (input_1[i] != input_2[i]) {
counts++;
}
}
cout << counts << endl;
return 0;
} | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 330,960 | 330,961 | u851403890 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int N, aaa;
N = S.size();
for (int i = 0; i < N; i++) {
if (!(S.at(i) == T.at(i))) {
aaa++;
}
}
cout << aaa << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int N, aaa = 0;
N = S.size();
for (int i = 0; i < N; i++) {
if (!(S.at(i) == T.at(i))) {
aaa++;
}
}
cout << aaa << endl;
}
| [
"variable_declaration.value.change"
] | 330,964 | 330,965 | u765253118 | cpp |
p02622 | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define OUT(s) cout << s << "\n";
#define length(a) sizeof(a) / sizeof(a[0]);
using namespace std;
// https://atcoder.jp/contests/abc172
string S, T;
... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define OUT(s) cout << s << "\n";
#define length(a) sizeof(a) / sizeof(a[0]);
using namespace std;
// https://atcoder.jp/contests/abc172
string S, T;
... | [
"variable_declaration.value.change"
] | 330,968 | 330,969 | u819832378 | cpp |
p02622 | #include <bits/stdc++.h>
#define fast \
ios::sync_with_stdio(0); \
cin.tie(0);
#define endl '\n'
#define MOD 1000000007
#define pb push_back
#define ll long long int
using namespace std;
int main(... | #include <bits/stdc++.h>
#define fast \
ios::sync_with_stdio(0); \
cin.tie(0);
#define endl '\n'
#define MOD 1000000007
#define pb push_back
#define ll long long int
using namespace std;
int main(... | [
"variable_declaration.value.change"
] | 330,977 | 330,978 | u484806214 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b;
int n = 0;
cin >> a >> b;
for (int i = 0; i < a.size(); i++) {
if (a != b)
n++;
}
cout << n;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b;
int n = 0;
cin >> a >> b;
for (int i = 0; i < a.size(); i++) {
if (a[i] != b[i])
n++;
}
cout << n;
} | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 330,984 | 330,985 | u254659529 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
string S, T;
int A = 0;
cin >> S >> T;
rep(i, S.size()) {
if (S.at(i) == T.at(i)) {
A++;
}
}
cout << A << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
string S, T;
int A = 0;
cin >> S >> T;
rep(i, S.size()) {
if (S.at(i) == T.at(i)) {
A++;
}
}
cout << S.size() - A << endl;
}
| [
"expression.operation.binary.add"
] | 330,993 | 330,994 | u359767101 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
using ui = unsigned int;
using ll = long long;
using ull = unsigned long long;
using str = string;
using bl = bool;
using ch = char;
template <class T> using v = vector<T>;
template <class T> using uset = unordered_set<T>;
template <class T1, class T2> using umap = unorde... | #include <bits/stdc++.h>
using namespace std;
using ui = unsigned int;
using ll = long long;
using ull = unsigned long long;
using str = string;
using bl = bool;
using ch = char;
template <class T> using v = vector<T>;
template <class T> using uset = unordered_set<T>;
template <class T1, class T2> using umap = unorde... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 330,997 | 330,998 | u647474992 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int p = 0;
for (int i = 0; i < s.size(); i++)
if (s[i] == t[i])
p++;
cout << p << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int p = 0;
for (int i = 0; i < s.size(); i++)
if (s[i] != t[i])
p++;
cout << p << endl;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 331,001 | 331,002 | u934015186 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
string t;
cin >> s;
cin >> t;
int sz;
sz = s.size();
int cnt;
for (int i = 0; i < sz; i++) {
if (s[i] != t[i]) {
cnt++;
}
}
cout << cnt << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
string t;
cin >> s;
cin >> t;
int sz;
sz = s.size();
int cnt = 0;
for (int i = 0; i < sz; i++) {
if (s[i] != t[i]) {
cnt++;
}
}
cout << cnt << endl;
}
| [
"variable_declaration.value.change"
] | 331,003 | 331,004 | u697641414 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
int cnt = 0;
cin >> s;
cin >> t;
for (int i = 1; i < s.size(); i++) {
if (s[i] != t[i]) {
cnt++;
}
}
cout << cnt;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
int cnt = 0;
cin >> s;
cin >> t;
for (int i = 0; i < s.size(); i++) {
if (s[i] != t[i]) {
cnt++;
}
}
cout << cnt;
}
| [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 331,011 | 331,012 | u094402779 | cpp |
p02622 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int ans;
string s, t;
cin >> s >> t;
int x = s.size();
for (int i = 0; i < x; i++) {
if (s.at(i) == t.at(i)) {
ans++;
}
}
cout << ans << endl;
} | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int ans = 0;
string s, t;
cin >> s >> t;
int x = s.size();
for (int i = 0; i < x; i++) {
if (s.at(i) != t.at(i)) {
ans++;
}
}
cout << ans << endl;
} | [
"variable_declaration.value.change",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 331,020 | 331,021 | u108375911 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b;
cin >> a >> b;
int kaunto = 0;
for (int i = 0; i < a.size(); i++) {
if (a.at(i) == b.at(i)) {
kaunto += 1;
}
}
cout << kaunto << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b;
cin >> a >> b;
int kaunto = 0;
for (int i = 0; i < a.size(); i++) {
if (a.at(i) != b.at(i)) {
kaunto += 1;
}
}
cout << kaunto << endl;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 331,026 | 331,027 | u926006934 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
int count;
cin >> S >> T;
int size = S.size();
int i;
for (i = 0; i < size; i++) {
if (S.at(i) != T.at(i)) {
count++;
}
}
cout << count << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
int count = 0;
cin >> S >> T;
int size = S.size();
int i;
for (i = 0; i < size; i++) {
if (S.at(i) != T.at(i)) {
count++;
}
}
cout << count << endl;
} | [
"variable_declaration.value.change"
] | 331,032 | 331,033 | u594983000 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
string s, t;
cin >> s >> t;
int count;
for (int i = 0; i < s.size(); i++) {
if (s.at(i) != t.at(i))
count++;
}
cout << count << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
string s, t;
cin >> s >> t;
int count = 0;
for (int i = 0; i < s.size(); i++) {
if (s.at(i) != t.at(i))
count++;
}
cout << count << endl;
}
| [
"variable_declaration.value.change"
] | 331,034 | 331,035 | u040581895 | cpp |
p02622 | //
// Created by admin on 2020/6/27.
//
#include <bits/stdc++.h>
using namespace std;
string s, t;
int main() {
cin >> s >> t;
long long ans;
for (int i = 0; i < s.size(); i++)
if (s[i] != t[i])
ans++;
cout << ans << endl;
}
| //
// Created by admin on 2020/6/27.
//
#include <bits/stdc++.h>
using namespace std;
string s, t;
int main() {
cin >> s >> t;
int ans = 0;
for (int i = 0; i < s.size(); i++)
if (s[i] != t[i])
ans++;
cout << ans << endl;
}
| [
"variable_declaration.type.primitive.change",
"variable_declaration.type.narrow.change",
"variable_declaration.value.change"
] | 331,039 | 331,040 | u481232190 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <math.h>
#include <numeric>
#include <sstream>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i... | #include <bits/stdc++.h>
using namespace std;
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <math.h>
#include <numeric>
#include <sstream>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i... | [
"call.function.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change"
] | 331,043 | 331,044 | u825601908 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
const int MAX = 2147483647;
const double PI = 3.14159265358979323846;
int main() {
int cnt;
string s, t;
cin >> s >> t;
for (int i = 0; i < s.size(); i++) {
if (s[i] != t[i])
cnt++;
}
cout << cnt << endl;
}
| #include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
const int MAX = 2147483647;
const double PI = 3.14159265358979323846;
int main() {
int cnt = 0;
string s, t;
cin >> s >> t;
for (int i = 0; i < s.size(); i++) {
if (s[i] != t[i])
cnt++;
}
cout << cnt << endl;
}
| [
"variable_declaration.value.change"
] | 331,045 | 331,046 | u742645282 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] == t[i]) {
ans++;
}
}
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] != t[i]) {
ans++;
}
}
cout << ans << endl;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 331,047 | 331,048 | u488207046 | cpp |
p02622 |
#include "bits/stdc++.h"
using namespace std;
// wierd debugging stuff
#define sim template <class c
#define ris return *this
#define dor > debug &operator<<
#define eni(x) \
sim > typename enable_if<sizeof dud<c>(0) x 1, debug &>::type operator<<( ... |
#include "bits/stdc++.h"
using namespace std;
// wierd debugging stuff
#define sim template <class c
#define ris return *this
#define dor > debug &operator<<
#define eni(x) \
sim > typename enable_if<sizeof dud<c>(0) x 1, debug &>::type operator<<( ... | [
"literal.number.change",
"variable_declaration.value.change"
] | 331,056 | 331,057 | u161309389 | cpp |
p02622 | #include <bits/stdc++.h>
using namespace std;
#define fr first
#define se second
#define int long long
#define pb push_back
#define mp make_pair
#define pii pair<int, int>
#define vi vector<int>
#define mi map<int, int>
#define pqb priority_queue<int>
#define set_bits(x) __builtin_popcountll(x)
#define mod 1000000007
... | #include <bits/stdc++.h>
using namespace std;
#define fr first
#define se second
#define int long long
#define pb push_back
#define mp make_pair
#define pii pair<int, int>
#define vi vector<int>
#define mi map<int, int>
#define pqb priority_queue<int>
#define set_bits(x) __builtin_popcountll(x)
#define mod 1000000007
... | [] | 331,059 | 331,060 | u523410672 | cpp |
p02622 | #include <iostream>
#include <string>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int i, cnt = 0;
for (i = 0; i < S.length(); i++)
if (S[i] == T[i])
cnt++;
cout << cnt << endl;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int i, cnt = 0;
for (i = 0; i < S.length(); i++)
if (S[i] != T[i])
cnt++;
cout << cnt << endl;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 331,072 | 331,073 | u956908227 | cpp |
p02622 | #include <algorithm>
#include <bits/stdc++.h>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
string a, b;
cin >> a >> b;
int n, t;
t = 0;
n = a.size();
rep(i, n) {
if (a[i] = b[i]) {
t = t +... | #include <algorithm>
#include <bits/stdc++.h>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
string a, b;
cin >> a >> b;
int n, t;
t = 0;
n = a.size();
rep(i, n) {
if (a[i] == b[i]) {
t = t ... | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 331,074 | 331,075 | u061567183 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.