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 |
|---|---|---|---|---|---|---|---|
p02571 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define pb push_back
using ll = long long;
using P = pair<int, int>;
int main() {
string s, t;
cin >> s >> t;
int sl = s.size();
int tl = ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define pb push_back
using ll = long long;
using P = pair<int, int>;
int main() {
string s, t;
cin >> s >> t;
int sl = s.size();
int tl = ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,265 | 260,266 | u455067221 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using P = pair<int, int>;
int main() {
string s, t;
cin >> s >> t;
int ans = t.size();
rep(i, s.size()) {
if (i + t.size() > s.size())
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using P = pair<int, int>;
int main() {
string s, t;
cin >> s >> t;
int ans = t.size();
rep(i, s.size()) {
if (i + t.size() > s.size())
... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 260,272 | 260,273 | u268822556 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using P = pair<int, int>;
int main() {
string s, t;
cin >> s >> t;
int minimum = t.size();
rep(i, s.size()) {
if (i + t.size() > s.size())... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using P = pair<int, int>;
int main() {
string s, t;
cin >> s >> t;
int ans = t.size();
rep(i, s.size()) {
if (i + t.size() > s.size())
... | [
"variable_declaration.name.change",
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"assignment.variable.change",
"assignment.value.change",
"call.arguments.change",
"io.output.change"
] | 260,274 | 260,273 | u268822556 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using P = pair<int, int>;
int main() {
string s, t;
cin >> s >> t;
int minimum = t.size();
rep(i, t.size()) {
if (i + t.size() > s.size())... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using P = pair<int, int>;
int main() {
string s, t;
cin >> s >> t;
int ans = t.size();
rep(i, s.size()) {
if (i + t.size() > s.size())
... | [
"variable_declaration.name.change",
"identifier.change",
"call.arguments.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"assignment.variable.change",
"assignment.value.change",
"io.output.change"
] | 260,275 | 260,273 | u268822556 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
string t;
cin >> s;
cin >> t;
int changes = s.size() + 1;
for (int indS = 0; indS < s.size(); indS++) {
int auxChanges = 0;
for (int i = 0; i < t.size(); i++) {
if (i + indS > s.size()) {
cout << changes;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
string t;
cin >> s;
cin >> t;
int changes = s.size() + 1;
for (int indS = 0; indS < s.size(); indS++) {
int auxChanges = 0;
for (int i = 0; i < t.size(); i++) {
if (i + indS >= s.size()) {
cout << changes;
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 260,280 | 260,281 | u162251610 | cpp |
p02571 | #include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
#define reps(i, s, n) for (int(i) = (s); (i) < (n); (i)++)
#define rep(i, n) reps(i, 0, n)
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using vi ... | #include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
#define reps(i, s, n) for (int(i) = (s); (i) < (n); (i)++)
#define rep(i, n) reps(i, 0, n)
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using vi ... | [
"expression.operation.binary.add"
] | 260,289 | 260,290 | u704411633 | cpp |
p02571 | #include <bits/stdc++.h>
#include <vector>
#define rep(x, n) for (int i = x; i < (n); ++i)
using namespace std;
using ll = long long;
int main(void) {
string s, t;
cin >> s >> t;
int res = t.size();
for (int start = 0; start < s.size() - t.size(); ++start) {
int diff = 0;
for (int i = 0; i < t.size(... | #include <bits/stdc++.h>
#include <vector>
#define rep(x, n) for (int i = x; i < (n); ++i)
using namespace std;
using ll = long long;
int main(void) {
string s, t;
cin >> s >> t;
int res = t.size();
for (int start = 0; start <= s.size() - t.size(); ++start) {
int diff = 0;
for (int i = 0; i < t.size... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,293 | 260,294 | u738622346 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
void solve() {
string s, t;
cin >> s >> t;
int j = 0;
int c = 0;
int ans = s.length();
for (int i = 0; i < s.length() - t.length(); i++) {
int c = 0;
for (int j = i; j < i + t.length(); j++) {
if (s[j] != t[j - i]) {
// cout... | #include <bits/stdc++.h>
using namespace std;
void solve() {
string s, t;
cin >> s >> t;
int j = 0;
int c = 0;
int ans = s.length();
for (int i = 0; i <= s.length() - t.length(); i++) {
int c = 0;
for (int j = i; j < i + t.length(); j++) {
if (s[j] != t[j - i]) {
// cou... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,295 | 260,296 | u390801047 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
ll M = 1e9 + 7;
int main() {
string s, t;
cin >> s >> t;
ll ans = INT_MAX;
for (int i = 0; i + t.size() < s.size(); i++) {
ll temp = 0;
for (int j = 0; j < t.size(); j++) {
if (s[i + j] != t[j])
temp++;
}
a... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
ll M = 1e9 + 7;
int main() {
string s, t;
cin >> s >> t;
ll ans = INT_MAX;
for (int i = 0; i + t.size() <= s.size(); i++) {
ll temp = 0;
for (int j = 0; j < t.size(); j++) {
if (s[i + j] != t[j])
temp++;
}
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,300 | 260,301 | u245265970 | cpp |
p02571 | #include "bits/stdc++.h"
#define rep(i, j) for (int i = 0; i < j; i++)
#define srep(i, j, k) for (int i = j; i < k; i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
using ull = unsigned long long;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
... | #include "bits/stdc++.h"
#define rep(i, j) for (int i = 0; i < j; i++)
#define srep(i, j, k) for (int i = j; i < k; i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
using ull = unsigned long long;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
... | [
"literal.number.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 260,304 | 260,305 | u616794313 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define int long long
signed main() {
string s, t;
cin >> s >> t;
int n = (int)s.size();
int m = (int)t.size();
int ans = n;
for (int i = 0; i + m < n; i++) {
string sub = s.substr(i, m);
int cnt = ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define int long long
signed main() {
string s, t;
cin >> s >> t;
int n = (int)s.size();
int m = (int)t.size();
int ans = n;
for (int i = 0; i + m <= n; i++) {
string sub = s.substr(i, m);
int cnt =... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,306 | 260,307 | u862412671 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define PI 3.141592653589793
#define MOD 1000000007
#define rep(i, n) for (ll i = 0; i < n; i++)
#define all(v) v.begin(), v.end()
typedef long long ll;
typedef long double ld;
int main() {
string S, T;
cin >> S >> T;
ll ans = MOD;
rep(i, S.size() - T.size()) {
... | #include <bits/stdc++.h>
using namespace std;
#define PI 3.141592653589793
#define MOD 1000000007
#define rep(i, n) for (ll i = 0; i < n; i++)
#define all(v) v.begin(), v.end()
typedef long long ll;
typedef long double ld;
int main() {
string S, T;
cin >> S >> T;
ll ans = MOD;
rep(i, S.size() - T.size() + 1) ... | [
"expression.operation.binary.add"
] | 260,308 | 260,309 | u000217193 | cpp |
p02571 | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < n; ++i)
typedef long long ll;
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = 1e9;
rep(off, s.size() - t.size()) {
int now = 0;
rep(i, t.size()) {
if (s[off + i] != t[i])
now++;
}
ans = min(ans,... | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < n; ++i)
typedef long long ll;
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = 1e9;
rep(off, s.size() - t.size() + 1) {
int now = 0;
rep(i, t.size()) {
if (s[off + i] != t[i])
now++;
}
ans = min(... | [
"expression.operation.binary.add"
] | 260,312 | 260,313 | u480938608 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define int long long int
#define ff first
#define ss second
#define pb push_back
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(0); ... | #include <bits/stdc++.h>
using namespace std;
#define int long long int
#define ff first
#define ss second
#define pb push_back
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(0); ... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,316 | 260,317 | u908125903 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i, x, n) for (int i = x; i < (n); i++)
#define ALL(n) begin(n), end(n)
#define INF ((1 << 30) - 1)
#define LINF (1LL << 60)
#define EPS (1e-10)
typedef long long Int;
typedef pair<Int, Int> P;
typedef pair<int, in... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i, x, n) for (int i = x; i < (n); i++)
#define ALL(n) begin(n), end(n)
#define INF ((1 << 30) - 1)
#define LINF (1LL << 60)
#define EPS (1e-10)
typedef long long Int;
typedef pair<Int, Int> P;
typedef pair<int, in... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,318 | 260,319 | u511379665 | cpp |
p02571 | #include <bits/stdc++.h>
#define ff first
#define ss second
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define mset(x, y) memset((x), (y), sizeof(x))
#define sz(x) ((int)(x).size())
#define rep(i, a, b) for (i = a; i < b; i++)
#define per(i, a, b) for (i = a; i >= b; i--)
#define all(x) (x).begin... | #include <bits/stdc++.h>
#define ff first
#define ss second
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define mset(x, y) memset((x), (y), sizeof(x))
#define sz(x) ((int)(x).size())
#define rep(i, a, b) for (i = a; i < b; i++)
#define per(i, a, b) for (i = a; i >= b; i--)
#define all(x) (x).begin... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,328 | 260,329 | u243810398 | cpp |
p02571 | #include <bits/stdc++.h>
#define rep(i, x, y) for (int i = x; i <= y; i++)
using namespace std;
void cmax(int &x, const int &y) { x = x > y ? x : y; }
void cmin(int &x, const int &y) { x = x < y ? x : y; }
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
std::string s, t;
cin >> s >> t;
int l1 = s.siz... | #include <bits/stdc++.h>
#define rep(i, x, y) for (int i = x; i <= y; i++)
using namespace std;
void cmax(int &x, const int &y) { x = x > y ? x : y; }
void cmin(int &x, const int &y) { x = x < y ? x : y; }
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
std::string s, t;
cin >> s >> t;
int l1 = s.siz... | [
"expression.operation.binary.remove"
] | 260,330 | 260,331 | u541866795 | cpp |
p02571 | #include <algorithm>
#include <cmath>
#include <deque>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
ll mod = 1e9 + 7;
// ll mod = 998244353;
#define rep(i, n) for (int i = 0; i < (n)... | #include <algorithm>
#include <cmath>
#include <deque>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
ll mod = 1e9 + 7;
// ll mod = 998244353;
#define rep(i, n) for (int i = 0; i < (n)... | [
"expression.operation.binary.add"
] | 260,336 | 260,337 | u596311864 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define rep(a, b) for (ll ii = a; ii < b; ii++)
#define ll long long int
#define test() \
int tt; \
cin >> tt; ... | #include <bits/stdc++.h>
using namespace std;
#define rep(a, b) for (ll ii = a; ii < b; ii++)
#define ll long long int
#define test() \
int tt; \
cin >> tt; ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,345 | 260,346 | u393366698 | cpp |
p02571 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string S, T;
cin >> S >> T;
int count = size(T);
int s = size(S);
int t = size(T);
int min = 0;
for (int i = 0; i < s - t; i++) {
for (int j = 0; j < t; j++) {
if (S[i + j] != T[j])
min++;
}
if (count > m... | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string S, T;
cin >> S >> T;
int count = size(T);
int s = size(S);
int t = size(T);
int min = 0;
for (int i = 0; i <= s - t; i++) {
for (int j = 0; j < t; j++) {
if (S[i + j] != T[j])
min++;
}
if (count > ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,347 | 260,348 | u475555062 | cpp |
p02571 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string S, T;
cin >> S >> T;
int s = size(S);
int t = size(T);
int x = t;
// cout << s << endl << t << endl;
for (int i = 0; i < s - t; i++) {
int a = 0;
for (int j = 0; j < t; j++) {
if (S[i + j] != T[j]) {
a... | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string S, T;
cin >> S >> T;
int s = size(S);
int t = size(T);
int x = t;
// cout << s << endl << t << endl;
for (int i = 0; i <= s - t; i++) {
int a = 0;
for (int j = 0; j < t; 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"
] | 260,349 | 260,350 | u018638304 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
const int MaxL = 1e3;
string S, T;
int Mask(int st, int t = 0) {
for (int i = 0; i < T.length(); i++)
t += S[st + i] != T[i];
return t;
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin >> S >> T;
int ans = S.length();
for (int i = 0... | #include <bits/stdc++.h>
using namespace std;
const int MaxL = 1e3;
string S, T;
int Mask(int st, int t = 0) {
for (int i = 0; i < T.length(); i++)
t += S[st + i] != T[i];
return t;
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin >> S >> T;
int ans = S.length();
for (int i = 0... | [
"misc.opposites",
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 260,356 | 260,357 | u570506120 | cpp |
p02571 | #include <iostream>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define ll long long
int main() {
std::string s, t;
std::cin >> s >> t;
int ans = 1e3;
rep(i, s.size() - t.size()) {
int cost = 0;
rep(j, t.size()) if (s[i + j] != t[j])++ cost;
ans = std::min(ans, cost);
}
std::cout << ans <<... | #include <iostream>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define ll long long
int main() {
std::string s, t;
std::cin >> s >> t;
int ans = 1e3;
rep(i, s.size() - t.size() + 1) {
int cost = 0;
rep(j, t.size()) if (s[i + j] != t[j])++ cost;
ans = std::min(ans, cost);
}
std::cout << an... | [
"expression.operation.binary.add"
] | 260,358 | 260,359 | u104605386 | cpp |
p02571 | #pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#pragma GCC optimization("unroll-loops")
#include <bits/stdc++.h>
#define int long long int
#define double long double
#define minheapair \
priority_queue<pair<int, int>, vector<pair<int, int>>... | #pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#pragma GCC optimization("unroll-loops")
#include <bits/stdc++.h>
#define int long long int
#define double long double
#define minheapair \
priority_queue<pair<int, int>, vector<pair<int, int>>... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,360 | 260,361 | u780100598 | cpp |
p02571 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
#define mp make_pair
#define pb(x) push_back(x)
#define vi vector<int>
#define vs vector<string>
#define vll vector<long long>
#define vc vector<char>
#define vs vector... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
#define mp make_pair
#define pb(x) push_back(x)
#define vi vector<int>
#define vs vector<string>
#define vll vector<long long>
#define vc vector<char>
#define vs vector... | [
"assignment.variable.change",
"identifier.change"
] | 260,365 | 260,366 | u754279713 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s;
cin >> t;
int ans = t.size();
int diff;
for (int i = 0; i < s.size() - t.size(); i++) {
diff = 0;
for (int j = 0; j < t.size(); j++) {
if (s.at(i + j) != t.at(j))
diff++;
}
ans = min(ans, diff);
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s;
cin >> t;
int ans = t.size();
int diff;
for (int i = 0; i <= s.size() - t.size(); i++) {
diff = 0;
for (int j = 0; j < t.size(); j++) {
if (s.at(i + j) != t.at(j))
diff++;
}
ans = min(ans, diff);... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,367 | 260,368 | u994985556 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#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<<( \
c i) {
sim > ... | #include <bits/stdc++.h>
using namespace std;
#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<<( \
c i) {
sim > ... | [
"control_flow.break.remove",
"control_flow.continue.add"
] | 260,383 | 260,384 | u894090719 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
//#define cin fi
//#define cout fo
// ifstream fi ("");
// ofstream fo (".INP");
int main() {
// freopen("test.txt" , "r" , stdin);
// ios_base:: sync_with_stdio(false);
// cin.tie(0);
// cout.tie(0);
string s, t;
cin >> s >> t;
int n = s.length(), m = t.... | #include <bits/stdc++.h>
using namespace std;
//#define cin fi
//#define cout fo
// ifstream fi ("");
// ofstream fo (".INP");
int main() {
// freopen("test.txt" , "r" , stdin);
// ios_base:: sync_with_stdio(false);
// cin.tie(0);
// cout.tie(0);
string s, t;
cin >> s >> t;
int n = s.length(), m = t.... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,385 | 260,386 | u896235092 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
typedef pair<int, int> P;
#define SORT(a) sort((a).begin(), (a).end())
#define REV(a) reverse((a).begin(), (a).end())
#define For(i, a, b) for (int i = (a); i < (b); ++i)
#define rep(i, n) For(i, 0, n)
#define debug(x) cerr << #x << " = " << (x) << en... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
typedef pair<int, int> P;
#define SORT(a) sort((a).begin(), (a).end())
#define REV(a) reverse((a).begin(), (a).end())
#define For(i, a, b) for (int i = (a); i < (b); ++i)
#define rep(i, n) For(i, 0, n)
#define debug(x) cerr << #x << " = " << (x) << en... | [
"assignment.change"
] | 260,387 | 260,388 | u298620933 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b;
cin >> a >> b;
int ans = b.size();
for (int i = 0; i < a.size() - b.size(); i++) {
int dd = 0;
for (int j = 0; j < b.size(); j++) {
if (a.at(i + j) != b.at(j))
dd++;
}
ans = min(ans, dd);
}
cout << ans << ... | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b;
cin >> a >> b;
int ans = b.size();
for (int i = 0; i <= (a.size() - b.size()); i++) {
int dd = 0;
for (int j = 0; j < b.size(); j++) {
if (a.at(i + j) != b.at(j))
dd++;
}
ans = min(ans, dd);
}
cout << ans ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,389 | 260,390 | u624484934 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
string s, t;
cin >> s >> t;
ll sl = s.length();
ll tl = t.length();
ll mx = 0;
for (ll i = 0; i < sl; ++i) {
ll cnt = 0;
for (ll j = 0; j < tl; ++j) {
if (s[i + j] == t[j])
cnt++;
}
mx = max(mx, cn... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
string s, t;
cin >> s >> t;
ll sl = s.length();
ll tl = t.length();
ll mx = 0;
for (ll i = 0; i <= sl - tl; ++i) {
ll cnt = 0;
for (ll j = 0; j < tl; ++j) {
if (s[i + j] == t[j])
cnt++;
}
mx = max(... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"expression.operation.binary.add",
"control_flow.return.add",
"control_flow.return.0.add"
] | 260,393 | 260,394 | u992135188 | cpp |
p02571 | // Mahir Ratanpara (DA-IICT)
#include <bits/stdc++.h>
using namespace std;
#define Ff(i, a, n) for (i = a; i < n; i++)
#define Fr(i, a, n) for (i = a; i > n; i--)
#define ll long long
#define FAST ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
#define pb push_back
#define ff first
#define ss second
#define ... | // Mahir Ratanpara (DA-IICT)
#include <bits/stdc++.h>
using namespace std;
#define Ff(i, a, n) for (i = a; i < n; i++)
#define Fr(i, a, n) for (i = a; i > n; i--)
#define ll long long
#define FAST ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
#define pb push_back
#define ff first
#define ss second
#define ... | [
"expression.operation.binary.add"
] | 260,395 | 260,396 | u214406343 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define dou double
#define endl "\n"
const int MOD = 1e9 + 7;
void solve() {
int n, m, i, j, cnt, maxi = INT_MIN;
string str1, str2;
cin >> str1 >> str2;
n = str1.size();
m = str2.size();
for (i = 0; i < n - m; i++) {
cnt = 0;
fo... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define dou double
#define endl "\n"
const int MOD = 1e9 + 7;
void solve() {
int n, m, i, j, cnt, maxi = INT_MIN;
string str1, str2;
cin >> str1 >> str2;
n = str1.size();
m = str2.size();
for (i = 0; i <= n - m; i++) {
cnt = 0;
f... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,409 | 260,410 | u468643492 | cpp |
p02571 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int n = s.size(), m = t.size(), a = 1e9;
rep(i, n - m + 1) {
int u = 0;
rep(j, m) if (s[i + j] == t[j])++ u;
a = min(a, u);
}
cout << a << "\n";
return 0;
} | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int n = s.size(), m = t.size(), a = 1e9;
rep(i, n - m + 1) {
int u = 0;
rep(j, m) if (s[i + j] != t[j])++ u;
a = min(a, u);
}
cout << a << "\n";
return 0;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 260,411 | 260,412 | u757584836 | cpp |
p02571 | // tanzim bin nasir
#include <bits/stdc++.h>
typedef long long ll;
#define ff first
#define ss second
using namespace std;
void fast() {
ios::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
}
ll gcd(ll a, ll b) {
if (b == 0)
return a;
else
gcd(b, a % b);
}
ll lcd(ll a, ll b) { return (a * b) / ... | // tanzim bin nasir
#include <bits/stdc++.h>
typedef long long ll;
#define ff first
#define ss second
using namespace std;
void fast() {
ios::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
}
ll gcd(ll a, ll b) {
if (b == 0)
return a;
else
gcd(b, a % b);
}
ll lcd(ll a, ll b) { return (a * b) / ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,413 | 260,414 | u385733720 | cpp |
p02571 | // tanzim bin nasir
#include <bits/stdc++.h>
typedef long long ll;
#define ff first
#define ss second
using namespace std;
void fast() {
ios::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
}
ll gcd(ll a, ll b) {
if (b == 0)
return a;
else
gcd(b, a % b);
}
ll lcd(ll a, ll b) { return (a * b) / ... | // tanzim bin nasir
#include <bits/stdc++.h>
typedef long long ll;
#define ff first
#define ss second
using namespace std;
void fast() {
ios::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
}
ll gcd(ll a, ll b) {
if (b == 0)
return a;
else
gcd(b, a % b);
}
ll lcd(ll a, ll b) { return (a * b) / ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,415 | 260,414 | u385733720 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define FASTIO \
ios::sync_with_stdio(false); \
cin.tie(nullptr)
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define pb push_ba... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define FASTIO \
ios::sync_with_stdio(false); \
cin.tie(nullptr)
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define pb push_ba... | [
"identifier.replace.add",
"literal.replace.remove",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 260,416 | 260,417 | u792069587 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define rep(i, a, b) for (ll i = a; i < b; i++)
#define repp(i, a, b) for (ll i = a; i <= b; i++)
#define rrep(i, a, b) for (ll i = a; i >= b; i--)
#define endl "\n"
#define deb(x) cerr << #x << "=" << x << endl
#define debb(x, y)... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define rep(i, a, b) for (ll i = a; i < b; i++)
#define repp(i, a, b) for (ll i = a; i <= b; i++)
#define rrep(i, a, b) for (ll i = a; i >= b; i--)
#define endl "\n"
#define deb(x) cerr << #x << "=" << x << endl
#define debb(x, y)... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,418 | 260,419 | u577806663 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define rep(i, a, b) for (ll i = a; i < b; i++)
#define repp(i, a, b) for (ll i = a; i <= b; i++)
#define rrep(i, a, b) for (ll i = a; i >= b; i--)
#define endl "\n"
#define deb(x) cerr << #x << "=" << x << endl
#define debb(x, y)... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define rep(i, a, b) for (ll i = a; i < b; i++)
#define repp(i, a, b) for (ll i = a; i <= b; i++)
#define rrep(i, a, b) for (ll i = a; i >= b; i--)
#define endl "\n"
#define deb(x) cerr << #x << "=" << x << endl
#define debb(x, y)... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one",
"variable_declaration.value.change",
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.initializer.change"
] | 260,420 | 260,419 | u577806663 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s;
cin >> 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(diff, ans);
}
cout << a... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s;
cin >> 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(diff, ans);
}
cout << ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,427 | 260,428 | u056912761 | cpp |
p02571 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s, t, subs;
cin >> s >> t;
int n = s.size(), m = t.size(), min = n + 1, ctr;
for (int i = 0; i < n - m; i++) {
subs = s.substr(i, m);
ctr = 0;
for (int j = 0; j < m; j++) {
if (subs[j] != t[j])
ctr++;
... | #include <iostream>
#include <string>
using namespace std;
int main() {
string s, t, subs;
cin >> s >> t;
int n = s.size(), m = t.size(), min = n + 1, ctr;
for (int i = 0; i <= n - m; i++) {
subs = s.substr(i, m);
ctr = 0;
for (int j = 0; j < m; j++) {
if (subs[j] != t[j])
ctr++;
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,433 | 260,434 | u205299510 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S;
cin >> T;
int ns = S.length(), nt = T.length(), ans = nt;
for (int i = 0; (i < ns) && (i + nt < ns); i++) {
int count = 0;
for (int j = 0; j < nt; j++) {
if (S[i + j] != T[j])
count++;
}
ans = m... | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S;
cin >> T;
int ns = S.length(), nt = T.length(), ans = nt;
for (int i = 0; (i < ns) && (i + nt - 1 < ns); i++) {
int count = 0;
for (int j = 0; j < nt; j++) {
if (S[i + j] != T[j])
count++;
}
ans... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,435 | 260,436 | u115345152 | cpp |
p02571 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++) // rep(i,回数){処理}
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
string s, t;
cin >> s;
cin >> t;
ll ans = 0, count = 0;
rep(i, s.length() - t.length()) {
rep(j, t.length()) {
if (s[i + j] == ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++) // rep(i,回数){処理}
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
string s, t;
cin >> s;
cin >> t;
ll ans = 0, count = 0;
rep(i, s.length() - t.length() + 1) {
rep(j, t.length()) {
if (s[i + j]... | [
"expression.operation.binary.add"
] | 260,447 | 260,448 | u928758473 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int n = s.size(), m = t.size();
int dmax = 0x3f3f3f3f;
for (int i = 0; i < n - m; i++) {
string p = s.substr(i, m);
// cout << p << endl;
int cnt = 0;
for (int j = 0; j < p.size(); j++) {
if (p[j] !=... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int n = s.size(), m = t.size();
int dmax = 0x3f3f3f3f;
for (int i = 0; i <= n - m; i++) {
string p = s.substr(i, m);
// cout << p << endl;
int cnt = 0;
for (int j = 0; j < p.size(); j++) {
if (p[j] !... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,451 | 260,452 | u147563792 | cpp |
p02571 | #include <iostream>
using namespace std;
int main() {
int i, j, ans = 1001;
string S, T;
cin >> S >> T;
for (i = 0; i < S.size() - T.size(); i++) {
int c = 0;
for (j = 0; j < T.size(); j++) {
if (S[i + j] != T[j])
c++;
}
ans = min(ans, c);
}
cout << ans << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int i, j, ans = 1001;
string S, T;
cin >> S >> T;
for (i = 0; i <= S.size() - T.size(); i++) {
int c = 0;
for (j = 0; j < T.size(); j++) {
if (S[i + j] != T[j])
c++;
}
ans = min(ans, c);
}
cout << ans << endl;
return 0;
}... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,453 | 260,454 | u257920432 | cpp |
p02571 | #include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
int main() {
int ans = 0, minans = 2000;
char s[1010], t[1010];
scanf("%s%s", &s, &t);
for (int i = 0; i <= strlen(s); i++) {
ans = 0;
for (int j = 0; j <= strlen(t); j++) {
if (s[i + j] != t[j])
ans++;
}
... | #include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
int main() {
int ans = 0, minans = 2000;
char s[1010], t[1010];
scanf("%s%s", &s, &t);
for (int i = 0; i <= strlen(s) - strlen(t); i++) {
ans = 0;
for (int j = 0; j < strlen(t); j++) {
if (s[i + j] != t[j])
ans+... | [
"control_flow.loop.for.condition.change",
"expression.operator.compare.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,455 | 260,456 | u673980701 | cpp |
p02571 | #include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
int main() {
int ans = 0, minans = 2000;
char s[1010], t[1010];
scanf("%s%s", &s, &t);
for (int i = 0; i < strlen(s); i++) {
ans = 0;
for (int j = 0; j < strlen(t); j++) {
if (s[i + j] != t[j])
ans++;
}
... | #include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
int main() {
int ans = 0, minans = 2000;
char s[1010], t[1010];
scanf("%s%s", &s, &t);
for (int i = 0; i <= strlen(s) - strlen(t); i++) {
ans = 0;
for (int j = 0; j < strlen(t); j++) {
if (s[i + j] != t[j])
ans+... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,457 | 260,456 | u673980701 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define fastio \
cin.tie(NULL); \
cout.tie(NULL); \
ios_base::sync_with_stdio(0... | #include <bits/stdc++.h>
using namespace std;
#define fastio \
cin.tie(NULL); \
cout.tie(NULL); \
ios_base::sync_with_stdio(0... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,458 | 260,459 | u640181671 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define fastio \
cin.tie(NULL); \
cout.tie(NULL); \
ios_base::sync_with_stdio(0... | #include <bits/stdc++.h>
using namespace std;
#define fastio \
cin.tie(NULL); \
cout.tie(NULL); \
ios_base::sync_with_stdio(0... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,460 | 260,459 | u640181671 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
int ans = 1000000;
cin >> s >> t;
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(diff, ans);
}
cout << ans << e... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
int ans = 1000000;
cin >> s >> t;
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(diff, ans);
}
cout << ans << ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,461 | 260,462 | u624830211 | cpp |
p02571 | // time-limit: 2000
#include <bits/stdc++.h>
using namespace std;
string s, t;
int sLen, tLen, ans = 1e9;
int compare(int x) {
int res = 0;
for (int i = 0; i < tLen; ++i) {
res += (t[i] != s[i + x]);
}
return res;
}
void solve() {
cin >> s >> t;
sLen = s.length();
tLen = t.length();
for (int i = 0... | // time-limit: 2000
#include <bits/stdc++.h>
using namespace std;
string s, t;
int sLen, tLen, ans = 1e9;
int compare(int x) {
int res = 0;
for (int i = 0; i < tLen; ++i) {
res += (t[i] != s[i + x]);
}
return res;
}
void solve() {
cin >> s >> t;
sLen = s.length();
tLen = t.length();
for (int i = 0... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,470 | 260,471 | u442712373 | cpp |
p02571 | #include <iostream>
using namespace std;
string S, T;
int main() {
cin >> S >> T;
int min = T.size();
for (size_t i = 0; i + T.length() < S.length(); i++) {
int count = 0;
for (size_t j = 0; j < T.length(); j++) {
if (S[i + j] != T[j])
count++;
}
if (min > count) {
min = count;... | #include <iostream>
using namespace std;
string S, T;
int main() {
cin >> S >> T;
int min = T.size();
for (size_t i = 0; i + T.length() <= S.length(); i++) {
int count = 0;
for (size_t j = 0; j < T.length(); j++) {
if (S[i + j] != T[j])
count++;
}
if (min > count) {
min = count... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,472 | 260,473 | u761070248 | cpp |
p02571 | #include <iostream>
using namespace std;
string S, T;
int main() {
cin >> S >> T;
int min = T.size();
for (size_t i = 0; i + T.length() < S.length(); i++) {
int count = 0;
for (size_t j = 0; j < T.length(); j++) {
if (S[i + j] != T[i + j])
count++;
}
if (min > count) {
min = co... | #include <iostream>
using namespace std;
string S, T;
int main() {
cin >> S >> T;
int min = T.size();
for (size_t i = 0; i + T.length() <= S.length(); i++) {
int count = 0;
for (size_t j = 0; j < T.length(); j++) {
if (S[i + j] != T[j])
count++;
}
if (min > count) {
min = count... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 260,474 | 260,473 | u761070248 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int ans = 1e9;
for (int i = 0; i + T.length() < S.length(); i++) {
int c = 0;
for (int j = 0; j < T.length(); j++) {
c += T[j] != S[j + i];
}
ans = min(ans, c);
}
cout << ans;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int ans = 1e9;
for (int i = 0; i + T.length() <= S.length(); i++) {
int c = 0;
for (int j = 0; j < T.length(); j++) {
c += T[j] != S[j + i];
}
ans = min(ans, c);
}
cout << ans;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,482 | 260,483 | u211694760 | cpp |
p02571 | #include <bits/stdc++.h>
#define ll long long
#define Arman_Sykot \
ios_base::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0)
using namespace ... | #include <bits/stdc++.h>
#define ll long long
#define Arman_Sykot \
ios_base::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0)
using namespace ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,486 | 260,487 | u489075504 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
string s, t;
cin >> s >> t;
ll ans = INT_MAX;
for (ll i = 0; i < s.size() - t.size(); i++) {
string sb = s.substr(i, t.size());
// cout << sb << " ";
ll count = 0;
for (ll j = 0; j < sb.size(); j++) {
if (s... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
string s, t;
cin >> s >> t;
ll ans = INT_MAX;
for (ll i = 0; i <= s.size() - t.size(); i++) {
string sb = s.substr(i, t.size());
// cout << sb << " ";
ll count = 0;
for (ll j = 0; j < sb.size(); j++) {
if (... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,491 | 260,492 | u214732904 | cpp |
p02571 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
string L, T;
cin >> T >> L;
int res = T.size();
rep(i, T.size() - L.size() + 1) {
int r = 0;
rep(j, L.size()) {
if (T[i + j] == L[j])
r++;
}
if (r < res)
res = r;
}
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
string L, T;
cin >> T >> L;
int res = L.size();
rep(i, T.size() - L.size() + 1) {
int r = 0;
rep(j, L.size()) {
if (T[i + j] != L[j])
r++;
}
if (r < res)
res = r;
}
... | [
"identifier.change",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 260,493 | 260,494 | u716537187 | cpp |
p02571 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s, t;
int min, count = 0;
cin >> s >> t;
min = (int)t.length();
for (int i = 0; i < ((int)s.length() - (int)t.length() + 1); ++i) {
for (int j = 0; j < (int)t.length(); ++j) {
if (s[i + j] != t[j]) {
count++;
... | #include <iostream>
#include <string>
using namespace std;
int main() {
string s, t;
int min, count = 0;
cin >> s >> t;
min = (int)t.length();
for (int i = 0; i < ((int)s.length() - (int)t.length() + 1); ++i) {
for (int j = 0; j < (int)t.length(); ++j) {
if (s[i + j] != t[j]) {
count++;
... | [] | 260,495 | 260,496 | u079243139 | cpp |
p02571 | #include <fstream>
#include <iostream>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int m, num, sum_num;
num = 0;
sum_num = 10000;
m = s.size() - t.size();
for (int i = 0; i < m; i++) {
for (int j = 0; j < t.size(); j++) {
if (s[i + j] != t[j])
num++;
}
if (sum... | #include <fstream>
#include <iostream>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int m, num, sum_num;
num = 0;
sum_num = 10000;
m = s.size() - t.size() + 1;
for (int i = 0; i < m; i++) {
for (int j = 0; j < t.size(); j++) {
if (s[i + j] != t[j])
num++;
}
if ... | [
"assignment.change"
] | 260,499 | 260,500 | u337213865 | cpp |
p02571 | #include <fstream>
#include <iostream>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int m, num, sum_num;
num = 0;
sum_num = 10000;
m = s.size() - t.size();
// cout << t.size()<<m<<endl;
for (int i = 0; i < m; i++) {
for (int j = 0; j < t.size(); j++) {
if (s[i + j] != t[j])
... | #include <fstream>
#include <iostream>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int m, num, sum_num;
num = 0;
sum_num = 10000;
m = s.size() - t.size() + 1;
for (int i = 0; i < m; i++) {
for (int j = 0; j < t.size(); j++) {
if (s[i + j] != t[j])
num++;
}
if ... | [
"assignment.change",
"expression.operation.binary.remove"
] | 260,501 | 260,500 | u337213865 | cpp |
p02571 | #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++)
const int INF = 1001001001;
using ll = long long;
int main() {
string S, T;
cin >> S >> T;
int ans = T.size();
rep(i, S.size() - T.size()) {
int diff... | #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++)
const int INF = 1001001001;
using ll = long long;
int main() {
string S, T;
cin >> S >> T;
int ans = T.size();
rep(i, S.size() - T.size() + 1) {
int ... | [
"expression.operation.binary.add"
] | 260,502 | 260,503 | u656506839 | cpp |
p02571 | #include <algorithm>
#include <iostream>
#define inf 0x3f3f3f3f
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int lens = s.length();
int lent = t.length();
int ans = inf;
for (int i = 0; i + lent < lens; i++) {
int res = 0;
for (int j = 0; j < lent; j++) {
if (s[i + j] != t[j... | #include <algorithm>
#include <iostream>
#define inf 0x3f3f3f3f
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int lens = s.length();
int lent = t.length();
int ans = inf;
for (int i = 0; i + lent <= lens; i++) {
int res = 0;
for (int j = 0; j < lent; j++) {
if (s[i + j] != t[... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,504 | 260,505 | u240582493 | cpp |
p02571 | /* 競プロ用のテンプレ
* SKMT
* 作成日 2020年09月06日 15:14
* ファイル名 b.cpp
* 分かりませんでした…
*/
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main(int argc, char const *argv[]) {
string S, T;
cin >> S;
cin >> T;
int ans = T.size();
for (int S_in = 0; S_in <= S.size() -... | /* 競プロ用のテンプレ
* SKMT
* 作成日 2020年09月06日 15:14
* ファイル名 b.cpp
* 分かりませんでした…
*/
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main(int argc, char const *argv[]) {
string S, T;
cin >> S;
cin >> T;
int ans = T.size();
for (int S_in = 0; S_in <= S.size() -... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 260,506 | 260,507 | u601218364 | cpp |
p02571 | /**
Bismilla- hir rahma-nir rahi-m
@uthor Md Hasibur Rahman (Evan)
JKKNIU
*/
#include <bits/stdc++.h>
#define ll long long
#define FI freopen("input.txt", "r", stdin)
#define FO freopen("output.txt", "w", stdout)
#define PrintCase(i) printf("Case %d: ", i)
#define sc(a) scanf("%d", &a)
#def... | /**
Bismilla- hir rahma-nir rahi-m
@uthor Md Hasibur Rahman (Evan)
JKKNIU
*/
#include <bits/stdc++.h>
#define ll long long
#define FI freopen("input.txt", "r", stdin)
#define FO freopen("output.txt", "w", stdout)
#define PrintCase(i) printf("Case %d: ", i)
#define sc(a) scanf("%d", &a)
#def... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,511 | 260,512 | u819028078 | cpp |
p02571 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using namespace std;
using Graph = vector<vector<int>>;
using P = pair<int, int>;
const ll mod = 1000000007;
int main() {
string s, t;
cin >> s >> t;
int lens = s.size();
int lent = t.size();
int ans = 1001;
re... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using namespace std;
using Graph = vector<vector<int>>;
using P = pair<int, int>;
const ll mod = 1000000007;
int main() {
string s, t;
cin >> s >> t;
int lens = s.size();
int lent = t.size();
int ans = 1001;
rep... | [
"expression.operation.binary.add"
] | 260,515 | 260,516 | u527105447 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int res = 1001;
for (size_t i = 0; i < s.size() - t.size(); i++) {
int cnt = 0;
for (size_t j = 0; j < t.size(); j++) {
cnt += s[i + j] != t[j];
}
res = min(res, cnt);
}
cout << res << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int res = 1001;
for (size_t i = 0; i <= s.size() - t.size(); i++) {
int cnt = 0;
for (size_t j = 0; j < t.size(); j++) {
cnt += s[i + j] != t[j];
}
res = min(res, cnt);
}
cout << res << endl;
}
| [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,521 | 260,522 | u071396528 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
// freopen("in.txt","r",stdin);
// freopen("out.txt","w",stdout);
string s, t;
cin >> s;
cin >> t;
int ns = 10000;
for (int i = 0; i < s.length() - t.length(); i++) {
int diff =... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
// freopen("in.txt","r",stdin);
// freopen("out.txt","w",stdout);
string s, t;
cin >> s;
cin >> t;
int ns = 10000;
for (int i = 0; i < s.length() - t.length() + 1; i++) {
int di... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,523 | 260,524 | u665138123 | cpp |
p02571 | #include <iostream>
using namespace std;
int main() {
string S, T;
cin >> S;
cin >> T;
int len = T.length();
int i, j;
int cnt = 0;
int mincnt = S.length();
for (i = 0; i < S.length() - len; i++) {
cnt = 0;
for (j = 0; j < len; j++) {
if (S[i + j] != T[j])
cnt++;
}
if (min... | #include <iostream>
using namespace std;
int main() {
string S, T;
cin >> S;
cin >> T;
int len = T.length();
int i, j;
int cnt = 0;
int mincnt = S.length();
for (i = 0; i <= S.length() - len; i++) {
cnt = 0;
for (j = 0; j < len; j++) {
if (S[i + j] != T[j])
cnt++;
}
if (mi... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,537 | 260,538 | u635386072 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S;
cin >> T;
int changeMin = INT_MAX;
for (size_t i = 0; i < S.size() - T.size(); i++) {
int change = 0;
for (size_t j = 0; j < T.size(); j++) {
if (S[i + j] != T[j]) {
change++;
}
}
changeMin... | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S;
cin >> T;
int changeMin = INT_MAX;
for (size_t i = 0; i <= S.size() - T.size(); i++) {
int change = 0;
for (size_t j = 0; j < T.size(); j++) {
if (S[i + j] != T[j]) {
change++;
}
}
changeMi... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,539 | 260,540 | u605685616 | cpp |
p02571 | #include <bits/stdc++.h>
#define INF 0x3f3f3f3f
using namespace std;
string a, b;
int ans = INF, cnt;
int main() {
cin >> a >> b;
for (int i = 0; i < a.size() - b.size(); i++) {
cnt = 0;
for (int j = 0; j < b.size(); j++)
if (a[i + j] != b[j])
++cnt;
ans = min(ans, cnt);
}
cout << ans;... | #include <bits/stdc++.h>
#define INF 0x3f3f3f3f
using namespace std;
string a, b;
int ans = INF, cnt;
int main() {
cin >> a >> b;
for (int i = 0; i <= a.size() - b.size(); i++) {
cnt = 0;
for (int j = 0; j < b.size(); j++) {
if (a[i + j] != b[j])
++cnt;
// cout<<a[i+j]<<" "<<b[j]<<endl;
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,545 | 260,546 | u878056971 | cpp |
p02571 | #include <bits/stdc++.h>
#define INF INT_MAX
#define ll long long
#define ull unsigned long long
#define rep(i, n) for (ll i = 0; i < n; ++i)
#define FOR(i, s, e) for (ll i = s; i < e; ++i)
#define MOD 1000000007
using namespace std;
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return... | #include <bits/stdc++.h>
#define INF INT_MAX
#define ll long long
#define ull unsigned long long
#define rep(i, n) for (ll i = 0; i < n; ++i)
#define FOR(i, s, e) for (ll i = s; i < e; ++i)
#define MOD 1000000007
using namespace std;
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,555 | 260,556 | u147571984 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1e3 + 5;
char s[N], t[N];
int ans = 1e9;
int main() {
ios::sync_with_stdio(false);
scanf("%s%s", s, t);
int ls = strlen(s);
int lt = strlen(t);
for (int i = 0; i < ls - lt; i++) {
int diff = 0;
for (int j = 0; j < lt; ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1e3 + 5;
char s[N], t[N];
int ans = 1e9;
int main() {
ios::sync_with_stdio(false);
scanf("%s%s", s, t);
int ls = strlen(s);
int lt = strlen(t);
for (int i = 0; i <= ls - lt; i++) {
int diff = 0;
for (int j = 0; j < lt;... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,557 | 260,558 | u485770546 | cpp |
p02571 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int NS = S.length();
int NT = T.length();
int count = NT;
for (int i = 0; i <= NS - NT; i++) {
int tmp = 0;
for (int j = 0; j < NT; j++) {
if (S[i] != T[j])
tmp++;... | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int NS = S.length();
int NT = T.length();
int count = NT;
for (int i = 0; i <= NS - NT; i++) {
int tmp = 0;
for (int j = 0; j < NT; j++) {
if (S[i + j] != T[j])
tm... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 260,563 | 260,564 | u895564652 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
string s1, s2;
cin >> s1;
cin >> s2;
int ans = 0;
for (int i = 0; i < s1.size() - s2.size(); i++) {
int num = 0;
for (int j = 0; j < s2.size(); j++)
if (s1[i + j] == s2[j])
num++;
ans = max(ans, num);... | #include <bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
string s1, s2;
cin >> s1;
cin >> s2;
int ans = 0;
for (int i = 0; i <= s1.size() - s2.size(); i++) {
int num = 0;
for (int j = 0; j < s2.size(); j++)
if (s1[i + j] == s2[j])
num++;
ans = max(ans, num)... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,568 | 260,569 | u474699342 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
//#define int long long
int main() {
char s1[1005], s2[1005];
cin >> s1;
cin >> s2;
int ans = 0;
for (int i = 0; i < strlen(s1) - strlen(s2); i++) {
int num = 0;
for (int j = 0; j < strlen(s2); j++)
if (s1[i + j] == s2[j])
num++;
ans = ma... | #include <bits/stdc++.h>
using namespace std;
//#define int long long
int main() {
char s1[1005], s2[1005];
cin >> s1;
cin >> s2;
int ans = 0;
for (int i = 0; i <= strlen(s1) - strlen(s2); i++) {
int num = 0;
for (int j = 0; j < strlen(s2); j++)
if (s1[i + j] == s2[j])
num++;
ans = m... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,570 | 260,571 | u474699342 | 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 cnt = 0;
for (int j = 0; j < t.size(); j++) {
if (t[j] != s[i + j])
cnt++;
}
ans = min(cnt, ans);
}
cout << ans;
} | #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 cnt = 0;
for (int j = 0; j < t.size(); j++) {
if (t[j] != s[i + j])
cnt++;
}
ans = min(cnt, ans);
}
cout << ans;
}
| [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,580 | 260,581 | u302240043 | cpp |
p02571 | #include <bits/stdc++.h>
#define int long long
using namespace std;
constexpr int MAX = 10000;
int count(string &s, string &t) {
int res = 0;
for (size_t i = 0; i < s.size(); i++) {
if (s[i] != t[i]) {
res++;
}
}
return res;
}
signed main() {
string S, T;
cin >> S >> T;
int ans = MAX;
... | #include <bits/stdc++.h>
#define int long long
using namespace std;
constexpr int MAX = 10000;
int count(string &s, string &t) {
int res = 0;
for (size_t i = 0; i < s.size(); i++) {
if (s[i] != t[i]) {
res++;
}
}
return res;
}
signed main() {
string S, T;
cin >> S >> T;
int ans = MAX;
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,582 | 260,583 | u876978301 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b;
int gb, ans;
cin >> a >> b;
int la = a.size(), lb = b.size();
ans = la;
for (int i = 0; i < la - lb; i++) {
gb = 0;
for (int j = i; j < i + lb; j++) {
if (a[j] != b[j - i])
gb++;
}
ans = min(ans, gb);
}
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b;
int gb, ans;
cin >> a >> b;
int la = a.size(), lb = b.size();
ans = la;
for (int i = 0; i <= la - lb; i++) {
gb = 0;
for (int j = i; j < i + lb; j++) {
if (a[j] != b[j - i])
gb++;
}
ans = min(ans, gb);
}
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,584 | 260,585 | u124274469 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
const int N = 1005;
int n, k = 0, minn = 99999;
string s, a;
int main() {
cin >> s >> a;
int ls = s.size(), la = a.size();
minn = la;
for (int i = 0; i < ls; i++) {
int p = i, sum = 0;
for (int j = 0; j < la; j++) {
if (s[p] != a[j]) {
sum++;
... | #include <bits/stdc++.h>
using namespace std;
const int N = 1005;
int n, k = 0, minn = 99999;
string s, a;
int main() {
cin >> s >> a;
int ls = s.size(), la = a.size();
minn = la;
for (int i = 0; i < ls - la + 1; i++) {
int p = i, sum = 0;
for (int j = 0; j < la; j++) {
if (s[p] != a[j]) {
... | [
"control_flow.loop.for.condition.change"
] | 260,586 | 260,587 | u807469562 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
string s, t;
int lens, lent, maxn;
int main() {
cin >> s >> t;
lens = s.size();
lent = t.size();
for (int i = 0; i <= lens - lent + 1; i++) {
int tot = 0, k = i;
for (int j = 0; j < lent; j++) {
if (s[k] == t[j])
tot++;
k++;
}
... | #include <bits/stdc++.h>
using namespace std;
string s, t;
int lens, lent, maxn;
int main() {
cin >> s >> t;
lens = s.size();
lent = t.size();
for (int i = 0; i < lens - lent + 1; i++) {
int tot = 0, k = i;
for (int j = 0; j < lent; j++) {
if (s[k] == t[j])
tot++;
k++;
}
m... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,597 | 260,598 | u260232156 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
string s, t;
int lens, lent, maxn;
int main() {
cin >> s >> t;
lens = s.size();
lent = t.size();
for (int i = 0; i < lens; i++) {
int tot = 0, k = i;
for (int j = 0; j < lent; j++) {
if (s[k] == t[j])
tot++;
k++;
}
maxn = max(m... | #include <bits/stdc++.h>
using namespace std;
string s, t;
int lens, lent, maxn;
int main() {
cin >> s >> t;
lens = s.size();
lent = t.size();
for (int i = 0; i < lens - lent + 1; i++) {
int tot = 0, k = i;
for (int j = 0; j < lent; j++) {
if (s[k] == t[j])
tot++;
k++;
}
m... | [
"control_flow.loop.for.condition.change"
] | 260,599 | 260,598 | u260232156 | cpp |
p02571 | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) ... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,602 | 260,603 | u656568465 | cpp |
p02571 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define all(x) x.begin(), x.end()
#define allr(x) x.rbegin(), x.rend()
#define speedhack() \
ios_base::s... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define all(x) x.begin(), x.end()
#define allr(x) x.rbegin(), x.rend()
#define speedhack() \
ios_base::s... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,606 | 260,607 | u519336948 | cpp |
p02571 | // https://atcoder.jp/contests/abc175/tasks/abc175_c
#include <algorithm>
#include <climits>
#include <deque>
#include <iostream>
#include <iterator> // std::back_inserter
#include <sstream>
#include <tuple>
#include <vector>
using namespace std;
typedef long ll;
int main() {
string s, t;
cin >> s >> t;
ll min... | // https://atcoder.jp/contests/abc175/tasks/abc175_c
#include <algorithm>
#include <climits>
#include <deque>
#include <iostream>
#include <iterator> // std::back_inserter
#include <sstream>
#include <tuple>
#include <vector>
using namespace std;
typedef long ll;
int main() {
string s, t;
cin >> s >> t;
ll min... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,617 | 260,618 | u904912386 | cpp |
p02571 | /*Anuranjan Srivastava (codersaty)*/
#include <bits/stdc++.h>
#define mod 1000000007
#define pb push_back
#define ll long long
#define pinf INT_MIN
#define minf INT_MAX
#define loop(i, j) for (int i = 1; i <= j; i++)
#define rep(i, j) for (int i = 0; i < j; i++)
#define deb(x) cout << #x << "=" << x << endl
#define deb... | /*Anuranjan Srivastava (codersaty)*/
#include <bits/stdc++.h>
#define mod 1000000007
#define pb push_back
#define ll long long
#define pinf INT_MIN
#define minf INT_MAX
#define loop(i, j) for (int i = 1; i <= j; i++)
#define rep(i, j) for (int i = 0; i < j; i++)
#define deb(x) cout << #x << "=" << x << endl
#define deb... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,619 | 260,620 | u164169837 | cpp |
p02571 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
#define mod ((int)1e9 + 7)
#define lim 1000000000000000007
#define lim1 18446744073709551615 // Unsigned
#define sq(a) ((a) * (a))
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define mms(v, i) memset... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
#define mod ((int)1e9 + 7)
#define lim 1000000000000000007
#define lim1 18446744073709551615 // Unsigned
#define sq(a) ((a) * (a))
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define mms(v, i) memset... | [
"expression.operation.binary.add"
] | 260,621 | 260,622 | u921940646 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) \
for (int i = 0; i < (int)(n); i++) \
;
#define _GLIBCXX_DEBUG
#define _LIBCPP_DEBUG 0
int main() {
string s, t;
cin >> s >> t;
long ans =... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) \
for (int i = 0; i < (int)(n); i++) \
;
#define _GLIBCXX_DEBUG
#define _LIBCPP_DEBUG 0
int main() {
string s, t;
cin >> s >> t;
long ans =... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,625 | 260,626 | u216579347 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int INF = 1e9;
const ll LINF = 1e18;
const int mod = 1e9 + 7;
#define pi pair<int, int>
#define pl pair<lld, lld>
#define dump(x) cout << #x << " = " << (x) << endl
#define YES(n) cout << ((n) ? "YES" : "NO") << endl
#define Yes(n) cout << ((n... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int INF = 1e9;
const ll LINF = 1e18;
const int mod = 1e9 + 7;
#define pi pair<int, int>
#define pl pair<lld, lld>
#define dump(x) cout << #x << " = " << (x) << endl
#define YES(n) cout << ((n) ? "YES" : "NO") << endl
#define Yes(n) cout << ((n... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,629 | 260,630 | u118434175 | cpp |
p02571 | #include <iostream>
using namespace std;
int getResult(const string &s, const string &t) {
const size_t sSize = s.size();
const size_t tSize = t.size();
int minDiff = sSize;
for (int i = 0; (i + tSize) < sSize; i++) {
int diff = 0;
for (int j = 0; j < tSize; j++) {
if (s[i + j] != t[j]) {
... | #include <iostream>
using namespace std;
int getResult(const string &s, const string &t) {
const size_t sSize = s.size();
const size_t tSize = t.size();
int minDiff = tSize;
for (int i = 0; (i + tSize) <= sSize; i++) {
int diff = 0;
for (int j = 0; j < tSize; j++) {
if (s[i + j] != t[j]) {
... | [
"variable_declaration.value.change",
"identifier.change",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,631 | 260,632 | u605246849 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
int s, t, count, i, k, m = 0;
char S[1000], T[1000];
cin >> S >> T;
s = strlen(S);
t = strlen(T);
for (i = 0; i < s - t; ++i) {
count = 0;
for (k = 0; k < t; ++k) {
if (S[i + k] == T[k])
++count;
}
if (m < count)
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int s, t, count, i, k, m = 0;
char S[1000], T[1000];
cin >> S >> T;
s = strlen(S);
t = strlen(T);
for (i = 0; i < s - t + 1; ++i) {
count = 0;
for (k = 0; k < t; ++k) {
if (S[i + k] == T[k])
++count;
}
if (m < count)... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,633 | 260,634 | u264865472 | cpp |
p02571 | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
string s, t;
cin >> s >> t;
int n = s.size(), m = t.size();
int ans = m;
for (int i = 0; i < n - m; i++) {
int get = 0;
for (int j = 0; j < m; j++) {
... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
string s, t;
cin >> s >> t;
int n = s.size(), m = t.size();
int ans = m;
for (int i = 0; i <= n - m; i++) {
int get = 0;
for (int j = 0; j < m; j++) {
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,637 | 260,638 | u556032317 | cpp |
p02571 | #include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int i, j, s, t, count, ans;
s = S.size();
t = T.size();
ans = t;
for (i = 0; i < s - t; i++) {
count = 0;
for (j = 0; j < t; j++) {
if (S[i + j] != T[j])
count++;... | #include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int i, j, s, t, count, ans;
s = S.size();
t = T.size();
ans = t;
for (i = 0; i <= s - t; i++) {
count = 0;
for (j = 0; j < t; j++) {
if (S[i + j] != T[j])
count++... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,639 | 260,640 | u569871019 | cpp |
p02571 | #include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int i, j, s, t, count, ans;
s = S.size();
t = T.size();
ans = t;
for (i = 0; i < s - t; i++) {
count = 0;
for (j = 0; j < t; j++) {
if (S[i + j] != T[j])
count++;... | #include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int i, j, s, t, count, ans;
s = S.size();
t = T.size();
ans = t;
for (i = 0; i <= s - t; i++) {
count = 0;
for (j = 0; j < t; j++) {
if (S[i + j] != T[j])
count++... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,641 | 260,640 | u569871019 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int chk = T.size();
int ans = chk;
int count = 0;
for (int i = 0; i < S.size() - T.size() + 1; i++) {
for (int j = 0; j < chk; j++) {
if (T.at(j) != S.at(i + j)) {
count++;
}
}
if (chk > co... | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int chk = T.size();
int ans = chk;
int count = 0;
for (int i = 0; i < S.size() - T.size() + 1; i++) {
for (int j = 0; j < chk; j++) {
if (T.at(j) != S.at(i + j)) {
count++;
}
}
if (ans > co... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 260,642 | 260,643 | u977547071 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int chk = T.size();
int ans = chk;
int count = chk;
for (int i = 0; i < S.size() - T.size() + 1; i++) {
for (int j = 0; j < chk; j++) {
if (T.at(j) != S.at(i + j)) {
count++;
}
}
if (chk > ... | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int chk = T.size();
int ans = chk;
int count = 0;
for (int i = 0; i < S.size() - T.size() + 1; i++) {
for (int j = 0; j < chk; j++) {
if (T.at(j) != S.at(i + j)) {
count++;
}
}
if (ans > co... | [
"variable_declaration.value.change",
"identifier.replace.remove",
"literal.replace.add",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 260,644 | 260,643 | u977547071 | cpp |
p02571 | #include <bits/stdc++.h>
#define ll long long int
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0)
#define mod 1... | #include <bits/stdc++.h>
#define ll long long int
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0)
#define mod 1... | [
"control_flow.loop.condition.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 260,647 | 260,648 | u239752355 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, a, b) for (int i = a; i < b; i++)
string s, t;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin >> s >> t;
int tlen = t.length();
int cnt = 0;
int mi = 10001;
for (int i = 0; i < s.length() - tlen;... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, a, b) for (int i = a; i < b; i++)
string s, t;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin >> s >> t;
int tlen = t.length();
int cnt = 0;
int mi = 10001;
for (int i = 0; i <= s.length() - tlen... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,652 | 260,653 | u134896569 | 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 sn = s.size(), tn = t.size();
int cnt = 0;
rep(i, sn) {
int tmp = 0;
rep(j, tn) {
if (s[i + j] == t[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 sn = s.size(), tn = t.size();
int cnt = 0;
rep(i, sn - tn + 1) {
int tmp = 0;
rep(j, tn) {
if (s[i + j] == t[... | [
"expression.operation.binary.add"
] | 260,654 | 260,655 | u243407720 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int n = s.length();
int m = t.length();
int mindiff = m;
int diff;
for (int i = 0; i <= n - m - 1; i++) {
diff = 0;
for (int j = i; j <= i + m; j++) {
if (t[j - i] != s[j]) {
diff++;
}
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int n = s.length();
int m = t.length();
int mindiff = m;
int diff;
for (int i = 0; i <= n - m; i++) {
diff = 0;
for (int j = i; j < i + m; j++) {
if (t[j - i] != s[j]) {
diff++;
}
}
... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"expression.operator.compare.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 260,660 | 260,661 | u064527502 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
string S, T;
cin >> S >> T;
int ans = T.size();
for (int i = 0; i + T.size() < S.size(); ++i) {
int cnt = 0;
for (int j = 0; j < T.size(); ++j) {
if (T[j] != S[i + j])
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
string S, T;
cin >> S >> T;
int ans = T.size();
for (int i = 0; i + T.size() <= S.size(); ++i) {
int cnt = 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"
] | 260,666 | 260,667 | u058720266 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.