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
p02571
#include <bits/stdc++.h> using namespace std; int main() { string S, T; cin >> S >> T; int ans = 2000; for (int i = 0; i < S.length() - T.length(); i++) { int tmp = 0; for (int j = 0; j < T.length(); j++) { tmp += (S[i + j] != T[j]); } ans = min(ans, tmp); } cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string S, T; cin >> S >> T; int ans = 2000; for (int i = 0; i <= S.length() - T.length(); i++) { int tmp = 0; for (int j = 0; j < T.length(); j++) { tmp += (S[i + j] != T[j]); } ans = min(ans, tmp); } cout << ans << endl; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,672
260,673
u028516426
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s; cin >> t; int n1 = s.size(); int n2 = t.size(); int cnt1; int cnt = n1; for (int i = 0; i < n1 - n2; i++) { cnt1 = 0; for (int j = 0; j < n2; j++) { if (s[i + j] != t[j]) { cnt1++; } } c...
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s; cin >> t; int n1 = s.size(); int n2 = t.size(); int cnt1; int cnt = n1; for (int i = 0; i <= n1 - n2; i++) { cnt1 = 0; for (int j = 0; j < n2; j++) { if (s[i + j] != t[j]) { cnt1++; } } ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,674
260,675
u813401183
cpp
p02571
#include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<int, int>; #define rep(i, n) for (int i = 0; i < n; i++) #define UNIQUE(v) \ v.erase(unique(v.begin(), v.end()), v.end()) // sortしてから使う #define INF 2147483647 #define LLINF...
#include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<int, int>; #define rep(i, n) for (int i = 0; i < n; i++) #define UNIQUE(v) \ v.erase(unique(v.begin(), v.end()), v.end()) // sortしてから使う #define INF 2147483647 #define LLINF...
[ "expression.operation.binary.add" ]
260,680
260,681
u306071707
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s, x; cin >> s >> x; int m = 1e9; for (int i = 0; i < (int)s.length() - (int)x.length(); i++) { int p = 0; for (int j = 0; j < x.length(); j++) { if (s[i + j] != x[j]) p++; } m = min(p, m); } cout << m; }
#include <bits/stdc++.h> using namespace std; int main() { string s, x; cin >> s >> x; int m = 1e9; for (int i = 0; i <= (int)s.length() - (int)x.length(); i++) { int p = 0; for (int j = 0; j < x.length(); j++) { if (s[i + j] != x[j]) p++; } m = min(p, m); } cout << m; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,682
260,683
u681787145
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s; cin >> t; int cnt = (int)t.size(); for (int i = 0; i < s.size() - t.length() + 1; i++) { int tmp = 0; for (int j = 0; j < t.size(); j++) if (s[j] != t[j + i]) tmp++; cnt = min(cnt, tmp); } cout...
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s; cin >> t; int cnt = (int)t.size(); for (int i = 0; i <= s.size() - t.length(); i++) { int tmp = 0; for (int j = 0; j < t.size(); j++) if (t[j] != s[j + i]) tmp++; cnt = min(cnt, tmp); } cout <<...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "expression.operation.binary.remove", "identifier.change", "control_flow.branch.if.condition.change" ]
260,686
260,687
u320181530
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { char a[1010], b[1010]; scanf("%s %s", a, b); int lena = strlen(a); int lenb = strlen(b); int max = 0, count; for (int i = 0; i < lena - lenb; i++) { count = 0; for (int j = 0; j < lenb; j++) { if (a[i + j] == b[j]) count++; ...
#include <bits/stdc++.h> using namespace std; int main() { char a[1010], b[1010]; scanf("%s %s", a, b); int lena = strlen(a); int lenb = strlen(b); int max = 0, count; for (int i = 0; i <= lena - lenb; i++) { count = 0; for (int j = 0; j < lenb; j++) { if (a[i + j] == b[j]) count++; ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,688
260,689
u585276123
cpp
p02571
#include <iostream> using namespace std; int main(void) { string s, t; cin >> s >> t; int m = s.size(), n = t.size(); int current = 0, best = 0; for (int i = 0; i < m - n; i++) { current = 0; for (int j = 0; j < n; j++) { if (s[i + j] == t[j]) { current++; } } best = ma...
#include <iostream> using namespace std; int main(void) { string s, t; cin >> s >> t; int m = s.size(), n = t.size(); int current = 0, best = 0; for (int i = 0; i < m - n + 1; i++) { current = 0; for (int j = 0; j < n; j++) { if (s[i + j] == t[j]) { current++; } } best ...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
260,692
260,693
u548941744
cpp
p02571
#include <algorithm> #include <bits/stdc++.h> #define int long long using namespace std; int32_t main() { string s, t; cin >> s >> t; int s_size = s.length(); int t_size = t.length(); int ans = INT_MAX; for (int i = 0; i < s_size; i++) { int cnt = 0; for (int j = 0; j < t_size; j++) { if (i +...
#include <algorithm> #include <bits/stdc++.h> #define int long long using namespace std; int32_t main() { string s, t; cin >> s >> t; int s_size = s.length(); int t_size = t.length(); int ans = INT_MAX; for (int i = 0; i < s_size; i++) { int cnt = 0; for (int j = 0; j < t_size; j++) { if (i +...
[ "assignment.add" ]
260,696
260,697
u190754941
cpp
p02571
#define _USE_MATH_DEFINES #include <algorithm> #include <bitset> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; ...
#define _USE_MATH_DEFINES #include <algorithm> #include <bitset> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,700
260,701
u156778176
cpp
p02571
#include <bits/stdc++.h> #define ll long long #define OJ \ freopen("input.txt", "r", stdin); \ freopen("output.txt", "w", stdout); using namespace std; int mod = 1000000007; int main() { ios_base::sync_...
#include <bits/stdc++.h> #define ll long long #define OJ \ freopen("input.txt", "r", stdin); \ freopen("output.txt", "w", stdout); using namespace std; int mod = 1000000007; int main() { ios_base::sync_...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,702
260,703
u608438818
cpp
p02571
#include <algorithm> #include <cstdio> #include <cstring> using namespace std; const int inf = 0x3f3f3f3f; char S[1007], T[1007]; int main() { scanf("%s%s", S + 1, T + 1); int x1 = strlen(S + 1), x2 = strlen(T + 1); int ans = inf; for (int i = 1; i <= x1; i++) { int sum = 0; for (int j = 1; j <= x2; j++...
#include <algorithm> #include <cstdio> #include <cstring> using namespace std; const int inf = 0x3f3f3f3f; char S[1007], T[1007]; int main() { scanf("%s%s", S + 1, T + 1); int x1 = strlen(S + 1), x2 = strlen(T + 1); int ans = inf; for (int i = 1; i <= x1 - x2 + 1; i++) { int sum = 0; for (int j = 1; j <...
[ "control_flow.loop.for.condition.change" ]
260,712
260,713
u805144210
cpp
p02571
#include <bits/stdc++.h> using namespace std; typedef long long ll; string s, t; int main() { std::ios::sync_with_stdio(false); cin >> s >> t; int ans = 1e9; for (int i = 0; i < s.size() - t.size(); i++) { int cnt = 0; for (int j = 0; j < t.size(); j++) cnt += s[i + j] != t[j]; ans = min(ans, ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; string s, t; int main() { std::ios::sync_with_stdio(false); cin >> s >> t; int ans = 1e9; for (int i = 0; i < s.size() - t.size() + 1; i++) { int cnt = 0; for (int j = 0; j < t.size(); j++) cnt += s[i + j] != t[j]; ans = min(a...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
260,724
260,725
u342118066
cpp
p02571
#include <bits/stdc++.h> #include <iostream> using namespace std; #define ll long long int #define tinput \ int t; \ cin >> t; ...
#include <bits/stdc++.h> #include <iostream> using namespace std; #define ll long long int #define tinput \ int t; \ cin >> t; ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,732
260,733
u787974755
cpp
p02571
#include <cstdio> #include <cstring> using namespace std; int l1, l2, ans; char s[1005], t[1005]; int main() { scanf("%s\n", s); scanf("%s", t); l1 = strlen(s + 1), l2 = strlen(t + 1); ans = l2; for (int i = 1; i <= l1 - l2 + 1; i++) { int ans1 = 0; for (int j = i; j < i + l2; j++) if (s[j] != t...
#include <cstdio> #include <cstring> using namespace std; int l1, l2, ans; char s[1005], t[1005]; int main() { scanf("%s\n", s + 1); scanf("%s", t + 1); l1 = strlen(s + 1), l2 = strlen(t + 1); ans = l2; for (int i = 1; i <= l1 - l2 + 1; i++) { int ans1 = 0; for (int j = i; j < i + l2; j++) if (s...
[ "expression.operation.binary.add" ]
260,734
260,735
u954983569
cpp
p02571
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string S, T; cin >> S >> T; // Initialize ans with a temporal value. // This value should be large enough; otherwise you will get wrong answer // Make sure that the value will lead to the correct answer. int ans =...
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string S, T; cin >> S >> T; // Initialize ans with a temporal value. // This value should be large enough; otherwise you will get wrong answer // Make sure that the value will lead to the correct answer. int ans =...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
260,736
260,737
u628610666
cpp
p02571
#include <bits/stdc++.h> /*#ifndef LOCAL_RUN #pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops") #pragma GCC optimize("fast-math") #pragma GCC target("avx2,tune=native") #endif*/ #define X first #define Y second using namespace std; typedef long long ll; typedef pair<int, int> pii; int ...
#include <bits/stdc++.h> /*#ifndef LOCAL_RUN #pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops") #pragma GCC optimize("fast-math") #pragma GCC target("avx2,tune=native") #endif*/ #define X first #define Y second using namespace std; typedef long long ll; typedef pair<int, int> pii; int ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,741
260,742
u682659695
cpp
p02571
#include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define mod 1000000007LL #define INF 1000000011 #define INFLL 1000000000000000011LL #define endl '\n' #define vi vector<int> #define vs vector<string> #define vll vector<long long> #define vc vector<char> #define pii pair<int, in...
#include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define mod 1000000007LL #define INF 1000000011 #define INFLL 1000000000000000011LL #define endl '\n' #define vi vector<int> #define vs vector<string> #define vll vector<long long> #define vc vector<char> #define pii pair<int, in...
[ "identifier.change", "call.function.change" ]
260,745
260,746
u976630987
cpp
p02571
#include <iostream> #include <string> int main() { std::string S, T; int ans = 10000, tmp; std::cin >> S >> T; for (int i = 0; i < S.size() - T.size(); i++) { tmp = 0; for (int j = 0; j < T.size(); j++) { if (S.at(j + i) != T.at(j)) { tmp++; } } if (ans > tmp) { ans...
#include <iostream> #include <string> int main() { std::string S, T; int ans = 10000, tmp; std::cin >> S >> T; for (int i = 0; i <= S.size() - T.size(); i++) { tmp = 0; for (int j = 0; j < T.size(); j++) { if (S.at(j + i) != T.at(j)) { tmp++; } } if (ans > tmp) { an...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,751
260,752
u059605263
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int a = s.size(); int b = t.size(); int x = 0; for (int i = 0; i < a - b + 2; i++) { int y = 0; for (int j = 0; j < b; j++) { if (t[j] == s[i + j]) { y++; } } x = max(x, y); } cout...
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int a = s.size(); int b = t.size(); int x = 0; for (int i = 0; i < a - b + 1; i++) { int y = 0; for (int j = 0; j < b; j++) { if (t[j] == s[i + j]) { y++; } } x = max(x, y); } cout...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,755
260,756
u693897283
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int a = s.size(); int b = t.size(); int x = 0; for (int i = 0; i < a; i++) { int y = 0; for (int j = 0; j < b; j++) { if (t[j] == s[i + j]) { y++; } } x = max(x, y); } cout << b - ...
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int a = s.size(); int b = t.size(); int x = 0; for (int i = 0; i < a - b + 1; i++) { int y = 0; for (int j = 0; j < b; j++) { if (t[j] == s[i + j]) { y++; } } x = max(x, y); } cout...
[ "control_flow.loop.for.condition.change" ]
260,757
260,756
u693897283
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int a = s.size(); int b = t.size(); int x = 0; for (int i = 0; i < a - b; i++) { int y = 0; for (int j = 0; j < b; j++) { if (t[i + j] == s[j]) { y++; } } x = max(x, y); } cout << ...
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int a = s.size(); int b = t.size(); int x = 0; for (int i = 0; i < a - b + 1; i++) { int y = 0; for (int j = 0; j < b; j++) { if (t[j] == s[i + j]) { y++; } } x = max(x, y); } cout...
[ "control_flow.loop.for.condition.change", "misc.off_by_one", "expression.operation.binary.remove", "control_flow.branch.if.condition.change" ]
260,758
260,756
u693897283
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int a = s.size(); int b = t.size(); int x = 0; for (int i = 0; i < a - b; i++) { int y = 0; for (int j = 0; j < b; j++) { if (t[j] == s[i + j]) { y++; } } x = max(x, y); } cout << ...
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int a = s.size(); int b = t.size(); int x = 0; for (int i = 0; i < a - b + 1; i++) { int y = 0; for (int j = 0; j < b; j++) { if (t[j] == s[i + j]) { y++; } } x = max(x, y); } cout...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
260,759
260,756
u693897283
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int a = s.size(); int b = t.size(); int x = 0; for (int i = 0; i < a - b; i++) { int y = 0; for (int j = 0; j < b; j++) { if (s[j] == t[i + j]) { y++; } } x = max(x, y); } cout << ...
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int a = s.size(); int b = t.size(); int x = 0; for (int i = 0; i < a - b + 1; i++) { int y = 0; for (int j = 0; j < b; j++) { if (t[j] == s[i + j]) { y++; } } x = max(x, y); } cout...
[ "control_flow.loop.for.condition.change", "misc.off_by_one", "identifier.change", "control_flow.branch.if.condition.change" ]
260,760
260,756
u693897283
cpp
p02571
#include <algorithm> #include <bits/stdc++.h> #include <string> #include <vector> using namespace std; vector<string> split(const string &s, char delim) { vector<string> elems; string item; for (char ch : s) { if (ch == delim) { if (!item.empty()) { elems.push_back(item); } item.cl...
#include <algorithm> #include <bits/stdc++.h> #include <string> #include <vector> using namespace std; vector<string> split(const string &s, char delim) { vector<string> elems; string item; for (char ch : s) { if (ch == delim) { if (!item.empty()) { elems.push_back(item); } item.cl...
[ "control_flow.loop.for.condition.change" ]
260,763
260,764
u572622695
cpp
p02571
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef pair<int, int> ii; typedef vector<ii> vii; #define INF 1000000000 #define debug3(v1, v2, v3) cout << v1 << " " << v2 << " " << v3 << "\n"; #define debug2(index, value) cout << index << " " << value << "\n"; #define debug...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef pair<int, int> ii; typedef vector<ii> vii; #define INF 1000000000 #define debug3(v1, v2, v3) cout << v1 << " " << v2 << " " << v3 << "\n"; #define debug2(index, value) cout << index << " " << value << "\n"; #define debug...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,773
260,774
u155617156
cpp
p02571
#include <bits/stdc++.h> #define ll long long #define PI 3.14159265358979323846 using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); /// https://ideone.com/Fd5s8n string s, t; cin >> s >> t; int ans = t.length(); for (int i = 0; i < s.length() - t.length(); i++) { ...
#include <bits/stdc++.h> #define ll long long #define PI 3.14159265358979323846 using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); /// https://ideone.com/Fd5s8n string s, t; cin >> s >> t; int ans = t.length(); for (int i = 0; i <= s.length() - t.length(); i++) { ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,775
260,776
u558514287
cpp
p02571
#include <algorithm> #include <iostream> using namespace std; int main(void) { // Your code here! string S, T; cin >> S >> T; int ss = S.size(); int ts = T.size(); int ans = ts; for (int i = 0; i < ss - ts; i++) { int yuuy = 0; for (int k = 0; k < ts; k++) { if (S[i + k] != T[k]) yuu...
#include <algorithm> #include <iostream> using namespace std; int main(void) { // Your code here! string S, T; cin >> S >> T; int ss = S.size(); int ts = T.size(); int ans = ts; for (int i = 0; i <= ss - ts; i++) { int yuuy = 0; for (int k = 0; k < ts; k++) { if (S[i + k] != T[k]) yu...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,782
260,783
u880629364
cpp
p02571
#include <algorithm> #include <iostream> using namespace std; int main(void) { // Your code here! string S, T; cin >> S >> T; int ss = S.size(); int ts = T.size(); int ans = ts; for (int i = 0; i < ss; i++) { int yuuy = 0; for (int k = 0; k < ts; k++) { if (S[i + k] != T[k]) yuuy++; ...
#include <algorithm> #include <iostream> using namespace std; int main(void) { // Your code here! string S, T; cin >> S >> T; int ss = S.size(); int ts = T.size(); int ans = ts; for (int i = 0; i <= ss - ts; i++) { int yuuy = 0; for (int k = 0; k < ts; k++) { if (S[i + k] != T[k]) yu...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "expression.operation.binary.add", "control_flow.return.add", "control_flow.return.0.add" ]
260,784
260,783
u880629364
cpp
p02571
/*** * بسم الله الرحمن الرحيم * * author : Ahmed al mohammed * ***/ #include <bits/stdc++.h> #define P push #define F first #define S second #define pb push_back typedef long long ll; #define pf push_front #define PQ priority_queue #define gcd(a, b) __gcd(a, b) #define lcm(a, b) (a * b) / __gcd(a, b) #define lp(...
/*** * بسم الله الرحمن الرحيم * * author : Ahmed al mohammed * ***/ #include <bits/stdc++.h> #define P push #define F first #define S second #define pb push_back typedef long long ll; #define pf push_front #define PQ priority_queue #define gcd(a, b) __gcd(a, b) #define lcm(a, b) (a * b) / __gcd(a, b) #define lp(...
[]
260,787
260,788
u466249102
cpp
p02571
#include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { string s, t; cin >> s >> t; int count = t.size() + 1; for (int i = 0; i < s.size() - t.size(); i++) { int ch = 0; for (int j = 0; j < t.size(); j++) { if (s[j + i] != t[j]) { ch++; } } count = ...
#include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { string s, t; cin >> s >> t; int count = t.size(); for (int i = 0; i <= s.size() - t.size(); i++) { int ch = 0; for (int j = 0; j < t.size(); j++) { if (s[j + i] != t[j]) { ch++; } } count = min...
[ "expression.operation.binary.remove", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,789
260,790
u686581527
cpp
p02571
#include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { string s, t; cin >> s >> t; int count = t.size(); for (int i = 0; i < s.size() - t.size(); i++) { int ch = 0; for (int j = 0; j < t.size(); j++) { if (s[j + i] != t[j]) { ch++; } } count = min(...
#include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { string s, t; cin >> s >> t; int count = t.size(); for (int i = 0; i <= s.size() - t.size(); i++) { int ch = 0; for (int j = 0; j < t.size(); j++) { if (s[j + i] != t[j]) { ch++; } } count = min...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,791
260,790
u686581527
cpp
p02571
#define _GLIBCXX_DEBUG //実行時、何も出なかったらこれを使う #include <algorithm> #include <climits> #include <cmath> #include <iomanip> #include <iostream> #include <limits> // #include <map> #include <numeric> #include <queue> #include <stack> #include <stdio.h> // #include <string> #include <vector> using namespace std; #define rep...
#define _GLIBCXX_DEBUG //実行時、何も出なかったらこれを使う #include <algorithm> #include <climits> #include <cmath> #include <iomanip> #include <iostream> #include <limits> // #include <map> #include <numeric> #include <queue> #include <stack> #include <stdio.h> // #include <string> #include <vector> using namespace std; #define rep...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
260,792
260,793
u535565217
cpp
p02571
#include <bits/stdc++.h> using namespace std; #define ll long long #define INF 999999999 #define rep(i, n) for (int i = 0; i < n; i++) const int MOD = 1000000007; ll cnt = 0, ans = 0; int main() { string s, t; cin >> s >> t; int n = s.size(), m = t.size(); ans = INF; for (int i = 0; i < n - m; i++) { cnt...
#include <bits/stdc++.h> using namespace std; #define ll long long #define INF 999999999 #define rep(i, n) for (int i = 0; i < n; i++) const int MOD = 1000000007; ll cnt = 0, ans = 0; int main() { string s, t; cin >> s >> t; int n = s.size(), m = t.size(); ans = INF; for (int i = 0; i <= n - m; i++) { cn...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,799
260,800
u179593519
cpp
p02571
#include <algorithm> #include <stdio.h> #include <string.h> using namespace std; int main() { int l1, l2, i, j, ans, m; char s1[1002], s2[1002]; scanf("%s%s", s1, s2); l2 = strlen(s2); l1 = strlen(s1); l1 -= l2 + 1; for (i = 0, ans = 0; i < l1; i++) { for (j = 0, m = 0; j < l2; j++) { if (s1[...
#include <algorithm> #include <stdio.h> #include <string.h> using namespace std; int main() { int l1, l2, i, j, ans, m; char s1[1002], s2[1002]; scanf("%s%s", s1, s2); l2 = strlen(s2); l1 = strlen(s1); l1 = l1 - l2 + 1; for (i = 0, ans = 0; i < l1; i++) { for (j = 0, m = 0; j < l2; j++) { if ...
[ "assignment.value.change", "assignment.change" ]
260,801
260,802
u920637889
cpp
p02571
#include <bits/stdc++.h> #define LL long long #define MOD 1000000007 #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; LL gcd(LL C, LL D) { if (C < D) gcd(D, C); if (C % D == 0) return D; else gcd(D, C % D); } int main() { string s, t; int ans = 0; cin >> s >> t; for (...
#include <bits/stdc++.h> #define LL long long #define MOD 1000000007 #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; LL gcd(LL C, LL D) { if (C < D) gcd(D, C); if (C % D == 0) return D; else gcd(D, C % D); } int main() { string s, t; int ans = 0; cin >> s >> t; for (...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
260,803
260,804
u782785740
cpp
p02571
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <iostream> #include <map> #include <math.h> #include <string> #include <vector> typedef long long ll; using namespace std; // const int MAX_CHAR = 26; string sortString(string &str) { // string a; sort(str.begin(), str.end()); return str; ...
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <iostream> #include <map> #include <math.h> #include <string> #include <vector> typedef long long ll; using namespace std; // const int MAX_CHAR = 26; string sortString(string &str) { // string a; sort(str.begin(), str.end()); return str; ...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
260,807
260,808
u695987902
cpp
p02571
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <iostream> #include <map> #include <math.h> #include <string> #include <vector> typedef long long ll; using namespace std; // const int MAX_CHAR = 26; string sortString(string &str) { // string a; sort(str.begin(), str.end()); return str; ...
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <iostream> #include <map> #include <math.h> #include <string> #include <vector> typedef long long ll; using namespace std; // const int MAX_CHAR = 26; string sortString(string &str) { // string a; sort(str.begin(), str.end()); return str; ...
[ "control_flow.loop.for.condition.change" ]
260,809
260,808
u695987902
cpp
p02571
#include <algorithm> #include <cmath> #include <iostream> #include <stdlib.h> #include <string> #include <vector> using namespace std; int main() { string s; string t; cin >> s >> t; int size_1 = s.length(); int size_2 = t.length(); int ans = 2000; int sen = 0; for (int i = 0; i < size_1 - size_2; i...
#include <algorithm> #include <cmath> #include <iostream> #include <stdlib.h> #include <string> #include <vector> using namespace std; int main() { string s; string t; cin >> s >> t; int size_1 = s.length(); int size_2 = t.length(); int ans = 2000; int sen = 0; for (int i = 0; i <= size_1 - size_2; ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,832
260,833
u436403761
cpp
p02571
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <time.h> #include <vector> using namespace std; int main() { // ios::sync_with_stdio(false); // cin.tie(0); // cout.tie(0); ch...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <time.h> #include <vector> using namespace std; int main() { // ios::sync_with_stdio(false); // cin.tie(0); // cout.tie(0); ch...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,834
260,835
u003209874
cpp
p02571
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string S, T; cin >> S >> T; int answer = T.length(); for (int i = 0; i < S.length() - T.length(); i++) { int now = 0; for (int j = 0; j < T.length(); j++) { if (S[i + j] != T[j]) { now++; } ...
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string S, T; cin >> S >> T; int answer = T.length(); for (int i = 0; i <= S.length() - T.length(); i++) { int now = 0; for (int j = 0; j < T.length(); j++) { if (S[i + j] != T[j]) { now++; } ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,836
260,837
u064837459
cpp
p02571
#include "bits/stdc++.h" #pragma GCC optimize("O3,Ofast,no-stack-protector,unroll-loops,fast-math") #pragma GCC target("avx,avx2") using namespace std; using ll = long long; #define all(x) begin(x), end(x) int main() { ios_base::sync_with_stdio(0); string s, t; cin >> s >> t; int difmin = INT_MAX; int n = ...
#include "bits/stdc++.h" #pragma GCC optimize("O3,Ofast,no-stack-protector,unroll-loops,fast-math") #pragma GCC target("avx,avx2") using namespace std; using ll = long long; #define all(x) begin(x), end(x) int main() { ios_base::sync_with_stdio(0); string s, t; cin >> s >> t; int difmin = INT_MAX; int n = ...
[ "misc.opposites", "expression.operator.arithmetic.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
260,840
260,841
u893304865
cpp
p02571
#include "bits/stdc++.h" #pragma GCC optimize("O3,Ofast,no-stack-protector,unroll-loops,fast-math") #pragma GCC target("avx,avx2") using namespace std; using ll = long long; #define all(x) begin(x), end(x) int main() { ios_base::sync_with_stdio(0); string s, t; cin >> s >> t; int difmin = INT_MAX; int n = ...
#include "bits/stdc++.h" #pragma GCC optimize("O3,Ofast,no-stack-protector,unroll-loops,fast-math") #pragma GCC target("avx,avx2") using namespace std; using ll = long long; #define all(x) begin(x), end(x) int main() { ios_base::sync_with_stdio(0); string s, t; cin >> s >> t; int difmin = INT_MAX; int n = ...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
260,842
260,841
u893304865
cpp
p02571
#include <bits/stdc++.h> using namespace std; /******* All Required define Pre-Processors and Constants *******/ #define int long long #define ull unsigned long long #define ld long double #define mem(a, b) memset(a, (b), sizeof(a)) #define rep(i, j, k) for (int i = j; i < k; ++i) #define rrep(i, j, k) for (int i...
#include <bits/stdc++.h> using namespace std; /******* All Required define Pre-Processors and Constants *******/ #define int long long #define ull unsigned long long #define ld long double #define mem(a, b) memset(a, (b), sizeof(a)) #define rep(i, j, k) for (int i = j; i < k; ++i) #define rrep(i, j, k) for (int i ...
[ "identifier.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
260,843
260,844
u242049402
cpp
p02571
#include <bits/stdc++.h> using namespace std; /******* All Required define Pre-Processors and Constants *******/ #define int long long #define ull unsigned long long #define ld long double #define mem(a, b) memset(a, (b), sizeof(a)) #define rep(i, j, k) for (int i = j; i < k; ++i) #define rrep(i, j, k) for (int i...
#include <bits/stdc++.h> using namespace std; /******* All Required define Pre-Processors and Constants *******/ #define int long long #define ull unsigned long long #define ld long double #define mem(a, b) memset(a, (b), sizeof(a)) #define rep(i, j, k) for (int i = j; i < k; ++i) #define rrep(i, j, k) for (int i ...
[ "identifier.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change", "identifier.replace.add", "literal.replace.remove" ]
260,845
260,844
u242049402
cpp
p02571
#include <bits/stdc++.h> #define fr(i, a, n) for (ll i = a; i < n; i++) #define YES cout << "YES" << endl #define all(v) v.begin(), v.end() #define NO cout << "NO" << endl #define pb(x) emplace_back(x) #define fastio \ std::ios_base::sync_with_stdio(fals...
#include <bits/stdc++.h> #define fr(i, a, n) for (ll i = a; i < n; i++) #define YES cout << "YES" << endl #define all(v) v.begin(), v.end() #define NO cout << "NO" << endl #define pb(x) emplace_back(x) #define fastio \ std::ios_base::sync_with_stdio(fals...
[ "expression.operation.binary.add" ]
260,848
260,849
u388264930
cpp
p02571
#include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define MOD 100000000 using pi = pair<int, int>; int main() { string s1, s2; cin >> s1 >> s2; int mx = 0, n = s1.size(), m = s2.size(); for (int i = 0; i <= n - m; i++) { int k = 0; for (int j = 0; j < m; j++) { ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define MOD 100000000 using pi = pair<int, int>; int main() { string s1, s2; cin >> s1 >> s2; int mx = 0, n = s1.size(), m = s2.size(); for (int i = 0; i <= n - m; i++) { int k = 0; for (int j = 0; j < m; j++) { ...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
260,850
260,851
u279357286
cpp
p02571
// Author: Pranta // Date: 2020-Sep-11 // Problem: B_Substring #include <bits/stdc++.h> #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
// Author: Pranta // Date: 2020-Sep-11 // Problem: B_Substring #include <bits/stdc++.h> #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,852
260,853
u642925421
cpp
p02571
// Author: Pranta // Date: 2020-Sep-11 // Problem: B_Substring #include <bits/stdc++.h> #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
// Author: Pranta // Date: 2020-Sep-11 // Problem: B_Substring #include <bits/stdc++.h> #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
[ "variable_declaration.remove", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,854
260,853
u642925421
cpp
p02571
#include <bits/stdc++.h> using namespace std; #define INF (1 << 30) #define EPS 1e-10 #define MOD 1000000007 #define rep(i, n) FOR(i, 0, n) #define FOR(i, x, n) for (int i = (x); i < (n); ++i) #define all(v) (v).begin(), (v).end() using ll = long long; template <class T> bool chmax(T &a, T b) { if (a < b) { ...
#include <bits/stdc++.h> using namespace std; #define INF (1 << 30) #define EPS 1e-10 #define MOD 1000000007 #define rep(i, n) FOR(i, 0, n) #define FOR(i, x, n) for (int i = (x); i < (n); ++i) #define all(v) (v).begin(), (v).end() using ll = long long; template <class T> bool chmax(T &a, T b) { if (a < b) { ...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
260,855
260,856
u515019830
cpp
p02571
#include <iostream> #include <string> using namespace std; int main() { string s, t; cin >> s >> t; size_t res = t.size(); for (size_t i = 0; i < s.size() - t.size(); ++i) { size_t diff = 0; for (size_t j = 0; j < t.size(); ++j) { if (t[j] != s[i + j]) { diff++; } } res = m...
#include <iostream> #include <string> using namespace std; int main() { string s, t; cin >> s >> t; size_t res = t.size(); for (size_t i = 0; i <= s.size() - t.size(); ++i) { size_t diff = 0; for (size_t j = 0; j < t.size(); ++j) { if (t[j] != s[i + j]) { diff++; } } res = ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,857
260,858
u502450378
cpp
p02571
#define ALGORITHM 0 #define CLIMITS 0 #define CMATH 0 #define DEQUE 0 #define LIST 0 #define MAP 0 #define QUEUE 0 #define SET 0 #define DP 1 #define DIRECTIONS 0 #define _GLIBCXX_DEBUG #include <iostream> #include <string> #include <utility> #include <vector> using namespace std; #if ALGORITHM #include <algorithm> ...
#define ALGORITHM 0 #define CLIMITS 0 #define CMATH 0 #define DEQUE 0 #define LIST 0 #define MAP 0 #define QUEUE 0 #define SET 0 #define DP 1 #define DIRECTIONS 0 #define _GLIBCXX_DEBUG #include <iostream> #include <string> #include <utility> #include <vector> using namespace std; #if ALGORITHM #include <algorithm> ...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
260,859
260,860
u884476319
cpp
p02571
#define ALGORITHM 0 #define CLIMITS 0 #define CMATH 0 #define DEQUE 0 #define LIST 0 #define MAP 0 #define QUEUE 0 #define SET 0 #define DP 1 #define DIRECTIONS 0 #define _GLIBCXX_DEBUG #include <iostream> #include <string> #include <utility> #include <vector> using namespace std; #if ALGORITHM #include <algorithm> ...
#define ALGORITHM 0 #define CLIMITS 0 #define CMATH 0 #define DEQUE 0 #define LIST 0 #define MAP 0 #define QUEUE 0 #define SET 0 #define DP 1 #define DIRECTIONS 0 #define _GLIBCXX_DEBUG #include <iostream> #include <string> #include <utility> #include <vector> using namespace std; #if ALGORITHM #include <algorithm> ...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "control_flow.loop.for.condition.change", "misc.off_by_one" ]
260,861
260,860
u884476319
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main(void) { string big, little; cin >> big >> little; int ans = 1e9; for (int i = 0; i < big.size(); i++) { if (i + little.size() >= big.size()) continue; int tmp = 0; for (int j = 0; j < little.size(); j++) { if (big[i + j] != little[j...
#include <bits/stdc++.h> using namespace std; int main(void) { string big, little; cin >> big >> little; int ans = 1e9; for (int i = 0; i < big.size(); i++) { if (i + little.size() > big.size()) continue; int tmp = 0; for (int j = 0; j < little.size(); j++) { if (big[i + j] != little[j]...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
260,862
260,863
u013408661
cpp
p02571
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define MOD1 1000000007 #define MOD2 1000000009 #define FOR(a, b) for (int i = a; i < b; i++) #define nl "\n" int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); string s, t; cin >> s >> t; int ans = t.size(); for (int i = 0; i...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define MOD1 1000000007 #define MOD2 1000000009 #define FOR(a, b) for (int i = a; i < b; i++) #define nl "\n" int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); string s, t; cin >> s >> t; int ans = t.size(); for (int i = 0; i...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,869
260,870
u450359369
cpp
p02571
#include <bits/stdc++.h> using namespace std; string s, t; int main() { cin >> s >> t; int mn = 1e9; for (int i = 0; i < s.length() - t.length(); i++) { int curr = 0; for (int j = 0; j < t.length(); j++) { if (s[j + i] != t[j]) { curr++; } } mn = min(mn, curr); } cout << m...
#include <bits/stdc++.h> using namespace std; string s, t; int main() { cin >> s >> t; int mn = 1e9; for (int i = 0; i <= s.length() - t.length(); i++) { int curr = 0; for (int j = 0; j < t.length(); j++) { if (s[j + i] != t[j]) { curr++; } } mn = min(mn, curr); } cout << ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,871
260,872
u407681026
cpp
p02571
#include <bits/stdc++.h> #define fast \ ios::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL) #define int long long #define endl...
#include <bits/stdc++.h> #define fast \ ios::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL) #define int long long #define endl...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
260,878
260,879
u524487200
cpp
p02571
#include <iostream> #include <string> #define min(a, b) a > b ? b : a using namespace std; int main() { string s1, s2; cin >> s1 >> s2; int min_change = 1000; for (int i = 0; i < s1.length() - s2.length(); i++) { int cnt = 0; for (int j = 0; j < s2.length(); j++) { if (s1[j + i] != s2[j]) ...
#include <iostream> #include <string> #define min(a, b) a > b ? b : a using namespace std; int main() { string s1, s2; cin >> s1 >> s2; int min_change = 1000; for (int i = 0; i < s1.length() - s2.length() + 1; i++) { int cnt = 0; for (int j = 0; j < s2.length(); j++) { if (s1[j + i] != s2[j]) ...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
260,890
260,891
u509735158
cpp
p02571
#include <bits/stdc++.h> using namespace std; #define fi first #define se second #define pb push_back #define es erase #define in insert #define pii pair<int, int> #define ll long long #define lb long double #define ioss \ ios::sync_with_stdio(false...
#include <bits/stdc++.h> using namespace std; #define fi first #define se second #define pb push_back #define es erase #define in insert #define pii pair<int, int> #define ll long long #define lb long double #define ioss \ ios::sync_with_stdio(false...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,899
260,900
u509654786
cpp
p02571
#include <bits/stdc++.h> #define F first #define S second #define ll long long #define pb push_back #define endl '\n' using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); string a, b; cin >> a >> b; int ans = INT_MAX; for (int i = 0; i < (int)(a.size()) - (int)(b.size()) - 1; ++i) ...
#include <bits/stdc++.h> #define F first #define S second #define ll long long #define pb push_back #define endl '\n' using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); string a, b; cin >> a >> b; int ans = INT_MAX; for (int i = 0; i <= (int)(a.size()) - (int)(b.size()); ++i) { ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "expression.operation.binary.remove" ]
260,903
260,902
u553275654
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int sl = s.length(), tl = t.length(); int n = sl + tl + 1; int x[n] = {0}; for (int i = 0; i < n; ++i) { for (int j = 0; j < tl; ++j) { if (s[i + j] == t[j]) { x[i]++; } } } int max = x[0]...
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int sl = s.length(), tl = t.length(); int n = sl - tl + 1; int x[n] = {0}; for (int i = 0; i < n; ++i) { for (int j = 0; j < tl; ++j) { if (s[i + j] == t[j]) { x[i]++; } } } int max = x[0]...
[ "misc.opposites", "expression.operator.arithmetic.change", "expression.operation.binary.change" ]
260,906
260,907
u654424979
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { int kekka, kari; kekka = 0; kari = 0; string iti, ni; cin >> iti >> ni; for (int i = 0; i < iti.size() - ni.size(); i++) { for (int s = 0; s <= ni.size(); s++) { if (iti.at(i + s) == ni.at(s)) { kari++; } } if (kekka...
#include <bits/stdc++.h> using namespace std; int main() { int kekka, kari; kekka = 0; kari = 0; string iti, ni; cin >> iti >> ni; for (int i = 0; i <= iti.size() - ni.size(); i++) { for (int s = 0; s < ni.size(); s++) { if (iti.at(i + s) == ni.at(s)) { kari++; } } if (kekka...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,914
260,915
u669831668
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { int kekka, kari; kekka = 0; kari = 0; string iti, ni; cin >> iti >> ni; for (int i = 0; i < iti.size() - ni.size(); i++) { for (int s = 0; s < ni.size(); s++) { if (iti.at(i + s) == ni.at(s)) { kari++; } } if (kekka ...
#include <bits/stdc++.h> using namespace std; int main() { int kekka, kari; kekka = 0; kari = 0; string iti, ni; cin >> iti >> ni; for (int i = 0; i <= iti.size() - ni.size(); i++) { for (int s = 0; s < ni.size(); s++) { if (iti.at(i + s) == ni.at(s)) { kari++; } } if (kekka...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,916
260,915
u669831668
cpp
p02571
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; typedef long long ll; typedef pair<int, int> P; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a =...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; typedef long long ll; typedef pair<int, int> P; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a =...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,921
260,922
u917518913
cpp
p02571
#include <bits/stdc++.h> using ll = long long; using namespace std; #define rep(i, n) for (int i = 0, i##_len = (int)(n); i < i##_len; i++) #define reps(i, n) for (int i = 1, i##_len = (int)(n); i <= i##_len; i++) #define rrep(i, n) for (int i = ((int)(n)-1); i >= 0; i--) #define rreps(i, n) for (int i = ((int)(n)); i ...
#include <bits/stdc++.h> using ll = long long; using namespace std; #define rep(i, n) for (int i = 0, i##_len = (int)(n); i < i##_len; i++) #define reps(i, n) for (int i = 1, i##_len = (int)(n); i <= i##_len; i++) #define rrep(i, n) for (int i = ((int)(n)-1); i >= 0; i--) #define rreps(i, n) for (int i = ((int)(n)); i ...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
260,923
260,924
u179778090
cpp
p02571
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pi; typedef complex<double> cp; #define debug(a) cout << #a << ":" << a << endl; #define fr freopen("in.txt", "r", stdin); #define Fill(x, a) memset(x, a, sizeof(x)) #define cpy(a, b) memcpy(a, b, sizeof(a)) const double PI = aco...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pi; typedef complex<double> cp; #define debug(a) cout << #a << ":" << a << endl; #define fr freopen("in.txt", "r", stdin); #define Fill(x, a) memset(x, a, sizeof(x)) #define cpy(a, b) memcpy(a, b, sizeof(a)) const double PI = aco...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,925
260,926
u019752654
cpp
p02571
#include <iostream> #include <string> int main() { std::string S, T; std::cin >> S >> T; int count = 0; int _min = T.size(); int _limit = S.size() - T.size(); for (int i = 0; i < _limit; i++) { count = 0; std::string R = S.substr(i, T.size()); for (int j = 0; i < T.size(); j++) { if (R[j]...
#include <iostream> #include <string> int main() { std::string S, T; std::cin >> S >> T; int count = 0; int _min = T.size(); int _limit = S.size() - T.size(); for (int i = 0; i < _limit + 1; i++) { count = 0; std::string R = S.substr(i, T.size()); for (int j = 0; j < T.size(); j++) { if (...
[ "control_flow.loop.for.condition.change", "misc.off_by_one", "identifier.change", "expression.operation.binary.change" ]
260,929
260,928
u052331051
cpp
p02571
#include <iostream> #include <string.h> #define endl ("\n") #define pi (3.141592653589) #define int long long #define float double #define pb push_back #define mp make_pair #define ff first #define ss second #define all(c) cc.begin(), c.end() #define rrep(i, n) for (int i = n - 1; i >= 0; i--) #define rep(i, n) for (i...
#include <iostream> #include <string.h> #define endl ("\n") #define pi (3.141592653589) #define int long long #define float double #define pb push_back #define mp make_pair #define ff first #define ss second #define all(c) cc.begin(), c.end() #define rrep(i, n) for (int i = n - 1; i >= 0; i--) #define rep(i, n) for (i...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "identifier.change" ]
260,936
260,937
u652791385
cpp
p02571
#include <algorithm> #include <iostream> using namespace std; int getHammingDistance(string S, string T, int i) { int ans = 0; S = S.substr(i, T.size()); for (int i = 0; i < T.size(); i++) { if (S[i] != T[i]) { ans++; } } return ans; } int main() { string S, T; cin >> S >> T; int ans = 1...
#include <algorithm> #include <iostream> using namespace std; int getHammingDistance(string S, string T, int i) { int ans = 0; S = S.substr(i, T.size()); for (int i = 0; i < T.size(); i++) { if (S[i] != T[i]) { ans++; } } return ans; } int main() { string S, T; cin >> S >> T; int ans = 1...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,941
260,942
u317560202
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; ll answer = 10000000000000; rep(i, S.size() - T.size()) { ll b = 0; rep(j, T.size()) { if (S.at(i + j) != T.at(j)) ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { string S, T; cin >> S >> T; ll answer = 10000000000000; rep(i, S.size() - T.size() + 1) { ll b = 0; rep(j, T.size()) { if (S.at(i + j) != T.at(...
[ "expression.operation.binary.add" ]
260,948
260,949
u891540210
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; ll b = S.size() - T.size(); ll ans = T.size(); rep(i, b) { ll counter = 0; rep(j, T.size()) { if (S.at(i + j) != ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { string S, T; cin >> S >> T; ll b = S.size() - T.size(); ll ans = T.size(); rep(i, b + 1) { ll counter = 0; rep(j, T.size()) { if (S.at(i + j)...
[ "expression.operation.binary.add" ]
260,950
260,951
u891540210
cpp
p02571
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define sim template <class c #define ris return *this #define dor > debug &operator<< #define eni(x) ...
#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 sim template <class c #define ris return *this #define dor > debug &operator<< #define eni(x) ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,957
260,958
u538368255
cpp
p02571
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define all(v) (v).begin(), (v).end() using ll = long long; using P = pair<int, int>; using Graph = vector<vector<int>>; int main() { string s, t; cin >> s >> t; int ans = t.length(); rep(i, s.length() - t.length()) {...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define all(v) (v).begin(), (v).end() using ll = long long; using P = pair<int, int>; using Graph = vector<vector<int>>; int main() { string s, t; cin >> s >> t; int ans = t.length(); rep(i, s.length() - t.length() + ...
[ "expression.operation.binary.add" ]
260,965
260,966
u027208253
cpp
p02571
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #define rep(i, n) for (int i = 0; i < n; i++) #define reps(i, s, n) for (int i = s; i < n; i++) #define all(v) v.begin(), v.end() // sort(all(array)) #define INF 1000000000 #define mod 1000000007 using namespace std; using ll = long long; using vi = vector<int>; // vi arr...
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #define rep(i, n) for (int i = 0; i < n; i++) #define reps(i, s, n) for (int i = s; i < n; i++) #define all(v) v.begin(), v.end() // sort(all(array)) #define INF 1000000000 #define mod 1000000007 using namespace std; using ll = long long; using vi = vector<int>; // vi arr...
[ "expression.operation.binary.add" ]
260,969
260,970
u671889550
cpp
p02571
#include <bits/stdc++.h> using namespace std; #define ll long long int int main() { ll n = 0, k = 0, ans = 0; string s, t; cin >> s >> t; n = s.length(); k = t.length(); ans = k; for (int i = 0; i < n - k; i++) { ll cnt = 0; for (ll j = 0; j < k; j++) { if (s[i + j] != t[j]) cnt++; ...
#include <bits/stdc++.h> using namespace std; #define ll long long int int main() { ll n = 0, k = 0, ans = 0; string s, t; cin >> s >> t; n = s.length(); k = t.length(); ans = k; for (int i = 0; i <= n - k; i++) { ll cnt = 0; for (ll j = 0; j < k; j++) { if (s[i + j] != t[j]) cnt++; ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,971
260,972
u758394189
cpp
p02571
#include <bits/stdc++.h> using namespace std; char s[10005], t[10005]; int main(int argc, char *argv[]) { cin >> s >> t; int lens = strlen(s); int lent = strlen(t); int ans = 10000; for (int i = 0; (i + lent) < lens; i++) { int sum = 0; for (int j = 0; j < lent; j++) if (s[i + j] != t[j]) ...
#include <bits/stdc++.h> using namespace std; char s[10005], t[10005]; int main(int argc, char *argv[]) { cin >> s >> t; int lens = strlen(s); int lent = strlen(t); int ans = 10000; for (int i = 0; (i + lent - 1) < lens; i++) { int sum = 0; for (int j = 0; j < lent; j++) if (s[i + j] != t[j]) ...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
260,980
260,981
u384867668
cpp
p02571
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e5 + 10; const int mod = 1e9 + 7; const int inf = 0x3f3f3f3f; ll n, cnt = 0; string s1, s2; int main() { // freopen("../in.in", "r", stdin); // freopen("../out.out","w",stdout); ios::sync_with_stdio(false); ll t, i, j = 0; ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e5 + 10; const int mod = 1e9 + 7; const int inf = 0x3f3f3f3f; ll n, cnt = 0; string s1, s2; int main() { // freopen("../in.in", "r", stdin); // freopen("../out.out","w",stdout); ios::sync_with_stdio(false); ll t, i, j = 0; ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
260,982
260,983
u748282871
cpp
p02571
#include <iostream> #include <vector> using namespace std; #define STRING_LIMIT 1000 void Input(vector<char> &); int EditDistance(vector<char> &, vector<char> &); int main() { int e_dist; //編集距離 vector<char> s_buf; //文字列S vector<char> t_buf; //文字列T /* 入力 */ Input(s_buf); Input(t_buf); /* 編集距離...
#include <iostream> #include <vector> using namespace std; #define STRING_LIMIT 1000 void Input(vector<char> &); int EditDistance(vector<char> &, vector<char> &); int main() { int e_dist; //編集距離 vector<char> s_buf; //文字列S vector<char> t_buf; //文字列T /* 入力 */ Input(s_buf); Input(t_buf); /* 編集距離...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
260,986
260,985
u676786508
cpp
p02571
#include <iostream> #include <vector> using namespace std; #define STRING_LIMIT 1000 void Input(vector<char> &); int EditDistance(vector<char> &, vector<char> &); int main() { int e_dist; //編集距離 vector<char> s_buf; //文字列S vector<char> t_buf; //文字列T /* 入力 */ Input(s_buf); Input(t_buf); /* 編集距離...
#include <iostream> #include <vector> using namespace std; #define STRING_LIMIT 1001 void Input(vector<char> &); int EditDistance(vector<char> &, vector<char> &); int main() { int e_dist; //編集距離 vector<char> s_buf; //文字列S vector<char> t_buf; //文字列T /* 入力 */ Input(s_buf); Input(t_buf); /* 編集距離...
[ "preprocessor.define.value.change", "literal.integer.change", "control_flow.loop.for.condition.change", "misc.off_by_one" ]
260,986
260,987
u676786508
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cout.tie(0); cin.tie(0); string s, t; cin >> s >> t; int ans = t.size(); for (int i = 0; i + t.size() < (int)s.size(); ++i) { int cur = 0; for (int j = 0; j < (int)t.size(); ++j) { if (s[i + j] != t[j]) ...
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cout.tie(0); cin.tie(0); string s, t; cin >> s >> t; int ans = t.size(); for (int i = 0; i + t.size() <= (int)s.size(); ++i) { int cur = 0; for (int j = 0; j < (int)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" ]
260,988
260,989
u971421535
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(nullptr); ios_base::sync_with_stdio(false); string s, t; cin >> s >> t; int s_len = s.size(); int t_len = t.size(); int ans = 10000; for (int i = 0; i < s_len - t_len; ++i) { int count = 0; for (int j = 0; j < t_len; ++j) { ...
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(nullptr); ios_base::sync_with_stdio(false); string s, t; cin >> s >> t; int s_len = s.size(); int t_len = t.size(); int ans = 10000; for (int i = 0; i < s_len - t_len + 1; ++i) { int count = 0; for (int j = 0; j < t_len; ++j) ...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
260,990
260,991
u581625805
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int n = t.size(); int m = s.size(); int ans = 10000; for (int i = 0; i < m - n; i++) { int cnt = 0; for (int j = 0; j < n; j++) { if (s.at(i + j) == t.at(j)) cnt++; } ans = min(ans, n - cnt);...
#include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; int n = t.size(); int m = s.size(); int ans = 10000; for (int i = 0; i < m - n + 1; i++) { int cnt = 0; for (int j = 0; j < n; j++) { if (s.at(i + j) == t.at(j)) cnt++; } ans = min(ans, n - c...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
260,992
260,993
u782700818
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { string S, T; int res = 0, loops, temp = 0; cin >> S >> T; if (S == T) { cout << 0 << endl; return 0; } res = T.size(); loops = S.size() - T.size(); for (int i = 0; i < loops; i++) { for (int j = 0; j < T.size(); j++) { if (S[i ...
#include <bits/stdc++.h> using namespace std; int main() { string S, T; int res = 0, loops, temp = 0; cin >> S >> T; if (S == T) { cout << 0 << endl; return 0; } res = T.size(); loops = S.size() - T.size() + 1; for (int i = 0; i < loops; i++) { for (int j = 0; j < T.size(); j++) { if (...
[ "assignment.change" ]
260,994
260,995
u597207392
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { char a[1001], b[1001]; scanf("%s%s", a, b); int aL = strlen(a), bL = strlen(b); int res = aL; for (int i = 0; i < aL; i++) { int dif = 0; for (int j = 0; j < bL; j++) { if (b[i] != a[i + j]) dif++; } res = min(res, dif);...
#include <bits/stdc++.h> using namespace std; int main() { char a[1001], b[1001]; scanf("%s%s", a, b); int aL = strlen(a), bL = strlen(b); int res = aL; for (int i = 0; i <= aL - bL; i++) { int dif = 0; for (int j = 0; j < bL; j++) { if (b[j] != a[i + j]) dif++; } res = min(res,...
[ "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,045
261,046
u510093321
cpp
p02571
#include <bits/stdc++.h> #define endl '\n' #define PB push_back #define PF push_front #define MP make_pair #define fi first #define se second #define all(v) v.begin(), v.end() using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; typedef pair<int, int> pii; typedef pair<l...
#include <bits/stdc++.h> #define endl '\n' #define PB push_back #define PF push_front #define MP make_pair #define fi first #define se second #define all(v) v.begin(), v.end() using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; typedef pair<int, int> pii; typedef pair<l...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
261,049
261,050
u855455866
cpp
p02571
#include <bits/stdc++.h> #define endl '\n' #define PB push_back #define PF push_front #define MP make_pair #define fi first #define se second #define all(v) v.begin(), v.end() using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; typedef pair<int, int> pii; typedef pair<l...
#include <bits/stdc++.h> #define endl '\n' #define PB push_back #define PF push_front #define MP make_pair #define fi first #define se second #define all(v) v.begin(), v.end() using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; typedef pair<int, int> pii; typedef pair<l...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
261,051
261,050
u855455866
cpp
p02571
#include <bits/stdc++.h> #define endl '\n' #define PB push_back #define PF push_front #define MP make_pair #define fi first #define se second #define all(v) v.begin(), v.end() using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; typedef pair<int, int> pii; typedef pair<l...
#include <bits/stdc++.h> #define endl '\n' #define PB push_back #define PF push_front #define MP make_pair #define fi first #define se second #define all(v) v.begin(), v.end() using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; typedef pair<int, int> pii; typedef pair<l...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "control_flow.branch.if.condition.change", "identifier.change", "variable_access.subscript.index.change" ]
261,052
261,050
u855455866
cpp
p02571
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { string S, T; cin >> S >> T; int s = S.size(), t = T.size(); int count = 0; for (int i = 0; i < s - t; i++) { int cnt = 0; for (int j = 0; j < t; j++) { if (S.at(i + j) == T.at(j)) cnt++; } if (count ...
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { string S, T; cin >> S >> T; int s = S.size(), t = T.size(); int count = 0; for (int i = 0; i <= s - t; i++) { int cnt = 0; for (int j = 0; j < t; j++) { if (S.at(i + j) == T.at(j)) cnt++; } if (count...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
261,058
261,059
u379168673
cpp
p02571
#include <iostream> #include <vector> #include <string> #include <algorithm> #include <cmath> #include <cstdlib> #include <utility> #include <cstdio> #define vii vector<pair<int, int>> #define vi vector<int> #define INF 1000000007 #define ff first #define ss second #define lli long long int #define ulli u...
#include <iostream> #include <vector> #include <string> #include <algorithm> #include <cmath> #include <cstdlib> #include <utility> #include <cstdio> #define vii vector<pair<int, int>> #define vi vector<int> #define INF 1000000007 #define ff first #define ss second #define lli long long int #define ulli u...
[ "control_flow.loop.for.condition.change" ]
261,062
261,063
u199908410
cpp
p02571
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string S, T; cin >> S; cin >> T; int def; int ans = T.size(); for (int temp = 0; temp <= S.size() - T.size(); temp++) { def = 0; for (int i = 0; i <= T.size(); i++) { if (T[i] != S[temp + i]) ...
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string S, T; cin >> S; cin >> T; int def; int ans = T.size(); for (int temp = 0; temp <= S.size() - T.size(); temp++) { def = 0; for (int i = 0; i < T.size(); i++) { if (T[i] != S[temp + i]) ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
261,064
261,065
u590219174
cpp
p02571
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; signed main(void) { string s, t; int ans, cnt; cin >> s >> t; ans = 1e9; rep(i, s.size() - t.size()) { cnt = 0; rep(j, t.size()) { if (s[i + j] != t[j]) cnt++; } ans = min(ans, cnt); ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; signed main(void) { string s, t; int ans, cnt; cin >> s >> t; ans = 1e9; rep(i, s.size() - t.size() + 1) { cnt = 0; rep(j, t.size()) { if (s[i + j] != t[j]) cnt++; } ans = min(ans, cnt...
[ "expression.operation.binary.add" ]
261,066
261,067
u890331732
cpp
p02571
#include <algorithm> #include <bits/stdc++.h> using namespace std; #define fio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie...
#include <algorithm> #include <bits/stdc++.h> using namespace std; #define fio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
261,103
261,104
u565906751
cpp
p02571
#include <bits/stdc++.h> using namespace std; #define endl "\n" #define fastio \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0)...
#include <bits/stdc++.h> using namespace std; #define endl "\n" #define fastio \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0)...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
261,105
261,106
u857246913
cpp
p02571
#include <bits/stdc++.h> using namespace std; #define endl "\n" #define fastio \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0)...
#include <bits/stdc++.h> using namespace std; #define endl "\n" #define fastio \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0)...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
261,107
261,106
u857246913
cpp
p02571
#include <bits/stdc++.h> using namespace std; int main() { char s[1000], t[1000]; int s_len, t_len; int min = 10000, counts = 0; cin >> s >> t; s_len = strlen(s); t_len = strlen(t); // cout << s_len << " " << t_len << endl; for (int i = 0; i < s_len - t_len; i++) { for (int j = 0; j < t_len; j++...
#include <bits/stdc++.h> using namespace std; int main() { char s[1000], t[1000]; int s_len, t_len; int min = 10000, counts = 0; cin >> s >> t; s_len = strlen(s); min = t_len = strlen(t); // cout << s_len << " " << t_len << endl; for (int i = 0; i <= s_len - t_len; i++) { for (int j = 0; j < t_l...
[ "assignment.change", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
261,108
261,109
u756931996
cpp
p02571
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using vl = vector<ll>; using vvl = vector<vl>; using pll = pair<ll, ll>; using vpll = vector<pll>; using vb = vector<bool>; using vs = vector<string>; const ll oo = 0x3f3f3f3f3f3f3f3fLL; const ld eps = 1e-9; #define sz(c) ll((c)...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using vl = vector<ll>; using vvl = vector<vl>; using pll = pair<ll, ll>; using vpll = vector<pll>; using vb = vector<bool>; using vs = vector<string>; const ll oo = 0x3f3f3f3f3f3f3f3fLL; const ld eps = 1e-9; #define sz(c) ll((c)...
[ "expression.operation.binary.add" ]
261,110
261,111
u341007706
cpp
p02571
#include <bits/stdc++.h> using namespace std; using ll = long long; using vl = vector<ll>; using vvl = vector<vl>; using vb = vector<bool>; using vs = vector<string>; using pll = pair<ll, ll>; const ll oo = 0x3f3f3f3f3f3f3f3fLL; const double eps = 1e-9; #define sz(c) ll((c).size()) #define all(c) begin(c), end(c) #defi...
#include <bits/stdc++.h> using namespace std; using ll = long long; using vl = vector<ll>; using vvl = vector<vl>; using vb = vector<bool>; using vs = vector<string>; using pll = pair<ll, ll>; const ll oo = 0x3f3f3f3f3f3f3f3fLL; const double eps = 1e-9; #define sz(c) ll((c).size()) #define all(c) begin(c), end(c) #defi...
[ "expression.operation.binary.add" ]
261,116
261,117
u978976567
cpp
p02571
#include <bits/stdc++.h> // [PRIMES] 1777 ~2^10.80 using namespace std; // 10333 ~2^13.33 using ll = long long; // seq 1 128 | factor 100333 ~2^16.61 using vl = vector<ll>; // | grep -v ' .* ' 1300111 ~2^20.31 using vvl = vect...
#include <bits/stdc++.h> // [PRIMES] 1777 ~2^10.80 using namespace std; // 10333 ~2^13.33 using ll = long long; // seq 1 128 | factor 100333 ~2^16.61 using vl = vector<ll>; // | grep -v ' .* ' 1300111 ~2^20.31 using vvl = vect...
[ "expression.operation.binary.add" ]
261,118
261,119
u511954806
cpp
p02571
#include <algorithm> #include <bitset> #include <cstring> #include <ctype.h> #include <iomanip> #include <iostream> #include <iterator> #include <limits> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector...
#include <algorithm> #include <bitset> #include <cstring> #include <ctype.h> #include <iomanip> #include <iostream> #include <iterator> #include <limits> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector...
[ "identifier.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
261,120
261,121
u734397606
cpp
p02571
#include <algorithm> #include <bitset> #include <cstring> #include <ctype.h> #include <iomanip> #include <iostream> #include <iterator> #include <limits> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector...
#include <algorithm> #include <bitset> #include <cstring> #include <ctype.h> #include <iomanip> #include <iostream> #include <iterator> #include <limits> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector...
[ "identifier.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change", "misc.opposites", "expression.operator.compare.change" ]
261,122
261,121
u734397606
cpp
p02571
#define _USE_MATH_DEFINES // M_PI等のフラグ #include <algorithm> #include <bitset> #include <cmath> #include <cstdlib> #include <cstring> #include <iostream> #include <list> #include <map> #include <string> #include <vector> #define MOD 1000000007 #define COUNTOF(array) (sizeof(array) / sizeof(array[0])) using namespace ...
#define _USE_MATH_DEFINES // M_PI等のフラグ #include <algorithm> #include <bitset> #include <cmath> #include <cstdlib> #include <cstring> #include <iostream> #include <list> #include <map> #include <string> #include <vector> #define MOD 1000000007 #define COUNTOF(array) (sizeof(array) / sizeof(array[0])) using namespace ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "expression.operation.binary.remove" ]
261,123
261,124
u687044304
cpp