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
p03962
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for (ll(i) = 0; (i) < (ll)(n); ++(i)) #define REPN(i, m, n) for (ll(i) = m; (i) < (ll)(n); ++(i)) #define REP_REV(i, n) for (ll(i) = (ll)(n)-1; (i) >= 0; --(i)) #define REPN_REV(i, m, n) for (ll(i) = (ll)(n)-1; (i) >= m; --(i)) #define INF 2e9 #define IN...
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for (ll(i) = 0; (i) < (ll)(n); ++(i)) #define REPN(i, m, n) for (ll(i) = m; (i) < (ll)(n); ++(i)) #define REP_REV(i, n) for (ll(i) = (ll)(n)-1; (i) >= 0; --(i)) #define REPN_REV(i, m, n) for (ll(i) = (ll)(n)-1; (i) >= m; --(i)) #define INF 2e9 #define IN...
[ "control_flow.branch.if.condition.change" ]
1,488,969
1,488,970
u127768253
cpp
p03962
#include <algorithm> #include <iostream> #include <math.h> #include <stdio.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { cout << "1" << endl; } else if (a == b || b == c) { cout << "2" << endl; } else { cout << "3" << endl; } return 0; }
#include <algorithm> #include <iostream> #include <math.h> #include <stdio.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { cout << "1" << endl; } else if (a == b || b == c || c == a) { cout << "2" << endl; } else { cout << "3" << endl; } return 0;...
[ "control_flow.branch.if.condition.change" ]
1,488,971
1,488,972
u127768253
cpp
p03961
#include <bits/stdc++.h> using namespace std; namespace fdata { inline char nextchar() { static const int BS = 1 << 21; static char buf[BS], *st, *ed; if (st == ed) ed = buf + fread(st = buf, 1, BS, stdin); return st == ed ? -1 : *st++; } #ifdef lky233 #define nextchar getchar #endif template <typename Y> i...
#include <bits/stdc++.h> using namespace std; namespace fdata { inline char nextchar() { static const int BS = 1 << 21; static char buf[BS], *st, *ed; if (st == ed) ed = buf + fread(st = buf, 1, BS, stdin); return st == ed ? -1 : *st++; } #ifdef lky233 #define nextchar getchar #endif template <typename Y> i...
[ "assignment.change" ]
1,488,977
1,488,978
u426964396
cpp
p03961
#include <bits/stdc++.h> using namespace std; namespace fdata { inline char nextchar() { static const int BS = 1 << 21; static char buf[BS], *st, *ed; if (st == ed) ed = buf + fread(st = buf, 1, BS, stdin); return st == ed ? -1 : *st++; } #ifdef lky233 #define nextchar getchar #endif template <typename Y> i...
#include <bits/stdc++.h> using namespace std; namespace fdata { inline char nextchar() { static const int BS = 1 << 21; static char buf[BS], *st, *ed; if (st == ed) ed = buf + fread(st = buf, 1, BS, stdin); return st == ed ? -1 : *st++; } #ifdef lky233 #define nextchar getchar #endif template <typename Y> i...
[]
1,488,981
1,488,982
u483350044
cpp
p03961
#include <algorithm> #include <cstdio> #pragma warning(disable : 4996) using namespace std; int n, c, p[500009], ip[500009], v[500009], bit[500009], inv[500009], mod = 1000000007; void add(int pos, int val) { for (int i = pos + 1; i <= n; i += i & (-i)) bit[i] += val; } int sum(int pos) { int ret = 0; for...
#include <algorithm> #include <cstdio> #pragma warning(disable : 4996) using namespace std; int n, c, p[500009], ip[500009], v[500009], bit[500009], inv[500009], mod = 1000000007; void add(int pos, int val) { for (int i = pos + 1; i <= n; i += i & (-i)) bit[i] += val; } int sum(int pos) { int ret = 0; for...
[ "assignment.change" ]
1,488,993
1,488,994
u837745858
cpp
p03961
#define _USE_MATH_DEFINES #include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <complex> #include <cstdio> #include <cstring> #include <functional> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #in...
#define _USE_MATH_DEFINES #include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <complex> #include <cstdio> #include <cstring> #include <functional> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #in...
[ "assignment.change" ]
1,488,995
1,488,996
u112723190
cpp
p03961
/**/ #include <bits/stdc++.h> using namespace std; /***********************************************/ /* Dear online judge: * I've read the problem, and tried to solve it. * Even if you don't accept my solution, you should respect my effort. * I hope my code compile and get accepted. * ____________ * / ...
/**/ #include <bits/stdc++.h> using namespace std; /***********************************************/ /* Dear online judge: * I've read the problem, and tried to solve it. * Even if you don't accept my solution, you should respect my effort. * I hope my code compile and get accepted. * ____________ * / ...
[ "control_flow.branch.if.add" ]
1,489,001
1,489,002
u461151831
cpp
p03961
#include <algorithm> #include <iostream> #include <vector> using namespace std; int const N = 5e5 + 41; int const MOD = 1e9 + 7; int n, f[N], invF[N], p[N], cntFree, ans, mark[N], grFree[N], leBusy[N], F[N]; int mul(int a, int b) { return a * 1LL * b % MOD; } void add(int &a, int b) { a += b; if (a >= MOD) { ...
#include <algorithm> #include <iostream> #include <vector> using namespace std; int const N = 5e5 + 41; int const MOD = 1e9 + 7; int n, f[N], invF[N], p[N], cntFree, ans, mark[N], grFree[N], leBusy[N], F[N]; int mul(int a, int b) { return a * 1LL * b % MOD; } void add(int &a, int b) { a += b; if (a >= MOD) { ...
[]
1,489,005
1,489,006
u197964611
cpp
p03962
#include <iostream> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if (A != B && A != C && B != C) { cout << "3"; } else if (A == B || A == C || B == C) { cout << "2"; } else { cout << "0"; } return 0; }
#include <iostream> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if (A != B && A != C && B != C) { cout << "3"; } else if (A == B && A == C && B == C) { cout << "1"; } else { cout << "2"; } return 0; }
[ "misc.opposites", "control_flow.branch.if.condition.change", "literal.string.change", "io.output.change" ]
1,489,046
1,489,047
u018679195
cpp
p03962
#include <cstdio> int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); if (a != b && b != c) printf("3\n"); else if (a == b && b == c) printf("1\n"); else printf("2\n"); return 0; }
#include <cstdio> int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); if (a != b && b != c && a != c) printf("3\n"); else if (a == b && b == c) printf("1\n"); else printf("2\n"); return 0; }
[ "control_flow.branch.if.condition.change" ]
1,489,048
1,489,049
u018679195
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { cout << 1 << endl; } else if (a != b || b != c || c != a) { cout << 3 << endl; } else { cout << 2 << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { cout << 1 << endl; } else if (a != b && b != c && c != a) { cout << 3 << endl; } else { cout << 2 << endl; } }
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
1,489,054
1,489,055
u530067981
cpp
p03962
#include <iostream> using namespace std; int main() { int a[3], i, b = 0, j; for (i = 0; i < 3; i++) { cin >> a[i]; } for (i = 0; i < 2; i++) { for (j = i + 1; j < 3; j++) { if (a[i] != a[j]) { b++; if (b == 0) b = 1; } } } cout << b; return 0; }
#include <iostream> using namespace std; int main() { int a[3], i, b = 0, j; for (i = 0; i < 3; i++) { cin >> a[i]; } for (i = 0; i < 2; i++) { for (j = i + 1; j < 3; j++) { if (a[i] != a[j]) { b++; } } } if (b == 0) b = 1; cout << b; return 0; }
[]
1,489,056
1,489,057
u818967913
cpp
p03962
#include <stdio.h> int main() { int a[3] = {0}; int i, j, x; int k = 0; for (i = 0; i < 3; i++) { scanf("%d", &x); a[i] = x; } for (i = 0; i < 2; i++) { for (j = i + 1; j < 3; j++) { if (a[1] == a[2] && a[1] == a[3]) k = 1; if (a[i] != a[j]) k++; } } printf("%...
#include <stdio.h> int main() { int a[3] = {0}; int i, j, x; int k = 0; for (i = 0; i < 3; i++) { scanf("%d", &x); a[i] = x; } for (i = 0; i < 2; i++) { for (j = i + 1; j < 3; j++) { if (a[0] == a[1] && a[1] == a[2]) k = 1; else if (a[i] != a[j]) k++; } } prin...
[ "literal.number.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change", "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove" ]
1,489,060
1,489,061
u863370423
cpp
p03962
#include <iostream> #include <string.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c; if (a == b == c) cout << 1; else if (a != b && b != c && c != a) cout << 3; else cout << 2; return 0; }
#include <iostream> #include <string.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c; if (a == b && b == c) cout << 1; else if (a != b && b != c && c != a) cout << 3; else cout << 2; return 0; }
[ "control_flow.branch.if.condition.change" ]
1,489,062
1,489,063
u089230684
cpp
p03962
#include <algorithm> #include <cstdio> #include <iostream> #include <string> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b and b == c and a == c) { cout << "3"; } else if (a == b or a == c or b == c) { cout << "2"; } else { cout << "1"; } }
#include <algorithm> #include <cstdio> #include <iostream> #include <string> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b and b == c and a == c) { cout << "1"; } else if (a == b or a == c or b == c) { cout << "2"; } else { cout << "3"; } }
[ "literal.string.change", "io.output.change" ]
1,489,064
1,489,065
u529920550
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { cout << 3 << endl; } else if (a != b && b != c && a != c) { cout << 1 << endl; } else { cout << 2 << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { cout << 1 << endl; } else if (a != b && b != c && a != c) { cout << 3 << endl; } else { cout << 2 << endl; } }
[ "literal.number.change", "io.output.change" ]
1,489,068
1,489,069
u519981092
cpp
p03962
#include <bits/stdc++.h> #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define endl "\n" using namespace st...
#include <bits/stdc++.h> #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define endl "\n" using namespace st...
[ "literal.number.change", "io.output.change" ]
1,489,080
1,489,081
u723829647
cpp
p03962
#include <bits/stdc++.h> #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define endl "\n" using namespace st...
#include <bits/stdc++.h> #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define endl "\n" using namespace st...
[ "literal.number.change", "io.output.change" ]
1,489,082
1,489,081
u723829647
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int x = 1; if (a != b) { x++; if (b != c) { x++; } } else { if (a != c) { x++; } } cout << x << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int x = 1; if (a != b) { x++; if (b != c && a != c) { x++; } } else { if (a != c) { x++; } } cout << x << endl; }
[ "control_flow.branch.if.condition.change" ]
1,489,083
1,489,084
u758405447
cpp
p03962
#include "algorithm" #include "bitset" #include "cassert" #include "climits" #include "cmath" #include "cstdio" #include "ctime" #include "functional" #include "iomanip" #include "iostream" #include "list" #include "map" #include "numeric" #include "queue" #include "random" #include "set" #include "stack" #include "str...
#include "algorithm" #include "bitset" #include "cassert" #include "climits" #include "cmath" #include "cstdio" #include "ctime" #include "functional" #include "iomanip" #include "iostream" #include "list" #include "map" #include "numeric" #include "queue" #include "random" #include "set" #include "stack" #include "str...
[]
1,489,090
1,489,091
u124659583
cpp
p03962
#include <bits/stdc++.h> using namespace std; #define ll long long signed main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { cout << 1 << endl; } else if (a == b) { cout << 2 << endl; } else if (b == c) { cout << 2 << endl; } else if (b == c) { cout << 2 << endl; ...
#include <bits/stdc++.h> using namespace std; #define ll long long signed main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { cout << 1 << endl; } else if (a == b) { cout << 2 << endl; } else if (b == c) { cout << 2 << endl; } else if (a == c) { cout << 2 << endl; ...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
1,489,092
1,489,093
u802696783
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b == c) cout << '1'; else if (a == b) cout << '2'; else if (c == b) cout << '2'; else if (a == c) cout << '2'; else cout << '3'; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << '1'; else if (a == b) cout << '2'; else if (c == b) cout << '2'; else if (a == c) cout << '2'; else cout << '3'; return 0; }
[ "control_flow.branch.if.condition.change" ]
1,489,094
1,489,095
u714796740
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b == c) cout << '1'; else if (a = b) cout << '2'; else if (c = b) cout << '2'; else if (a = c) cout << '2'; else cout << '3'; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << '1'; else if (a == b) cout << '2'; else if (c == b) cout << '2'; else if (a == c) cout << '2'; else cout << '3'; return 0; }
[ "control_flow.branch.if.condition.change", "expression.operation.compare.replace.add", "assignment.replace.remove", "misc.typo" ]
1,489,096
1,489,095
u714796740
cpp
p03962
#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(int argc, const char *argv[]) { cin.tie(0); ios::sync_with_stdio(false); int a, b, c; cin >> a >> b >> c; if (a == b == c) cout << 1 << endl; else if (a ...
#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(int argc, const char *argv[]) { cin.tie(0); ios::sync_with_stdio(false); int a, b, c; cin >> a >> b >> c; if (a == b && a == c) cout << 1 << endl; else i...
[ "control_flow.branch.if.condition.change" ]
1,489,099
1,489,100
u843929518
cpp
p03962
#include <algorithm> #include <cassert> #include <cmath> #include <deque> #include <functional> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <vector> using namespace std; typedef long long ll; int dx[4] = {0, 0, 1, -1}; i...
#include <algorithm> #include <cassert> #include <cmath> #include <deque> #include <functional> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <vector> using namespace std; typedef long long ll; int dx[4] = {0, 0, 1, -1}; i...
[ "literal.number.change", "assignment.value.change" ]
1,489,109
1,489,110
u024764559
cpp
p03962
#include <iostream> using namespace std; int main(void) { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { cout << 1 << endl; } else if (a == b || b == c) { cout << 2 << endl; } else { cout << 3 << endl; } return 0; }
#include <iostream> using namespace std; int main(void) { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { cout << 1 << endl; } else if (a == b || b == c || a == c) { cout << 2 << endl; } else { cout << 3 << endl; } return 0; }
[ "control_flow.branch.if.condition.change" ]
1,489,111
1,489,112
u427410976
cpp
p03962
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b == c) { cout << "1" << endl; } else if (a == b or a == c or b == c) { cout << "2" << endl; } else { cout << "3" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b and b == c) { cout << "1" << endl; } else if (a == b or a == c or b == c) { cout << "2" << endl; } else { cout << "3" << endl; } return 0; }
[ "control_flow.branch.if.condition.change" ]
1,489,113
1,489,114
u842942201
cpp
p03962
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b == c) { cout << "1" << endl; } else if (a == b or a == c or b == c) { cout << "2" << endl; } else { cout << "1" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b and b == c) { cout << "1" << endl; } else if (a == b or a == c or b == c) { cout << "2" << endl; } else { cout << "3" << endl; } return 0; }
[ "control_flow.branch.if.condition.change", "literal.string.change", "io.output.change" ]
1,489,115
1,489,114
u842942201
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int nums[3]; for (int i = 0; i < 3; i++) { cin >> nums[i]; } map<int, int> counter; for (auto &c : nums) { counter[c]++; } int result = 3; for (auto &p : counter) { if (p.second != 1) { ...
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int nums[3]; for (int i = 0; i < 3; i++) { cin >> nums[i]; } map<int, int> counter; for (auto &c : nums) { counter[c]++; } int result = 0; for (auto &p : counter) { if (p.second >= 1) { ...
[ "literal.number.change", "variable_declaration.value.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,489,118
1,489,119
u209362805
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << 1 << endl; else if (a != b && b != c) cout << 3 << endl; else cout << 2 << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << 1 << endl; else if (a != b && b != c && c != a) cout << 3 << endl; else cout << 2 << endl; return 0; }
[ "control_flow.branch.if.condition.change" ]
1,489,120
1,489,121
u191299753
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int s = 0; if (a != b) { s++; } if (a != c) { s++; } if (c != b) { s++; } if (a == b == c) { s = 1; } cout << s << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int s = 0; if (a != b) { s++; } if (a != c) { s++; } if (c != b) { s++; } if (a == b && b == c) { s = 1; } cout << s << endl; }
[ "control_flow.branch.if.condition.change" ]
1,489,122
1,489,123
u210234656
cpp
p03962
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b == c) cout << 1; else if (a == b || b == c || c == a) cout << 2; else cout << 3; return 0; }
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << 1; else if (a == b || b == c || c == a) cout << 2; else cout << 3; return 0; }
[ "control_flow.branch.if.condition.change" ]
1,489,129
1,489,130
u114396358
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if (A == B && B == C) { cout << 1 << endl; } else if ((A = C && C != B) || (A == B && B != C) || (B == C && C != A)) { cout << 2 << endl; } else { cout << 3 << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if (A == B && B == C) { cout << 1 << endl; } else if ((A == C && C != B) || (A == B && B != C) || (B == C && C != A)) { cout << 2 << endl; } else { cout << 3 << endl; } }
[ "expression.operation.compare.replace.add", "assignment.replace.remove", "misc.typo" ]
1,489,139
1,489,140
u498867392
cpp
p03962
#include <iostream> using namespace std; int main() { int a, b, c; int d = 3; std::cin >> a >> b >> c; if (a != b && a != c) { cout << d << endl; } else if (a == b && a == c) { cout << d - 2 << endl; } else { cout << d - 1 << endl; } }
#include <iostream> using namespace std; int main() { int a, b, c; int d = 3; std::cin >> a >> b >> c; if (a != b && a != c && b != c) { cout << d << endl; } else if (a == b && a == c) { cout << d - 2 << endl; } else { cout << d - 1 << endl; } }
[ "control_flow.branch.if.condition.change" ]
1,489,145
1,489,146
u672822010
cpp
p03962
#include <bits/stdc++.h> using namespace std; using Graph = vector<vector<int>>; #define ll long long #define _GLIBCXX_DEBUG const ll MOD = 1000000007; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << 1 << endl; else if (a == b || b == c) cout << 2 << endl; else cout <<...
#include <bits/stdc++.h> using namespace std; using Graph = vector<vector<int>>; #define ll long long #define _GLIBCXX_DEBUG const ll MOD = 1000000007; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << 1 << endl; else if (a == b || b == c || c == a) cout << 2 << endl; else ...
[ "control_flow.branch.if.condition.change" ]
1,489,147
1,489,148
u852770206
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b == c) { cout << 1 << endl; } else if (a == b || a == c || b == c) { cout << 2 << endl; } else { cout << 3 << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { cout << 1 << endl; } else if (a == b || a == c || b == c) { cout << 2 << endl; } else { cout << 3 << endl; } }
[ "control_flow.branch.if.condition.change" ]
1,489,152
1,489,153
u237390401
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b == c) { cout << 1 << endl; } else if (a == b || a == c || b == c) { cout << 2 << endl; } else { cout << 3 << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { cout << 1 << endl; } else if (a == b || a == c || b == c) { cout << 2 << endl; } else { cout << 3 << endl; } }
[ "control_flow.branch.if.condition.change" ]
1,489,154
1,489,153
u237390401
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d = 3; cin >> a >> b >> c; if (a == b && a == c) { cout << 1 << endl; } else if (a != b && b != c && a != b) { cout << 3 << endl; } else { cout << 2 << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d = 3; cin >> a >> b >> c; if (a == b && a == c) { cout << 1 << endl; } else if (a != b && b != c && a != c) { cout << 3 << endl; } else { cout << 2 << endl; } }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
1,489,157
1,489,158
u636605529
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && a == c) cout << 1 << endl; else if (a != b && a != c) cout << 3 << endl; else cout << 2 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && a == c) cout << 1 << endl; else if (a != b && a != c && b != c) cout << 3 << endl; else cout << 2 << endl; }
[ "control_flow.branch.if.condition.change" ]
1,489,162
1,489,163
u037563046
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b == c) cout << 1 << endl; else if (a != b && a != c && b != c) cout << 3 << endl; else cout << 2 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && a == c) cout << 1 << endl; else if (a != b && a != c && b != c) cout << 3 << endl; else cout << 2 << endl; }
[ "control_flow.branch.if.condition.change" ]
1,489,164
1,489,163
u037563046
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main(void) { int a, b, c; cin >> a >> b >> c; if (a == b && a == c) { cout << 1; } else if (a == b || a == c) { cout << 2; } else { cout << 3; } cout << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { int a, b, c; cin >> a >> b >> c; if (a == b && a == c) { cout << 1; } else if (a == b || b == c || c == a) { cout << 2; } else { cout << 3; } cout << endl; return 0; }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
1,489,165
1,489,166
u018916376
cpp
p03962
#include "bits/stdc++.h" using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int count = 2; if (a != b && b != c && c != a) { count = 3; } else if (a == b == c) { count = 1; } cout << count << endl; return 0; }
#include "bits/stdc++.h" using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int count = 2; if (a != b && b != c && c != a) { count = 3; } else if (a == b && b == c) { count = 1; } cout << count << endl; return 0; }
[ "control_flow.branch.if.condition.change" ]
1,489,167
1,489,168
u906839513
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main(void) { int a, b, c; cin >> a >> b >> c; int ans = 3; if (a == b == c) ans = 1; else if (a == b) ans--; else if (a == c) ans--; else if (b == c) ans--; cout << ans << endl; return 0; }
// AC #include <bits/stdc++.h> using namespace std; int main(void) { int a, b, c; cin >> a >> b >> c; int ans = 3; if (a == b && b == c) ans = 1; else if (a == b) ans--; else if (a == c) ans--; else if (b == c) ans--; cout << ans << endl; return 0; }
[ "control_flow.branch.if.condition.change" ]
1,489,171
1,489,172
u492296177
cpp
p03962
#include <iostream> using namespace std; int main() { int x, y, z; cin >> x >> y >> z; if (x == y == z) cout << 1; else if (x == y || x == z || y == z) cout << 2; else cout << 3; return 0; }
#include <iostream> using namespace std; int main() { int x, y, z; cin >> x >> y >> z; if (x == y && x == z) cout << 1; else if (x == y || x == z || y == z) cout << 2; else cout << 3; return 0; }
[ "control_flow.branch.if.condition.change" ]
1,489,173
1,489,174
u765682288
cpp
p03962
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && a == c) cout << 1; else if (a == b || a == c) cout << 2; else cout << 3; return 0; }
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && a == c) cout << 1; else if (a == b || a == c || b == c) cout << 2; else cout << 3; return 0; }
[ "control_flow.branch.if.condition.change" ]
1,489,176
1,489,177
u898788471
cpp
p03962
#include <algorithm> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <vector> using namespace std; typedef long long ll; ll MOD = 1e9 + 7; #define rep(i, n) for (int i = 0; i < (n); ++i) int main() { int a, b, c; cin >> a >> b >> c; int ans = 0; if (a == b == c) ...
#include <algorithm> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <vector> using namespace std; typedef long long ll; ll MOD = 1e9 + 7; #define rep(i, n) for (int i = 0; i < (n); ++i) int main() { int a, b, c; cin >> a >> b >> c; int ans = 0; if (a == b && b == c)...
[ "control_flow.branch.if.condition.change" ]
1,489,178
1,489,179
u596311864
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c && c == a) cout << 1; else if (a == b && b == c) cout << 2; else cout << 3; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c && c == a) cout << 1; else if (a == b || b == c || a == c) cout << 2; else cout << 3; }
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
1,489,180
1,489,181
u508688268
cpp
p03962
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> P; #define rep(i, N) for (ll(i) = 0; (i) < (N); (i)++) const int mod = 1000000007; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << 1 << endl; else if (a != b && b != c) cout << 3 << en...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> P; #define rep(i, N) for (ll(i) = 0; (i) < (N); (i)++) const int mod = 1000000007; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << 1 << endl; else if (a != b && b != c && c != a) cout ...
[ "control_flow.branch.if.condition.change" ]
1,489,186
1,489,187
u239409893
cpp
p03962
#include <limits.h> #include <stdio.h> int main() { int a, b, c; scanf("%d%d%d", &a, &b, &c); (a != c && a != b && a != c) ? printf("3") : (a == b && a == c) ? printf("1") : printf("2"); return 0; }
#include <limits.h> #include <stdio.h> int main() { int a, b, c; scanf("%d%d%d", &a, &b, &c); (a != c && a != b && b != c) ? printf("3") : (a == b && a == c) ? printf("1") : printf("2"); return 0; }
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
1,489,188
1,489,189
u110386020
cpp
p03962
#include <limits.h> #include <stdio.h> int main() { int a, b, c; scanf("%d%d%d", &a, &b, &c); (a != c && a != b) ? printf("3") : (a == b && a == c) ? printf("1") : printf("2"); return 0; }
#include <limits.h> #include <stdio.h> int main() { int a, b, c; scanf("%d%d%d", &a, &b, &c); (a != c && a != b && b != c) ? printf("3") : (a == b && a == c) ? printf("1") : printf("2"); return 0; }
[ "expression.operation.binary.add" ]
1,489,190
1,489,189
u110386020
cpp
p03962
#include <stdio.h> int main() { int a, b, c; int cnt = 3; scanf("%d%d%d", &a, &b, &c); if (a == b) cnt -= 1; else if (a == c) cnt -= 1; else if (b == c) cnt -= 1; if (cnt == 0) cnt = 1; printf("%d\n", cnt); }
#include <stdio.h> int main() { int a, b, c; int cnt = 3; scanf("%d%d%d", &a, &b, &c); if (a == b) cnt -= 1; if (a == c) cnt -= 1; if (b == c) cnt -= 1; if (cnt == 0) cnt = 1; printf("%d\n", cnt); }
[ "control_flow.branch.if.replace.add", "control_flow.branch.else_if.replace.remove" ]
1,489,191
1,489,192
u611071743
cpp
p03962
#include <stdio.h> int main() { int a, b, c; int cnt = 3; scanf("%d%d%d", &a, &b, &c); if (a == b) cnt -= 1; else if (a == c) cnt -= 1; else if (b == c) cnt -= 1; if (cnt <= 0) cnt = 0; printf("%d\n", cnt); }
#include <stdio.h> int main() { int a, b, c; int cnt = 3; scanf("%d%d%d", &a, &b, &c); if (a == b) cnt -= 1; if (a == c) cnt -= 1; if (b == c) cnt -= 1; if (cnt == 0) cnt = 1; printf("%d\n", cnt); }
[ "control_flow.branch.if.replace.add", "control_flow.branch.else_if.replace.remove", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "literal.number.change", "assignment.value.change" ]
1,489,193
1,489,192
u611071743
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, ans = 3; cin >> a >> b >> c; if (a == b) --ans; if (b == c) --ans; if (c == a) --ans; if (a == b && b == a) ++ans; cout << ans << "\n"s; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, ans = 3; cin >> a >> b >> c; if (a == b) --ans; if (b == c) --ans; if (c == a) --ans; if (a == b && b == c) ++ans; cout << ans << "\n"s; }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
1,489,194
1,489,195
u104613587
cpp
p03962
#include <bits/stdc++.h> #define rep(i, n) for (int(i) = 0; (i) < (n); ++(i)) #define _Pi 3.1415926535 using namespace std; typedef long long ll; int main() { int a, b, c; cin >> a >> b >> c; if (a != b && b != c) cout << 3 << endl; else if (a == b && b == c) cout << 1 << endl; else cout << 2 << ...
#include <bits/stdc++.h> #define rep(i, n) for (int(i) = 0; (i) < (n); ++(i)) #define _Pi 3.1415926535 using namespace std; typedef long long ll; int main() { int a, b, c; cin >> a >> b >> c; if (a != b && b != c && c != a) cout << 3 << endl; else if (a == b && b == c) cout << 1 << endl; else cou...
[ "control_flow.branch.if.condition.change" ]
1,489,196
1,489,197
u445457059
cpp
p03962
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a != b && b != c && c != a) cout << "3" << endl; else if (a == b && b == c) cout << "1" << endl; else cout << "1" << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a != b && b != c && c != a) cout << "3" << endl; else if (a == b && b == c) cout << "1" << endl; else cout << "2" << endl; return 0; }
[ "literal.string.change", "io.output.change" ]
1,489,198
1,489,199
u698883164
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << 1 << endl; else if (a == b && b != c) cout << 2 << endl; else if (a == c && a != c) cout << 2 << endl; else if (b == c && c != a) cout << 2 << endl; else cout << ...
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << 1 << endl; else if (a == b && b != c) cout << 2 << endl; else if (a == c && a != b) cout << 2 << endl; else if (b == c && c != a) cout << 2 << endl; else cout << ...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
1,489,200
1,489,201
u729703601
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d = 3; cin >> a >> b; if (a == b) d--; cin >> c; if (a == c && b == c) d--; cout << d << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d = 3; cin >> a >> b; if (a == b) d--; cin >> c; if (a == c || b == c) d--; cout << d << endl; return 0; }
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
1,489,202
1,489,203
u124799177
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d = 3; cin >> a >> b; if (a == b) d--; cin >> c; if (a == c) d--; cout << d << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d = 3; cin >> a >> b; if (a == b) d--; cin >> c; if (a == c || b == c) d--; cout << d << endl; return 0; }
[ "control_flow.branch.if.condition.change" ]
1,489,204
1,489,203
u124799177
cpp
p03962
//#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; const int INF = 1e9 + 5; typedef long long ll; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << 3 << endl; if (a == b && b != c) cout << 2 << endl; if (b == c && a != b) cout << 2 << endl; if (c =...
//#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; const int INF = 1e9 + 5; typedef long long ll; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << 1 << endl; if (a == b && b != c) cout << 2 << endl; if (b == c && a != b) cout << 2 << endl; if (c =...
[ "literal.number.change", "io.output.change" ]
1,489,205
1,489,206
u614128939
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b == c) { cout << 1 << endl; } else if (a == b || a == c || b == c) { cout << 2 << endl; } else { cout << 3 << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && a == c) { cout << 1 << endl; } else if (a == b || a == c || b == c) { cout << 2 << endl; } else { cout << 3 << endl; } }
[ "control_flow.branch.if.condition.change" ]
1,489,213
1,489,214
u297398560
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; cout << (max({A, B, C}) == min({A, B, C}) ? "1" : ((A != B && B != C) ? "3" : "2")) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; cout << (max({A, B, C}) == min({A, B, C}) ? "1" : ((A != B && B != C && A != C) ? "3" : "2")) << endl; }
[ "expression.operation.binary.add" ]
1,489,216
1,489,217
u163149221
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a != b && a != c && b != c) { cout << 3; } else if ((a == b && a != c) || (a == c && a != b) || (b == c && a != c)) { cout << 2; } else if ((a == b && b != c) || (a == c && c != b) || (b == c && b != c)) { ...
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a != b && a != c && b != c) { cout << 3; } else if ((a == b && a != c) || (a == c && a != b) || (b == c && a != c)) { cout << 2; } else if ((a == b && a != c) || (a == c && a != b) || ...
[ "identifier.change", "control_flow.branch.if.condition.change", "literal.number.change", "io.output.change" ]
1,489,224
1,489,225
u596970915
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a != b && a != c && b != c) { cout << 3; } else if ((a == b && a != c) || (a == c && a != b) || (b == c && a != c)) { cout << 2; } else if ((a == b && a != c) || (a == c && a != b) || (b == c && a != c)) { ...
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a != b && a != c && b != c) { cout << 3; } else if ((a == b && a != c) || (a == c && a != b) || (b == c && a != c)) { cout << 2; } else if ((a == b && a != c) || (a == c && a != b) || ...
[ "literal.number.change", "io.output.change" ]
1,489,226
1,489,225
u596970915
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { cout << "1" << endl; } else if (a == b || b != c) { cout << "2" << endl; } else if (a != b || b == c) { cout << "2" << endl; } else if (a == c || a != b) { cout << "...
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { cout << "1" << endl; } else if (a == b && b != c) { cout << "2" << endl; } else if (a != b && b == c) { cout << "2" << endl; } else if (a == c && a != b) { cout << "...
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
1,489,229
1,489,230
u165771525
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { cout << "1" << endl; } else if (a == b || b != c) { cout << "2" << endl; } else if (a != b || b == c) { cout << "2" << endl; } else if (a == c || a != b) { cout << "...
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { cout << "1" << endl; } else if (a == b && b != c) { cout << "2" << endl; } else if (a != b && b == c) { cout << "2" << endl; } else if (a == c && a != b) { cout << "...
[ "misc.opposites", "control_flow.branch.if.condition.change", "literal.string.change", "io.output.change" ]
1,489,231
1,489,230
u165771525
cpp
p03962
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << 3; else if (a == b || b == c || c == a) cout << 2; else cout << 1; }
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << 1; else if (a == b || b == c || c == a) cout << 2; else cout << 3; }
[ "literal.number.change", "io.output.change" ]
1,489,235
1,489,236
u300325058
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; int answer; cin >> a >> b >> c; if (a == b && b == c) answer = 1; else if (a != b && b != c && c != b) answer = 3; else answer = 2; cout << answer << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; int answer; cin >> a >> b >> c; if (a == b && b == c) answer = 1; else if (a != b && b != c && c != a) answer = 3; else answer = 2; cout << answer << endl; }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
1,489,237
1,489,238
u267222408
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; int answer; cin >> a >> b >> c; if (a == b && b == c) answer = 1; else if (a != b && b != c) answer = 3; else answer = 2; cout << answer << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; int answer; cin >> a >> b >> c; if (a == b && b == c) answer = 1; else if (a != b && b != c && c != a) answer = 3; else answer = 2; cout << answer << endl; }
[ "control_flow.branch.if.condition.change" ]
1,489,239
1,489,238
u267222408
cpp
p03962
#include <iostream> using namespace std; int main() { int s[1]; int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { s[0] = 3; } else { if (a == b) { s[0] = 2; } if (b == c) { s[0] = 2; } if (a == c) { s[0] = 2; } if (a != b && a != c && b != c) { s[...
#include <iostream> using namespace std; int main() { int s[1]; int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { s[0] = 1; } else { if (a == b) { s[0] = 2; } if (b == c) { s[0] = 2; } if (a == c) { s[0] = 2; } if (a != b && a != c && b != c) { s[...
[ "literal.number.change", "assignment.value.change" ]
1,489,240
1,489,241
u727656657
cpp
p03962
#include <iostream> using namespace std; int main() { int s[1]; int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { s[0] = 3; } else { if (a == b) { s[0] = 2; } if (b == c) { s[0] = 2; } if (a == c) { s[0] = 2; } if (a != b && a != c && b != c) { s[...
#include <iostream> using namespace std; int main() { int s[1]; int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { s[0] = 1; } else { if (a == b) { s[0] = 2; } if (b == c) { s[0] = 2; } if (a == c) { s[0] = 2; } if (a != b && a != c && b != c) { s...
[ "literal.number.change", "assignment.value.change" ]
1,489,240
1,489,244
u727656657
cpp
p03962
#include <iostream> #include <string> #include <vector> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a != b && b != c) { cout << 3 << endl; } else if (a == b && b == c) { cout << 1 << endl; } else { cout << 2 << endl; } return 0; } /* .  許せん!    ∧__∧  || (#`Д´ ) ||  ...
#include <iostream> #include <string> #include <vector> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a != b && b != c && a != c) { cout << 3 << endl; } else if (a == b && b == c) { cout << 1 << endl; } else { cout << 2 << endl; } return 0; } /* 死のマウス .  あり許せん!    ∧__∧...
[ "control_flow.branch.if.condition.change" ]
1,489,245
1,489,246
u742306624
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if (A == B == C) { cout << "1" << endl; } else if (A == B || A == C || B == C) { cout << "2" << endl; } else { cout << "3" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if (A == B && B == C) { cout << "1" << endl; } else if (A == B || A == C || B == C) { cout << "2" << endl; } else { cout << "3" << endl; } }
[ "control_flow.branch.if.condition.change" ]
1,489,247
1,489,248
u995485610
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int A[3]; cin >> A[0] >> A[1] >> A[2]; sort(A, A + 3); if (A[0] == A[1] && A[1] == A[2]) { cout << 3 << endl; } else if (A[0] == A[1] || A[1] == A[2]) { cout << 2 << endl; } else { cout << 1 << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int A[3]; cin >> A[0] >> A[1] >> A[2]; sort(A, A + 3); if (A[0] == A[1] && A[1] == A[2]) { cout << 1 << endl; } else if (A[0] == A[1] || A[1] == A[2]) { cout << 2 << endl; } else { cout << 3 << endl; } }
[ "literal.number.change", "io.output.change" ]
1,489,250
1,489,251
u121057299
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int count = 0; if (a == b) { count++; } else if (b == c) { count++; } else if (a == c) { count++; } if (count < 2) { cout << 3 - count << endl; } else { cout << 1 << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int count = 0; if (a == b) { count++; } if (b == c) { count++; } if (a == c) { count++; } if (count < 2) { cout << 3 - count << endl; } else { cout << 1 << endl; } }
[ "control_flow.branch.if.replace.add", "control_flow.branch.else_if.replace.remove" ]
1,489,252
1,489,253
u237572906
cpp
p03962
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int ans = 0; if (a != b) ans++; if (b != c) ans++; if (a != c) ans++; if (a == b == c) { ans++; } cout << ans; return 0; }
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int ans = 0; if (a != b) ans++; if (b != c) ans++; if (a != c) ans++; if (a == b && b == c) { ans = 1; } cout << ans; return 0; }
[ "control_flow.branch.if.condition.change" ]
1,489,254
1,489,255
u834488582
cpp
p03962
#include <bits/stdc++.h> using namespace std; using ll = long long; #define REP(i, a, b) for (int i = a, i##_len = (b); i < i##_len; ++i) int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << 1 << endl; else if (a == b || b == c) cout << 2 << endl; else cout << 3 << endl; ...
#include <bits/stdc++.h> using namespace std; using ll = long long; #define REP(i, a, b) for (int i = a, i##_len = (b); i < i##_len; ++i) int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << 1 << endl; else if (a == b || b == c || c == a) cout << 2 << endl; else cout << 3 <...
[ "control_flow.branch.if.condition.change" ]
1,489,260
1,489,261
u816645498
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { vector<int> color(3); int ans; ans = 0; for (int i = 0; i < 3; i++) { cin >> color.at(i); } if (color.at(0) != color.at(1)) { ans++; } if (color.at(1) != color.at(2)) { ans++; } if (color.at(1) != color.at(2)) { ans++; } ...
#include <bits/stdc++.h> using namespace std; int main() { vector<int> color(3); int ans; ans = 0; for (int i = 0; i < 3; i++) { cin >> color.at(i); } if (color.at(0) != color.at(1)) { ans++; } if (color.at(1) != color.at(2)) { ans++; } if (color.at(2) != color.at(0)) { ans++; } ...
[ "literal.number.change", "control_flow.branch.if.condition.change", "io.output.newline.add" ]
1,489,262
1,489,263
u344525140
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { vector<int> color(3); int ans; ans = 0; for (int i = 0; i < 3; i++) { cin >> color.at(i); } if (color.at(0) != color.at(1)) { ans++; } if (color.at(1) != color.at(2)) { ans++; } if (color.at(1) != color.at(2)) { ans++; } ...
#include <bits/stdc++.h> using namespace std; int main() { vector<int> color(3); int ans; ans = 0; for (int i = 0; i < 3; i++) { cin >> color.at(i); } if (color.at(0) != color.at(1)) { ans++; } if (color.at(1) != color.at(2)) { ans++; } if (color.at(2) != color.at(0)) { ans++; } ...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
1,489,264
1,489,263
u344525140
cpp
p03962
#include <algorithm> #include <cmath> #include <iostream> #include <stack> #include <string> #include <vector> using namespace std; using ll = long long; int main() { ios::sync_with_stdio(false); cin.tie(0); int a, b, c, ans; cin >> a >> b >> c; if (a == b == c) ans = 1; else if (a == b || b == c ||...
#include <algorithm> #include <cmath> #include <iostream> #include <stack> #include <string> #include <vector> using namespace std; using ll = long long; int main() { ios::sync_with_stdio(false); cin.tie(0); int a, b, c, ans = 0; cin >> a >> b >> c; if (a == b && b == c) ans = 1; else if (a == b || ...
[ "variable_declaration.value.change", "control_flow.branch.if.condition.change" ]
1,489,268
1,489,269
u337850788
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { char a, b, c; cin >> a >> b >> c; int ans = 1; if (b != a) { ans++; } if (c != a && b != c) { ans++; } cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int ans = 1; if (b != a) { ans++; } if (c != a && b != c) { ans++; } cout << ans << endl; return 0; }
[ "variable_declaration.type.primitive.change" ]
1,489,275
1,489,276
u646051775
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { vector<int> vec(3); for (int i = 0; i < 3; i++) { cin >> vec.at(i); } sort(vec.begin(), vec.end()); int count = 1; for (int i = 0; i < 2; i++) { if (vec.at(i) == vec.at(i + 1)) { count++; } } cout << count << endl; }
#include <bits/stdc++.h> using namespace std; int main() { vector<int> vec(3); for (int i = 0; i < 3; i++) { cin >> vec.at(i); } sort(vec.begin(), vec.end()); int count = 3; for (int i = 0; i < 2; i++) { if (vec.at(i) == vec.at(i + 1)) { count--; } } cout << count << endl; }
[ "literal.number.change", "variable_declaration.value.change" ]
1,489,279
1,489,280
u583302068
cpp
p03962
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int(i) = 0; (i) < (n); ++(i)) #define rrep(i, n) for (int(i) = (n)-1; (i) >= 0; --(i)) // Reversi rep #define nfor(i, a, b) for (int(i) = (a); (i) < (b); ++(i)) // Natural for #define rfor(i, a, b) for (int(i) = (b); (i) >= (a); --(i)) // Reversi ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int(i) = 0; (i) < (n); ++(i)) #define rrep(i, n) for (int(i) = (n)-1; (i) >= 0; --(i)) // Reversi rep #define nfor(i, a, b) for (int(i) = (a); (i) < (b); ++(i)) // Natural for #define rfor(i, a, b) for (int(i) = (b); (i) >= (a); --(i)) // Reversi ...
[ "control_flow.branch.if.condition.change" ]
1,489,288
1,489,289
u801513186
cpp
p03962
#include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <cstdlib> #include <cstring> #include <iomanip> #include <iostream> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <util...
#include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <cstdlib> #include <cstring> #include <iomanip> #include <iostream> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <util...
[ "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove" ]
1,489,290
1,489,291
u622585907
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b and b == c) { cout << 1; } else if (a != b and b != c) { cout << 3; } else { cout << 2; } }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b and b == c) { cout << 1; } else if (a != b and b != c and a != c) { cout << 3; } else { cout << 2; } }
[ "control_flow.branch.if.condition.change" ]
1,489,297
1,489,298
u026276318
cpp
p03962
#include <bits/stdc++.h> #define ll long long #define sz 100002 int a, b, test, i, j, ara[sz], c; using namespace std; int main() { ll int sum = 0, k = 1; cin >> a >> b >> c; if (a != b) k++; if (b != c) k++; cout << k << endl; }
#include <bits/stdc++.h> #define ll long long #define sz 100002 int a, b, test, i, j, ara[sz], c; using namespace std; int main() { ll int sum = 0, k = 1; cin >> a >> b >> c; if (a != b) k++; if (b != c && a != c) k++; cout << k << endl; }
[ "control_flow.branch.if.condition.change" ]
1,489,299
1,489,300
u308256845
cpp
p03962
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)n; i++) using namespace std; typedef long long ll; int main() { int a, b, c; cin >> a >> b >> c; if (a == b and b == c) cout << 1; if (a == b or b == c or a == c) cout << 2; else cout << 3; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)n; i++) using namespace std; typedef long long ll; int main() { int a, b, c; cin >> a >> b >> c; if (a == b and b == c) cout << 1; else if (a == b or b == c or a == c) cout << 2; else cout << 3; }
[ "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove" ]
1,489,301
1,489,302
u862412671
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int x[3]; cin >> x[0] >> x[1] >> x[2]; int ans = 0; for (int i = 0; i < 2; i++) { if (x[i] != x[i + 1]) ans += 1; } if (x[0] != x[2]) ans += 1; if (ans = 0) ans += 1; cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x[3]; cin >> x[0] >> x[1] >> x[2]; int ans = 0; for (int i = 0; i < 2; i++) { if (x[i] != x[i + 1]) ans += 1; } if (x[0] != x[2]) ans += 1; if (ans == 0) ans += 1; cout << ans << endl; return 0; }
[ "expression.operation.compare.replace.add", "assignment.replace.remove", "misc.typo" ]
1,489,313
1,489,314
u355545160
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b == c) { cout << 1 << endl; } else if (a == b || b == c || c == a) { cout << 2 << endl; } else { cout << 3 << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { cout << 1 << endl; } else if (a == b || b == c || c == a) { cout << 2 << endl; } else { cout << 3 << endl; } }
[ "control_flow.branch.if.condition.change" ]
1,489,315
1,489,316
u787241689
cpp
p03962
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int d = 3; if (a == b) { d--; } if (b == c) { d--; } cout << d << "\n"; }
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int d = 3; if (a == b) { d--; } if (a == c || b == c) { d--; } cout << d << "\n"; }
[ "control_flow.branch.if.condition.change" ]
1,489,320
1,489,321
u182800367
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int ans = 1; if (a = !b) ans++; if (a != c && b != c) ans++; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int ans = 1; if (a != b) ans++; if (a != c && b != c) ans++; cout << ans << endl; }
[ "control_flow.branch.if.condition.change", "expression.operation.unary.logical.remove" ]
1,489,324
1,489,325
u621582427
cpp
p03962
#include <cmath> #include <cstdio> #include <cstring> #include <iostream> using namespace std; int color[4]; int main() { memset(color, 0, sizeof(color)); cin >> color[0] >> color[1] >> color[2]; int cnt = 0; int ans = 0; for (int i = 0; i < 3; i++) { for (int j = i + 1; j < 3; j++) { if (color[i]...
#include <cmath> #include <cstdio> #include <cstring> #include <iostream> using namespace std; int color[4]; int main() { memset(color, 0, sizeof(color)); cin >> color[0] >> color[1] >> color[2]; int cnt = 0; int ans = 1; for (int i = 0; i < 3; i++) { for (int j = i + 1; j < 3; j++) { if (color[i]...
[ "literal.number.change", "variable_declaration.value.change" ]
1,489,330
1,489,331
u122839190
cpp
p03962
#include <bits/stdc++.h> using namespace std; template <class A> void pr(A a) { cout << (a) << endl; } int main(void) { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) pr('1'); else if (a == b || b == c) pr('2'); else pr('3'); }
#include <bits/stdc++.h> using namespace std; template <class A> void pr(A a) { cout << (a) << endl; } int main(void) { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) pr('1'); else if (a == b || b == c || c == a) pr('2'); else pr('3'); }
[ "control_flow.branch.if.condition.change" ]
1,489,332
1,489,333
u528720841
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { cout << 1 << endl; } else if (a == b || b == c || a == c) { cout << 2 << endl; } else { cout << 1 << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { cout << 1 << endl; } else if (a == b || b == c || a == c) { cout << 2 << endl; } else { cout << 3 << endl; } }
[ "literal.number.change", "io.output.change" ]
1,489,338
1,489,339
u022832318
cpp
p03962
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(x) (x).begin(), (x).end() int main() { cin.tie(0); ios::sync_with_stdio(false); // start int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << 1 << endl; else if (a == b || b == c...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(x) (x).begin(), (x).end() int main() { cin.tie(0); ios::sync_with_stdio(false); // start int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << 1 << endl; else if (a == b || b == c...
[ "control_flow.branch.if.condition.change" ]
1,489,340
1,489,341
u376234649
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; int count = 3; if (a == b) { count--; } if (b == c) { count--; } if (c == a) { count--; } if (count == 0) { cout << count++ << endl; } else { cout << count << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; int count = 3; if (a == b) { count--; } if (b == c) { count--; } if (c == a) { count--; } if (count == 0) { cout << "1" << endl; } else { cout << count << endl; } }
[]
1,489,342
1,489,343
u572559885
cpp
p03962
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b) { if (b == c) cout << 3 << endl; else cout << 2 << endl; } else if (a == c) { if (a != b) cout << 2 << endl; } else if (b == c) { if (a != b) cout << 2 << endl; ...
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b) { if (b == c) cout << 1 << endl; else cout << 2 << endl; } else if (a == c) { if (a != b) cout << 2 << endl; } else if (b == c) { if (a != b) cout << 2 << endl; ...
[ "literal.number.change", "io.output.change" ]
1,489,344
1,489,345
u459965464
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << 1 << endl; else if (a == b || b == c) cout << 2 << endl; else cout << 3 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << 1 << endl; else if (a == b || b == c || a == c) cout << 2 << endl; else cout << 3 << endl; }
[ "control_flow.branch.if.condition.change" ]
1,489,346
1,489,347
u735499035
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b == c) { cout << 1 << endl; } else if (a != b && a != c && b != c) { cout << 3 << endl; } else { cout << 2 << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) { cout << 1 << endl; } else if (a != b && a != c && b != c) { cout << 3 << endl; } else { cout << 2 << endl; } }
[ "control_flow.branch.if.condition.change" ]
1,489,348
1,489,349
u515131769
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b == c) cout << "1"; else if (a != b && b != c && c != a) cout << "3"; else cout << "2" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << "1"; else if (a != b && b != c && c != a) cout << "3"; else cout << "2" << endl; return 0; }
[ "control_flow.branch.if.condition.change" ]
1,489,365
1,489,366
u950135846
cpp
p03962
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b == c) cout << "1"; else if (a != b & b != c && c != a) cout << "3"; else cout << "2" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b && b == c) cout << "1"; else if (a != b && b != c && c != a) cout << "3"; else cout << "2" << endl; return 0; }
[ "control_flow.branch.if.condition.change" ]
1,489,367
1,489,366
u950135846
cpp