Datasets:

problem_id
stringlengths
6
6
buggy_code
stringlengths
8
526k
fixed_code
stringlengths
12
526k
labels
listlengths
0
15
⌀
buggy_submission_id
int64
1
1.54M
fixed_submission_id
int64
2
1.54M
user_id
stringlengths
10
10
language
stringclasses
8 values
p02570
#include <bits/stdc++.h> typedef long long int ll; using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int d, t, s; cin >> d >> t >> s; if ((d / s) <= t) { cout << "Yes" << "\n"; } else { cout << "No" << "\n"; } return 0; }
#include <bits/stdc++.h> typedef long long int ll; using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); double d, t, s; cin >> d >> t >> s; if (d / s <= t) { cout << "Yes" << "\n"; } else { cout << "No" << "\n"; } return 0; }
[ "variable_declaration.type.primitive.change", "control_flow.branch.if.condition.change" ]
262,769
262,768
u282616179
cpp
p02570
#include "bits/stdc++.h" using namespace std; #define ll long long #define pb push_back #define empb emplace_back #define mp make_pair #define F first #define S second #define endl "\n" #define vii vector<int> #define vll vector<ll> #define pii pair<int, int> #define pll pair<ll, ll> #define vpll vector<pll> #define vp...
#include "bits/stdc++.h" using namespace std; #define ll long long #define pb push_back #define empb emplace_back #define mp make_pair #define F first #define S second #define endl "\n" #define vii vector<int> #define vll vector<ll> #define pii pair<int, int> #define pll pair<ll, ll> #define vpll vector<pll> #define vp...
[ "variable_declaration.type.change" ]
262,770
262,771
u707975777
cpp
p02570
#include <bits/stdc++.h> using namespace std; #define fast \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); typedef long lon...
#include <bits/stdc++.h> using namespace std; #define fast \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); typedef long lon...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
262,774
262,775
u632091877
cpp
p02570
#include <iostream> #include <math.h> #include <vector> using namespace std; #define rep(src, dst) for (int i = src; i < dst; i++) #define rep2(src, dst) for (int j = src; j < dst; j++) #define INF 1000000000000 // 1e+12 #define MOD 10000007 // 1e9+7 #define PI acos(-1) #define ll long long template <typename T> i...
#include <iostream> #include <math.h> #include <vector> using namespace std; #define rep(src, dst) for (int i = src; i < dst; i++) #define rep2(src, dst) for (int j = src; j < dst; j++) #define INF 1000000000000 // 1e+12 #define MOD 10000007 // 1e9+7 #define PI acos(-1) #define ll long long template <typename T> i...
[ "variable_declaration.type.primitive.change" ]
262,776
262,777
u158751716
cpp
p02570
#include <bits/stdc++.h> using namespace std; #define lli long long int #define llu unsigned long long int #define sa(a, n, t) \ for (int ii = 0; ii < n; ii++) \ scanf("%" #t "", &(a)[ii]) #define rep(i, n) for ...
#include <bits/stdc++.h> using namespace std; #define lli long long int #define llu unsigned long long int #define sa(a, n, t) \ for (int ii = 0; ii < n; ii++) \ scanf("%" #t "", &(a)[ii]) #define rep(i, n) for ...
[ "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add" ]
262,780
262,781
u895052567
cpp
p02570
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define endl "\n" #define ff first #define ss second #define pb push_back #define INF ll(1e18) #define MOD 1000000007 #define debug(x) cout << x << "\n"; #define pll pair<ll, ll> #define mp make_pair #define Craig ios_base::sync_with_stdio(false),...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define endl "\n" #define ff first #define ss second #define pb push_back #define INF ll(1e18) #define MOD 1000000007 #define debug(x) cout << x << "\n"; #define pll pair<ll, ll> #define mp make_pair #define Craig ios_base::sync_with_stdio(false),...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
262,782
262,783
u254864347
cpp
p02570
///////////////////////Loading Payloads.......//////////////////////////// #include <bits/stdc++.h> #define f(i, a, b) for (int i = a; i < b; i++) #define fd(i, a, b) for (int i = a; i > b; i--) #define ll long long #define fl(i, a, b) for (ll i = a; i < b; i++) #define VI vector<int> #define VP vector<pair<int, int>>...
///////////////////////Loading Payloads.......//////////////////////////// #include <bits/stdc++.h> #define f(i, a, b) for (int i = a; i < b; i++) #define fd(i, a, b) for (int i = a; i > b; i--) #define ll long long #define fl(i, a, b) for (ll i = a; i < b; i++) #define VI vector<int> #define VP vector<pair<int, int>>...
[ "variable_declaration.type.primitive.change" ]
262,792
262,793
u225247096
cpp
p02570
#pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <bitset> // bitset #include <cctype> // isupper, islower, isdigit, toupper, tolower #include <cstdint> // int64_t, int*_t #include ...
#pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <bitset> // bitset #include <cctype> // isupper, islower, isdigit, toupper, tolower #include <cstdint> // int64_t, int*_t #include ...
[ "variable_declaration.type.primitive.change" ]
262,794
262,795
u375884314
cpp
p02570
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) int main() { int d, t, s; cin >> d >> t >> s; if (d / s <= t) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) int main() { float d, t, s; cin >> d >> t >> s; if (d / s <= t) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[ "variable_declaration.type.primitive.change" ]
262,798
262,799
u461563687
cpp
p02570
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int d, t, s; cin >> d >> t >> s; double ans = d / s; if (ans <= t) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { double d, t, s; cin >> d >> t >> s; double ans = d / s; if (ans <= t) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[ "variable_declaration.type.primitive.change" ]
262,800
262,801
u384768892
cpp
p02570
/* TASK: Trial division (prime factorization of a number) NAME: Aryan LANG: c++ */ #include <bits/stdc++.h> #define MAX 200005 using namespace std; using ll = long long int; ll dp[MAX]; #define FOR(n) for (int i = 0; i < n; i++) bool isPower(ll x, ll y) { // The only power of 1 is 1 itself if (x == 1) return (...
/* TASK: Trial division (prime factorization of a number) NAME: Aryan LANG: c++ */ #include <bits/stdc++.h> #define MAX 200005 using namespace std; using ll = long long int; ll dp[MAX]; #define FOR(n) for (int i = 0; i < n; i++) bool isPower(ll x, ll y) { // The only power of 1 is 1 itself if (x == 1) return (...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
262,802
262,803
u911158452
cpp
p02570
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <iomanip> #include <iostream> #include <queue> #include <stdio.h> #include <string> #include <vector> using namespace std; typedef long long ll; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define Q 1000000007 // ll white, black; // vecto...
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <iomanip> #include <iostream> #include <queue> #include <stdio.h> #include <string> #include <vector> using namespace std; typedef long long ll; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define Q 1000000007 // ll white, black; // vecto...
[ "variable_declaration.type.change" ]
262,806
262,807
u281714739
cpp
p02570
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int main() { /* Input */ int D, T, S; cin >> D >> T >> S; /* Main Logic */ double time = D / S; /* Output */ if (T < time) cout << "No" << endl; else cout << "Yes" << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int main() { /* Input */ double D, T, S; cin >> D >> T >> S; /* Main Logic */ double time = D / S; /* Output */ if (T < time) cout << "No" << endl; else cout << "Yes" << endl; return 0; }
[ "variable_declaration.type.primitive.change" ]
262,808
262,809
u675066860
cpp
p02571
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <queue> #include <string> #include <vector> #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) #define REPD(i, n) for (ll i = n - 1; i >= 0; i--) #define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++) #define FORD(i, a, b) for (ll i = a;...
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <queue> #include <string> #include <vector> #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) #define REPD(i, n) for (ll i = n - 1; i >= 0; i--) #define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++) #define FORD(i, a, b) for (ll i = a;...
[ "misc.opposites", "expression.operator.arithmetic.change", "call.arguments.change", "expression.operation.binary.change" ]
262,824
262,825
u254897271
cpp
p02571
#include <bits/stdc++.h> using namespace std; #define pp pair<int, int> #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) #define rep2(i, m, n) for (int(i) = (m); (i) < (n); (i)++) #define ll long long #define ld long double #define all(a) (a).begin(), (a).end() #define mk make_pair ll mod = 998244353; int inf = 100...
#include <bits/stdc++.h> using namespace std; #define pp pair<int, int> #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) #define rep2(i, m, n) for (int(i) = (m); (i) < (n); (i)++) #define ll long long #define ld long double #define all(a) (a).begin(), (a).end() #define mk make_pair ll mod = 998244353; int inf = 100...
[ "expression.operation.binary.add" ]
262,826
262,827
u443971699
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 Slength = S.length(); int Tlength = T.length(); int ans = Slength; rep(i, Slength - Tlength) { int sum = 0; r...
#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 Slength = S.length(); int Tlength = T.length(); int ans = Slength; rep(i, Slength - Tlength + 1) { int sum = 0; ...
[ "expression.operation.binary.add" ]
262,836
262,837
u021849122
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 Slength = S.length(); int Tlength = T.length(); int ans = Slength; rep(i, Slength) { int sum = 0; rep(j, Tlen...
#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 Slength = S.length(); int Tlength = T.length(); int ans = Slength; rep(i, Slength - Tlength + 1) { int sum = 0; ...
[ "expression.operation.binary.add" ]
262,838
262,837
u021849122
cpp
p02571
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { string s, t; cin >> s >> t; ll sn = s.size(); ll tn = t.size(); ll mn = 1e9, curr; for (int i = 0; i <= sn - tn; i++) { ll pt = i; curr = 0; for (int j = 0; j < tn; j++) { if (s[pt] != t[j]) { cur...
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { string s, t; cin >> s >> t; ll sn = s.size(); ll tn = t.size(); ll mn = 1e9, curr; for (int i = 0; i <= sn - tn; i++) { ll pt = i; curr = 0; for (int j = 0; j < tn; j++) { if (s[pt] != t[j]) { cu...
[]
262,839
262,840
u114417109
cpp
p02571
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string S, T; cin >> S >> T; int maxT = 0; for (int i = 0; i < S.size() - T.size(); i++) { int tmp = 0; for (int j = 0; j < T.size(); j++) { if (S[i + j] == T[j])...
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string S, T; cin >> S >> T; int maxT = 0; for (int i = 0; i <= S.size() - T.size(); i++) { int tmp = 0; for (int j = 0; j < T.size(); 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" ]
262,841
262,842
u231961655
cpp
p02571
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { const int INF = 10000; string S, T; cin >> S >> T; int len_S = S.size(); int len_T = T.size(); int ans = INF; for (int i = 0; i < len_S - len_T; i++) { int x = 0; for (int j = 0; j < len_T; j++) { ...
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { const int INF = 10000; string S, T; cin >> S >> T; int len_S = S.size(); int len_T = T.size(); int ans = INF; for (int i = 0; i < len_S - len_T + 1; i++) { int x = 0; for (int j = 0; j < len_T; j++) { ...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
262,845
262,846
u376616698
cpp
p02571
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { long long int m = 1000000000000007, c; long int i, j; string s, t; cin >> s; cin >> t; long int f = t.length(), d = t.length(); for (i = 0; i < d; i++) { c = 0; for (j = 0; j < f; j++) { if (s[i + j] != t[j]) { ...
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { long long int m = 1000000000000007, c; long int i, j; string s, t; cin >> s; cin >> t; long int f = t.length(), d = s.length(); for (i = 0; i <= (d - f); i++) { c = 0; for (j = 0; j < f; j++) { if (s[i + j] != t...
[ "identifier.change", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
262,849
262,850
u711699137
cpp
p02571
#include <iostream> using namespace std; int main() { string s, t; int count, min = 10000; cin >> s >> t; for (int i = 0; i < s.length() - t.length(); i++) { count = 0; for (int j = 0; j < t.length(); j++) { if (t[j] != s[i + j]) { count++; } } if (count < min) min = c...
#include <iostream> using namespace std; int main() { string s, t; int count, min = 10000; cin >> s >> t; for (int i = 0; i <= s.length() - t.length(); i++) { count = 0; for (int j = 0; j < t.length(); j++) { if (t[j] != s[i + j]) { count++; // cout << t[j]; } } if (...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
262,855
262,856
u273293187
cpp
p02571
#include <bits/stdc++.h> #define PB push_back using namespace std; int main() { string a, t; cin >> a >> t; int f = t.length(); for (int i = 0; i < (a.length() - t.length()); i++) { int k = t.length(); for (int j = 0; j < t.length(); j++) { a[j + i] == t[j] ? k-- : i = i; } f = min(f, k);...
#include <bits/stdc++.h> #define PB push_back using namespace std; int main() { string a, t; cin >> a >> t; int f = t.length(); for (int i = 0; i < (a.length() - t.length()) + 1; i++) { int k = t.length(); for (int j = 0; j < t.length(); j++) { a[j + i] == t[j] ? k-- : i = i; } f = min(f,...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
262,857
262,858
u835598924
cpp
p02571
#include <bits/stdc++.h> #define PB push_back using namespace std; int main() { string a, t; cin >> a >> t; int f = t.length(); for (int i = 0; i < (a.length() - t.length()); i++) { int k = t.length(); for (int j = 0; j < t.length(); j++) { a[j] == t[j] ? k-- : i = i; } f = min(f, k); }...
#include <bits/stdc++.h> #define PB push_back using namespace std; int main() { string a, t; cin >> a >> t; int f = t.length(); for (int i = 0; i < (a.length() - t.length()) + 1; i++) { int k = t.length(); for (int j = 0; j < t.length(); j++) { a[j + i] == t[j] ? k-- : i = i; } f = min(f,...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
262,859
262,858
u835598924
cpp
p02571
#include <bits/stdc++.h> using namespace std; #define ll long long int #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); #define M 1000000007 int main() { fastio; string s, t; cin >> ...
#include <bits/stdc++.h> using namespace std; #define ll long long int #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); #define M 1000000007 int main() { fastio; string s, t; cin >> ...
[ "control_flow.loop.for.condition.change" ]
262,860
262,861
u902546797
cpp
p02571
#include <bits/stdc++.h> #include <stdio.h> #include <string.h> using namespace std; #define ll long long #define ff first #define ss second #define pb push_back #define mp make_pair #define pii pair<ll, ll> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define rep(i, t, n) for (int i = ...
#include <bits/stdc++.h> #include <stdio.h> #include <string.h> using namespace std; #define ll long long #define ff first #define ss second #define pb push_back #define mp make_pair #define pii pair<ll, ll> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define rep(i, t, n) for (int i = ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
262,866
262,867
u784120136
cpp
p02571
#include <array> #include <bits/stdc++.h> #include <iostream> using namespace std; #define int long long #define fast_cin \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
#include <array> #include <bits/stdc++.h> #include <iostream> using namespace std; #define int long long #define fast_cin \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
[ "variable_declaration.value.change", "identifier.change", "control_flow.loop.for.condition.change", "misc.off_by_one" ]
262,868
262,869
u965849635
cpp
p02571
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) #define rep2(i, n, a) for (int i = a; i < (int)(n); ++i) #define per(i, n) for (int i = n; i >= 0; --i) int main() { cin.tie(0); ios::sync_with_stdio(false); string S, T; cin >> S >> T;...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) #define rep2(i, n, a) for (int i = a; i < (int)(n); ++i) #define per(i, n) for (int i = n; i >= 0; --i) int main() { cin.tie(0); ios::sync_with_stdio(false); string S, T; cin >> S >> T;...
[ "expression.operation.binary.add" ]
262,874
262,875
u974496357
cpp
p02571
#include <algorithm> #include <cmath> #include <cstdio> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <vector> using namespace std; #pragma region Macros #define int long long #define double long double constexpr in...
#include <algorithm> #include <cmath> #include <cstdio> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <vector> using namespace std; #pragma region Macros #define int long long #define double long double constexpr in...
[ "control_flow.branch.else.remove" ]
262,882
262,883
u545364250
cpp
p02571
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <set> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using ll = long long; using namespace std; int main() { string s, t; cin >> s >> t; int s_length = s.length(); int...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <set> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using ll = long long; using namespace std; int main() { string s, t; cin >> s >> t; int s_length = s.length(); int...
[ "expression.operation.binary.add" ]
262,887
262,888
u789673498
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string S, T; cin >> S >> T; int m = 0; int M = 300000; for (int i = 0; i < S.size() - T.size() + 1; i++) { for (int j = 0; j < T.size(); j++) { if (S.at(i) != T.at(j)) { m += 1; } } if (m < M) { M = m; } ...
#include <bits/stdc++.h> using namespace std; int main() { string S, T; cin >> S >> T; int m = 0; int M = 300000; for (int i = 0; i < S.size() - T.size() + 1; i++) { for (int j = 0; j < T.size(); j++) { if (S.at(i + j) != T.at(j)) { m += 1; } } if (m < M) { M = m; }...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
262,896
262,897
u680646173
cpp
p02571
#include <bits/stdc++.h> using namespace std; string s1, s2; int mi, a, b, c; int main() { int i, j; getline(cin, s1); getline(cin, s2); a = s1.size(); b = s2.size(); mi = 999999999; for (i = 0; i < a - b + 1; i++) { c = 0; for (j = i; j < i + b; j++) { if (s1[j] != s2[j]) { c++; ...
#include <bits/stdc++.h> using namespace std; string s1, s2; int mi, a, b, c; int main() { int i, j; getline(cin, s1); getline(cin, s2); a = s1.size(); b = s2.size(); mi = 999999999; for (i = 0; i < a - b + 1; i++) { c = 0; for (j = i; j < i + b; j++) { if (s1[j] != s2[j - i]) { c++;...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
262,898
262,899
u499924004
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string S, T; int num, count = 0, count_2 = 0; cin >> S; cin >> T; num = int(S.size()) - int(T.size()) + 1; for (int i = 0; i < num; i++) { count_2 = 0; for (int j = 0; j < int(T.size()); j++) { if (T.at(j) != S.at(i + j)) { ...
#include <bits/stdc++.h> using namespace std; int main() { string S, T; int num, count = 0, count_2 = 0; cin >> S; cin >> T; num = int(S.size()) - int(T.size()) + 1; for (int i = 0; i < num; i++) { count_2 = 0; for (int j = 0; j < int(T.size()); j++) { if (T.at(j) != S.at(i + j)) { ...
[ "expression.operation.compare.replace.remove", "assignment.replace.add", "misc.typo" ]
262,900
262,901
u560883298
cpp
p02571
//_nebula_ #include <bits/stdc++.h> using namespace std; #define int long long #define double long double int t; const int M = 1e9 + 7; int factt(int n) { int ans = 1; for (int i = 1; i <= n; i++) { ans *= i; ans = ans % M; } return ans; } int max(int a, int b, int c) { return max(a, max(b, c)); } int m...
//_nebula_ #include <bits/stdc++.h> using namespace std; #define int long long #define double long double int t; const int M = 1e9 + 7; int factt(int n) { int ans = 1; for (int i = 1; i <= n; i++) { ans *= i; ans = ans % M; } return ans; } int max(int a, int b, int c) { return max(a, max(b, c)); } int m...
[ "variable_declaration.value.change", "identifier.replace.remove", "literal.replace.add" ]
262,902
262,903
u616516236
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; string p; int ans = 100000; for (int i = 0; i < s.size() - t.size(); i++) { string str; int cnt = 0; str = s.substr(i, t.size()); for (int i = 0; i < str.size(); i++) { if (str.at(i) != t.at(i)) ...
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; string p; int ans = 100000; for (int i = 0; i <= s.size() - t.size(); i++) { string str; int cnt = 0; str = s.substr(i, t.size()); for (int i = 0; i < str.size(); i++) { if (str.at(i) != t.at(i)) ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
262,904
262,905
u668010224
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s; string t; int ans = 0; cin >> s >> t; int tl = t.size(); for (long int i = 0; i < s.size() - t.size(); i++) { int sum = 0; for (long int j = 0; j < t.size(); j++) { if (t[j] == s[i + j]) { sum++; } if (s...
#include <bits/stdc++.h> using namespace std; int main() { string s; string t; int ans = 0; cin >> s >> t; int tl = t.size(); for (long int i = 0; i < s.size() - t.size() + 1; i++) { int sum = 0; for (long int j = 0; j < t.size(); j++) { if (t[j] == s[i + j]) { sum++; } i...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
262,916
262,917
u238883338
cpp
p02571
#include <bits/stdc++.h> #include <iostream> #include <math.h> #include <stdio.h> #include <string> using namespace std; #define ll long long #define tt \ ll t; \ cin >> t; ...
#include <bits/stdc++.h> #include <iostream> #include <math.h> #include <stdio.h> #include <string> using namespace std; #define ll long long #define tt \ ll t; \ cin >> t; ...
[]
262,919
262,920
u188404117
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s1, s2; cin >> s1 >> s2; int l1 = s1.length(); int l2 = s2.length(); int discount = 0; int res = INT_MAX; for (int i = 0; i < l1 - l2; i++) { discount = 0; int count = i; for (int j = 0; j < l2; j++) { if (s1[count] != s2...
#include <bits/stdc++.h> using namespace std; int main() { string s1, s2; cin >> s1 >> s2; int l1 = s1.length(); int l2 = s2.length(); int discount = 0; int res = INT_MAX; for (int i = 0; i < l1 - l2 + 1; i++) { discount = 0; int count = i; for (int j = 0; j < l2; j++) { if (s1[count] !...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
262,921
262,922
u548631643
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { char s[1010]; char t[1010]; scanf("%s", &s); scanf("%s", &t); int lent = strlen(t); int lens = strlen(s); int count = 0; int total = 1000; for (int i = 0; i <= (lens - lent); i++) { count = 0; for (int j = 0; j < lent; j++) { ...
#include <bits/stdc++.h> using namespace std; int main() { char s[1010]; char t[1010]; scanf("%s", &s); scanf("%s", &t); int lent = strlen(t); int lens = strlen(s); int count = 0; int total = 1000; for (int i = 0; i <= (lens - lent); i++) { count = 0; for (int j = 0; j < lent; j++) { ...
[ "identifier.change", "io.output.change" ]
262,937
262,938
u700529853
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { char s[1010]; char t[1010]; scanf("%s", &s); scanf("%s", &t); int lent = strlen(t); int lens = strlen(s); int count = 0; int total = 1000; for (int i = 0; i < (lens - lent); i++) { count = 0; for (int j = 0; j < lent; j++) { ...
#include <bits/stdc++.h> using namespace std; int main() { char s[1010]; char t[1010]; scanf("%s", &s); scanf("%s", &t); int lent = strlen(t); int lens = strlen(s); int count = 0; int total = 1000; for (int i = 0; i <= (lens - lent); i++) { count = 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" ]
262,939
262,938
u700529853
cpp
p02571
#include <iostream> #include <string> using namespace std; int main() { string s, t; cin >> s >> t; int count = 0, ans = 0; for (int i = 0; i < s.size() - t.size(); i++) { for (int j = 0; j < t.size(); j++) { if (s[i + j] == t[j]) { count++; } } if (count > ans) { ans = cou...
#include <iostream> #include <string> using namespace std; int main() { string s, t; cin >> s >> t; int count = 0, ans = 0; for (int i = 0; i <= s.size() - t.size(); i++) { for (int j = 0; j < t.size(); j++) { if (s[i + j] == t[j]) { count++; } } if (count > ans) { ans = co...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "assignment.add" ]
262,940
262,941
u884876243
cpp
p02571
#include <bits/stdc++.h> #define ll long long #define endl "\n" using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); string s1, s2; cin >> s1 >> s2; int n1 = s1.size(); int n2 = s2.size(); int ans; for (int i = 0; i < n1 - n2; i++) { int k = 0; for (int j = 0; j < n2; j++) { ...
#include <bits/stdc++.h> #define ll long long #define endl "\n" using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); string s1, s2; cin >> s1 >> s2; int n1 = s1.size(); int n2 = s2.size(); int ans = n1; for (int i = 0; i <= n1 - n2; i++) { int k = 0; for (int j = 0; j < n2; j...
[ "variable_declaration.value.change", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
262,942
262,943
u901086895
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { char s[1000], t[1000]; int min = 1001; cin >> s >> t; // scanf("%s %s", s, t); for (size_t i = 0; i < (strlen(s) - strlen(t)); i++) { int count = 0; for (size_t j = 0; j < strlen(t); j++) { if (s[i + j] != t[j]) { count++; ...
#include <bits/stdc++.h> using namespace std; int main() { char s[1000], t[1000]; int min = 1001; cin >> s >> t; // scanf("%s %s", s, t); for (size_t i = 0; i <= (strlen(s) - strlen(t)); i++) { int count = 0; for (size_t j = 0; j < strlen(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" ]
262,944
262,945
u675517947
cpp
p02571
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; typedef long long ll; const int N = 1e6 + 10, OO = 0x3f3f3f3f, mod = 1e9 + 7; #define PI acos(-1) #define clr(arr, val) memset(arr, val, sizeof(arr)) #define loop(i, n) for (int i = 0; i < int(n); i++) #...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; typedef long long ll; const int N = 1e6 + 10, OO = 0x3f3f3f3f, mod = 1e9 + 7; #define PI acos(-1) #define clr(arr, val) memset(arr, val, sizeof(arr)) #define loop(i, n) for (int i = 0; i < int(n); i++) #...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
262,946
262,947
u551374420
cpp
p02571
#include "bits/stdc++.h" using namespace std; int main() { string S, T; cin >> S >> T; int ans = 0; for (int i = 0; i < (S.size() - T.size()); i++) { int cnt = 0; for (int j = 0; j < T.size(); j++) { if (S.at(i + j) == T.at(j)) cnt++; } ans = max(cnt, ans); } cout << T.size() ...
#include "bits/stdc++.h" using namespace std; int main() { string S, T; cin >> S >> T; int ans = 0; for (int i = 0; i <= (S.size() - T.size()); i++) { int cnt = 0; for (int j = 0; j < T.size(); j++) { if (S.at(i + j) == T.at(j)) cnt++; } ans = max(cnt, ans); } cout << T.size()...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
262,956
262,957
u017875322
cpp
p02571
#include <algorithm> #include <cstdio> #include <cstring> const int N = 1000 + 5; const int INF = 0x3f3f3f3f; char s[N], t[N]; int main() { std::scanf("%s%s", s, t); int lens = std::strlen(s), lent = std::strlen(t); int ans = INF; for (int i = 0; i < lens; i++) { int cnt = 0; for (int j = 0; j < lent...
#include <algorithm> #include <cstdio> #include <cstring> const int N = 1000 + 5; const int INF = 0x3f3f3f3f; char s[N], t[N]; int main() { std::scanf("%s%s", s, t); int lens = std::strlen(s), lent = std::strlen(t); int ans = INF; for (int i = 0; i <= lens - lent; i++) { int cnt = 0; for (int j = 0; ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
262,963
262,964
u832280547
cpp
p02571
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <string> #include <utility> #include <vector> using namespace std; using ll = long long; const long long INF = 1LL << 60; typedef pair<ll, ll> Pair; int main() { string S, T; ll ans = -1;...
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <string> #include <utility> #include <vector> using namespace std; using ll = long long; const long long INF = 1LL << 60; typedef pair<ll, ll> Pair; int main() { string S, T; ll ans = 0; ...
[ "literal.number.change", "variable_declaration.value.change", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
262,967
262,966
u945771376
cpp
p02571
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <string> #include <utility> #include <vector> using namespace std; using ll = long long; const long long INF = 1LL << 60; typedef pair<ll, ll> Pair; int main() { string S, T; ll ans = -1;...
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <string> #include <utility> #include <vector> using namespace std; using ll = long long; const long long INF = 1LL << 60; typedef pair<ll, ll> Pair; int main() { string S, T; ll ans = 0; ...
[ "literal.number.change", "variable_declaration.value.change", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "expression.operation.binary.remove" ]
262,968
262,966
u945771376
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string S, T; cin >> S >> T; int maxMatch = 0; for (int i = 0; i < (int)T.size(); i++) { for (int j = i; j < (int)S.size() - (T.size() - i); j++) { if (T[i] == S[j]) { int match = 1; for (int k = 1; k < (int)T.size() - i; k++)...
#include <bits/stdc++.h> using namespace std; int main() { string S, T; cin >> S >> T; int maxMatch = 0; for (int i = 0; i < (int)T.size(); i++) { for (int j = i; j < (int)S.size() - (T.size() - i) + 1; j++) { if (T[i] == S[j]) { int match = 1; for (int k = 1; k < (int)T.size() - i; ...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
262,969
262,970
u568877271
cpp
p02571
#include <algorithm> #include <climits> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <vector> //#include<time.h> //#include<bits/stdc++.h> using namespace std; #define lld long long int #define...
#include <algorithm> #include <climits> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <vector> //#include<time.h> //#include<bits/stdc++.h> using namespace std; #define lld long long int #define...
[ "control_flow.branch.if.condition.change" ]
262,971
262,972
u201952262
cpp
p02571
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)(n); i++) const int INF = 1001001001; using P = pair<int, int>; int main(void) { string s, t; cin >> s >> t; int num = 0; rep(i, s.size() - t.size()) { int snum = 0; rep(j, t.size()) { ...
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)(n); i++) const int INF = 1001001001; using P = pair<int, int>; int main(void) { string s, t; cin >> s >> t; int num = 0; rep(i, s.size() - t.size() + 1) { int snum = 0; rep(j, t.size()) { ...
[ "expression.operation.binary.add" ]
262,973
262,974
u493928141
cpp
p02571
#include <iostream> using namespace std; int main(void) { int ans = 0; string s, t; cin >> s >> t; for (size_t i = 0; i < s.size() - t.size(); i++) { int count = 0; for (size_t j = 0; j < t.size(); j++) { if (s[i + j] == t[j]) count++; if (ans < count) ans = count; } ...
#include <iostream> using namespace std; int main(void) { int ans = 0; string s, t; cin >> s >> t; for (size_t i = 0; i < s.size() - t.size() + 1; i++) { int count = 0; for (size_t j = 0; j < t.size(); j++) { if (s[i + j] == t[j]) count++; if (ans < count) ans = count; ...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
262,975
262,976
u620861397
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s1, s2; cin >> s1 >> s2; int mi = 1000000000; for (int i = 0; i < s1.size() - s2.size(); i++) { int cnt = 0; for (int j = 0; j < s2.size(); j++) { if (s1[i + j] != s2[j]) { cnt++; } } mi = min(mi, (int)(cnt));...
#include <bits/stdc++.h> using namespace std; int main() { string s1, s2; cin >> s1 >> s2; int mi = 1000000000; for (int i = 0; i <= s1.size() - s2.size(); i++) { int cnt = 0; for (int j = 0; j < s2.size(); j++) { if (s1[i + j] != s2[j]) { cnt++; } } mi = min(mi, (int)(cnt))...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
262,977
262,978
u935723832
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); string s, t; int mx = 0, cnt = 0; cin >> s >> t; for (int i = 0; i < s.size() - t.size(); i++) { cnt = 0; int k = i; for (int j = 0; j < t.size(); j++) { if (s[k] == t[j]) { ...
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); string s, t; int mx = 0, cnt = 0; cin >> s >> t; for (int i = 0; i <= s.size() - t.size(); i++) { cnt = 0; int k = i; for (int j = 0; j < t.size(); j++) { if (s[k] == t[j]) { ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
262,979
262,980
u274479035
cpp
p02571
#include <bits/stdc++.h> #include <string.h> #define ll long long int using namespace std; int main() { string a, b; cin >> a >> b; int i, j, k, ans = INT_MAX; for (i = 0; i < a.size() - b.size(); i++) { int d = 0; string c = a.substr(i, b.size()); for (j = 0; j < b.size(); j++) { if (c[j] != ...
#include <bits/stdc++.h> #include <string.h> #define ll long long int using namespace std; int main() { string a, b; cin >> a >> b; int i, j, k, ans = INT_MAX; for (i = 0; i <= (a.size() - b.size()); i++) { int d = 0; string c = a.substr(i, b.size()); // cout<<c<<endl; for (j = 0; j < b.size(); ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
262,994
262,995
u027221514
cpp
p02571
////////////////////////// // _ ____ // // U /"\ u U /"___| // // \/ _ \/ \| | u // // / ___ \ | |/__ // // /_/ \_\ \____| // // \\ >> _// \\ // // (__) (__)(__)(__) // // Compro by NULL_CT© // ////////////////////////// // STL libs #include <algorithm> #include <array> ...
////////////////////////// // _ ____ // // U /"\ u U /"___| // // \/ _ \/ \| | u // // / ___ \ | |/__ // // /_/ \_\ \____| // // \\ >> _// \\ // // (__) (__)(__)(__) // // Compro by NULL_CT© // ////////////////////////// // STL libs #include <algorithm> #include <array> ...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
262,998
262,999
u912162189
cpp
p02571
#include <bits/stdc++.h> #define ll long long int #define ull unsigned long long int #define IO \ ios::sync_with_stdio(false); \ cin.tie(0); ...
#include <bits/stdc++.h> #define ll long long int #define ull unsigned long long int #define IO \ ios::sync_with_stdio(false); \ cin.tie(0); ...
[ "misc.opposites", "expression.operator.arithmetic.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
263,000
263,001
u354787736
cpp
p02571
#include <bits/stdc++.h> #define ll long long int #define ull unsigned long long int #define IO \ ios::sync_with_stdio(false); \ cin.tie(0); ...
#include <bits/stdc++.h> #define ll long long int #define ull unsigned long long int #define IO \ ios::sync_with_stdio(false); \ cin.tie(0); ...
[ "misc.opposites", "expression.operator.arithmetic.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "variable_declaration.value.change", "identifier.replace.remove", "literal.replace.add", "control_flow.loop.for.initializer.change", "expression.operation.binary...
263,002
263,001
u354787736
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int z = 0; int ans = 2000; for (int i = 0; i < s.size() - t.size() + 1; i++) { int ss = t.size() + i; z = 0; for (int k = i; k < t.size(); k++) { if (s[k] == t[z]) ss--; z++; } ans =...
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int z = 0; int ans = 2000; for (int i = 0; i < s.size() - t.size() + 1; i++) { int ss = t.size(); z = 0; for (int k = i; k < t.size() + i; k++) { if (s[k] == t[z]) ss--; z++; } ans =...
[ "expression.operation.binary.remove", "control_flow.loop.for.condition.change" ]
263,005
263,006
u194181226
cpp
p02571
#include <bits/stdc++.h> using namespace std; using Graph = vector<vector<int>>; #define rep(i, n) for (int i = 0; i < n; ++i) #define all(v) v.begin(), v.end() #define PI 3.141592653589793238462643383279 #define ARRAY_LENGTH(array) (sizeof(array) / sizeof(array[0])) typedef long long int ll; typedef unsigned long long...
#include <bits/stdc++.h> using namespace std; using Graph = vector<vector<int>>; #define rep(i, n) for (int i = 0; i < n; ++i) #define all(v) v.begin(), v.end() #define PI 3.141592653589793238462643383279 #define ARRAY_LENGTH(array) (sizeof(array) / sizeof(array[0])) typedef long long int ll; typedef unsigned long long...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
263,014
263,015
u140607769
cpp
p02571
/*****/ #define TRUE true //#define FALSE false #include <bits/stdc++.h> /**/ #pragma GCC target("avx") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") /**/ using namespace std; using ll = long long; using ld = long double; using pint = pair<int, int>; using pll = pair<long long, long long>; templa...
/*****/ #define TRUE true //#define FALSE false #include <bits/stdc++.h> /**/ #pragma GCC target("avx") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") /**/ using namespace std; using ll = long long; using ld = long double; using pint = pair<int, int>; using pll = pair<long long, long long>; templa...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
263,016
263,017
u588369531
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int ans = 1000000000; for (int i = 0; i < s.size() - t.size(); i += 1) { int sum = 0; for (int j = i; j < i + t.size(); j += 1) { if (s[j] != t[j - i]) { sum += 1; } } ans = min(ans, sum);...
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int ans = 1000000000; for (int i = 0; i <= s.size() - t.size(); i += 1) { int sum = 0; for (int j = i; j < i + t.size(); j += 1) { if (s[j] != t[j - i]) { sum += 1; } } ans = min(ans, sum)...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
263,018
263,019
u689442090
cpp
p02571
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; int main() { string S, T; cin >> S >> T; int min = T.length(); for (int i = 0; i < S.length() - T.length(); i++) { int cnt = 0; for (int j = 0; j < T.length(); j++) { if (S[i + j] != T[j]) { ...
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; int main() { string S, T; cin >> S >> T; int min = T.length(); for (int i = 0; i <= S.length() - T.length(); i++) { int cnt = 0; for (int j = 0; j < T.length(); j++) { if (S[i + j] != T[j]) { ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
263,022
263,023
u244897331
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int ls = s.size(), lt = t.size(); int ans = lt; for (int i = 0; i < ls - lt; ++i) { int sub = lt; for (int j = 0; j < lt; ++j) { if (s[i + j] == t[j]) --sub; } ans = min(ans, sub); } cout <...
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int ls = s.size(), lt = t.size(); int ans = lt; for (int i = 0; i < ls - lt + 1; ++i) { int sub = lt; for (int j = 0; j < lt; ++j) { if (s[i + j] == t[j]) --sub; } ans = min(ans, sub); } co...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
263,029
263,030
u056677140
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string S, T; cin >> S >> T; vector<int> N(S.size() - T.size() + 1); for (int i = 0; i <= S.size() - T.size(); i++) { for (int j = 0, k = i; j < T.size(); j++, k++) { if (S.at(k) != T.at(j)) { N.at(i)++; } } // cout << N....
#include <bits/stdc++.h> using namespace std; int main() { string S, T; cin >> S >> T; vector<int> N(S.size() - T.size() + 1); for (int i = 0; i <= S.size() - T.size(); i++) { for (int j = 0, k = i; j < T.size(); j++, k++) { if (S.at(k) != T.at(j)) { N.at(i)++; } } // cout << N....
[ "literal.number.change", "io.output.change" ]
263,035
263,036
u683310857
cpp
p02571
#include <bits/stdc++.h> #pragma GCC optimize("O2") #pragma GCC optimize("Ofast") #pragma GCC target("sse4") using namespace std; #define mp make_pair #define pb push_back #define PI acos(-1) #define ff first #define ss second #define endl '\n' #define vt vector #define all(c) (c).begin(), (c).end() #define rep(i, a, ...
#include <bits/stdc++.h> #pragma GCC optimize("O2") #pragma GCC optimize("Ofast") #pragma GCC target("sse4") using namespace std; #define mp make_pair #define pb push_back #define PI acos(-1) #define ff first #define ss second #define endl '\n' #define vt vector #define all(c) (c).begin(), (c).end() #define rep(i, a, ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
263,046
263,047
u507638984
cpp
p02571
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define p(i, n, vect) \ for (ll i = 0; i < (ll)n; ++i) { \ cout << vect[i] << " "; \ } ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define p(i, n, vect) \ for (ll i = 0; i < (ll)n; ++i) { \ cout << vect[i] << " "; \ } ...
[ "control_flow.loop.for.condition.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
263,052
263,053
u241556209
cpp
p02571
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define all(v) v.begin(), v.end() int main() { string s, t; cin >> s >> t; int ans = 0; for (int i = 0; i <= s.length() - t.length(); i++) { int count = 0; for (int j = 0; j < t.length(); j++) { if (s[i + j] == t[j]) { co...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define all(v) v.begin(), v.end() int main() { string s, t; cin >> s >> t; int ans = 0; for (int i = 0; i <= s.length() - t.length(); i++) { int count = 0; for (int j = 0; j < t.length(); j++) { if (s[i + j] == t[j]) { co...
[ "expression.operation.binary.add" ]
263,056
263,057
u530034161
cpp
p02571
#include <bits/stdc++.h> using namespace std; #define ll long long #define MOD 1000000007 vector<int> dx = {-1, 1, 0, 0}; vector<int> dy = {0, 0, -1, 1}; int main() { string s, t; cin >> s >> t; int n = s.length(); int m = t.length(); int i, j; int mn = 10000; for (i = 0; i + m < n; i++) { int c = ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define MOD 1000000007 vector<int> dx = {-1, 1, 0, 0}; vector<int> dy = {0, 0, -1, 1}; int main() { string s, t; cin >> s >> t; int n = s.length(); int m = t.length(); int i, j; int mn = 10000; for (i = 0; i + (m - 1) < n; i++) { in...
[ "control_flow.loop.for.condition.change" ]
263,058
263,059
u456070059
cpp
p02571
#include <bits/stdc++.h> #define ll long long int using namespace std; int main() { string str, ptr; cin >> str >> ptr; int mx = 1e9; for (int i = 0; i < str.size() - ptr.size(); i++) { int cnt = 0; int x = i; for (int j = 0; j < ptr.size(); j++) { if (x < str.size() && str[x] == ptr[j]) { ...
#include <bits/stdc++.h> #define ll long long int using namespace std; int main() { string str, ptr; cin >> str >> ptr; int mx = 1e9; for (int i = 0; i <= str.size() - ptr.size(); i++) { int cnt = 0; int x = i; for (int j = 0; j < ptr.size(); j++) { if (x < str.size() && str[x] == ptr[j]) { ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
263,060
263,061
u940113787
cpp
p02571
#include <iostream> #include <string> int main() { std::string S, T; std::cin >> S >> T; size_t sizeS = S.size(), sizeT = T.size(); int countSameCharactor = 0; for (size_t index = 0; index < sizeS - sizeT; index++) { int sameChar = 0; for (size_t subindex = 0; subindex < sizeT; subindex++) { ...
#include <iostream> #include <string> int main() { std::string S, T; std::cin >> S >> T; size_t sizeS = S.size(), sizeT = T.size(); int countSameCharactor = 0; for (size_t index = 0; index < sizeS - sizeT + 1; index++) { int sameChar = 0; for (size_t subindex = 0; subindex < sizeT; subindex++) {...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
263,062
263,063
u307317373
cpp
p02571
#include <iostream> #include <string> int main() { std::string S, T; std::cin >> S >> T; size_t sizeS = S.size(), sizeT = T.size(); int countSameCharactor = 0; for (size_t index = 0; index < sizeS - sizeT; index++) { int sameChar = 0; for (size_t subindex = 0; subindex < sizeT; subindex++) { ...
#include <iostream> #include <string> int main() { std::string S, T; std::cin >> S >> T; size_t sizeS = S.size(), sizeT = T.size(); int countSameCharactor = 0; for (size_t index = 0; index < sizeS - sizeT + 1; index++) { int sameChar = 0; for (size_t subindex = 0; subindex < sizeT; subindex++) {...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
263,064
263,063
u307317373
cpp
p02571
#include <iostream> #include <string> int main() { std::string S, T; std::cin >> S >> T; size_t sizeS = S.size(), sizeT = T.size(); int countSameCharactor = 0; for (size_t index = 0; index < sizeS - sizeT; index++) { int sameChar = 0; for (size_t subindex = 0; subindex < sizeT; subindex++) { ...
#include <iostream> #include <string> int main() { std::string S, T; std::cin >> S >> T; size_t sizeS = S.size(), sizeT = T.size(); int countSameCharactor = 0; for (size_t index = 0; index < sizeS - sizeT + 1; index++) { int sameChar = 0; for (size_t subindex = 0; subindex < sizeT; subindex++) {...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
263,065
263,063
u307317373
cpp
p02571
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { string S, T; cin >> S >> T; int tlength = T.length(); int slength = S.length(); int i = 0; string sub; int count = 0; vector<int> counts; while (slength >= tlength + i) { count = 0; sub = S.substr(i, ...
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { string S, T; cin >> S >> T; int tlength = T.length(); int slength = S.length(); int i = 0; string sub; int count = 0; vector<int> counts; while (slength >= tlength + i) { count = 0; sub = S.substr(i, ...
[ "expression.operation.binary.remove" ]
263,075
263,076
u315727317
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string S, T; int min = 1000; int answer = 0; cin >> S >> T; for (long unsigned int i = 0; i < S.size() - T.size(); i++) { for (long unsigned int j = 0; j < T.size(); j++) { if (!(T.at(j) == S.at(i + j))) { answer++; } } ...
#include <bits/stdc++.h> using namespace std; int main() { string S, T; int min = 1000; int answer = 0; cin >> S >> T; for (long unsigned int i = 0; i < S.size() - T.size() + 1; i++) { for (long unsigned int j = 0; j < T.size(); j++) { if (!(T.at(j) == S.at(i + j))) { answer++; } ...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
263,079
263,080
u972666601
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string S, T; int min = 1000; int answer = 0; cin >> S >> T; for (int i = 0; i < S.size() - T.size(); i++) { for (int j = 0; j < T.size(); j++) { if (!(T.at(j) == S.at(i + j))) { answer++; } } if (answer < min) { ...
#include <bits/stdc++.h> using namespace std; int main() { string S, T; int min = 1000; int answer = 0; cin >> S >> T; for (long unsigned int i = 0; i < S.size() - T.size() + 1; i++) { for (long unsigned int j = 0; j < T.size(); j++) { if (!(T.at(j) == S.at(i + j))) { answer++; } ...
[ "control_flow.loop.for.initializer.change", "control_flow.loop.for.condition.change", "misc.off_by_one" ]
263,081
263,080
u972666601
cpp
p02571
#include <bits/stdc++.h> #define fastIO \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); using namespace std; typedef long ...
#include <bits/stdc++.h> #define fastIO \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); using namespace std; typedef long ...
[ "variable_declaration.value.change", "identifier.replace.add", "literal.replace.remove", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
263,087
263,088
u623283104
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int m = 0; int sl = s.length(); int tl = t.length(); for (int i = 0; i < sl - tl; i++) { int ct = 0; for (int j = i; j < i + tl; j++) { if (t[j - i] == s[j]) { ct++; } } m = max(m, ct);...
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int m = -1; int sl = s.length(); int tl = t.length(); for (int i = 0; i < sl - tl + 1; i++) { int ct = 0; for (int j = i; j < i + tl; j++) { if (t[j - i] == s[j]) { ct++; } } m = max(m,...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.condition.change", "misc.off_by_one" ]
263,091
263,092
u456316963
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int m = -1; int sl = s.length(); int tl = t.length(); for (int i = 0; i < sl - tl; i++) { int ct = 0; for (int j = i; j < i + tl; j++) { if (t[j - i] == s[j]) { ct++; } } m = max(m, ct)...
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int m = -1; int sl = s.length(); int tl = t.length(); for (int i = 0; i < sl - tl + 1; i++) { int ct = 0; for (int j = i; j < i + tl; j++) { if (t[j - i] == s[j]) { ct++; } } m = max(m,...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
263,093
263,092
u456316963
cpp
p02571
#include <bits/stdc++.h> using namespace std; #define inf 1072114514 #define llinf 4154118101919364364 #define mod 1000000007 #define pi 3.1415926535897932384 int round(int a, int b) { if ((a % b) * 2 >= b) { return (a / b) + 1; } return a / b; } int gcd(int a, int b) { int c; while (b != 0) { c = a...
#include <bits/stdc++.h> using namespace std; #define inf 1072114514 #define llinf 4154118101919364364 #define mod 1000000007 #define pi 3.1415926535897932384 int round(int a, int b) { if ((a % b) * 2 >= b) { return (a / b) + 1; } return a / b; } int gcd(int a, int b) { int c; while (b != 0) { c = a...
[ "variable_declaration.type.change", "assignment.value.change", "identifier.change", "call.function.change" ]
263,096
263,095
u946082956
cpp
p02571
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { string str, bstr; cin >> str >> bstr; int count = 0, mxi = -1; ; for (int i = 0; i < bstr.size(); i++) { count = 0; for (int j = i; j <= str.size() - bstr.size() + i; j++) { count = 0; if (str[j] == bstr[i]) { ...
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { string str, bstr; cin >> str >> bstr; int count = 0, mxi = 0; ; for (int i = 0; i < bstr.size(); i++) { count = 0; for (int j = i; j <= str.size() - bstr.size() + i; j++) { count = 0; if (str[j] == bstr[i]) { ...
[ "literal.number.change", "variable_declaration.value.change" ]
263,102
263,103
u751864575
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int sl = s.length(); int tl = t.length(); int i, j; int count = 0, countMax = 1001; for (i = 0; i < sl - tl; i++) { count = 0; for (j = 0; j < tl; j++) { if (s[i + j] != t[j]) count++; } if...
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int sl = s.length(); int tl = t.length(); int i, j; int count = 0, countMax = 1001; for (i = 0; i <= sl - tl; i++) { count = 0; for (j = 0; j < tl; j++) { if (s[i + j] != t[j]) count++; } i...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
263,104
263,105
u517375850
cpp
p02571
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; int lol(string &s, string &t, int &x) { int tmp = 0; for (int i = x; i < x + t.length(); i++) { if (s[i] == t[i - x]) tmp++; } return tmp; ...
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; int lol(string &s, string &t, int &x) { int tmp = 0; for (int i = x; i < x + t.length(); i++) { if (s[i] == t[i - x]) tmp++; } return tmp; ...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
263,112
263,113
u408634015
cpp
p02571
#include <iostream> #include <string> using namespace std; int sameCount(string s, string t) { int count = 0; for (int i = 0; i < t.length(); ++i) { if (s[i] == t[i]) ++count; } return count; } int main() { string s, t; cin >> s; cin >> t; int count = 0; for (int i = 0; i < s.length() -...
#include <iostream> #include <string> using namespace std; int sameCount(string s, string t) { int count = 0; for (int i = 0; i < t.length(); ++i) { if (s[i] == t[i]) ++count; } return count; } int main() { string s, t; cin >> s; cin >> t; int count = 0; for (int i = 0; i <= s.length() ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
263,116
263,117
u838077278
cpp
p02571
#include <algorithm> #include <cstdio> #include <iostream> #include <map> #define ll long long #define lson (rt << 1) #define rson (rt << 1 | 1) #define gmid ((l + r) >> 1) using namespace std; const int maxn = 20000050; string s1, s2; int main() { cin >> s1; cin >> s2; ll ans = maxn; int n = s1.length(), m ...
#include <algorithm> #include <cstdio> #include <iostream> #include <map> #define ll long long #define lson (rt << 1) #define rson (rt << 1 | 1) #define gmid ((l + r) >> 1) using namespace std; const int maxn = 20000050; string s1, s2; int main() { cin >> s1; cin >> s2; ll ans = maxn; int n = s1.length(), m ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "assignment.variable.change", "assignment.change" ]
263,123
263,124
u822717668
cpp
p02571
#include <bits/stdc++.h> using namespace std; #define me(a) memset(a, 0, sizeof(a)); typedef long long ll; int main() { string s, t; s.clear(); t.clear(); cin >> s >> t; int len1 = s.length(); int len2 = t.length(); int ans = 2000; for (int i = 0; i < len1 - len2; i++) { int tmp = 0; for (int j...
#include <bits/stdc++.h> using namespace std; #define me(a) memset(a, 0, sizeof(a)); typedef long long ll; int main() { string s, t; s.clear(); t.clear(); cin >> s >> t; int len1 = s.length(); int len2 = t.length(); int ans = 2000; for (int i = 0; i <= len1 - len2; i++) { int tmp = 0; for (int ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
263,128
263,129
u337456752
cpp
p02571
#include "bits/stdc++.h" using namespace std; #ifdef LOCAL #include "debug.h" #define input \ freopen("input.txt", "r", stdin); \ freopen("output.txt", "w", stdout); #else #define debug(...) 4 #define input ...
#include "bits/stdc++.h" using namespace std; #ifdef LOCAL #include "debug.h" #define input \ freopen("input.txt", "r", stdin); \ freopen("output.txt", "w", stdout); #else #define debug(...) 4 #define input ...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "misc.off_by_one" ]
263,132
263,133
u900937596
cpp
p02571
#include <bits/stdc++.h> using namespace std; // def #define debug(x) cout << #x << ": " << x << '\n' #define out(x) cout << x << '\n' #define repeat(i, a, b) for (int i = (int)(a); i < (int)(b); i++) #define revrepeat(i, a, b) for (int i = (int)(b)-1; i >= (int)(a); i--) #define rep(i, n) for (int i = 0; i < (int)(n)...
#include <bits/stdc++.h> using namespace std; // def #define debug(x) cout << #x << ": " << x << '\n' #define out(x) cout << x << '\n' #define repeat(i, a, b) for (int i = (int)(a); i < (int)(b); i++) #define revrepeat(i, a, b) for (int i = (int)(b)-1; i >= (int)(a); i--) #define rep(i, n) for (int i = 0; i < (int)(n)...
[ "expression.operation.binary.add" ]
263,136
263,137
u765690804
cpp
p02571
#include <cstdio> #include <iostream> using namespace std; string s1, t; int ans; int fzx_min(int x, int y) { return x < y ? x : y; } signed main() { cin >> s1 >> t; ans = 2147483647; int len = s1.size() - t.size(); for (int i = 0; i <= len; i++) { int sum = 0, len1 = t.size(); for (int j = i; j <= i + ...
#include <cstdio> #include <iostream> using namespace std; string s1, t; int ans; int fzx_min(int x, int y) { return x < y ? x : y; } signed main() { cin >> s1 >> t; ans = 2147483647; int len = s1.size() - t.size(); for (int i = 0; i <= len; i++) { int sum = 0, len1 = t.size(); for (int j = i; j < i + l...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
263,138
263,139
u363542490
cpp
p02571
//ヘッダー #include <bits/stdc++.h> using namespace std; //型定義 typedef long long ll; //定数 const ll INF = 1e+18; const int MOD = 1e+9 + 7; // REPマクロ #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) #define REPD(i, n) for (ll i = n - 1; i >= 0; i--) #define REP2(i, a, b) for (ll i = a; i < (ll)(b); i++) #define REPD2(i,...
//ヘッダー #include <bits/stdc++.h> using namespace std; //型定義 typedef long long ll; //定数 const ll INF = 1e+18; const int MOD = 1e+9 + 7; // REPマクロ #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) #define REPD(i, n) for (ll i = n - 1; i >= 0; i--) #define REP2(i, a, b) for (ll i = a; i < (ll)(b); i++) #define REPD2(i,...
[ "call.add" ]
263,155
263,156
u115927976
cpp
p02571
#include <iostream> #include <string> using namespace std; int main() { string s, t; cin >> s >> t; string str1; int ans = 0; for (int i = 0; i < s.size() - t.size(); i++) { str1 = s.substr(i, t.size()); int cnt = 0; for (int j = 0; j < t.size(); j++) { if (t[j] == str1[j]) cnt++; ...
#include <iostream> #include <string> using namespace std; int main() { string s, t; cin >> s >> t; string str1; int ans = 0; for (int i = 0; i <= s.size() - t.size(); i++) { str1 = s.substr(i, t.size()); int cnt = 0; for (int j = 0; j < t.size(); j++) { if (t[j] == str1[j]) cnt++; ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
263,163
263,164
u682413606
cpp
p02571
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef unsigned long long int ull; #define mp make_pair // GCD inbuilt func: __gcd(a,b) // LCM formula: (a*b)/__gcd(a,b) int main() { ios::sync_with_stdio(false); cin.tie(NULL); // CODE goes here string s, t; cin >> s >> t; int maxi =...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef unsigned long long int ull; #define mp make_pair // GCD inbuilt func: __gcd(a,b) // LCM formula: (a*b)/__gcd(a,b) int main() { ios::sync_with_stdio(false); cin.tie(NULL); // CODE goes here string s, t; cin >> s >> t; int maxi =...
[ "variable_declaration.value.change", "identifier.replace.remove", "literal.replace.add", "control_flow.loop.for.condition.change" ]
263,168
263,169
u483811944
cpp
p02571
#include <bits/stdc++.h> #include <cstdio> #include <cstring> #include <cmath> #include <cstring> #include <chrono> #include <complex> #define endl "\n" #define ll long long int #define vi vector<int> #define vll vector<ll> #define vvi vector<vi> #define pii pair<int, int> #define pll pair<long long, long long> #defin...
#include <bits/stdc++.h> #include <cstdio> #include <cstring> #include <cmath> #include <cstring> #include <chrono> #include <complex> #define endl "\n" #define ll long long int #define vi vector<int> #define vll vector<ll> #define vvi vector<vi> #define pii pair<int, int> #define pll pair<long long, long long> #defin...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
263,170
263,171
u697394692
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string S, T; cin >> S >> T; int len1 = S.length(); int len2 = T.length(); int num = INT_MAX; for (int i = 0; i < len1 - len2; i = i + 1) { int diff = 0; for (int j = 0, k = i; j < len2 && k < i + len2; j = j + 1, k = k + 1) { if (T[j] ...
#include <bits/stdc++.h> using namespace std; int main() { string S, T; cin >> S >> T; int len1 = S.length(); int len2 = T.length(); int num = INT_MAX; for (int i = 0; i <= len1 - len2; i = i + 1) { int diff = 0; for (int j = 0, k = i; j < len2 && k < i + len2; j = j + 1, k = k + 1) { if (T[j]...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
263,186
263,187
u793723112
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int minChange = 10000; for (int i = 0; i < s.size() - t.size(); i++) { int change = 0; for (int j = 0; j < t.size(); j++) { if (s.at(i + j) != t.at(j)) change++; } if (change < minChange) ...
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int minChange = 10000; for (int i = 0; i <= s.size() - t.size(); i++) { int change = 0; for (int j = 0; j < t.size(); j++) { if (s.at(i + j) != t.at(j)) change++; } if (change < minChange) ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
263,200
263,201
u337359136
cpp
p02571
#ifdef _DEBUG #include "../../library/library/debug_template.cpp" #define DMP(...) dump(#__VA_ARGS__, __VA_ARGS__) #else #define DMP(...) ((void)0) #endif #include <algorithm> #include <cassert> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue>...
#ifdef _DEBUG #include "../../library/library/debug_template.cpp" #define DMP(...) dump(#__VA_ARGS__, __VA_ARGS__) #else #define DMP(...) ((void)0) #endif #include <algorithm> #include <cassert> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue>...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
263,204
263,205
u532573979
cpp
p02571
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define deb(x) cout << #x << " " << x << endl; #define debtwo(x, y) cout << #x << " " << x << ", " << #y << " " << y << endl; #define mod 100000007 int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); string s, t; cin >> s >> t;...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define deb(x) cout << #x << " " << x << endl; #define debtwo(x, y) cout << #x << " " << x << ", " << #y << " " << y << endl; #define mod 100000007 int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); string s, t; cin >> s >> t;...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
263,210
263,211
u435815072
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string S, T; cin >> S >> T; long long len_S, len_T; len_S = S.length(); len_T = T.length(); long count_tmp = 0; long count = 0; for (long i = 0; i < len_S; i++) { for (long j = 0; j < len_T; j++) { if (S[i + j] == T[j]) { ...
#include <bits/stdc++.h> using namespace std; int main() { string S, T; cin >> S >> T; long long len_S, len_T; len_S = S.length(); len_T = T.length(); long count_tmp = 0; long count = 0; for (long i = 0; i < len_S - len_T + 1; i++) { for (long j = 0; j < len_T; j++) { if (S[i + j] == T[j]...
[ "control_flow.loop.for.condition.change" ]
263,212
263,213
u637277921
cpp
p02571
#include <bits/stdc++.h> #define watch(x) cout << #x << " -> " << x << endl #define ALL(x) x.begin(), x.end() #define INF 100000 typedef long long ll; using namespace std; string s; string s1; int check(int l, int r) { int cnt = 0, j = 0; for (int i = l; i < r; i++) { if (s[i] != s1[j]) cnt++; j++; ...
#include <bits/stdc++.h> #define watch(x) cout << #x << " -> " << x << endl #define ALL(x) x.begin(), x.end() #define INF 100000 typedef long long ll; using namespace std; string s; string s1; int check(int l, int r) { int cnt = 0, j = 0; for (int i = l; i < r; i++) { if (s[i] != s1[j]) cnt++; j++; ...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
263,216
263,217
u991385879
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int ns = s.size(); int nt = t.size(); int res; int min = 2000; for (int i = 0; i < ns - nt + 1; ++i) { res = 0; string sub = s.substr(i, i + nt - 1); for (int j = 0; j < nt; ++j) { if (sub[j] != t[j]) ...
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int ns = s.size(); int nt = t.size(); int res; int min = 2000; for (int i = 0; i < ns - nt + 1; ++i) { res = 0; string sub = s.substr(i, nt); for (int j = 0; j < nt; ++j) { if (sub[j] != t[j]) ...
[ "expression.operation.binary.remove" ]
263,233
263,234
u736995628
cpp