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;
int32_t main() {
string s, t;
cin >> s >> t;
int mega = INT_MAX;
int tt = 0;
;
for (int i = 0; i < s.length() - t.length(); ++i) {
tt = 0;
for (int o = i, j = 0; j < t.length(); ++j, ++o) {
if (s[o] != t[j]) {
tt++;
}
}
mega ... | #include <bits/stdc++.h>
using namespace std;
int32_t main() {
string s, t;
cin >> s >> t;
int mega = INT_MAX;
int tt = 0;
;
for (int i = 0; i <= s.length() - t.length(); ++i) {
tt = 0;
for (int o = i, j = 0; j < t.length(); ++j, ++o) {
if (s[o] != t[j]) {
tt++;
}
}
mega... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,524 | 261,525 | u496480873 | cpp |
p02571 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <stdlib.h>
#include <string>
#include <vector>
#define MOD_P 1000000007
#define MOD_Q 998244353
#define PI 3.14159265358979
#define ll long long
using namespace std;
int main() {
string s, t;
cin >> s;
cin >> t;
... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <stdlib.h>
#include <string>
#include <vector>
#define MOD_P 1000000007
#define MOD_Q 998244353
#define PI 3.14159265358979
#define ll long long
using namespace std;
int main() {
string s, t;
cin >> s;
cin >> t;
... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 261,529 | 261,530 | u426966697 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s;
cin >> t;
int cnt;
int mn = INT_MAX;
for (int i = 0; i < s.length() - t.length(); i++) {
cnt = 0;
// int k = i;
for (int j = 0; j < t.length(); j++) {
if (s[i + j] == t[j]) {
// k++;
continue;... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s;
cin >> t;
int cnt;
int mn = INT_MAX;
for (int i = 0; i <= s.length() - t.length(); i++) {
cnt = 0;
// int k = i;
for (int j = 0; j < t.length(); j++) {
if (s[i + j] == t[j]) {
// k++;
continue... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,531 | 261,532 | u712491390 | cpp |
p02571 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
int i, ls, lt, dif = 0, j, temp;
char s[1010], t[1010];
cin >> s;
cin >> t;
for (i = 0; i < 1010; i++) {
if (t[i] == '\0') {
lt = i;
break;
}
}
for (i = 0; i < 1010; i++) {
if (s[i] == '\0') {
ls = i;... | #include <iostream>
#include <string>
using namespace std;
int main(void) {
int i, ls, lt, dif = 0, j, temp;
char s[1010], t[1010];
cin >> s;
cin >> t;
for (i = 0; i < 1010; i++) {
if (t[i] == '\0') {
lt = i;
break;
}
}
for (i = 0; i < 1010; i++) {
if (s[i] == '\0') {
ls = i;... | [
"identifier.change",
"io.output.change"
] | 261,533 | 261,534 | u145635628 | cpp |
p02571 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
int i, ls, lt, dif = 0, j, temp;
char s[1010], t[1010];
cin >> s;
cin >> t;
for (i = 0; i < 1010; i++) {
if (t[i] == '\0') {
lt = i;
break;
}
}
for (i = 0; i < 1010; i++) {
if (s[i] == '\0') {
ls = i;... | #include <iostream>
#include <string>
using namespace std;
int main(void) {
int i, ls, lt, dif = 0, j, temp;
char s[1010], t[1010];
cin >> s;
cin >> t;
for (i = 0; i < 1010; i++) {
if (t[i] == '\0') {
lt = i;
break;
}
}
for (i = 0; i < 1010; i++) {
if (s[i] == '\0') {
ls = i;... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"identifier.change",
"io.output.change"
] | 261,535 | 261,534 | u145635628 | cpp |
p02571 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
int i, ls, lt, dif = 0, j, temp;
char s[1010], t[1010];
cin >> s;
cin >> t;
for (i = 0; i < 1010; i++) {
if (t[i] == '\0') {
lt = i;
break;
}
}
for (i = 0; i < 1010; i++) {
if (s[i] == '\0') {
ls = i;... | #include <iostream>
#include <string>
using namespace std;
int main(void) {
int i, ls, lt, dif = 0, j, temp;
char s[1010], t[1010];
cin >> s;
cin >> t;
for (i = 0; i < 1010; i++) {
if (t[i] == '\0') {
lt = i;
break;
}
}
for (i = 0; i < 1010; i++) {
if (s[i] == '\0') {
ls = i;... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"identifier.change",
"io.output.change"
] | 261,536 | 261,534 | u145635628 | cpp |
p02571 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
int i, ls, lt, dif = 0, j, temp;
char s[1010], t[1010];
cin >> s;
cin >> t;
for (i = 0; i < 1010; i++) {
if (t[i] == '\0') {
lt = i;
break;
}
}
for (i = 0; i < 1010; i++) {
if (s[i] == '\0') {
ls = i;... | #include <iostream>
#include <string>
using namespace std;
int main(void) {
int i, ls, lt, dif = 0, j, temp;
char s[1010], t[1010];
cin >> s;
cin >> t;
for (i = 0; i < 1010; i++) {
if (t[i] == '\0') {
lt = i;
break;
}
}
for (i = 0; i < 1010; i++) {
if (s[i] == '\0') {
ls = i;... | [
"identifier.change",
"io.output.change"
] | 261,537 | 261,534 | u145635628 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define pi pair<int, int>
#define pb push_back
#define F first
#define S second
#define mod 1000000007
#define mx 1000000
#define mn 0
#define hello 123
signed main() {
string s, t;
cin >> s >> t;
int temp, ans = INT_MAX;
int x = s.length();
... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define pi pair<int, int>
#define pb push_back
#define F first
#define S second
#define mod 1000000007
#define mx 1000000
#define mn 0
#define hello 123
signed main() {
string s, t;
cin >> s >> t;
int temp, ans = INT_MAX;
int x = s.length();
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,540 | 261,541 | u335443432 | cpp |
p02571 | // adios amigos!!
#include <bits/stdc++.h>
#include <chrono>
#include <random>
using namespace std;
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#pragma GCC optimization("unroll-loops")
#define rep(i, n) for (ll i = 0; i < n; ++i)
#define ed end()
#define bg begin()
#define ld long double
#define ll... | // adios amigos!!
#include <bits/stdc++.h>
#include <chrono>
#include <random>
using namespace std;
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#pragma GCC optimization("unroll-loops")
#define rep(i, n) for (ll i = 0; i < n; ++i)
#define ed end()
#define bg begin()
#define ld long double
#define ll... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,544 | 261,545 | u688333657 | cpp |
p02571 | // adios amigos!!
#include <bits/stdc++.h>
#include <chrono>
#include <random>
using namespace std;
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#pragma GCC optimization("unroll-loops")
#define rep(i, n) for (ll i = 0; i < n; ++i)
#define ed end()
#define bg begin()
#define ld long double
#define ll... | // adios amigos!!
#include <bits/stdc++.h>
#include <chrono>
#include <random>
using namespace std;
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#pragma GCC optimization("unroll-loops")
#define rep(i, n) for (ll i = 0; i < n; ++i)
#define ed end()
#define bg begin()
#define ld long double
#define ll... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 261,546 | 261,545 | u688333657 | cpp |
p02571 | // https://atcoder.jp/contests/abc177/tasks/abc177_b
#include <iostream>
#include <string>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int lenS = s.length();
int lenT = t.length();
int ans = 1e4;
for (int i = 0; i + lenT < lenS; i++) {
int change = 0;
for (int j = 0; j < lenT; j++... | #include <iostream>
#include <string>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int lenS = s.length();
int lenT = t.length();
int ans = 1e4;
for (int i = 0; i + lenT <= lenS; i++) {
int change = 0;
for (int j = 0; j < lenT; j++) {
if (s[i + j] != t[j]) {
change++;
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,547 | 261,548 | u092576233 | cpp |
p02571 | // https://atcoder.jp/contests/abc177/tasks/abc177_b
#include <iostream>
#include <string>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int lenS = s.length();
int lenT = t.length();
int ans = 1e4;
for (int i = 0; i + lenT < lenS; i++) {
int change = 0;
for (int j = 0; j < lenT; j++... | // https://atcoder.jp/contests/abc177/tasks/abc177_b
#include <iostream>
#include <string>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int lenS = s.length();
int lenT = t.length();
int ans = 1e4;
for (int i = 0; i + lenT <= lenS; i++) {
int change = 0;
for (int j = 0; j < lenT; j+... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,547 | 261,549 | u092576233 | cpp |
p02571 | #include "bits/stdc++.h"
#include "math.h"
using namespace std;
typedef long long ll;
typedef vector<ll> vll;
typedef vector<vll> vvll;
typedef vector<bool> vb;
typedef vector<vb> vvb;
typedef vector<int> vin;
typedef pair<ll, ll> P;
typedef vector<P> vp;
#define rep(i, a, b) for (ll i = (a); i < (b); ++i)
#define dre... | #include "bits/stdc++.h"
#include "math.h"
using namespace std;
typedef long long ll;
typedef vector<ll> vll;
typedef vector<vll> vvll;
typedef vector<bool> vb;
typedef vector<vb> vvb;
typedef vector<int> vin;
typedef pair<ll, ll> P;
typedef vector<P> vp;
#define rep(i, a, b) for (ll i = (a); i < (b); ++i)
#define dre... | [
"expression.operation.binary.add"
] | 261,550 | 261,551 | u476488060 | cpp |
p02571 | #include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
int main(void) {
char s[1001], t[1001];
int i, j, cnt, mn, len, ln, p;
scanf("%s", s);
scanf("%s", t);
len = strlen(s);
ln = strlen(t);
cnt = 0;
mn = 1001;
for (i = 0; i < len; i++) {
p = i;
for (j = 0; j < ln; j++)... | #include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
int main(void) {
char s[1001], t[1001];
int i, j, cnt, mn, len, ln, p;
scanf("%s", s);
scanf("%s", t);
len = strlen(s);
ln = strlen(t);
cnt = 0;
mn = 1001;
for (i = 0; i < len - (ln - 1); i++) {
p = i;
for (j = 0; j... | [
"control_flow.loop.for.condition.change"
] | 261,555 | 261,556 | u686220682 | cpp |
p02571 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
typedef long long ll;
int main(void) {
string t;
string s;
cin >> s >> t;
ll a = 0;
ll m = t.size();
rep(i, s.size() - t.size()) {
a = 0;
rep(j, t.size()) {
if (s[i + j] == t[j]) {
} else ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
typedef long long ll;
int main(void) {
string t;
string s;
cin >> s >> t;
ll a = 0;
ll m = t.size();
rep(i, s.size() - t.size() + 1) {
a = 0;
rep(j, t.size()) {
if (s[i + j] == t[j]) {
} e... | [
"expression.operation.binary.add"
] | 261,564 | 261,565 | u783299609 | cpp |
p02571 | // author -> LetsGoAC
#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 ordered_set \
tree<int, null_type, less<int>, rb_tree_tag, ... | // author -> LetsGoAC
#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 ordered_set \
tree<int, null_type, less<int>, rb_tree_tag, ... | [
"expression.operation.binary.add"
] | 261,566 | 261,567 | u394178228 | cpp |
p02571 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string s, t;
cin >> s >> t;
int ans = t.size();
for (size_t i = 0; i < s.size() - t.size(); i++) {
int rez = 0;
for (size_t j = 0; j < t.size(); j++) {
if (s[i + j] != t[j]) {
rez++;
}
}
if (ans ... | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string s, t;
cin >> s >> t;
int ans = t.size();
for (size_t i = 0; i <= s.size() - t.size(); i++) {
int rez = 0;
for (size_t j = 0; j < t.size(); j++) {
if (s[i + j] != t[j]) {
rez++;
}
}
if (ans... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,568 | 261,569 | u080116583 | cpp |
p02571 | // Hail god Yato
#include <bits/stdc++.h>
using namespace std;
#define hs \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0... | // Hail god Yato
#include <bits/stdc++.h>
using namespace std;
#define hs \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 261,578 | 261,579 | u216557283 | cpp |
p02571 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int len = T.length();
int ans = len;
for (int i = 0; i < S.length() - len; i++) {
... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int len = T.length();
int ans = len;
for (int i = 0; i < S.length() - len + 1; i++)... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 261,580 | 261,581 | u569138744 | cpp |
p02571 | #include <cmath>
#include <iostream>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int len = (int)t.length();
int n = (int)s.length();
bool f = 0;
int maxcnt = 0, max_so_far = 0;
for (int i = 0; i < n; i++) {
maxcnt = 0;
int k = 0;
for (int j = i; j < i + len; j++) {
if ... | #include <cmath>
#include <iostream>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int len = (int)t.length();
int n = (int)s.length();
bool f = 0;
int maxcnt = 0, max_so_far = 0;
for (int i = 0; i < n; i++) {
maxcnt = 0;
int k = 0;
for (int j = i; j < i + len; j++) {
if ... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 261,586 | 261,587 | u792331306 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ll t;
// cin>>t;
// while(t--){
ll a, b, c = 0, d = 0, e = 0, f = 0;
string s;
string s2;
cin >> s;
cin >> s2;
a = s2.length();
b = s.length();
for (int i = 0; i <= b - a; i++) {
for (int j = 0; j < a; j++) {
... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ll t;
// cin>>t;
// while(t--){
ll a, b, c = 0, d = 0, e = 0, f = 0;
string s;
string s2;
cin >> s;
cin >> s2;
a = s2.length();
b = s.length();
for (int i = 0; i <= b - a; i++) {
for (int j = i; j < i + a; j++) {
... | [
"variable_declaration.value.change",
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.initializer.change",
"control_flow.loop.for.condition.change"
] | 261,592 | 261,593 | u619138393 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ll t;
// cin>>t;
// while(t--){
ll a, b, c = 0, d = 0, e = 0, f = 0;
string s;
string s2;
cin >> s;
cin >> s2;
a = s2.length();
b = s.length();
for (int i = 0; i <= b - a; i++) {
for (int j = i; j < a; j++) {
... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ll t;
// cin>>t;
// while(t--){
ll a, b, c = 0, d = 0, e = 0, f = 0;
string s;
string s2;
cin >> s;
cin >> s2;
a = s2.length();
b = s.length();
for (int i = 0; i <= b - a; i++) {
for (int j = i; j < i + a; j++) {
... | [
"control_flow.loop.for.condition.change"
] | 261,594 | 261,593 | u619138393 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ll t;
// cin>>t;
// while(t--){
ll a, b, c = 0, d = 0, e = 0, f = 0;
string s;
string s2;
cin >> s;
cin >> s2;
a = s2.length();
b = s.length();
for (int i = 0; i < b - a; i++) {
for (int j = i; j < a; j++) {
... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ll t;
// cin>>t;
// while(t--){
ll a, b, c = 0, d = 0, e = 0, f = 0;
string s;
string s2;
cin >> s;
cin >> s2;
a = s2.length();
b = s.length();
for (int i = 0; i <= b - a; i++) {
for (int j = i; j < i + a; j++) {
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,595 | 261,593 | u619138393 | cpp |
p02571 | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <tup... | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <tup... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 261,598 | 261,599 | u944804272 | cpp |
p02571 | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < n; i++)
using P = pair<ll, ll>;
/* 大文字を小文字に変換 */
char tolower(char c) { return (c + 0x20); }
/* 小文字を大文字に変換 */
char toupr(char c) { return (c - 0x20); }
// if('A'<=s[i] && s[i]<='Z') s[i] += 'a'... | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < n; i++)
using P = pair<ll, ll>;
/* 大文字を小文字に変換 */
char tolower(char c) { return (c + 0x20); }
/* 小文字を大文字に変換 */
char toupr(char c) { return (c - 0x20); }
// if('A'<=s[i] && s[i]<='Z') s[i] += 'a'... | [
"expression.operation.binary.add"
] | 261,602 | 261,603 | u171059364 | cpp |
p02571 | #include <bits/stdc++.h>
#include <map>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = t.size();
int k = s.size() - t.size();
rep(i, k) {
int diff = 0;
rep(j, t.size()) {
if (t[j] != s[i + j]) {
diff++;
}
}
... | #include <bits/stdc++.h>
#include <map>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = t.size();
int k = s.size() - t.size() + 1;
rep(i, k) {
int diff = 0;
rep(j, t.size()) {
if (t[j] != s[i + j]) {
diff++;
}
... | [
"assignment.change"
] | 261,604 | 261,605 | u451171595 | cpp |
p02571 | #include <bits/stdc++.h>
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) for (int i = 0; i < (n); i++)
#define ALL(obj) (obj).begin(), (obj).end()
#define SCANF(i) \
int i; ... | #include <bits/stdc++.h>
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) for (int i = 0; i < (n); i++)
#define ALL(obj) (obj).begin(), (obj).end()
#define SCANF(i) \
int i; ... | [
"expression.operation.binary.add"
] | 261,606 | 261,607 | u847541068 | cpp |
p02571 | #include <algorithm>
#include <climits>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <vector>
#define fi first
#define se second
#define pb push_back
#define pii pair<int, int>
#define ll long long
#define mkp make_pair
#define pll pair<ll, ll>
#define... | #include <algorithm>
#include <climits>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <vector>
#define fi first
#define se second
#define pb push_back
#define pii pair<int, int>
#define ll long long
#define mkp make_pair
#define pll pair<ll, ll>
#define... | [
"expression.operation.binary.add"
] | 261,608 | 261,609 | u352350187 | cpp |
p02571 | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
string S, T;
cin >> S >> T;
// 答えansを仮置きする。
// これが十分に大きくないと不正解となるので、
// この値なら絶対に正しい答えが出る、という値を仮置きすること
int ans = T.size();
// Sの何文字目から調べるかを全探索する... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
string S, T;
cin >> S >> T;
// 答えansを仮置きする。
// これが十分に大きくないと不正解となるので、
// この値なら絶対に正しい答えが出る、という値を仮置きすること
int ans = T.size();
// Sの何文字目から調べるかを全探索する... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,614 | 261,615 | u967061594 | cpp |
p02571 | #include <bits/stdc++.h>
#define INF 1e9
#define llINF 1e18
#define MOD 1000000007
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define ll long long
#define vi vector<ll>
#define vvi vector<vi>
#define BITLE(n) (1LL << ((ll)n))
#define SUBS(s, f, t) ((s).substr((f), (t) - (f)))
#define ALL... | #include <bits/stdc++.h>
#define INF 1e9
#define llINF 1e18
#define MOD 1000000007
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define ll long long
#define vi vector<ll>
#define vvi vector<vi>
#define BITLE(n) (1LL << ((ll)n))
#define SUBS(s, f, t) ((s).substr((f), (t) - (f)))
#define ALL... | [
"variable_declaration.value.change",
"identifier.replace.add",
"literal.replace.remove",
"misc.opposites",
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 261,616 | 261,617 | u905715926 | cpp |
p02571 | /*
AtCoder Beginner Contest 177- B - Substring
https://atcoder.jp/contests/abc177/tasks/abc177_b
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<string, string> pss;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector... | /*
AtCoder Beginner Contest 177- B - Substring
https://atcoder.jp/contests/abc177/tasks/abc177_b
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<string, string> pss;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector... | [
"variable_declaration.value.change",
"identifier.replace.remove",
"literal.replace.add"
] | 261,622 | 261,623 | u040094338 | 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 vl = vector<ll>;
using vvl = vector<vl>;
int main() {
int INF = 1000000000;
string s, t;
cin >> s >> t;
int lens = s.size();
int lent ... | #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 vl = vector<ll>;
using vvl = vector<vl>;
int main() {
int INF = 1000000000;
string s, t;
cin >> s >> t;
int lens = s.size();
int lent ... | [
"control_flow.branch.if.condition.change"
] | 261,624 | 261,625 | u016334391 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define int long long
const int N = 666666, inf = 99999999999;
signed main() {
string s, t;
cin >> s >> t;
int ans = s.size();
for (int i = 0; i <= s.size() - t.size() + 1; i++) {
int sum = 0;
for (int j = 0; j < t.size(); j++) {
if (s[i + j] != t[j]... | #include <bits/stdc++.h>
using namespace std;
#define int long long
const int N = 666666, inf = 99999999999;
signed main() {
string s, t;
cin >> s >> t;
int ans = s.size();
for (int i = 0; i <= s.size() - t.size(); i++) {
int sum = 0;
for (int j = 0; j < t.size(); j++) {
if (s[i + j] != t[j])
... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 261,627 | 261,628 | u545770260 | 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>;
ll INF = pow(10, 9) + 7;
int main() {
string s, t;
cin >> s >> t;
int ans, c;
ans = t.size();
c = t.size();
for (int i = 0; i < s.size() - t.size(); i++) {
for (in... | #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>;
ll INF = pow(10, 9) + 7;
int main() {
string s, t;
cin >> s >> t;
int ans, c;
ans = t.size();
c = t.size();
for (int i = 0; i <= s.size() - t.size(); i++) {
for (i... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,629 | 261,630 | u746206084 | cpp |
p02571 | #include <bits/stdc++.h>
using ll = long long;
using namespace std;
const int INFint = 1e9 + 1;
const ll INFll = (ll)1e18 + 1;
ll MOD = 1e9 + 7;
int main() {
string s, t;
cin >> s >> t;
int ns = int(s.size()), nt = int(t.size());
int ans = INFint;
for (int i(0); i < ns - nt; i++) {
string tmp = s.substr... | #include <bits/stdc++.h>
using ll = long long;
using namespace std;
const int INFint = 1e9 + 1;
const ll INFll = (ll)1e18 + 1;
ll MOD = 1e9 + 7;
int main() {
string s, t;
cin >> s >> t;
int ns = int(s.size()), nt = int(t.size());
int ans = INFint;
for (int i(0); i <= ns - nt; i++) {
string tmp = s.subst... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,635 | 261,636 | u991846372 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
string s1, s2;
int ans = 1e9;
int main() {
cin >> s1 >> s2;
for (int i = 0; i + s2.length() < s1.length(); i++) {
int cnt = 0;
for (int j = 0; j < s2.length(); j++) {
if (s1[i + j] != s2[j]) {
cnt++;
}
}
ans = min(ans, cnt);
}
... | #include <bits/stdc++.h>
using namespace std;
string s1, s2;
int ans = 1e9;
int main() {
cin >> s1 >> s2;
for (int i = 0; i + s2.length() - 1 < s1.length(); i++) {
int cnt = 0;
for (int j = 0; j < s2.length(); j++)
if (s1[i + j] != s2[j])
cnt++;
ans = min(ans, cnt);
}
printf("%d", a... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 261,642 | 261,643 | u430646658 | 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;
const ll M = 1e9 + 7;
int si[8] = {-1, 0, 1, -1, 1, -1, 0, 1};
int sj[8] = {-1, -1, -1, 0, 0, 1, 1, 1};
int main() {
string s, t;
cin >> s;
cin >> t;
int ans = M;
for (int i = 0; i < s.si... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
const ll M = 1e9 + 7;
int si[8] = {-1, 0, 1, -1, 1, -1, 0, 1};
int sj[8] = {-1, -1, -1, 0, 0, 1, 1, 1};
int main() {
string s, t;
cin >> s >> t;
int ans = M;
for (int i = 0; i < s.size() - ... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 261,644 | 261,645 | u106342872 | cpp |
p02571 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
#define rep(i, a, b) for (ll i = a; i < ll(b); i++)
#define repr(i, a, b) for (ll i = a; i >= ll(b); i--)
#define endl "\n"
#define ALL(x) x.begin(), x.end()
#define ALLR(x) x.rbegin(... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
#define rep(i, a, b) for (ll i = a; i < ll(b); i++)
#define repr(i, a, b) for (ll i = a; i >= ll(b); i--)
#define endl "\n"
#define ALL(x) x.begin(), x.end()
#define ALLR(x) x.rbegin(... | [
"expression.operation.binary.add"
] | 261,667 | 261,668 | u946467231 | cpp |
p02571 | #include <bits/stdc++.h>
#define ll long long
using namespace std;
typedef pair<int, int> P;
typedef pair<ll, ll> LP;
//定数
//円周率
const double pi = 3.141592653589793238462643383279;
//天井
const int INF = 1000000000; // = 10^9
const ll LINF = 100000000000000000; // = 10^17
// ABC文字列
const string ABC = "ABCDEFGHIJ... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
typedef pair<int, int> P;
typedef pair<ll, ll> LP;
//定数
//円周率
const double pi = 3.141592653589793238462643383279;
//天井
const int INF = 1000000000; // = 10^9
const ll LINF = 100000000000000000; // = 10^17
// ABC文字列
const string ABC = "ABCDEFGHIJ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,672 | 261,673 | u453366189 | cpp |
p02571 | #define LOCAL
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <ran... | #define LOCAL
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <ran... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 261,676 | 261,677 | u132602393 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
#define getcx getchar_unlocked
#define MSV(A, a) memset(A, a, sizeof(A))
#define MP make_pair
#define PB push_back
#define INF (int(1e9))
#define INFL (LL(1e18))
#define EPS 1e-12
#define chkbit(s, b) (s & (1 << b))
#define setbit(s, b) (s |= (1 << b))... | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
#define getcx getchar_unlocked
#define MSV(A, a) memset(A, a, sizeof(A))
#define MP make_pair
#define PB push_back
#define INF (int(1e9))
#define INFL (LL(1e18))
#define EPS 1e-12
#define chkbit(s, b) (s & (1 << b))
#define setbit(s, b) (s |= (1 << b))... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,690 | 261,691 | u613081015 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
long long func(string &a, string &b) {
long long t = 0, i, n = a.size();
for (i = 0; i < n; i++)
if (a[i] != b[i])
t++;
return t;
}
int main() {
long long n, i, j, k = 1e9;
string s, t;
cin >> s >> t;
n = s.size();
j = t.size();
for (i = 0; i < n... | #include <bits/stdc++.h>
using namespace std;
long long func(string &a, string &b) {
long long t = 0, i, n = a.size();
for (i = 0; i < n; i++)
if (a[i] != b[i])
t++;
return t;
}
int main() {
long long n, i, j, k = 1e9;
string s, t;
cin >> s >> t;
n = s.size();
j = t.size();
for (i = 0; i <= ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,692 | 261,693 | u749427720 | cpp |
p02571 | //| #######################|
//| ADARSH SINGH KUSHWAHA |
//| ###################### |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define Bahut_tej_gand_faad \
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
#define fr(i, a, b) for (ll... | //| #######################|
//| ADARSH SINGH KUSHWAHA |
//| ###################### |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define Bahut_tej_gand_faad \
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
#define fr(i, a, b) for (ll... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,696 | 261,697 | u775805582 | cpp |
p02571 | //| #######################|
//| ADARSH SINGH KUSHWAHA |
//| ###################### |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define Bahut_tej_gand_faad \
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
#define fr(i, a, b) for (ll... | //| #######################|
//| ADARSH SINGH KUSHWAHA |
//| ###################### |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define Bahut_tej_gand_faad \
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
#define fr(i, a, b) for (ll... | [
"variable_declaration.add",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,696 | 261,698 | u775805582 | cpp |
p02571 | #include <bits/stdc++.h>
#define F first
#define S second
#define ll long long
#define pb push_back
using namespace std;
int ans = 1e9;
string s, t;
int main() {
cin >> s >> t;
for (int i = 0; i < s.size() - t.size(); i++) {
int cnt = 0;
for (int j = 0; j < t.size(); j++) {
cnt += (s[j + i] != t[j]... | #include <bits/stdc++.h>
#define F first
#define S second
#define ll long long
#define pb push_back
using namespace std;
int ans = 1e9;
string s, t;
int main() {
cin >> s >> t;
for (int i = 0; i <= s.size() - t.size(); i++) {
int cnt = 0;
for (int j = 0; j < t.size(); j++) {
cnt += (s[j + i] != t[j... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,699 | 261,700 | u012004082 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = (a); i < (b); ++i)
#define trav(a, x) for (auto &a : x)
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(), (x).end()
#define sz(x) ((int)(x).size())
#define endl '\n'
typedef long long ll;
typedef pair<int, int> pii;
ty... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = (a); i < (b); ++i)
#define trav(a, x) for (auto &a : x)
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(), (x).end()
#define sz(x) ((int)(x).size())
#define endl '\n'
typedef long long ll;
typedef pair<int, int> pii;
ty... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 261,701 | 261,702 | u787576502 | cpp |
p02571 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define ll long long
#define MP make_pair
#define PB push_back
#define F first
#define S second
#define endl "\n"
#define pi 3.14159265358979323846264338327950288
#define MOD 1000000007
#define INF -100000000000000
#d... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define ll long long
#define MP make_pair
#define PB push_back
#define F first
#define S second
#define endl "\n"
#define pi 3.14159265358979323846264338327950288
#define MOD 1000000007
#define INF -100000000000000
#d... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,703 | 261,704 | u156006465 | cpp |
p02571 | #include <iostream>
#include <string>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int a = S.size();
int b = T.size();
int tmp = b;
for (int i = 0; i < a - b; i++) {
int sum = 0;
for (int j = 0; j < b; j++) {
if (S[i + j] != T[j]) {
sum++;
}
}
tmp = min... | #include <iostream>
#include <string>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int a = S.size();
int b = T.size();
int tmp = b;
for (int i = 0; i <= a - b; i++) {
int sum = 0;
for (int j = 0; j < b; j++) {
if (S[i + j] != T[j]) {
sum++;
}
}
tmp = mi... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,705 | 261,706 | u757006580 | cpp |
p02571 | #include <iostream>
#include <string>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int a = S.length();
int b = T.length();
int tmp = b;
for (int i = 0; i < a - b; i++) {
int sum = 0;
for (int j = 0; j < b; j++) {
if (S[i + j] != T[j]) {
sum++;
}
}
tmp =... | #include <iostream>
#include <string>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int a = S.size();
int b = T.size();
int tmp = b;
for (int i = 0; i <= a - b; i++) {
int sum = 0;
for (int j = 0; j < b; j++) {
if (S[i + j] != T[j]) {
sum++;
}
}
tmp = mi... | [
"call.function.change",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,707 | 261,706 | u757006580 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define mp make_pair
#define pb push_back
string s, t;
int n, m, res;
void provera(int i) {
int res1 = 0;
for (int j = i; j < i + m; j++)
res1 += (s[j] != t[j - i]);
// cout<<i<<" "<<res1<<endl;
res = min(res, res1);
}
int main() {
ios_ba... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define mp make_pair
#define pb push_back
string s, t;
int n, m, res;
void provera(int i) {
int res1 = 0;
for (int j = i; j < i + m; j++)
res1 += (s[j] != t[j - i]);
// cout<<i<<" "<<res1<<endl;
res = min(res, res1);
}
int main() {
ios_ba... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,708 | 261,709 | u422216345 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define ALL(obj) (obj).begin(), (obj).end()
#define SORTD(s) sort((s).rbegin(), (s).rend())
#define rep(i, n) for (int i = 0; i < (n); i++)
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline ... | #include <bits/stdc++.h>
using namespace std;
#define ALL(obj) (obj).begin(), (obj).end()
#define SORTD(s) sort((s).rbegin(), (s).rend())
#define rep(i, n) for (int i = 0; i < (n); i++)
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,710 | 261,711 | u096030913 | cpp |
p02571 | #include "bits/stdc++.h"
#define rep(i, n) for (int i = 0; i < n; i++)
#define vv(Type, Name, n, m, d) vector<vector<Type>> Name(n, vector<Type>(m, d))
#define P pair
using namespace std;
using ll = long long;
int main(void) {
ios::sync_with_stdio(false);
cin.tie(0);
string str, sstr;
cin >> str >> sstr;
... | #include "bits/stdc++.h"
#define rep(i, n) for (int i = 0; i < n; i++)
#define vv(Type, Name, n, m, d) vector<vector<Type>> Name(n, vector<Type>(m, d))
#define P pair
using namespace std;
using ll = long long;
int main(void) {
ios::sync_with_stdio(false);
cin.tie(0);
string str, sstr;
cin >> str >> sstr;
... | [
"expression.operation.binary.add"
] | 261,712 | 261,713 | u719722152 | cpp |
p02571 | #include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define pii pair<int, int>
#define pll pair<ll, ll>
#define mp make_pair
#define pb push_back
#define ff first
#define ss second
#define rep(i, a, b) for (int i = a; i < b; i++)
#define hello777 ... | #include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define pii pair<int, int>
#define pll pair<ll, ll>
#define mp make_pair
#define pb push_back
#define ff first
#define ss second
#define rep(i, a, b) for (int i = a; i < b; i++)
#define hello777 ... | [
"expression.operation.binary.add"
] | 261,724 | 261,725 | u802699920 | cpp |
p02571 | /*
If they say
Who cares if one more light goes out?
In a sky of a million stars
It flickers, flickers
Who cares when someone's time runs out?
If a moment is all we are
We're quicker, quicker
Who cares if one more light goes out?
Well I do
*/
#include <bits/stdc++.h>
using namespace... | /*
If they say
Who cares if one more light goes out?
In a sky of a million stars
It flickers, flickers
Who cares when someone's time runs out?
If a moment is all we are
We're quicker, quicker
Who cares if one more light goes out?
Well I do
*/
#include <bits/stdc++.h>
using namespace... | [
"call.arguments.change",
"control_flow.loop.for.condition.change"
] | 261,728 | 261,729 | u553691800 | cpp |
p02571 | /*
If they say
Who cares if one more light goes out?
In a sky of a million stars
It flickers, flickers
Who cares when someone's time runs out?
If a moment is all we are
We're quicker, quicker
Who cares if one more light goes out?
Well I do
*/
#include <bits/stdc++.h>
using namespace... | /*
If they say
Who cares if one more light goes out?
In a sky of a million stars
It flickers, flickers
Who cares when someone's time runs out?
If a moment is all we are
We're quicker, quicker
Who cares if one more light goes out?
Well I do
*/
#include <bits/stdc++.h>
using namespace... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"call.arguments.change"
] | 261,730 | 261,729 | u553691800 | cpp |
p02571 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string S, T;
int s, i;
cin >> S >> T;
int ans = T.length();
for (s = 0; s <= S.length() - T.length(); s++) {
int count = 0;
for (i = 0; i <= T.length(); i++) {
if (T[i] != S[s + i])
count++;
... | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string S, T;
int s, i;
cin >> S >> T;
int ans = T.length();
for (s = 0; s <= S.length() - T.length(); s++) {
int count = 0;
for (i = 0; i < T.length(); i++) {
if (T[i] != S[s + i])
count++;
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,733 | 261,734 | u327240208 | cpp |
p02571 | /*
*/
#include <bits/stdc++.h>
using namespace std;
#define pi acos(-1.0)
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
... | /*
*/
#include <bits/stdc++.h>
using namespace std;
#define pi acos(-1.0)
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
... | [
"expression.operation.binary.add"
] | 261,739 | 261,740 | u024972190 | cpp |
p02571 | // Problem Code: abc177_b
#include <bits/stdc++.h>
using namespace std;
int B(string &S, string &T) {
int min_cnt = numeric_limits<int>::max();
int m = S.length(), n = T.length();
for (int i = 0; i + n < m; i++) {
int cnt = 0;
for (int j = i; j - i < n; j++)
cnt += (S[j] != T[j - i]);
min_cnt... | // Problem Code: abc177_b
#include <bits/stdc++.h>
using namespace std;
int B(string &S, string &T) {
int min_cnt = numeric_limits<int>::max();
int m = S.length(), n = T.length();
for (int i = 0; i + n - 1 < m; i++) {
int cnt = 0;
for (int j = i; j - i < n; j++)
cnt += (S[j] != T[j - i]);
min... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 261,741 | 261,742 | u884028773 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define vec vector
#define rep(i, n) for (int i = 0; i < (n); i++)
#define reps(i, s, n) for (int i = (s); i < (n); i++)
#define rep1(i, n) for (int i = 1; i <= (n); i++)
#define repr(i, s, n) for (int i = (s)-1; i >= (n); i--)
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define vec vector
#define rep(i, n) for (int i = 0; i < (n); i++)
#define reps(i, s, n) for (int i = (s); i < (n); i++)
#define rep1(i, n) for (int i = 1; i <= (n); i++)
#define repr(i, s, n) for (int i = (s)-1; i >= (n); i--)
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 261,743 | 261,744 | u599895318 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL), cout.tie(NULL);
int t, n;
t = 1;
for (int i = 0; i < t; i++) {
string s1, s2;
cin >> s1 >> s2;
int mini = INT_MAX;
int m = s1.size(), n = s2.size();
for (int i = 0; i < m - n; i++) {... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL), cout.tie(NULL);
int t, n;
t = 1;
for (int i = 0; i < t; i++) {
string s1, s2;
cin >> s1 >> s2;
int mini = INT_MAX;
int m = s1.size(), n = s2.size();
for (int i = 0; i <= m - n; i++) ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,747 | 261,748 | u703253520 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
using Long = long long;
int main() {
string s, t;
cin >> s >> t;
int sl = s.length(), tl = t.length();
int ans = tl;
for (int i = 0; i + tl < sl; ++i) {
int cnt = 0;
for (int j = 0; j < tl; ++j) {
if (s[i + j] != t[j])
cnt++;
}
ans =... | #include <bits/stdc++.h>
using namespace std;
using Long = long long;
int main() {
string s, t;
cin >> s >> t;
int sl = s.length(), tl = t.length();
int ans = sl;
for (int i = 0; i + tl - 1 < sl; ++i) {
int cnt = 0;
for (int j = 0; j < tl; ++j) {
if (s[i + j] != t[j])
cnt++;
}
a... | [
"variable_declaration.value.change",
"identifier.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 261,753 | 261,754 | u655630568 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = 1000;
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++;
}
}
if (ans > cnt)
ans = cnt;
}... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
int ans = 1000;
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++;
}
}
if (ans > cnt)
ans = cnt;
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,755 | 261,756 | u210555114 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
typedef long double ll;
typedef pair<int, int> pii;
#define PB push_back
#define be(v) v.begin(), v.end()
#define endl "\n"
void solve() {
string s, t;
cin >> s >> t;
int lens = s.length();
int lent = t.length();
int sum = lent;
for (int i = 0; i <= (lens - len... | #include <bits/stdc++.h>
using namespace std;
typedef long double ll;
typedef pair<int, int> pii;
#define PB push_back
#define be(v) v.begin(), v.end()
#define endl "\n"
void solve() {
string s, t;
cin >> s >> t;
int lens = s.length();
int lent = t.length();
int sum = lent;
for (int i = 0; i <= (lens - len... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 261,759 | 261,760 | u042375758 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
typedef long double ll;
typedef pair<int, int> pii;
#define PB push_back
#define be(v) v.begin(), v.end()
#define endl "\n"
void solve() {
string s, t;
cin >> s >> t;
int lens = s.length();
int lent = t.length();
int sum = lent;
for (int i = 0; i < lens - lent;... | #include <bits/stdc++.h>
using namespace std;
typedef long double ll;
typedef pair<int, int> pii;
#define PB push_back
#define be(v) v.begin(), v.end()
#define endl "\n"
void solve() {
string s, t;
cin >> s >> t;
int lens = s.length();
int lent = t.length();
int sum = lent;
for (int i = 0; i <= (lens - len... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 261,761 | 261,760 | u042375758 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
long long i, j, m, a, b, k, n, w, p, l;
string s, t;
while (cin >> s >> t) {
a = s.size();
b = t.size();
n = b;
for (i = 0; i < a - b; i++) {
k = 0;
for (j = 0; j < b; j++) {... | #include <bits/stdc++.h>
using namespace std;
main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
long long i, j, m, a, b, k, n, w, p, l;
string s, t;
while (cin >> s >> t) {
a = s.size();
b = t.size();
n = b;
for (i = 0; i <= a - b; i++) {
k = 0;
for (j = 0; j < b; j++) ... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 261,768 | 261,769 | u116414670 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
long long i, j, m, a, b, k, n, w, p, l;
string s, t;
while (cin >> s >> t) {
a = s.size();
b = t.size();
n = a;
for (i = 0; i < a; i++) {
k = 0;
for (j = 0; j < b; j++) {
... | #include <bits/stdc++.h>
using namespace std;
main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
long long i, j, m, a, b, k, n, w, p, l;
string s, t;
while (cin >> s >> t) {
a = s.size();
b = t.size();
n = b;
for (i = 0; i <= a - b; i++) {
k = 0;
for (j = 0; j < b; j++) ... | [
"assignment.value.change",
"identifier.change",
"expression.operator.compare.change",
"control_flow.loop.condition.change",
"control_flow.loop.for.condition.change"
] | 261,770 | 261,769 | u116414670 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(void) {
string s, t;
cin >> s >> t;
int ans = t.size();
for (int i = 0; i <= t.size(); i++) {
int tans = 0;
for (int j = 0; j < t.size(); j++) {
if (s[i + j] == t[j]) {
tans++;
}
}
ans = min(ans, (... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(void) {
string s, t;
cin >> s >> t;
int ans = t.size();
for (int i = 0; i <= s.size() - t.size(); i++) {
int tans = 0;
for (int j = 0; j < t.size(); j++) {
if (s[i + j] == t[j]) {
tans++;
}
}
ans =... | [
"control_flow.loop.for.condition.change"
] | 261,771 | 261,772 | u302818391 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
//全探索
int main() {
string S, T;
cin >> S >> T;
int ans;
priority_queue<int> X;
int l = S.size();
int L = T.size();
/*for(int i=0;i<=ans;i++){
string X=T.substr(i,L-ans);
for(int j=0;j<l+ans-L;j++){
if(S.substr(j,L-ans)==X) goto Fin;
}
}
... | #include <bits/stdc++.h>
using namespace std;
//全探索
int main() {
string S, T;
cin >> S >> T;
int ans;
priority_queue<int> X;
int l = S.size();
int L = T.size();
/*for(int i=0;i<=ans;i++){
string X=T.substr(i,L-ans);
for(int j=0;j<l+ans-L;j++){
if(S.substr(j,L-ans)==X) goto Fin;
}
}
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,779 | 261,780 | u430394202 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
//全探索
int main() {
string S, T;
cin >> S >> T;
int ans;
priority_queue<int> X;
int l = S.size();
int L = T.size();
/*for(int i=0;i<=ans;i++){
string X=T.substr(i,L-ans);
for(int j=0;j<l+ans-L;j++){
if(S.substr(j,L-ans)==X) goto Fin;
}
}
... | #include <bits/stdc++.h>
using namespace std;
//全探索
int main() {
string S, T;
cin >> S >> T;
int ans;
priority_queue<int> X;
int l = S.size();
int L = T.size();
/*for(int i=0;i<=ans;i++){
string X=T.substr(i,L-ans);
for(int j=0;j<l+ans-L;j++){
if(S.substr(j,L-ans)==X) goto Fin;
}
}
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,781 | 261,780 | u430394202 | cpp |
p02571 | #include <bits/stdc++.h>
#define elif else if
#define ALL(a) a.begin(), a.end()
#define INN(n) \
int n; \
cin >> n;
#define INNVEC(n, a) ... | #include <bits/stdc++.h>
#define elif else if
#define ALL(a) a.begin(), a.end()
#define INN(n) \
int n; \
cin >> n;
#define INNVEC(n, a) ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,784 | 261,785 | u283661333 | cpp |
p02571 | #include <iostream>
#include <string>
using namespace std;
void solve1() {
string s, t;
cin >> s >> t;
int d = t.size();
for (int i = 0; i < s.size(); i++) {
int j = 0, k = i;
for (; k < s.size() && j < t.size() && s[k] == t[j]; k++, j++) {
;
}
if (j == t.size()) {
d = 0;
brea... | #include <iostream>
#include <string>
using namespace std;
void solve1() {
string s, t;
cin >> s >> t;
int d = t.size();
for (int i = 0; i < s.size(); i++) {
int j = 0, k = i;
for (; k < s.size() && j < t.size() && s[k] == t[j]; k++, j++) {
;
}
if (j == t.size()) {
d = 0;
brea... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,786 | 261,787 | u140107728 | cpp |
p02571 |
// Problem : B - Substring
// Contest : AtCoder - AtCoder Beginner Contest 177
// URL : https://atcoder.jp/contests/abc177/tasks/abc177_b
// Memory Limit : 1024 MB
// Time Limit : 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#... |
// Problem : B - Substring
// Contest : AtCoder - AtCoder Beginner Contest 177
// URL : https://atcoder.jp/contests/abc177/tasks/abc177_b
// Memory Limit : 1024 MB
// Time Limit : 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#... | [
"assignment.change"
] | 261,788 | 261,789 | u422969030 | cpp |
p02571 | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
#define fi0 for (ll i = 0; i < n; i++)
void solve() {}
void abc() {
int i, j, k;
int n, m;
int x, y;
cin >> n;
ll cnt = 0;
for (i = 1; i <= n; i++) {
for (j = 1; j <= n; j++) {
x = i ^ j;
if (x <= n && x > 0) {
k ... | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
#define fi0 for (ll i = 0; i < n; i++)
void solve() {}
void abc() {
int i, j, k;
int n, m;
int x, y;
cin >> n;
ll cnt = 0;
for (i = 1; i <= n; i++) {
for (j = 1; j <= n; j++) {
x = i ^ j;
if (x <= n && x > 0) {
k ... | [] | 261,790 | 261,791 | u773223656 | cpp |
p02571 | #include "bits/stdc++.h"
using namespace std;
#ifdef _DEBUG
#define dlog(str) cout << "====" << str << endl;
#else
#define dlog(str)
#endif
#define INF 999999999
#define MOD 1000000007
#define REP(i, n) for (int i = 0, i##_l = (n); i < i##_l; i++)
#define FOR(i, s, e) for (int i = s, i##_l = (e); i < i##_l; i++)
#defin... | #include "bits/stdc++.h"
using namespace std;
#ifdef _DEBUG
#define dlog(str) cout << "====" << str << endl;
#else
#define dlog(str)
#endif
#define INF 999999999
#define MOD 1000000007
#define REP(i, n) for (int i = 0, i##_l = (n); i < i##_l; i++)
#define FOR(i, s, e) for (int i = s, i##_l = (e); i < i##_l; i++)
#defin... | [
"expression.operation.binary.add"
] | 261,792 | 261,793 | u840105874 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define input freopen("input.txt", "r", stdin)
#define output freopen("output.txt", "w", stdout)
#define si(a) scanf("%d", &a)
#define sii(a, b) scanf("%d%d", &a, &b)
#define siii(a, b, c) scanf("%d%d%d", &a, &b, &c)
#define pi(a) printf("%d", a)... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define input freopen("input.txt", "r", stdin)
#define output freopen("output.txt", "w", stdout)
#define si(a) scanf("%d", &a)
#define sii(a, b) scanf("%d%d", &a, &b)
#define siii(a, b, c) scanf("%d%d%d", &a, &b, &c)
#define pi(a) printf("%d", a)... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,796 | 261,797 | u231640005 | 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 diff = 0;
for (int j = 0; j < T.size(); j++) {
if (T[j] != S[i + j]) {
diff++;
}
}
ans = min(ans, diff);
}
c... | #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 diff = 0;
for (int j = 0; j < T.size(); j++) {
if (T[j] != S[i + j]) {
diff++;
}
}
ans = min(ans, diff);
}
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,798 | 261,799 | u863957421 | cpp |
p02571 | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(0);
#define all(x) x.begin(), x.end()
#define pb push_back
#define pf push_front... | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(0);
#define all(x) x.begin(), x.end()
#define pb push_back
#define pf push_front... | [
"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"
] | 261,800 | 261,801 | u454814816 | cpp |
p02571 | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(0);
#define all(x) x.begin(), x.end()
#define pb push_back
#define pf push_front... | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(0);
#define all(x) x.begin(), x.end()
#define pb push_back
#define pf push_front... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,802 | 261,801 | u454814816 | 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;
int main() {
string s, t;
cin >> s >> t;
int ans = t.size();
int ss = s.size();
int tt = t.size();
rep(i, ss - tt + 1) {
int cnt = 0;
rep(j, tt - i) {
if (s[i + j] != t[j])... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
int main() {
string s, t;
cin >> s >> t;
int ans = t.size();
int ss = s.size();
int tt = t.size();
rep(i, ss - tt + 1) {
int cnt = 0;
rep(j, tt) {
if (s[i + j] != t[j])
... | [
"expression.operation.binary.remove"
] | 261,810 | 261,811 | u257634433 | 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;
int main() {
string s, t;
cin >> s >> t;
int ans = t.size();
int ss = s.size();
int tt = t.size();
rep(i, ss - tt) {
int cnt = 0;
rep(j, tt - i) {
if (s[i + j] != t[j])
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
int main() {
string s, t;
cin >> s >> t;
int ans = t.size();
int ss = s.size();
int tt = t.size();
rep(i, ss - tt + 1) {
int cnt = 0;
rep(j, tt) {
if (s[i + j] != t[j])
... | [
"expression.operation.binary.remove"
] | 261,812 | 261,811 | u257634433 | 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;
int main() {
string s, t;
cin >> s >> t;
int ans = t.size();
int ss = s.size();
int tt = t.size();
rep(i, ss) {
int cnt = 0;
rep(j, tt) {
if (s[i + j] != t[j])
cnt+... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
int main() {
string s, t;
cin >> s >> t;
int ans = t.size();
int ss = s.size();
int tt = t.size();
rep(i, ss - tt + 1) {
int cnt = 0;
rep(j, tt) {
if (s[i + j] != t[j])
... | [
"expression.operation.binary.add"
] | 261,813 | 261,811 | u257634433 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
#define fi first
#define se second
typedef pair<ll, ll> P;
using VP = vector<P>;
using VVP = vector<VP>;
using VI = vector<ll>;
using VVI = vector<VI>;
using VVVI = vector<VVI>;
const int inf = 1e9 + 7;
const ll INF = 1LL << 61;
co... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
#define fi first
#define se second
typedef pair<ll, ll> P;
using VP = vector<P>;
using VVP = vector<VP>;
using VI = vector<ll>;
using VVI = vector<VI>;
using VVVI = vector<VVI>;
const int inf = 1e9 + 7;
const ll INF = 1LL << 61;
co... | [
"control_flow.loop.for.condition.change",
"expression.operator.compare.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,828 | 261,829 | u586567203 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
#define fi first
#define se second
typedef pair<ll, ll> P;
using VP = vector<P>;
using VVP = vector<VP>;
using VI = vector<ll>;
using VVI = vector<VI>;
using VVVI = vector<VVI>;
const int inf = 1e9 + 7;
const ll INF = 1LL << 61;
co... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
#define fi first
#define se second
typedef pair<ll, ll> P;
using VP = vector<P>;
using VVP = vector<VP>;
using VI = vector<ll>;
using VVI = vector<VI>;
using VVVI = vector<VVI>;
const int inf = 1e9 + 7;
const ll INF = 1LL << 61;
co... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,830 | 261,829 | u586567203 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
string T;
cin >> T;
int result = 0;
int res = 0;
for (int i = 0; i <= S.size() - T.size(); i++) {
for (int j = i; j < T.size(); j++) {
if (S[j] == T[j - i]) {
result++;
}
if (result > res) {
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
string T;
cin >> T;
int result = 0;
int res = 0;
for (int i = 0; i <= S.size() - T.size(); i++) {
for (int j = i; j < T.size() + i; j++) {
if (S[j] == T[j - i]) {
result++;
}
if (result > res) {
... | [
"control_flow.loop.for.condition.change"
] | 261,831 | 261,832 | u761384530 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
string T;
cin >> T;
int result = 0;
int res = 0;
for (int i = 0; i <= S.size() - T.size(); i++) {
for (int j = i; j < T.size(); j++) {
if (S[i] == T[j - i]) {
result++;
}
if (result > res) {
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
string T;
cin >> T;
int result = 0;
int res = 0;
for (int i = 0; i <= S.size() - T.size(); i++) {
for (int j = i; j < T.size() + i; j++) {
if (S[j] == T[j - i]) {
result++;
}
if (result > res) {
... | [
"control_flow.loop.for.condition.change",
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 261,833 | 261,832 | u761384530 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
int na, nb, nc, a = 0;
cin >> s >> t;
na = s.size();
nb = t.size();
nc = na - nb;
a = t.size();
for (int i = 0; i <= nc; i++) {
int diff = 0;
for (int m = 0; m < nb; m++) {
if (t[m] != s[i + 1]) {
diff++;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
int na, nb, nc, a = 0;
cin >> s >> t;
na = s.size();
nb = t.size();
nc = na - nb;
a = t.size();
for (int i = 0; i <= nc; i++) {
int diff = 0;
for (int m = 0; m < nb; m++) {
if (t[m] != s[i + m]) {
diff++;
... | [
"identifier.replace.add",
"literal.replace.remove",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 261,840 | 261,841 | u811184186 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
int na, nb, nc, a = 0;
cin >> s >> t;
na = s.size();
nb = t.size();
nc = na - nb;
a = t.size();
for (int i = 0; i <= nc; i++) {
int diff = 0;
for (int i = 0; i < nb; i++) {
if (t[i] != s[i + 1]) {
diff++;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
int na, nb, nc, a = 0;
cin >> s >> t;
na = s.size();
nb = t.size();
nc = na - nb;
a = t.size();
for (int i = 0; i <= nc; i++) {
int diff = 0;
for (int m = 0; m < nb; m++) {
if (t[m] != s[i + m]) {
diff++;
... | [
"variable_declaration.name.change",
"identifier.change",
"control_flow.loop.for.initializer.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"identifier.replace.add",
"literal... | 261,842 | 261,841 | u811184186 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
template <typename A, typename B> string to_string(pair<A, B> p);
template <typename A, typename B, typename C>
string to_string(tuple<A, B, C> p);
template <typename A, typename B, typename C, typename D>
string to_string(tuple<A, B, C, D> p);
string to_string(const s... | #include <bits/stdc++.h>
using namespace std;
template <typename A, typename B> string to_string(pair<A, B> p);
template <typename A, typename B, typename C>
string to_string(tuple<A, B, C> p);
template <typename A, typename B, typename C, typename D>
string to_string(tuple<A, B, C, D> p);
string to_string(const s... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 261,843 | 261,844 | u256901785 | cpp |
p02571 | #include <bits/stdc++.h>
#define ll long long
#define f(i, a, b) for (ll i = a; i < b; i++)
#define fi(i, a, b) for (ll i = b; i >= a; i--)
using namespace std;
ll mod(ll a) {
if (a > 0)
return a;
else
return -a;
}
ll min(ll a, ll b) {
if (a > b)
return b;
else
return a;
}
ll gcd(ll a, ll b) {
... | #include <bits/stdc++.h>
#define ll long long
#define f(i, a, b) for (ll i = a; i < b; i++)
#define fi(i, a, b) for (ll i = b; i >= a; i--)
using namespace std;
ll mod(ll a) {
if (a > 0)
return a;
else
return -a;
}
ll min(ll a, ll b) {
if (a > b)
return b;
else
return a;
}
ll gcd(ll a, ll b) {
... | [
"control_flow.loop.for.condition.change"
] | 261,845 | 261,846 | u323254800 | cpp |
p02571 | #include <bits/stdc++.h>
#define ll long long
#define f(i, a, b) for (ll i = a; i < b; i++)
#define fi(i, a, b) for (ll i = b; i >= a; i--)
using namespace std;
ll mod(ll a) {
if (a > 0)
return a;
else
return -a;
}
ll min(ll a, ll b) {
if (a > b)
return b;
else
return a;
}
ll gcd(ll a, ll b) {
... | #include <bits/stdc++.h>
#define ll long long
#define f(i, a, b) for (ll i = a; i < b; i++)
#define fi(i, a, b) for (ll i = b; i >= a; i--)
using namespace std;
ll mod(ll a) {
if (a > 0)
return a;
else
return -a;
}
ll min(ll a, ll b) {
if (a > b)
return b;
else
return a;
}
ll gcd(ll a, ll b) {
... | [
"control_flow.loop.for.condition.change",
"control_flow.branch.if.condition.change"
] | 261,847 | 261,846 | u323254800 | cpp |
p02571 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstring>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <vector>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define repr(i, n) for (int i = (n); i >= 0; i--)
#define repf(i, ... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstring>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <vector>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define repr(i, n) for (int i = (n); i >= 0; i--)
#define repf(i, ... | [
"expression.operation.binary.add"
] | 261,850 | 261,851 | u374929478 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vl = vector<ll>;
using vvl = vector<vl>;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define per(i, n) for (int i = (n)-1; i >= 0; --i)
#define rng(i, a, b) for (int i = (a); i < (b); ++i)
#define all(a) (a).begin(), (a).end()
int main() {
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vl = vector<ll>;
using vvl = vector<vl>;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define per(i, n) for (int i = (n)-1; i >= 0; --i)
#define rng(i, a, b) for (int i = (a); i < (b); ++i)
#define all(a) (a).begin(), (a).end()
int main() {
... | [
"expression.operation.binary.add"
] | 261,857 | 261,858 | u581807854 | cpp |
p02571 | #include <algorithm>/*toupperとかが入っている*/
#include <cmath>
#include <iostream>
#include <string>
#include <vector>/*可変長配列vectorのインクルード*/
const int MOD =
1000000007; /* 1,000,000,007 で割った余りを出力する のとき使う*/
using namespace std; /*標準名前空間を利用する。cinやcoutはこれによって利用可能になる*/
string S;
string T;
int main(void) {
cin >> S;
ci... | #include <algorithm>/*toupperとかが入っている*/
#include <cmath>
#include <iostream>
#include <string>
#include <vector>/*可変長配列vectorのインクルード*/
const int MOD =
1000000007; /* 1,000,000,007 で割った余りを出力する のとき使う*/
using namespace std; /*標準名前空間を利用する。cinやcoutはこれによって利用可能になる*/
string S;
string T;
int main(void) {
cin >> S;
ci... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,859 | 261,860 | u607444339 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (long long i = 0; i < (n); ++i)
#define REP(i, d, n) for (long long i = (d); i < (n); ++i)
#define all(v) v.begin(), v.end()
using ll = long long;
int main() {
string s, t;
cin >> s >> t;
int ans = t.size();
int jj = s.size() - t.size();
in... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (long long i = 0; i < (n); ++i)
#define REP(i, d, n) for (long long i = (d); i < (n); ++i)
#define all(v) v.begin(), v.end()
using ll = long long;
int main() {
string s, t;
cin >> s >> t;
int ans = t.size();
int jj = s.size() - t.size();
in... | [
"expression.operation.binary.add"
] | 261,861 | 261,862 | u430302940 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
using pll = pair<ll, ll>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(i) begin(i), end(i)
const int INF = 0x3fffffff;
const ll MINF = 0x7fffffffffff;
const ld DINF = numeric_... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
using pll = pair<ll, ll>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(i) begin(i), end(i)
const int INF = 0x3fffffff;
const ll MINF = 0x7fffffffffff;
const ld DINF = numeric_... | [
"expression.operation.binary.add"
] | 261,865 | 261,866 | u734268715 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int min_count = 100000;
for (int i_s = 0; i_s <= S.size() - T.size(); ++i_s) {
int cur_count = 0;
for (int j_s = 0; j_s < T.size(); ++j_s) {
if (T[j_s] != S[j_s]) {
cur_count++;
}
}
min_cou... | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, T;
cin >> S >> T;
int min_count = 100000;
for (int i_s = 0; i_s <= S.size() - T.size(); ++i_s) {
int cur_count = 0;
for (int j_s = 0; j_s < T.size(); ++j_s) {
if (T[j_s] != S[i_s + j_s]) {
cur_count++;
}
}
m... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 261,869 | 261,870 | u612071987 | cpp |
p02571 |
// Problem : B - Substring
// Contest : AtCoder - AtCoder Beginner Contest 177
// URL : https://atcoder.jp/contests/abc177/tasks/abc177_b
// Memory Limit : 1024 MB
// Time Limit : 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp> /... |
// Problem : B - Substring
// Contest : AtCoder - AtCoder Beginner Contest 177
// URL : https://atcoder.jp/contests/abc177/tasks/abc177_b
// Memory Limit : 1024 MB
// Time Limit : 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp> /... | [
"expression.operation.binary.add"
] | 261,871 | 261,872 | u101662185 | 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.at(i + j) != t.at(j)) {
count++;
}
}
ans = min(count, 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() + 1; i++) {
int count = 0;
for (int j = 0; j < t.size(); j++) {
if (s.at(i + j) != t.at(j)) {
count++;
}
}
ans = min(c... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 261,878 | 261,879 | u831279508 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
string s, s1;
int c = 0, maxx = INT_MAX;
cin >> s >> s1;
for (int i = 0; i < (s.size() - s1.size()); i++) {
c = 0;
for (int j = 0; j < s1.size(); j++) {
if (s[i + j] != s1[j]) {
c++;
}
}
maxx = ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
string s, s1;
int c = 0, maxx = INT_MAX;
cin >> s >> s1;
for (int i = 0; i < (s.size() - s1.size() + 1); i++) {
c = 0;
for (int j = 0; j < s1.size(); j++) {
if (s[i + j] != s1[j]) {
c++;
}
}
max... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 261,880 | 261,881 | u304815969 | cpp |
p02571 | #include <bits/stdc++.h>
using namespace std;
const int mxn = 2e5 + 10;
const int Mod = 1e9 + 7;
int Ans = 1e7;
int arr[mxn];
int main() {
ios::sync_with_stdio(false);
string str1, str2;
cin >> str1 >> str2;
int sz1 = str1.size(), sz2 = str2.size();
for (int i = 0; i < sz1; i++) {
int k = i, ct = 0;... | #include <bits/stdc++.h>
using namespace std;
const int mxn = 2e5 + 10;
const int Mod = 1e9 + 7;
int Ans = 1e7;
int arr[mxn];
int main() {
ios::sync_with_stdio(false);
string str1, str2;
cin >> str1 >> str2;
int sz1 = str1.size(), sz2 = str2.size();
for (int i = 0; i <= sz1 - sz2; i++) {
int k = i, ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 261,884 | 261,885 | u337550605 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.