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 |
|---|---|---|---|---|---|---|---|
p02570 | #include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define pii pair<int, int>
#define pll pair<ll int, ll int>
#define ff first
#define ss second
#define debug(n) cout << "DEBUG1 " << n << "\n";
#define debug2(n, m) cout << "DEBUG2 " << n << ' ' << m << "\n";
#define debug3(n, m, x) cout << "D... | #include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define pii pair<int, int>
#define pll pair<ll int, ll int>
#define ff first
#define ss second
#define debug(n) cout << "DEBUG1 " << n << "\n";
#define debug2(n, m) cout << "DEBUG2 " << n << ' ' << m << "\n";
#define debug3(n, m, x) cout << "D... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 259,867 | 259,868 | u224392054 | cpp |
p02570 | #include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define pii pair<int, int>
#define pp pair<pair<ll, ll>, pair<ll, ll>>
#define pll pair<ll, ll>
#define ppll pair<ll, pll>
#define pdd pair<double, double>
#define vii vector<int>
#define vll vector<ll>
#define mat vector<vector<ll>>
#define l... | #include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define pii pair<int, int>
#define pp pair<pair<ll, ll>, pair<ll, ll>>
#define pll pair<ll, ll>
#define ppll pair<ll, pll>
#define pdd pair<double, double>
#define vii vector<int>
#define vll vector<ll>
#define mat vector<vector<ll>>
#define l... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 259,869 | 259,870 | u241367243 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = t.length();
for (int i = 0; i < s.length() - t.length(); i++) {
int diff = 0;
for (int j = 0; j < t.length(); j++) {
if (s[i + j] != t[j])
diff++;
}
ans = min(ans, diff);
}
cout <... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = t.length();
for (int i = 0; i <= s.length() - t.length(); i++) {
int diff = 0;
for (int j = 0; j < t.length(); j++) {
if (s[i + j] != t[j])
diff++;
}
ans = min(ans, diff);
}
cout ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 259,871 | 259,872 | u008016261 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
string a = "abcdefghijklmnopqrstuvwxyz";
int i, j, ans = 0, ii, ij, c = 0;
for (i = 0; i <= s.length() - t.length(); i++) {
for (j = 0; j < t.length(); j++) {
ii = i;
// ij=j;
if (s[ii++] == t[j])
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
string a = "abcdefghijklmnopqrstuvwxyz";
int i, j, ans = 0, ii, ij, c = 0;
for (i = 0; i <= s.length() - t.length(); i++) {
for (j = 0; j < t.length(); j++) {
ii = i;
// ij=j;
if (s[i + j] == t[j])
... | [
"control_flow.loop.for.condition.change",
"control_flow.branch.if.condition.change"
] | 259,875 | 259,876 | u946696208 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
string a = "abcdefghijklmnopqrstuvwxyz";
int i, j, ans = 0, ii, ij, c = 0;
for (i = 0; i < s.length() - t.length(); i++) {
for (j = 0; j < t.length(); j++) {
ii = i;
// ij=j;
if (s[ii++] == t[j])
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
string a = "abcdefghijklmnopqrstuvwxyz";
int i, j, ans = 0, ii, ij, c = 0;
for (i = 0; i <= s.length() - t.length(); i++) {
for (j = 0; j < t.length(); j++) {
ii = i;
// ij=j;
if (s[i + j] == t[j])
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change"
] | 259,877 | 259,876 | u946696208 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = s.size();
for (int i = 0; i < s.size() - t.size(); i++) {
int cnt = 0;
for (int j = 0; j < t.size(); j++) {
if (s[i + j] != t[j])
cnt++;
}
ans = min(cnt, ans);
}
cout << ans << endl... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = s.size();
for (int i = 0; i <= s.size() - t.size(); i++) {
int cnt = 0;
for (int j = 0; j < t.size(); j++) {
if (s[i + j] != t[j])
cnt++;
}
ans = min(cnt, ans);
}
cout << ans << end... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 259,886 | 259,887 | u798086274 | cpp |
p02571 | #include <iomanip>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <numeric>
using namespace std;
typedef long long ll;
const long double PI = (acos(-1));
const long long MOD = 1000000007;
static const int MAX_INT = std::numeric_limits<int>::max();
static const ... | #include <iomanip>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <numeric>
using namespace std;
typedef long long ll;
const long double PI = (acos(-1));
const long long MOD = 1000000007;
static const int MAX_INT = std::numeric_limits<int>::max();
static const ... | [
"expression.operation.binary.add"
] | 259,890 | 259,891 | u542249197 | cpp |
p02571 | #define _USE_MATH_DEFINES
#include <algorithm>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
typedef long long LL;
typedef vector<int> VI;
typedef vector<double> VD;
t... | #define _USE_MATH_DEFINES
#include <algorithm>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
typedef long long LL;
typedef vector<int> VI;
typedef vector<double> VD;
t... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 259,892 | 259,893 | u662614053 | cpp |
p02571 | #define _USE_MATH_DEFINES
#include <algorithm>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
typedef long long LL;
typedef vector<int> VI;
typedef vector<double> VD;
t... | #define _USE_MATH_DEFINES
#include <algorithm>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
typedef long long LL;
typedef vector<int> VI;
typedef vector<double> VD;
t... | [
"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"
] | 259,894 | 259,893 | u662614053 | cpp |
p02571 | #pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
#define FAST_IO \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | #pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
#define FAST_IO \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 259,895 | 259,896 | u981065082 | cpp |
p02571 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <vector>
#define rep(i, N) for (int i = 0; i < N; i++)
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int min = 2000;
rep(i, S.size() - T.size()) {
int cnt = 0;
rep(j, T.size()) {
if (S[i + j] == T[j]) {
co... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <vector>
#define rep(i, N) for (int i = 0; i < N; i++)
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int min = 2000;
rep(i, S.size() - T.size() + 1) {
int cnt = 0;
rep(j, T.size()) {
if (S[i + j] == T[j]) {
... | [
"expression.operation.binary.add"
] | 259,899 | 259,900 | u658223739 | cpp |
p02571 | #include "bits/stdc++.h"
using namespace std;
int dist(string a, string b) {
int s = 0;
for (int i = 0; i < a.length(); i++)
s += (a[i] != b[i]);
return s;
}
int main() {
string a, b;
cin >> a >> b;
int m = 100000000;
for (int i = 0; i + b.length() < a.length(); i++) {
m = min(m, dist(b, a.subst... | #include "bits/stdc++.h"
using namespace std;
int dist(string a, string b) {
int s = 0;
for (int i = 0; i < a.length(); i++)
s += (a[i] != b[i]);
return s;
}
int main() {
string a, b;
cin >> a >> b;
int m = 100000000;
for (int i = 0; i <= a.length() - b.length(); i++) {
m = min(m, dist(b, a.subs... | [
"control_flow.loop.for.condition.change"
] | 259,905 | 259,906 | u696886537 | cpp |
p02571 | /**
* code generated by JHelper
* More info: https://github.com/AlexeyDmitriev/JHelper
* @author
*/
#include <fstream>
#include <iostream>
#include "bits/stdc++.h"
#include <iostream>
using namespace std;
typedef unsigned long long ll;
typedef int integer;
#define int long long
#define ii pair<int, int>
#define... | /**
* code generated by JHelper
* More info: https://github.com/AlexeyDmitriev/JHelper
* @author
*/
#include <fstream>
#include <iostream>
#include "bits/stdc++.h"
#include <iostream>
using namespace std;
typedef unsigned long long ll;
typedef int integer;
#define int long long
#define ii pair<int, int>
#define... | [
"expression.operation.binary.add"
] | 259,907 | 259,908 | u274833929 | cpp |
p02571 | #include <iostream>
using namespace std;
int main() {
string a, b;
cin >> a >> b;
int i, d = 0, c = 0, j;
for (i = 0; i <= a.size() - b.size() - 1; i++) {
c = 0;
for (j = i; j <= i + b.size() - 1; j++) {
if (a[j] == b[j - i]) {
c++;
}
}
if (c > d) {
d = c;
}
}
c... | #include <iostream>
using namespace std;
int main() {
string a, b;
cin >> a >> b;
int i, d = 0, c = 0, j;
for (i = 0; i <= a.size() - b.size(); i++) {
c = 0;
for (j = i; j <= i + b.size() - 1; j++) {
if (a[j] == b[j - i]) {
c++;
}
}
if (c > d) {
d = c;
}
}
cout ... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 259,909 | 259,910 | u311063367 | cpp |
p02571 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <locale.h>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = 20000, x = 0;
for (int i = 0; i < s.size() - t.size(); i++) {
for (int... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <locale.h>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = 20000, x = 0;
for (int i = 0; i <= s.size() - t.size(); i++) {
for (in... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 259,913 | 259,914 | u379288456 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); i++)
#define INF 1001001001
#define LLINF 1001001001001001001
#define MOD 1000000007
#define FOUT(n, dist) cout << fixed << setprecision(n) << (dist);
#define BR cout << endl;
#define LEN(s) s.length();
template <class T> bool c... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); i++)
#define INF 1001001001
#define LLINF 1001001001001001001
#define MOD 1000000007
#define FOUT(n, dist) cout << fixed << setprecision(n) << (dist);
#define BR cout << endl;
#define LEN(s) s.length();
template <class T> bool c... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 259,919 | 259,920 | u608329742 | cpp |
p02571 | #include <algorithm>
#include <iostream>
using namespace std;
#define ll long long
int main() {
string a, b;
cin >> a >> b;
ll res = 1e12;
for (int i = 0; i < a.length() - b.length(); i++) {
ll tmp = 0;
for (int j = 0; j < b.length(); j++) {
if (a[j + i] != b[j]) {
tmp++;
}
}
... | #include <algorithm>
#include <iostream>
using namespace std;
#define ll long long
int main() {
string a, b;
cin >> a >> b;
ll res = 1e12;
for (int i = 0; i < a.length() - b.length() + 1; i++) {
ll tmp = 0;
for (int j = 0; j < b.length(); j++) {
if (a[j + i] != b[j]) {
tmp++;
}
... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 259,923 | 259,924 | u895105653 | cpp |
p02571 | #include <iostream>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int res = 1001, sl = s.size(), tl = t.size();
for (int offset = 0; offset < sl - tl; ++offset) {
int cnt = 0;
for (int i = 0; i < tl; ++i)
if (s[offset + i] != t[i])
cnt++;
res = min(cnt, res);
}
... | #include <iostream>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int res = 1001, sl = s.size(), tl = t.size();
for (int offset = 0; offset <= sl - tl; ++offset) {
int cnt = 0;
for (int i = 0; i < tl; ++i)
if (s[offset + i] != t[i])
cnt++;
res = min(cnt, res);
}
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 259,929 | 259,930 | u590427200 | cpp |
p02571 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
typedef long long int ll;
typedef long double ld;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define Sort(Array) sort(Array.begin(), Ar... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
typedef long long int ll;
typedef long double ld;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define Sort(Array) sort(Array.begin(), Ar... | [
"expression.operation.binary.add"
] | 259,934 | 259,935 | u090091127 | cpp |
p02571 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
vector<int> same;
string S, T;
cin >> S >> T;
int end = S.length() - T.length();
for (int i = 0; i <= end; ++i) {
int counter = 0;
for (int j = 0; j <= T.length(); ++j) {
if (S[i + j] ... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
vector<int> same;
string S, T;
cin >> S >> T;
int end = S.length() - T.length();
for (int i = 0; i <= end; ++i) {
int counter = 0;
for (int j = 0; j < T.length(); ++j) {
if (S[i + j] =... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 259,944 | 259,945 | u129830598 | cpp |
p02571 | #include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define f first
#define s second
#define pb push_back
#define eb emplace_back
#define mk make_pair
#define mt make_tuple
#define MOD 1000000007
#define fo(i, a, b) for (i = a; i < b; i++)
#define foe(i, a, b) for (i = a; i <= b; i++)
#define all(x... | #include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define f first
#define s second
#define pb push_back
#define eb emplace_back
#define mk make_pair
#define mt make_tuple
#define MOD 1000000007
#define fo(i, a, b) for (i = a; i < b; i++)
#define foe(i, a, b) for (i = a; i <= b; i++)
#define all(x... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 259,946 | 259,947 | u423002653 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int e = s.size();
int b = t.size();
int c = 0;
int m = 0;
for (int i = 0; i <= e - b; i++) {
for (int j = 0; j < b; i++) {
if (t[j] == s[j + i]) {
c++;
}
}
m = max(m, c);
c = 0;
}
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int e = s.size();
int b = t.size();
int c = 0;
int m = 0;
for (int i = 0; i <= e - b; i++) {
for (int j = 0; j < b; j++) {
if (t[j] == s[j + i]) {
c++;
}
}
m = max(m, c);
c = 0;
}
... | [
"identifier.change"
] | 259,951 | 259,952 | u759632062 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int e = s.size();
int b = t.size();
int c = 0;
int m = 0;
for (int i = 0; i <= e - b; i++) {
for (int j = 0; j < b; i++) {
if (t[j] == s[j + i]) {
c++;
}
m = max(m, c);
c = 0;
}
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int e = s.size();
int b = t.size();
int c = 0;
int m = 0;
for (int i = 0; i <= e - b; i++) {
for (int j = 0; j < b; j++) {
if (t[j] == s[j + i]) {
c++;
}
}
m = max(m, c);
c = 0;
}
... | [
"identifier.change"
] | 259,953 | 259,952 | u759632062 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
string s, t;
int sl, tl;
int main() {
cin >> s >> t;
sl = s.length();
tl = t.length();
int ans = 1946081700;
for (int i = 0; i + tl < sl; i++) {
int tm = 0;
for (int j = 0; j < tl; j++) {
if (s[i + j] != t[j])
tm++;
}
ans = min(tm, an... | #include <bits/stdc++.h>
using namespace std;
string s, t;
int sl, tl;
int main() {
//注意对于sl的长度特殊判断!
cin >> s >> t;
sl = s.length();
tl = t.length();
int ans = 1946081700;
for (int i = 0; i + tl <= sl; i++) {
int tm = 0;
for (int j = 0; j < tl; j++) {
if (s[i + j] != t[j])
tm++;
}
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 259,959 | 259,960 | u869538549 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
string s, t;
int sl, tl;
int main() {
cin >> s >> t;
sl = s.length();
tl = t.length();
int ans = 1946081700;
for (int i = 0; i + tl < sl; i++) {
int tm = 0;
for (int j = 0; j < tl; j++) {
if (s[i + j] != t[j])
tm++;
}
ans = min(tm, an... | #include <bits/stdc++.h>
using namespace std;
string s, t;
int sl, tl;
int main() {
cin >> s >> t;
sl = s.length();
tl = t.length();
int ans = 1946081700;
for (int i = 0; i + tl <= sl; i++) {
int tm = 0;
for (int j = 0; j < tl; j++) {
if (s[i + j] != t[j])
tm++;
}
ans = min(tm, a... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 259,959 | 259,962 | u869538549 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
string s, t;
int sl, tl;
int main() {
cin >> s >> t;
sl = s.length();
tl = t.length();
int ans = 19460817;
for (int i = 0; i + tl < sl; i++) {
int tm = 0;
for (int j = 0; j < tl; j++) {
if (s[i + j] != t[j])
tm++;
}
ans = min(tm, ans)... | #include <bits/stdc++.h>
using namespace std;
string s, t;
int sl, tl;
int main() {
cin >> s >> t;
sl = s.length();
tl = t.length();
int ans = 1946081700;
for (int i = 0; i + tl <= sl; i++) {
int tm = 0;
for (int j = 0; j < tl; j++) {
if (s[i + j] != t[j])
tm++;
}
ans = min(tm, a... | [
"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"
] | 259,961 | 259,962 | u869538549 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define pb push_back
const ll mod = 1e9 + 7;
void solve() {
string a, b;
cin >> a >> b;
int za = a.size();
int zb = b.size();
int ans = 1e9;
for (int i = 0; i < za - zb; i++) {
int cnt = 0;
for (int j = 0; j ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define pb push_back
const ll mod = 1e9 + 7;
void solve() {
string a, b;
cin >> a >> b;
int za = a.size();
int zb = b.size();
int ans = 1e9;
for (int i = 0; i <= za - zb; i++) {
int cnt = 0;
for (int j = 0; j... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 259,965 | 259,966 | u227412361 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
string T, S;
cin >> S >> T;
int ans = 10000;
rep(i, S.size() - T.size()) {
int count = T.size();
rep(j, T.size()) if (S.at(i + j) == T.at(j)) count--;
ans = min(ans, count);
}
cout << ans;
}... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
string T, S;
cin >> S >> T;
int ans = 10000;
rep(i, S.size() - T.size() + 1) {
int count = T.size();
rep(j, T.size()) if (S.at(i + j) == T.at(j)) count--;
ans = min(ans, count);
}
cout << an... | [
"expression.operation.binary.add"
] | 259,967 | 259,968 | u144242534 | cpp |
p02571 | /*Author : Krishna*/
#include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <stack>
#include <unordered_map>
#include <unordered_set>
#include <vector>
/* 97 to 122*/
using namespace std;
void solve() {
string S, T;
cin >> S >> T;
int ans = (int)T.size();
for (int start = 0; start... | /*Author : Krishna*/
#include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <stack>
#include <unordered_map>
#include <unordered_set>
#include <vector>
/* 97 to 122*/
using namespace std;
void solve() {
string S, T;
cin >> S >> T;
int ans = (int)T.size();
for (int start = 0; start... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 259,969 | 259,970 | u189435007 | cpp |
p02571 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
#define _crt_secure_no_war... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
#define _crt_secure_no_war... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 259,975 | 259,976 | u641326074 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int cnt = 0, c = 0;
for (int i = 0; i <= s.size() - t.size(); i++) {
for (int j = 0; j < t.size(); j++)
if (s[i + j] == t[j])
cnt++;
c = max(c, cnt);
cnt = 0;
}
cout << c - t.size();
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int cnt = 0, c = 0;
for (int i = 0; i <= s.size() - t.size(); i++) {
for (int j = 0; j < t.size(); j++)
if (s[i + j] == t[j])
cnt++;
c = max(c, cnt);
cnt = 0;
}
cout << t.size() - c;
} | [
"expression.operation.binary.remove"
] | 259,981 | 259,982 | u298092204 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
string S, T;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
cin >> S >> T;
int ans = T.size();
for (int i = 0; i < S.size() - T.size(); i++) {
int diff = 0;
for (int j = 0; j < T.size(); j++) {
if (T[j] != S[i + j])... | #include <bits/stdc++.h>
using namespace std;
string S, T;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
cin >> S >> T;
int ans = T.size();
for (int i = 0; i <= S.size() - T.size(); i++) {
int diff = 0;
for (int j = 0; j < T.size(); j++) {
if (T[j] != S[i + j]... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 259,991 | 259,992 | u851275071 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int n, m;
string S, T;
int main() {
getline(cin, S);
getline(cin, T);
int ans = 1010;
for (int i = 0; i < S.length() - T.length(); i++) {
int now = 0;
for (int j = 0; j < T.length(); j++) {
if (S[i + j] != T[j])
now++;
}
ans = min(ans,... | #include <bits/stdc++.h>
using namespace std;
int n, m;
string S, T;
int main() {
getline(cin, S);
getline(cin, T);
int ans = 1010;
for (int i = 0; i <= S.length() - T.length(); i++) {
int now = 0;
for (int j = 0; j < T.length(); j++) {
if (S[i + j] != T[j])
now++;
}
ans = min(ans... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 259,993 | 259,994 | u772053861 | cpp |
p02571 | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int mka = 0;
for (int i = 0; i < s.length() - t.length(); i++) {
char tt[t.length()];
int kasanari = 0;
for (int j = 0; j < t.length(); j++)... | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int mka = 0;
for (int i = 0; i <= s.length() - t.length(); i++) {
char tt[t.length()];
int kasanari = 0;
for (int j = 0; j < t.length(); j++... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 259,995 | 259,996 | u047572420 | cpp |
p02571 | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int mka = t.length();
if (s == t) {
cout << "0";
return 0;
}
for (int i = 0; i < s.length() - t.length(); i++) {
int kasanari = 0;
f... | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int mka = t.length();
if (s == t) {
cout << "0";
return 0;
}
for (int i = 0; i <= s.length() - t.length(); i++) {
int kasanari = 0;
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 259,997 | 259,998 | u047572420 | cpp |
p02571 | /*
// ABC141 D - Powerful Discount Tickets
// 優先度キュー プライオリティーキュー
int main() {
ll n,m;
cin >> n >> m;
// プライオリティーキューに突っ込む
priority_queue<ll> q;
rep(i,n){
ll k;
cin >> k;
q.push(k);
}
// 値段の高いものから割引券を適応して戻す
rep(i,m){
ll now = q.top();
q.pop();
now /= 2;
q.push(now);
}
... | /*
// ABC141 D - Powerful Discount Tickets
// 優先度キュー プライオリティーキュー
int main() {
ll n,m;
cin >> n >> m;
// プライオリティーキューに突っ込む
priority_queue<ll> q;
rep(i,n){
ll k;
cin >> k;
q.push(k);
}
// 値段の高いものから割引券を適応して戻す
rep(i,m){
ll now = q.top();
q.pop();
now /= 2;
q.push(now);
}
... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 259,999 | 260,000 | u037563046 | cpp |
p02571 | // BISMILLAH
#include <bits/stdc++.h>
using namespace std;
int main() {
int minn = INT_MAX;
string s, t;
int i, j, len, len2, p, cnt = 0;
cin >> s >> t;
len = s.size();
len2 = t.size();
for (i = 0; i < (len - len2); i++) {
p = i;
for (j = 0; j < len2; j++) {
if (t[j] != s[p++])
cnt++... | // BISMILLAH
#include <bits/stdc++.h>
using namespace std;
int main() {
int minn = INT_MAX;
string s, t;
int i, j, len, len2, p, cnt = 0;
cin >> s >> t;
len = s.size();
len2 = t.size();
for (i = 0; i <= (len - len2); i++) {
p = i;
for (j = 0; j < len2; j++) {
if (t[j] != s[p++])
cnt+... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,001 | 260,002 | u759137585 | cpp |
p02571 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = 101010;
for (int i = 0; i < s.length() - t.length(); ++i) {
int cnt = 0;
for (int j = 0; j < t.length(); ++j) {
if (s[i + j] != t[j])
cnt++;
}
ans = ... | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = 101010;
for (int i = 0; i <= s.length() - t.length(); ++i) {
int cnt = 0;
for (int j = 0; j < t.length(); ++j) {
if (s[i + j] != t[j])
cnt++;
}
ans =... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,006 | 260,007 | u712918628 | cpp |
p02571 | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <time.h>
#include <vector>
typed... | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <time.h>
#include <vector>
typed... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,019 | 260,020 | u098844816 | cpp |
p02571 | #include <algorithm>
#include <bitset>
#include <iostream>
#include <math.h>
#include <vector>;
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = 10000, tmp = 0;
;
for (int i = 0; i < s.length() - t.length(); i++) {
for (int j = 0; j < t.length(); j++) {
if (s[i + j] != t[j]... | #include <algorithm>
#include <bitset>
#include <iostream>
#include <math.h>
#include <vector>;
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = 10000, tmp = 0;
;
for (int i = 0; i < s.length() - t.length() + 1; i++) {
for (int j = 0; j < t.length(); j++) {
if (s[i + j] != ... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,023 | 260,024 | u843896277 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S;
cin >> T;
int Ns = S.length();
int Nt = T.length();
int Smax = 0;
int Smax_temp = 0;
for (int i = 0; i < Ns - Nt; i++) {
Smax_temp = 0;
for (int j = 0; j < Nt; j++) {
if (S[i + j] == T[j]) {
Sm... | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S;
cin >> T;
int Ns = S.length();
int Nt = T.length();
int Smax = 0;
int Smax_temp = 0;
for (int i = 0; i < Ns - Nt + 1; i++) {
Smax_temp = 0;
for (int j = 0; j < Nt; j++) {
if (S[i + j] == T[j]) {
... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,025 | 260,026 | u188228787 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
using ll = int64_t;
#define deb(x) cout << #x << "=" << x << endl
#define deb2(x, y) cout << #x << "=" << x << ", " << #y << "=" << y << endl
void solve() {
string s1, s2;
cin >> s1 >> s2;
ll n = s1.length();
ll m = s2.length();
ll ans = LLONG_MAX;
for (int i ... | #include <bits/stdc++.h>
using namespace std;
using ll = int64_t;
#define deb(x) cout << #x << "=" << x << endl
#define deb2(x, y) cout << #x << "=" << x << ", " << #y << "=" << y << endl
void solve() {
string s1, s2;
cin >> s1 >> s2;
ll n = s1.length();
ll m = s2.length();
ll ans = LLONG_MAX;
for (int i ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,035 | 260,036 | u581884393 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define sz(x) (int)x.size()
int main() {
int ans = 1001;
string s, t;
cin >> s >> t;
for (int i = 0; i < sz(s) - sz(t) - 1; i++) {
int c = 0;
for (int j = 0; j < sz(t); j++) {
c += (s[i + j] != t[j]);
}
ans = min(ans, c);
}
cout << ans;
}
| #include <bits/stdc++.h>
using namespace std;
#define sz(x) (int)x.size()
int main() {
int ans = 1001;
string s, t;
cin >> s >> t;
for (int i = 0; i < sz(s) - sz(t) + 1; i++) {
int c = 0;
for (int j = 0; j < sz(t); j++) {
c += (s[i + j] != t[j]);
}
ans = min(ans, c);
}
cout << ans;
}
| [
"misc.opposites",
"expression.operator.arithmetic.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 260,039 | 260,040 | u448984056 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define sz(x) (int)x.size()
int main() {
int ans = 1001;
string s, t;
cin >> s >> t;
for (int i = 0; i < sz(s) - sz(t); i++) {
int c = 0;
for (int j = 0; j < sz(t); j++) {
c += (s[i + j] != t[j]);
}
ans = min(ans, c);
}
cout << ans;
}
| #include <bits/stdc++.h>
using namespace std;
#define sz(x) (int)x.size()
int main() {
int ans = 1001;
string s, t;
cin >> s >> t;
for (int i = 0; i < sz(s) - sz(t) + 1; i++) {
int c = 0;
for (int j = 0; j < sz(t); j++) {
c += (s[i + j] != t[j]);
}
ans = min(ans, c);
}
cout << ans;
}
| [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,041 | 260,040 | u448984056 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int ans = T.length();
for (int i = 0; i < (int)(S.length() - T.length()); ++i) {
int count = 0;
for (int j = 0; j < (int)T.length(); ++j) {
if (S[i + j] != T[j])
count++;
}
ans = min(ans, count... | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int ans = T.length();
for (int i = 0; i <= (int)(S.length() - T.length()); ++i) {
int count = 0;
for (int j = 0; j < (int)T.length(); ++j) {
if (S[i + j] != T[j])
count++;
}
ans = min(ans, coun... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,044 | 260,045 | u182310429 | cpp |
p02571 | #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() {
string s, t;
cin >> s >> t;
int ans = t.size();
rep(i, s.size() - t.size()) {
int cnt = 0;
rep(j, t.size()) {
if (t[j] != s[i + j]) {
... | #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() {
string s, t;
cin >> s >> t;
int ans = t.size();
rep(i, s.size() - t.size() + 1) {
int cnt = 0;
rep(j, t.size()) {
if (t[j] != s[i + j]) {
... | [
"expression.operation.binary.add"
] | 260,046 | 260,047 | u211503916 | cpp |
p02571 | #include <bits/stdc++.h>
#define PI 3.141592653589
using namespace std;
using ll = long long;
template <typename T_char> T_char ToUpper(T_char cX) { return toupper(cX); }
int main() {
string s, t;
cin >> s >> t;
int ans = t.size();
for (int i = 0; i < s.size() - t.size(); ++i) {
int cnt = 0;
for (in... | #include <bits/stdc++.h>
#define PI 3.141592653589
using namespace std;
using ll = long long;
template <typename T_char> T_char ToUpper(T_char cX) { return toupper(cX); }
int main() {
string s, t;
cin >> s >> t;
int ans = t.size();
for (int i = 0; i <= s.size() - t.size(); ++i) {
int cnt = 0;
for (i... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,048 | 260,049 | u145562832 | cpp |
p02571 | ///_________________________________ B I S M I L L A H I R R A H M A N I R R A
///H I M __________________________________________________
#include <bits/stdc++.h>
using namespace std;
typedef bool boo;
typedef int li;
typedef long il;
typedef unsigned long ul;
typedef long long int ll;
typedef unsigned long long u... | ///_________________________________ B I S M I L L A H I R R A H M A N I R R A
///H I M __________________________________________________
#include <bits/stdc++.h>
using namespace std;
typedef bool boo;
typedef int li;
typedef long il;
typedef unsigned long ul;
typedef long long int ll;
typedef unsigned long long u... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,052 | 260,053 | u816631826 | cpp |
p02571 | #include <bits/stdc++.h>
#define ll long long
using namespace std;
ll max(ll a, ll b) {
if (a > b)
return a;
else
return b;
}
int main() {
string s, t;
cin >> s >> t;
int sl = s.length(), tl = t.length();
int maxx = 0;
for (int i = 0; i < sl - tl; i++) {
int x = 0;
for (int j = i; j < sl ... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
ll max(ll a, ll b) {
if (a > b)
return a;
else
return b;
}
int main() {
string s, t;
cin >> s >> t;
int sl = s.length(), tl = t.length();
int maxx = 0;
for (int i = 0; i <= sl - tl; i++) {
int x = 0;
for (int j = i; j < tl... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,054 | 260,055 | u018679195 | cpp |
p02571 | #include <bits/stdc++.h>
#include <string.h>
#define ll long long
#include <vector>
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
#include <string.h>
#define ll long long
#include <vector>
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,056 | 260,057 | u375055372 | cpp |
p02571 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
template <typename T> void fin(T a) {
cout << a << endl;
exit(0);
}
template <typename S> void print(S a) { cout << a << endl; }
template <typename U> void pprint(U ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
template <typename T> void fin(T a) {
cout << a << endl;
exit(0);
}
template <typename S> void print(S a) { cout << a << endl; }
template <typename U> void pprint(U ... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 260,060 | 260,061 | u832806457 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int n = s.size();
int m = t.size();
int ans = n;
for (int i = 0; i + m < n; ++i) {
int count = 0;
for (int j = 0; j < m; ++j) {
if (s[j + i] != t[j])
count++;
}
ans = min(ans, count);
}
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int n = s.size();
int m = t.size();
int ans = n;
for (int i = 0; i + m - 1 < n; ++i) {
int count = 0;
for (int j = 0; j < m; ++j) {
if (s[j + i] != t[j])
count++;
}
ans = min(ans, count);
... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,064 | 260,065 | u605757515 | cpp |
p02571 | #include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define sz(a) (a).size()
#define all(c) (c).begin(), (c).end()
#define rep(i, n) for (int i = 0; i < n; i++)
#define forn(i, n) for (int i = 1; i <= n; i++)
#define ford(i, n) for (int i = n; i >= 0; i--)
#define REP(i... | #include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define sz(a) (a).size()
#define all(c) (c).begin(), (c).end()
#define rep(i, n) for (int i = 0; i < n; i++)
#define forn(i, n) for (int i = 1; i <= n; i++)
#define ford(i, n) for (int i = n; i >= 0; i--)
#define REP(i... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,066 | 260,067 | u081143630 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int slen = s.size();
int tlen = t.size();
int ans = tlen;
for (int i = 0; i < slen - tlen; i++) {
int diff = 0;
for (int j = 0; j < tlen; j++) {
diff += s[i + j] != t[j];
}
ans = min(ans, diff);
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int slen = s.size();
int tlen = t.size();
int ans = tlen;
for (int i = 0; i <= slen - tlen; i++) {
int diff = 0;
for (int j = 0; j < tlen; j++) {
diff += s[i + j] != t[j];
}
ans = min(ans, diff);
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,070 | 260,071 | u336672774 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int slen = s.size();
int tlen = t.size();
int ans = tlen;
for (int i = 0; i < slen - tlen; i++) {
int diff = 0;
for (int j = 0; j < t.size(); j++) {
diff += s[i + j] != t[j];
}
ans = min(ans, diff... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int slen = s.size();
int tlen = t.size();
int ans = tlen;
for (int i = 0; i <= slen - tlen; i++) {
int diff = 0;
for (int j = 0; j < tlen; j++) {
diff += s[i + j] != t[j];
}
ans = min(ans, diff);
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"call.remove"
] | 260,072 | 260,071 | u336672774 | cpp |
p02571 | #include <bits/stdc++.h>
#define rep(i, n) for (int(i) = 0; (i) < (int)(n); (i)++)
#define REP(i, n) for (int(i) = 0; (i) <= (int)(n); (i)++)
#define rep1(i, x, n) for (int(i) = (x); (i) < (int)(n); (i)++)
#define REP1(i, x, n) for (int(i) = (x); (i) <= (int)(n); (i)++)
#define rrep(i, x) for (int i = ((int)(x)-1); i >... | #include <bits/stdc++.h>
#define rep(i, n) for (int(i) = 0; (i) < (int)(n); (i)++)
#define REP(i, n) for (int(i) = 0; (i) <= (int)(n); (i)++)
#define rep1(i, x, n) for (int(i) = (x); (i) < (int)(n); (i)++)
#define REP1(i, x, n) for (int(i) = (x); (i) <= (int)(n); (i)++)
#define rrep(i, x) for (int i = ((int)(x)-1); i >... | [
"expression.operation.binary.add"
] | 260,073 | 260,074 | u924373338 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
string s, t;
cin >> s >> t;
int ans = 1000;
for (int i = 0; i < s.size() - t.size() + 1; ++i) {
int replace = 0;
for (int j = 0; j < t.size(); ++j) {
if (s[i + j] != t[i + j])
++replace;
}
ans = min(... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
string s, t;
cin >> s >> t;
int ans = 1000;
for (int i = 0; i < s.size() - t.size() + 1; ++i) {
int replace = 0;
for (int j = 0; j < t.size(); ++j) {
if (s[i + j] != t[j])
++replace;
}
ans = min(ans,... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 260,079 | 260,080 | u679366464 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int ans = T.size();
for (int i = 0; i < S.size() - T.size(); i++) {
int count = 0;
for (int j = 0; j < T.size(); j++) {
if (S[i + j] != T[j])
count++;
}
if (count < ans)
ans = count;
}... | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int ans = T.size();
for (int i = 0; i < S.size() - T.size() + 1; i++) {
int count = 0;
for (int j = 0; j < T.size(); j++) {
if (S[i + j] != T[j])
count++;
}
if (count < ans)
ans = count;... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,081 | 260,082 | u095944638 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = t.size();
for (int start = 0; start <= s.size() - t.size(); start++) {
int diff;
for (int i = 0; i < t.size(); i++) {
if (s[start + i] != t[i]) {
diff++;
}
}
ans = min(ans, diff);... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = t.size();
for (int start = 0; start <= s.size() - t.size(); start++) {
int diff = 0;
for (int i = 0; i < t.size(); i++) {
if (s[start + i] != t[i]) {
diff++;
}
}
ans = min(ans, di... | [
"variable_declaration.value.change"
] | 260,083 | 260,084 | u712747389 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ll;
#define mod 1000000007
#define all(x) (x).begin(), (x).end()
void solve() {
string s, t;
cin >> s >> t;
int cnt = t.size();
for (int i = 0; i <= s.size() - t.size(); i++) {
int diff = 0;
for (int j = 0; j < t.size(); j++) {
... | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ll;
#define mod 1000000007
#define all(x) (x).begin(), (x).end()
void solve() {
string s, t;
cin >> s >> t;
int cnt = t.size();
for (int i = 0; i <= s.size() - t.size(); i++) {
int diff = 0;
for (int j = 0; j < t.size(); j++) {
... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 260,085 | 260,086 | u992375043 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ll;
#define mod 1000000007
#define all(x) (x).begin(), (x).end()
void solve() {
string s, t;
cin >> s >> t;
int cnt = t.size();
for (int i = 0; i < s.size() - t.size(); i++) {
int diff = 0;
for (int j = 0; j < t.size(); j++) {
... | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ll;
#define mod 1000000007
#define all(x) (x).begin(), (x).end()
void solve() {
string s, t;
cin >> s >> t;
int cnt = t.size();
for (int i = 0; i <= s.size() - t.size(); i++) {
int diff = 0;
for (int j = 0; j < t.size(); j++) {
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,087 | 260,086 | u992375043 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ll;
#define mod 1000000007
#define all(x) (x).begin(), (x).end()
void solve() {
string s, t;
cin >> s >> t;
int cnt = t.size();
for (int i = 0; i < s.size() - t.size(); i++) {
int diff = 0;
for (int j = 0; j < t.size(); j++) {
... | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ll;
#define mod 1000000007
#define all(x) (x).begin(), (x).end()
void solve() {
string s, t;
cin >> s >> t;
int cnt = t.size();
for (int i = 0; i <= s.size() - t.size(); i++) {
int diff = 0;
for (int j = 0; j < t.size(); j++) {
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,088 | 260,086 | u992375043 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ll;
#define mod 1000000007
#define all(x) (x).begin(), (x).end()
void solve() {
string s, t;
cin >> s >> t;
int cnt = t.size();
for (int i = 0; i < s.size() - t.size(); i++) {
int diff = 0;
for (int j = 0; j < t.size(); j++) {
... | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ll;
#define mod 1000000007
#define all(x) (x).begin(), (x).end()
void solve() {
string s, t;
cin >> s >> t;
int cnt = t.size();
for (int i = 0; i <= s.size() - t.size(); i++) {
int diff = 0;
for (int j = 0; j < t.size(); j++) {
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,089 | 260,086 | u992375043 | cpp |
p02571 | #include <algorithm>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
typedef long long unsigned llu;
typedef long double ld;
#define ll long long
#define P... | #include <algorithm>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
typedef long long unsigned llu;
typedef long double ld;
#define ll long long
#define P... | [
"expression.operation.binary.add"
] | 260,094 | 260,095 | u096052983 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s;
cin >> t;
int minCount = t.size();
for (unsigned int i = 0; i < s.size() - t.size(); i++) {
int count = 0;
for (unsigned int j = 0; j < t.size(); j++) {
if (s.at(i + j) != t.at(j)) {
count++;
}
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s;
cin >> t;
int minCount = t.size();
for (unsigned int i = 0; i < s.size() - t.size() + 1; i++) {
int count = 0;
for (unsigned int j = 0; j < t.size(); j++) {
if (s.at(i + j) != t.at(j)) {
count++;
... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,096 | 260,097 | u318850847 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define po pop_back
#define fi first
#define se second
#define mxn 100005
#define ll long long int
#define ldb long double
#define fr(i, a, b, k) for (int i = a; i < b; i += k)
#define frr(i, a, b, k) for (int i = a; i > b; i -= k... | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define po pop_back
#define fi first
#define se second
#define mxn 100005
#define ll long long int
#define ldb long double
#define fr(i, a, b, k) for (int i = a; i < b; i += k)
#define frr(i, a, b, k) for (int i = a; i > b; i -= k... | [
"expression.operation.binary.add"
] | 260,098 | 260,099 | u827250919 | cpp |
p02571 | #include <bits/stdc++.h>
//#pragma GCC optimize(2)
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <time.h>
#include <vector>
#define X first
#define Y second
#def... | #include <bits/stdc++.h>
//#pragma GCC optimize(2)
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <time.h>
#include <vector>
#define X first
#define Y second
#def... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,100 | 260,101 | u295600538 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
string T, S;
cin >> S >> T;
ll ans = (1 << 30), check = S.size() - T.size(), tsize = T.size();
for (ll i = 0; i < check; i++) {
ll wrong = 0;
string ST = S.substr(i, tsize);
for (ll j = 0; j < tsize; j++)
if (ST[... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
string T, S;
cin >> S >> T;
ll ans = (1 << 30), check = S.size() - T.size() + 1, tsize = T.size();
for (ll i = 0; i < check; i++) {
ll wrong = 0;
string ST = S.substr(i, tsize);
for (ll j = 0; j < tsize; j++)
if ... | [
"assignment.change"
] | 260,104 | 260,105 | u805277811 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define endl '\n'
#define all(x) (x).begin(), (x).end()
const int INF = 1000000000 + 5;
const int N = 2e5 + 5;
const ll oo = 1e18 + 5;
const ll mod = 1e9 + 7;
string s, t;
int calc(int l) {
int ans = 0;
for (int i ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define endl '\n'
#define all(x) (x).begin(), (x).end()
const int INF = 1000000000 + 5;
const int N = 2e5 + 5;
const ll oo = 1e18 + 5;
const ll mod = 1e9 + 7;
string s, t;
int calc(int l) {
int ans = 0;
for (int i ... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,118 | 260,119 | u254886300 | cpp |
p02571 | #include <iostream>
using namespace std;
int compare(string a, string b) {
int diff = 0;
for (int i = 0; i < a.length(); i++) {
if (a[i] != b[i])
diff++;
}
return diff;
}
int main() {
string s, t;
cin >> t >> s;
int smallchange = s.length();
for (int i = 0; i < t.length() - s.length(); i++) {
... | #include <iostream>
using namespace std;
int compare(string a, string b) {
int diff = 0;
for (int i = 0; i < a.length(); i++) {
if (a[i] != b[i])
diff++;
}
return diff;
}
int main() {
string s, t;
cin >> t >> s;
int smallchange = s.length();
for (int i = 0; i <= t.length() - s.length(); i++) {... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,120 | 260,121 | u061361273 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int ans = T.size();
for (int i = 0; i < S.size(); i++) {
if (i + T.size() >= S.size())
break;
int diff = 0;
for (int j = 0; j < T.size(); j++) {
if (S.at(i + j) != T.at(j)) {
diff++;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int ans = T.size();
for (int i = 0; i < S.size(); i++) {
if (i + T.size() > S.size())
break;
int diff = 0;
for (int j = 0; j < T.size(); j++) {
if (S.at(i + j) != T.at(j)) {
diff++;
}... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 260,135 | 260,136 | u043589043 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
#ifdef LOCAL
freopen("input", "r", stdin);
#endif
string s, t;
cin >> s >> t;
int ans = 100005;
for (int i = 0; i < (int)s.size(); i++) {
int k = 0, dif = 0;
if (i + (int)t.size() >= (int)s.size())
continue;
for (int j = i; j <... | #include <bits/stdc++.h>
using namespace std;
int main() {
#ifdef LOCAL
freopen("input", "r", stdin);
#endif
string s, t;
cin >> s >> t;
int ans = 100005;
for (int i = 0; i < (int)s.size(); i++) {
int k = 0, dif = 0;
if (i + (int)t.size() > (int)s.size())
continue;
for (int j = i; j < ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 260,137 | 260,138 | u249159799 | cpp |
p02571 | #include <bits/stdc++.h>
#define ll long long int
#define lb lower_bound
#define fi first
#define ub upper_bound
#define se second
#define mp make_pair
#define vll vector<ll>
#define mod 1000000007
#define endl "\n"
#define fast \
ios::sync_with_stdio(... | #include <bits/stdc++.h>
#define ll long long int
#define lb lower_bound
#define fi first
#define ub upper_bound
#define se second
#define mp make_pair
#define vll vector<ll>
#define mod 1000000007
#define endl "\n"
#define fast \
ios::sync_with_stdio(... | [] | 260,148 | 260,149 | u360902389 | cpp |
p02571 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <u... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <u... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,155 | 260,156 | u217596176 | cpp |
p02571 | #include <bits/stdc++.h>
#include <math.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define PI 3.14159265359
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
string s, t;
cin >> s >> t;
int tsize = t.size(), ssize = s.size();
int maxi = 0;
rep(i, ssize - tsize) {
... | #include <bits/stdc++.h>
#include <math.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define PI 3.14159265359
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
string s, t;
cin >> s >> t;
int tsize = t.size(), ssize = s.size();
int maxi = 0;
rep(i, ssize - tsize + 1) {... | [
"expression.operation.binary.add"
] | 260,166 | 260,167 | u164112876 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
int main() {
string S, T;
cin >> S >> T;
int n = T.size();
int ans = 1e9;
for (int i = 0; i < (int)S.size() - n; i++) {
string s = S.substr(i, n);
int sum = 0;
for (int j = 0; j < n; j++) {
if (s[j] != T[j])
sum+... | #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
int main() {
string S, T;
cin >> S >> T;
int n = T.size();
int ans = 1e9;
for (int i = 0; i <= (int)S.size() - n; i++) {
string s = S.substr(i, n);
int sum = 0;
for (int j = 0; j < n; j++) {
if (s[j] != T[j])
sum... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,168 | 260,169 | u372299304 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
int main() {
string S, T;
cin >> S >> T;
int n = T.size();
int ans = 1e9;
for (int i = 0; i < (int)S.size() - n; i++) {
string s = s.substr(i, n);
int sum = 0;
for (int j = 0; j < n; j++) {
if (S[i + j] != T[j])
... | #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
int main() {
string S, T;
cin >> S >> T;
int n = T.size();
int ans = 1e9;
for (int i = 0; i <= (int)S.size() - n; i++) {
string s = S.substr(i, n);
int sum = 0;
for (int j = 0; j < n; j++) {
if (s[j] != T[j])
sum... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"identifier.change",
"misc.typo",
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove"
] | 260,170 | 260,169 | u372299304 | cpp |
p02571 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = s.size();
int n = s.size() - t.size();
int m = t.size();
for (int i = 0; i < n; i++) {
int cnt = 0;
for (int j = 0; j < m; j++) {
if (t[j] != s[i + j]) {
... | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = s.size();
int n = s.size() - t.size();
int m = t.size();
for (int i = 0; i <= n; i++) {
int cnt = 0;
for (int j = 0; j < m; j++) {
if (t[j] != s[i + j]) {
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,171 | 260,172 | u792510026 | cpp |
p02571 | #include <bits/stdc++.h>
#pragma GCC optimize("O3")
using ll = long long;
using namespace std;
#define pb push_back
#define eb emplace_back
#define F first
#define S second
#define ar array
#define pi pair<int, int>
void solve() {
string a, b;
cin >> a >> b;
int n = a.size();
int m = b.size();
int ans = 1e9;... | #include <bits/stdc++.h>
#pragma GCC optimize("O3")
using ll = long long;
using namespace std;
#define pb push_back
#define eb emplace_back
#define F first
#define S second
#define ar array
#define pi pair<int, int>
void solve() {
string a, b;
cin >> a >> b;
int n = a.size();
int m = b.size();
int ans = 1e9;... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 260,179 | 260,180 | u717792745 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int ans = T.size();
for (int i = 0; i <= S.size() - T.size(); i++) {
int a = 0;
for (int j = 0; j < T.size(); j++) {
if (T.at(j) != S.at(i + j))
a++;
}
ans = max(ans, a);
}
cout << ans << e... | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int ans = T.size();
for (int i = 0; i <= S.size() - T.size(); i++) {
int a = 0;
for (int j = 0; j < T.size(); j++) {
if (T.at(j) != S.at(i + j))
a++;
}
ans = min(ans, a);
}
cout << ans << e... | [
"misc.opposites",
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 260,181 | 260,182 | u076273565 | cpp |
p02571 | //#include <tourist>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> p;
const int INF = 1e9;
const ll LINF = ll(1e18);
const int MOD = 1000000007;
const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0};
const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1},
Dy[8] = {-1, -1, 0,... | //#include <tourist>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> p;
const int INF = 1e9;
const ll LINF = ll(1e18);
const int MOD = 1000000007;
const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0};
const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1},
Dy[8] = {-1, -1, 0,... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 260,193 | 260,194 | u155416173 | cpp |
p02571 | //#include <tourist>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> p;
const int INF = 1e9;
const ll LINF = ll(1e18);
const int MOD = 1000000007;
const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0};
const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1},
Dy[8] = {-1, -1, 0,... | //#include <tourist>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> p;
const int INF = 1e9;
const ll LINF = ll(1e18);
const int MOD = 1000000007;
const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0};
const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1},
Dy[8] = {-1, -1, 0,... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,195 | 260,194 | u155416173 | cpp |
p02571 | #include <algorithm>
#include <bits/stdc++.h>
#include <string>
using namespace std; // std::の省略のため
using ll = long long;
ll MOD = 1000000007;
int main() {
string t, s;
cin >> s >> t;
ll tmp = 0;
ll ans = t.size();
for (ll i = 0; i < s.size() - t.size(); i++) {
tmp = 0;
for (ll j = 0; j < t.size()... | #include <algorithm>
#include <bits/stdc++.h>
#include <string>
using namespace std; // std::の省略のため
using ll = long long;
ll MOD = 1000000007;
int main() {
string t, s;
cin >> s >> t;
ll tmp = 0;
ll ans = t.size();
for (ll i = 0; i <= s.size() - t.size(); i++) {
tmp = 0;
for (ll j = 0; j < t.size(... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,196 | 260,197 | u166008195 | cpp |
p02571 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = t.size();
for (int i = 0; i < s.size() - t.size(); i++) {
int diff = 0;
for (int j = 0; j < t.size(); j++) {
if (t[j] != s[i + j])
diff++;
}
ans = min(ans, diff);
}
cou... | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = t.size();
for (int i = 0; i <= s.size() - t.size(); i++) {
int diff = 0;
for (int j = 0; j < t.size(); j++) {
if (t[j] != s[i + j])
diff++;
}
ans = min... | [
"import.add",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,198 | 260,199 | u899092510 | cpp |
p02571 |
#include <bits/stdc++.h>
using namespace std;
// #include <string>
#define tenp3 1000
#define tenp5 100000
#define tenp6 1000000
#define tenp9 1000000000
#define infinity 100000000000000000
#define mod 1000000007
typedef long long ll;
typedef vector<long long int> vll;
typedef vector<int> vi;
typedef pair<long long... |
#include <bits/stdc++.h>
using namespace std;
// #include <string>
#define tenp3 1000
#define tenp5 100000
#define tenp6 1000000
#define tenp9 1000000000
#define infinity 100000000000000000
#define mod 1000000007
typedef long long ll;
typedef vector<long long int> vll;
typedef vector<int> vi;
typedef pair<long long... | [
"identifier.change",
"call.function.change"
] | 260,200 | 260,201 | u323890455 | cpp |
p02571 | #include <bits/stdc++.h>
#define PI 3.1415926535897
using namespace std;
typedef long long ll;
const int INF = 1000000000;
const ll LINF = 1000000000000000000; // 1e18
const double EPS = 1e-10;
int main(void) {
string S, T;
cin >> S >> T;
int ans = INF;
int cnt;
for (int i = 0; i < S.length() - T.length(); ... | #include <bits/stdc++.h>
#define PI 3.1415926535897
using namespace std;
typedef long long ll;
const int INF = 1000000000;
const ll LINF = 1000000000000000000; // 1e18
const double EPS = 1e-10;
int main(void) {
string S, T;
cin >> S >> T;
int ans = INF;
int cnt;
for (int i = 0; i < S.length() - T.length() +... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,205 | 260,206 | u027946359 | cpp |
p02571 | #include <bits/stdc++.h>
#define newl "\n"
using namespace std;
using lli = long long int;
using vvint = vector<vector<int>>;
const int mod = 1e9 + 7;
const int N = 2e5 + 1;
void solve() {
string s, t;
cin >> s >> t;
int ns = s.length();
int nt = t.length();
int minn = 1e8;
for (int i = 0; i < ns - nt; ++... | #include <bits/stdc++.h>
#define newl "\n"
using namespace std;
using lli = long long int;
using vvint = vector<vector<int>>;
const int mod = 1e9 + 7;
const int N = 2e5 + 1;
void solve() {
string s, t;
cin >> s >> t;
int ns = s.length();
int nt = t.length();
int minn = 1e8;
for (int i = 0; i < ns - nt + 1... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,209 | 260,210 | u798359674 | cpp |
p02571 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
int main() {
std::string S, T;
cin >> S >> T;
ll tSize = T.length();
ll res = -1 * (1ll << 60);
for (ll i = 0; i < S.length() - tSize; i++) {
ll counter = 0;
for (ll j = 0; j < tSize; j++) {
if (S... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
int main() {
std::string S, T;
cin >> S >> T;
ll tSize = T.length();
ll res = -1 * (1ll << 60);
for (ll i = 0; i <= S.length() - tSize; i++) {
ll counter = 0;
for (ll j = 0; j < tSize; j++) {
if (... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,211 | 260,212 | u662594753 | cpp |
p02571 | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
typedef long long ll;
typedef std::vector<long long> vll;
typedef std::vector<std::vector<long long>> vvll;
typedef long double ld;
typedef std::vector<long double> vld;
typedef std::vector<std::vector<long double>> vvld;
using namespace std;
v... | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
typedef long long ll;
typedef std::vector<long long> vll;
typedef std::vector<std::vector<long long>> vvll;
typedef long double ld;
typedef std::vector<long double> vld;
typedef std::vector<std::vector<long double>> vvld;
using namespace std;
v... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,216 | 260,217 | u922790134 | cpp |
p02571 | //#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
#include <x86intrin.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(v) v.begin(), v.end()
#define allr(v) v.rbegin(), v.rend()
#define V vector
template <typename T> bool chmin(T &a, con... | //#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
#include <x86intrin.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(v) v.begin(), v.end()
#define allr(v) v.rbegin(), v.rend()
#define V vector
template <typename T> bool chmin(T &a, con... | [
"expression.operation.binary.add"
] | 260,220 | 260,221 | u168684371 | cpp |
p02571 | #include <iostream>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = t.size(), s1 = s.size(), t1 = t.size(), x, i, j;
for (i = 0; i < s1 - t1; i++) {
x = 0;
for (j = 0; j < t1; j++)
if (s[i + j] != t[j])
x++;
if (x < ans)
ans = x;
}
cout << ans << end... | #include <iostream>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = t.size(), s1 = s.size(), t1 = t.size(), x, i, j;
for (i = 0; i <= s1 - t1; i++) {
x = 0;
for (j = 0; j < t1; j++)
if (s[i + j] != t[j])
x++;
if (x < ans)
ans = x;
}
cout << ans << en... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,234 | 260,235 | u570745178 | cpp |
p02571 | #include <iostream>
//#include <vector>
#include <algorithm>
#include <string>
//#include <math.h>
//#include <queue>
//#include <stack>
//#include <iomanip>
// sometimes used
//#include <set>
//#include <map>
//#include <numeric>
//#include <list>
//#include <deque>
//#include <unordered_map>
typedef long long LL;
/... | #include <iostream>
//#include <vector>
#include <algorithm>
#include <string>
//#include <math.h>
//#include <queue>
//#include <stack>
//#include <iomanip>
// sometimes used
//#include <set>
//#include <map>
//#include <numeric>
//#include <list>
//#include <deque>
//#include <unordered_map>
typedef long long LL;
/... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,236 | 260,237 | u755310927 | cpp |
p02571 | // Code for B - Substring
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (ll i = 0; i < (ll)(n); i++)
#define FOR(i, x, y) for (ll i = x; i < (ll)(y); i++)
#define MOD 1000000007
#define mod(x) ((x) % MOD + MOD) % MOD
#define debug(var) ... | // Code for B - Substring
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (ll i = 0; i < (ll)(n); i++)
#define FOR(i, x, y) for (ll i = x; i < (ll)(y); i++)
#define MOD 1000000007
#define mod(x) ((x) % MOD + MOD) % MOD
#define debug(var) ... | [
"expression.operation.binary.add"
] | 260,240 | 260,241 | u638629468 | cpp |
p02571 | #include <bits/stdc++.h>
#define int long long
const int MOD = 1e9 + 7;
using namespace std;
void solve() {
string s, p;
cin >> s >> p;
int cnt = 0;
for (int i = 0; i <= s.size() - p.size(); ++i) {
int st = i;
int en = i + p.size();
int l = 0;
int w = 0;
for (int j = st; j <= en; ++j) {
... | #include <bits/stdc++.h>
#define int long long
const int MOD = 1e9 + 7;
using namespace std;
void solve() {
string s, p;
cin >> s >> p;
int cnt = 0;
for (int i = 0; i <= s.size() - p.size(); ++i) {
int st = i;
int en = i + p.size() - 1;
int l = 0;
int w = 0;
for (int j = st; j <= en; ++j) {
... | [
"control_flow.branch.if.condition.change"
] | 260,242 | 260,243 | u578753285 | cpp |
p02571 | #include <algorithm> // sort, lower_bound, heap, min, next_permutation
#include <bitset> // bitset
#include <cmath> // sin, exp, log, pow, sqrt
#include <cstdio> // fopen, printf, scanf, puts
#include <ctime> // clock
#include <functional> // greater, less
#include <iomanip> // setfill, setbase
#i... | #include <algorithm> // sort, lower_bound, heap, min, next_permutation
#include <bitset> // bitset
#include <cmath> // sin, exp, log, pow, sqrt
#include <cstdio> // fopen, printf, scanf, puts
#include <ctime> // clock
#include <functional> // greater, less
#include <iomanip> // setfill, setbase
#i... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,244 | 260,245 | u133645021 | cpp |
p02571 | #include <bits/stdc++.h>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define MAXN 300010
#define Endl '\n'
#define pb push_back
#define mp make_pair
#define lb lower_bound
#define ub upper_bound
#define ll long long int
#define pii pair<ll, ll>
#... | #include <bits/stdc++.h>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define MAXN 300010
#define Endl '\n'
#define pb push_back
#define mp make_pair
#define lb lower_bound
#define ub upper_bound
#define ll long long int
#define pii pair<ll, ll>
#... | [
"expression.operation.binary.add"
] | 260,248 | 260,249 | u484554496 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
long s = S.size(), t = T.size();
long ans = 1234567890;
for (int i = 0; i < s - t; i++) {
string tmp = S.substr(i, t);
long tmpans = 0;
for (int j = 0; j < t; j++) {
if (tmp[j] != T[j])
tmpans++;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
long s = S.size(), t = T.size();
long ans = 1234567890;
for (int i = 0; i < s - t + 1; i++) {
string tmp = S.substr(i, t);
long tmpans = 0;
// cout<<tmp<<endl;
for (int j = 0; j < t; j++) {
if (tmp[j]... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,255 | 260,256 | u223172354 | cpp |
p02571 | #include <iostream>
#include <vector>
using namespace std;
int gcd(int x, int y) { return (x % y) ? gcd(y, x % y) : y; }
int main() {
string S, T;
cin >> S >> T;
int intAmari = S.length() - T.length();
int intSlen = S.length();
int intTMin = T.length();
int intCount = 0;
for (int i = 0; i < intAmari... | #include <iostream>
#include <vector>
using namespace std;
int gcd(int x, int y) { return (x % y) ? gcd(y, x % y) : y; }
int main() {
string S, T;
cin >> S >> T;
int intAmari = S.length() - T.length();
int intSlen = S.length();
int intTMin = T.length();
int intCount = 0;
for (int i = 0; i <= intAmar... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,257 | 260,258 | u117802385 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int t;
t = 1;
while (t--) {
string s, t;
cin >> s;
cin >> t;
int n = s.size();
int m = t.size(), ans = INT_MAX;
int i = 0, j = 0;
for (int i = 0; i < n - m; i++) {
string l = s.substr(i, m);
i... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int t;
t = 1;
while (t--) {
string s, t;
cin >> s;
cin >> t;
int n = s.size();
int m = t.size(), ans = INT_MAX;
int i = 0, j = 0;
for (int i = 0; i <= n - m; i++) {
string l = s.substr(i, m);
... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 260,259 | 260,260 | u296036103 | cpp |
p02571 | #include <iostream>
using namespace std;
int sl, tl; // 字符串长度
int similarity; // 两个字符串的相似度
string s, t;
int ans;
int main() {
cin >> s >> t;
sl = s.size(), tl = t.size();
for (int i = 0; i < sl - tl; i++) {
similarity = 0;
for (int j = 0; j < tl; j++) {
similarity += s[i + j] == t[j];
}
... | #include <iostream>
using namespace std;
int sl, tl; // 字符串长度
int similarity; // 两个字符串的相似度
string s, t;
int ans;
int main() {
cin >> s >> t;
sl = s.size(), tl = t.size();
for (int i = 0; i <= sl - tl; i++) {
similarity = 0;
for (int j = 0; j < tl; j++) {
similarity += s[i + j] == t[j];
}... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,263 | 260,264 | u910057153 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.