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;
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;
}
| #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;
}
| [
"control_flow.branch.if.condition.change"
] | 1,489,843 | 1,489,844 | u774261627 | cpp |
p03962 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d = 3;
cin >> a >> b >> c;
if (a == b)
d--;
else if (c == b)
d--;
else if (c == a)
d--;
else
d = d;
cout << d;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c, d = 3;
cin >> a >> b >> c;
if (a == b)
d--;
if (c == b)
d--;
else if (c == a)
d--;
cout << d;
return 0;
}
| [
"control_flow.branch.if.replace.add",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.else.remove"
] | 1,489,847 | 1,489,848 | u468811760 | cpp |
p03962 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d = 3;
cin >> a >> b >> c;
if (a == b)
d--;
else if (c == b)
d--;
else if (c == a)
d--;
cout << d;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c, d = 3;
cin >> a >> b >> c;
if (a == b)
d--;
if (c == b)
d--;
else if (c == a)
d--;
cout << d;
return 0;
}
| [
"control_flow.branch.if.replace.add",
"control_flow.branch.else_if.replace.remove"
] | 1,489,849 | 1,489,848 | u468811760 | cpp |
p03962 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
static const int MAX = 200000;
int main() {
int a, b, c;
cin >> a >> b >> c;
int cnt = 0;
if (a == b == c)
cnt = 1;
else if (a == b || b == c || c == a)
cnt = 2;
else
cnt = 3;
cout << cnt << endl;
return 0;
} | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
static const int MAX = 200000;
int main() {
int a, b, c;
cin >> a >> b >> c;
int cnt = 0;
if (a == b && b == c)
cnt = 1;
else if (a == b || b == c || c == a)
cnt = 2;
else
cnt = 3;
cout << cnt << endl;
return ... | [
"control_flow.branch.if.condition.change"
] | 1,489,852 | 1,489,853 | u461833298 | cpp |
p03962 | #include <bits/stdc++.h>
#define repd(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, n) repd(i, 0, n)
typedef long long ll;
using namespace std;
const int MOD = 1000000007;
const int INF = 1010000000;
const double EPS = 1e-10;
int h, w, x;
char s[1000][1000];
bool visited[1000][1000];
pair<int, int> start, go... | #include <bits/stdc++.h>
#define repd(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, n) repd(i, 0, n)
typedef long long ll;
using namespace std;
const int MOD = 1000000007;
const int INF = 1010000000;
const double EPS = 1e-10;
int h, w, x;
char s[1000][1000];
bool visited[1000][1000];
pair<int, int> start, go... | [
"control_flow.branch.if.condition.change"
] | 1,489,856 | 1,489,857 | u317754719 | 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,858 | 1,489,859 | u577552796 | cpp |
p03962 | #include <iostream>
using namespace std;
int main(void) {
int a, b, c;
cin >> a >> b >> c;
int res = 1;
if (b != a)
res++;
if (c != b || c != a)
res++;
cout << res << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main(void) {
int a, b, c;
cin >> a >> b >> c;
int res = 1;
if (b != a)
res++;
if (c != b && c != a)
res++;
cout << res << endl;
return 0;
}
| [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 1,489,862 | 1,489,863 | u595276801 | cpp |
p03962 | #include <iostream>
using namespace std;
int main(void) {
int a, b, c;
cin >> a >> b >> c;
int res = 1;
if (b != a)
res++;
if (c != b || c != b)
res++;
cout << res << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main(void) {
int a, b, c;
cin >> a >> b >> c;
int res = 1;
if (b != a)
res++;
if (c != b && c != a)
res++;
cout << res << endl;
return 0;
}
| [
"misc.opposites",
"control_flow.branch.if.condition.change",
"identifier.change"
] | 1,489,864 | 1,489,863 | u595276801 | cpp |
p03962 | #include <iostream>
using namespace std;
int main(void) {
int a, b, c;
cin >> a >> b >> c;
int res = 1;
if (b != a)
res++;
if (c != b && c != b)
res++;
cout << res << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main(void) {
int a, b, c;
cin >> a >> b >> c;
int res = 1;
if (b != a)
res++;
if (c != b && c != a)
res++;
cout << res << endl;
return 0;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,489,865 | 1,489,863 | u595276801 | cpp |
p03962 | #include <algorithm>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;
int main(int argc, char *argv[]) {
int a, b, c;
cin >> a >> b >> c;
if (a == b && b == c)
cout << '1';
else if (a != b && b != c)
cout << '3';
else
cout << '2';
cout << endl;... | #include <algorithm>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;
int main(int argc, char *argv[]) {
int a, b, c;
cin >> a >> b >> c;
if (a == b && b == c)
cout << '1';
else if (a != b && b != c && a != c)
cout << '3';
else
cout << '2';
cou... | [
"control_flow.branch.if.condition.change"
] | 1,489,866 | 1,489,867 | u202813867 | cpp |
p03962 | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a != b && a != b && b != c) {
cout << 3 << endl;
} else if (a == b && b == c) {
cout << 1 << endl;
} else {
cout << 2 << endl;
}
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 << endl;
} else if (a == b && b == c) {
cout << 1 << endl;
} else {
cout << 2 << endl;
}
return 0;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,489,870 | 1,489,871 | u883104091 | cpp |
p03962 | #include <iostream>
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>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a != b && a != c && b != 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,872 | 1,489,871 | u883104091 | cpp |
p03962 | #include <stdio.h>
int main() {
long int a, b, c;
scanf("%ld %ld %ld", &a, &b, &c);
if (a == b && b == c) {
printf("0");
} else {
if (a == b || b == c || a == c) {
printf("2");
} else {
printf("3");
}
}
return 0;
} | #include <stdio.h>
int main() {
long int a, b, c;
scanf("%ld %ld %ld", &a, &b, &c);
if (a == b && b == c) {
printf("1");
} else {
if (a == b || b == c || a == c) {
printf("2");
} else {
printf("3");
}
}
return 0;
} | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 1,489,873 | 1,489,874 | u513506770 | cpp |
p03962 | #include <bits/stdc++.h>
using namespace std;
#define int lint
typedef long long lint;
typedef pair<int, int> P;
const int INF = (int)1e9;
const int MOD = (int)1e9 + 7;
const double EPS = (double)1e-10;
struct Accelerate_Cin {
Accelerate_Cin() {
cin.tie(0);
ios::sync_with_stdio(0);
cout << fixed << setpre... | #include <bits/stdc++.h>
using namespace std;
#define int lint
typedef long long lint;
typedef pair<int, int> P;
const int INF = (int)1e9;
const int MOD = (int)1e9 + 7;
const double EPS = (double)1e-10;
struct Accelerate_Cin {
Accelerate_Cin() {
cin.tie(0);
ios::sync_with_stdio(0);
cout << fixed << setpre... | [
"control_flow.branch.if.condition.change"
] | 1,489,876 | 1,489,877 | u876978301 | 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;
return 0;
}
if (a == b || b == c) {
cout << 2 << endl;
return 0;
}
cout << 3 << 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;
return 0;
}
if (a == b || b == c || c == a) {
cout << 2 << endl;
return 0;
}
cout << 3 << endl;
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 1,489,880 | 1,489,881 | u357265888 | 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 || c == a)
cout << 2 << endl;
else
cout << 3 << endl;
} | [
"control_flow.branch.if.condition.change"
] | 1,489,886 | 1,489,887 | u884163918 | 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 && c != a)
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 && c != a)
cout << 3 << endl;
else
cout << 2 << endl;
} | [
"literal.number.change",
"io.output.change"
] | 1,489,890 | 1,489,891 | u892438699 | cpp |
p03962 | #include <algorithm>
#include <bits/stdc++.h>
#include <bits/stdc++.h>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <utility>
#include <vector>
... | #include <algorithm>
#include <bits/stdc++.h>
#include <bits/stdc++.h>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <utility>
#include <vector>
... | [
"literal.number.change",
"io.output.change"
] | 1,489,892 | 1,489,893 | u789417951 | cpp |
p03962 | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a == b && a == c) {
cout << 1;
}
if ((a == b && a != c) || (a == c && a != b) || (c == 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) || (a == c && a != b) || (c == b && a != c)) {
cout << 2;
} else {
cout << 3;
}
return 0;
} | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 1,489,894 | 1,489,895 | u289588851 | cpp |
p03962 | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a == b && a == c) {
cout << 1;
}
if ((a == b || a != c) || (a == c || a != b) || (c == 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) || (a == c && a != b) || (c == b && a != c)) {
cout << 2;
} else {
cout << 3;
}
return 0;
} | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove",
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 1,489,897 | 1,489,895 | u289588851 | 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";
if ((a != b && b == c) || (a == b && b != c) || (b == c && c != a))
cout << "2";
if (a != b && b != c && c != a)
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";
if ((a != b && b == c) || (a == b && b != c) || (a == c && c != b))
cout << "2";
if (a != b && b != c && c != a)
cout << "3";
return 0;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,489,898 | 1,489,899 | u304840478 | 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";
if ((a != b && b == c) || (a == b && b != c) || (a == b && c != a))
cout << "2";
if (a != b && b != c && c != a)
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";
if ((a != b && b == c) || (a == b && b != c) || (a == c && c != b))
cout << "2";
if (a != b && b != c && c != a)
cout << "3";
return 0;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,489,900 | 1,489,899 | u304840478 | 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";
if ((a != b && b == c) || (a == b && b != c) || (a == b && b != c && c != a))
cout << "2";
if (a != b && b != c && c != a)
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";
if ((a != b && b == c) || (a == b && b != c) || (a == c && c != b))
cout << "2";
if (a != b && b != c && c != a)
cout << "3";
return 0;
}
| [
"expression.operation.binary.remove",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,489,901 | 1,489,899 | u304840478 | cpp |
p03962 | #include <iostream>
using namespace std;
int main() {
int a, b, c, n = 0;
cin >> a >> b >> c;
if (a == b && b == c)
cout << 0;
else if (a == b || b == c || a == c)
cout << 2;
else
cout << 3;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, n = 0;
cin >> a >> b >> c;
if (a == b && b == c)
cout << 1;
else if (a == b || b == c || a == c)
cout << 2;
else
cout << 3;
return 0;
} | [
"literal.number.change",
"io.output.change"
] | 1,489,911 | 1,489,912 | u516659282 | cpp |
p03962 | #include <iostream>
using namespace std;
int main() {
int a, b, c, n = 0;
cin >> a >> b >> c;
if (a == b && b == c)
cout << 0;
else if (a == b || b == c || a == c)
cout << 1;
else
cout << 3;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, n = 0;
cin >> a >> b >> c;
if (a == b && b == c)
cout << 1;
else if (a == b || b == c || a == c)
cout << 2;
else
cout << 3;
return 0;
} | [
"literal.number.change",
"io.output.change"
] | 1,489,913 | 1,489,912 | u516659282 | cpp |
p03962 | #include <algorithm>
#include <cmath>
#include <deque>
#include <iostream>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <vector>
using ll = long long;
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 || ... | #include <algorithm>
#include <cmath>
#include <deque>
#include <iostream>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <vector>
using ll = long long;
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 || ... | [
"literal.number.change",
"io.output.change"
] | 1,489,914 | 1,489,915 | u318785595 | cpp |
p03962 | #include <iostream>
main() {
int A, B, C;
std::cin >> A >> B >> C;
std::cout << (A == B && A == C ? 1 : A == B || A == C ? 2 : 3);
} | #include <iostream>
main() {
int A, B, C;
std::cin >> A >> B >> C;
std::cout << (A == B && A == C ? 1 : A == B || B == C || A == C ? 2 : 3);
} | [
"expression.operation.binary.add"
] | 1,489,920 | 1,489,921 | u031178961 | cpp |
p03962 | #include <algorithm>
#include <climits>
#include <cmath>
#include <iostream>
#include <map>
#include <string>
#include <vector>
#define F first
#define S second
#define vsort(v) sort((v).begin(), (v).end())
#define vrev(v) reverse((v).begin(), (v).end())
// INT_MAX
// INT_MIN
// LLONG_MAX
// LLONG_MIN
// DBL_MIN
// D... | #include <algorithm>
#include <climits>
#include <cmath>
#include <iostream>
#include <map>
#include <string>
#include <vector>
#define F first
#define S second
#define vsort(v) sort((v).begin(), (v).end())
#define vrev(v) reverse((v).begin(), (v).end())
// INT_MAX
// INT_MIN
// LLONG_MAX
// LLONG_MIN
// DBL_MIN
// D... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 1,489,922 | 1,489,923 | u493080913 | cpp |
p03962 | #include <algorithm>
#include <climits>
#include <cmath>
#include <iostream>
#include <map>
#include <string>
#include <vector>
#define F first
#define S second
#define vsort(v) sort((v).begin(), (v).end())
#define vrev(v) reverse((v).begin(), (v).end())
// INT_MAX
// INT_MIN
// LLONG_MAX
// LLONG_MIN
// DBL_MIN
// D... | #include <algorithm>
#include <climits>
#include <cmath>
#include <iostream>
#include <map>
#include <string>
#include <vector>
#define F first
#define S second
#define vsort(v) sort((v).begin(), (v).end())
#define vrev(v) reverse((v).begin(), (v).end())
// INT_MAX
// INT_MIN
// LLONG_MAX
// LLONG_MIN
// DBL_MIN
// D... | [
"variable_declaration.type.primitive.change",
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 1,489,924 | 1,489,923 | u493080913 | 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 || a == c)
cout << 2 << endl;
else
cout << 3 << 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 || a == c)
cout << 2 << endl;
else
cout << 3 << endl;
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 1,489,929 | 1,489,930 | u891178744 | cpp |
p03962 | #include <algorithm>
#include <assert.h>
#include <cassert>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <ctype.h>
#include <errno.h>
#include <float.h>
#include <iostream>
#include <map>
#include <math.h>
#include <memory.h>
#include <memory>
#inc... | #include <algorithm>
#include <assert.h>
#include <cassert>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <ctype.h>
#include <errno.h>
#include <float.h>
#include <iostream>
#include <map>
#include <math.h>
#include <memory.h>
#include <memory>
#inc... | [
"control_flow.branch.if.condition.change"
] | 1,489,931 | 1,489,932 | u957239743 | cpp |
p03962 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int p[3];
cin >> p[0] >> p[1] >> p[2];
if (p[0] == p[1] == p[2])
cout << 1 << endl;
else if (p[0] == p[1] || p[0] == p[2] || p[1] == p[2])
cout << 2 << endl;
else
cout << 3 << endl;
return 0;
}
| #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int p[3];
cin >> p[0] >> p[1] >> p[2];
if (p[0] == p[1] && p[1] == p[2])
cout << 1 << endl;
else if (p[0] == p[1] || p[0] == p[2] || p[1] == p[2])
cout << 2 << endl;
else
cout << 3 << endl;
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 1,489,933 | 1,489,934 | u336011173 | cpp |
p03962 | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, h;
cin >> a >> b >> h;
if (a == b) {
if (a == h)
cout << '1 ' << endl;
else
cout << '2' << endl;
} else if (a == b)
cout << '2' << endl;
else if (h == b)
cout ... | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, h;
cin >> a >> b >> h;
if (a == b) {
if (a == h)
cout << '1' << endl;
else
cout << '2' << endl;
} else if (a == b)
cout << '2' << endl;
else if (h == b)
cout <... | [
"literal.string.change",
"io.output.change"
] | 1,489,935 | 1,489,936 | u154672915 | cpp |
p03962 | #include <iostream>
#include <string>
using namespace std;
int a, b, c;
int main() {
cin >> a >> b >> c;
if (a == b && b == c)
cout << 1 << endl;
else if (a != b && a != b && b != c)
cout << 3 << endl;
else
cout << 2 << endl;
return 0;
}
| #include <iostream>
#include <string>
using namespace std;
int a, b, c;
int main() {
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;
return 0;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,489,939 | 1,489,940 | u971863719 | cpp |
p03962 | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int x = (a != b) + (b != c) + (c != a) + (a == b || b == c);
cout << x;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int x = (a != b) + (b != c) + (c != a) + (a == b && b == c);
cout << x;
} | [
"misc.opposites",
"expression.operation.binary.change"
] | 1,489,943 | 1,489,944 | u915020369 | cpp |
p03962 | #include <algorithm>
#include <iostream>
#include <string>
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) {
cout << 3;
} else {
cout << 2;
}
} | #include <algorithm>
#include <iostream>
#include <string>
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;
}
} | [
"control_flow.branch.if.condition.change"
] | 1,489,953 | 1,489,954 | u226951654 | cpp |
p03962 | #include <iostream>
using namespace std;
int main(void) {
// Your code here!
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 << 1 << endl;
} | #include <iostream>
using namespace std;
int main(void) {
// Your code here!
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;
} | [
"literal.number.change",
"io.output.change"
] | 1,489,963 | 1,489,964 | u833064541 | cpp |
p03962 | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
int a, b, c, res = 3;
cin >> a >> b >> c;
if (a == b || b == c)
res = 2;
if (a == b && b == c)
res = 1;
cout << res << endl;
} | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
int a, b, c, res = 3;
cin >> a >> b >> c;
if (a == b || b == c || a == c)
res = 2;
if (a == b && b == c)
res = 1;
cout << res << endl;
} | [
"control_flow.branch.if.condition.change"
] | 1,489,970 | 1,489,971 | u166736517 | cpp |
p03962 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a == b || b == c || a == c) {
cout << "1" << endl;
} else if (a != b || b != c || c != a) {
cout << "3" << endl;
} else {
cout << "2" << endl;
}
return 0;
}
| #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a == b && b == c && a == c) {
cout << "1" << endl;
} else if (a != b && b != c && c != a) {
cout << "3" << endl;
} else {
cout << "2" << endl;
}
return 0;
}
| [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 1,489,972 | 1,489,973 | u876335718 | 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 && b != c) || (a == c && c != b) || (b == c && c != a)) {
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 && b == c) {
cout << 1 << endl;
} else if ((a == b && b != c) || (a == c && c != b) || (b == c && c != a)) {
cout << 2 << endl;
} else {
cout << 3 << endl;
}
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 1,489,974 | 1,489,975 | u666121874 | cpp |
p03962 | #include <iostream>
using namespace std;
int main(void) {
int a, b, c;
cin >> a >> b >> c;
if (a == b || b == c || c == a) {
if (a == b && b == c) {
cout << 3 << endl;
} else {
cout << 2 << endl;
}
} else {
cout << 1 << endl;
}
} | #include <iostream>
using namespace std;
int main(void) {
int a, b, c;
cin >> a >> b >> c;
if (a == b || b == c || c == a) {
if (a == b && b == c) {
cout << 1 << endl;
} else {
cout << 2 << endl;
}
} else {
cout << 3 << endl;
}
} | [
"literal.number.change",
"io.output.change"
] | 1,489,978 | 1,489,979 | u949657644 | cpp |
p03962 | #include <iostream>
using namespace std;
int main() {
int a, b, c = 0;
cin >> a >> b >> c;
int shu = 0;
if ((a == b) && (b == c) && (a == c)) {
shu = 1;
}
if ((a == b && b != c) || (a == c && c != b) || (b == c && c != a)) {
shu = 2;
} else {
shu = 3;
}
cout << shu << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c = 0;
cin >> a >> b >> c;
int shu = 0;
if ((a == b) && (b == c) && (a == c)) {
shu = 1;
} else if ((a == b && b != c) || (a == c && c != b) || (b == c && c != a)) {
shu = 2;
} else {
shu = 3;
}
cout << shu << endl;
return 0;... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 1,489,980 | 1,489,981 | u451417461 | cpp |
p03962 | #include <iostream>
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 <iostream>
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,982 | 1,489,983 | u281384315 | cpp |
p03962 | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a == b && a == c) {
cout << 1 << endl;
}
if (a != b && b != c) {
cout << 3 << endl;
} else {
cout << 2 << endl;
}
} | #include <iostream>
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.else_if.replace.add",
"control_flow.branch.if.replace.remove",
"control_flow.branch.if.condition.change"
] | 1,489,986 | 1,489,987 | u610408057 | cpp |
p03962 | #include <iostream>
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;
}
} | #include <iostream>
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;
}
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,489,988 | 1,489,987 | u610408057 | cpp |
p03962 | #include <bits/stdc++.h>
#define o(output) cout << output << endl
using namespace std;
string s, t, u;
int a, b, c, d;
char A, B;
priority_queue<int, vector<int>, greater<int>> small;
int main() {
int ans = 3;
cin >> a >> b >> c;
if (a == b)
ans--;
if (a == c)
ans--;
if (b == c)
ans--;
if (a... | #include <bits/stdc++.h>
#define o(output) cout << output << endl
using namespace std;
string s, t, u;
int a, b, c, d;
char A, B;
priority_queue<int, vector<int>, greater<int>> small;
int main() {
int ans = 3;
cin >> a >> b >> c;
if (a == b)
ans--;
if (a == c)
ans--;
if (b == c)
ans--;
if (a... | [
"call.arguments.change"
] | 1,489,990 | 1,489,991 | u130196064 | cpp |
p03962 | #include <iostream>
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 <iostream>
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,992 | 1,489,993 | u864455460 | cpp |
p03962 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll a, b, c, ans;
cin >> a >> b >> c;
if (a == b && b == c) {
ans = 1;
}
if (a != b && b != c && c != a) {
ans = 3;
} else
ans = 2;
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll a, b, c, ans = 0;
cin >> a >> b >> c;
if (a == b && b == c) {
ans = 1;
} else if (a != b && b != c && c != a) {
ans = 3;
} else
ans = 2;
cout << ans << endl;
return 0;
} | [
"variable_declaration.value.change",
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 1,489,996 | 1,489,995 | u212567766 | cpp |
p03962 | #include <algorithm>
#include <cctype>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
#define REP(n) for (int i = 0; i < n; i++)
#define LLREP(n) for (long long int i = 0; i < n; i++)
typedef long long int ll;
using namespace std;
#define MAX_A 1000000007
int main() {
int a, b, c;
cin... | #include <algorithm>
#include <cctype>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
#define REP(n) for (int i = 0; i < n; i++)
#define LLREP(n) for (long long int i = 0; i < n; i++)
typedef long long int ll;
using namespace std;
#define MAX_A 1000000007
int main() {
int a, b, c;
cin... | [
"control_flow.branch.if.condition.change",
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 1,490,003 | 1,490,004 | u504142483 | cpp |
p03962 | #include <iostream>
using namespace std;
int main() {
int a[1000], i, j, N, flag = 0;
N = 3;
for (i = 0; i < N; i++) {
cin >> a[i];
flag++;
for (j = 0; j < i; j++) {
if (a[i] == a[j]) {
flag--;
}
}
}
cout << flag << endl;
} | #include <iostream>
using namespace std;
int main() {
int a[1000], i, j, N, flag = 0;
N = 3;
for (i = 0; i < N; i++) {
cin >> a[i];
flag++;
for (j = 0; j < i; j++) {
if (a[i] == a[j]) {
flag--;
j = i;
}
}
}
cout << flag << endl;
} | [
"assignment.add"
] | 1,490,007 | 1,490,008 | u451625046 | cpp |
p03962 | #include <algorithm>
#include <climits>
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <string>
using namespace std;
int INF = 1 << 29;
const int mod = 1000000007;
// memset(a,0,sizeof(a)); →全部0にする
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a == b || b == c || c == a) {
if (a ==... | #include <algorithm>
#include <climits>
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <string>
using namespace std;
int INF = 1 << 29;
const int mod = 1000000007;
// memset(a,0,sizeof(a)); →全部0にする
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a == b || b == c || c == a) {
if (a ==... | [
"control_flow.branch.if.condition.change"
] | 1,490,013 | 1,490,014 | u399527088 | cpp |
p03962 | #include <cstdio>
int main(void) {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a == b == c)
printf("1\n");
else if (a == b || b == c || c == a)
printf("2\n");
else
printf("3\n");
return 0;
}
| #include <cstdio>
int main(void) {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a == b && b == c)
printf("1\n");
else if (a == b || b == c || c == a)
printf("2\n");
else
printf("3\n");
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 1,490,015 | 1,490,016 | u229842440 | cpp |
p03962 | // finish date: 2018/01/10
#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <iostream>
#include <map>
#include <stack>
#include <vector>
using namespace std;
#define FOR(i, a, b) for (int i = a; i < b; i++)
#define rep(i, n) FOR(i, 0, n)
#define ll long long
bool isExist(char c, st... | // finish date: 2018/01/10
#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <iostream>
#include <map>
#include <stack>
#include <vector>
using namespace std;
#define FOR(i, a, b) for (int i = a; i < b; i++)
#define rep(i, n) FOR(i, 0, n)
#define ll long long
bool isExist(char c, st... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 1,490,017 | 1,490,018 | u285660186 | cpp |
p03962 | // finish date: 2018/01/10
#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <iostream>
#include <map>
#include <stack>
#include <vector>
using namespace std;
#define FOR(i, a, b) for (int i = a; i < b; i++)
#define rep(i, n) FOR(i, 0, n)
#define ll long long
bool isExist(char c, st... | // finish date: 2018/01/10
#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <iostream>
#include <map>
#include <stack>
#include <vector>
using namespace std;
#define FOR(i, a, b) for (int i = a; i < b; i++)
#define rep(i, n) FOR(i, 0, n)
#define ll long long
bool isExist(char c, st... | [
"control_flow.branch.if.condition.change"
] | 1,490,019 | 1,490,018 | u285660186 | cpp |
p03962 | #include <iostream>
#include <string>
int main() {
int N, K, X, Y;
std::cin >> N >> K >> X;
if (N == K && K == X)
std::cout << 1 << std::endl;
else if (N != K && K != X)
std::cout << 3 << std::endl;
else
std::cout << 2 << std::endl;
} | #include <iostream>
#include <string>
int main() {
int N, K, X, Y;
std::cin >> N >> K >> X;
if (N == K && K == X)
std::cout << 1 << std::endl;
else if (N != K && K != X && X != N)
std::cout << 3 << std::endl;
else
std::cout << 2 << std::endl;
} | [
"control_flow.branch.if.condition.change"
] | 1,490,020 | 1,490,021 | u517700219 | cpp |
p03962 | #include <bits/stdc++.h>
#define rep(i, a, n) for (int i = a; i < n; i++)
#define per(i, n, a) for (int i = n - 1; i >= a; i--)
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;
} e... | #include <bits/stdc++.h>
#define rep(i, a, n) for (int i = a; i < n; i++)
#define per(i, n, a) for (int i = n - 1; i >= a; i--)
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;
} e... | [
"literal.number.change",
"io.output.change"
] | 1,490,028 | 1,490,029 | u974239829 | cpp |
p03962 | #include <algorithm>
#include <iostream>
#include <string>
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 if (a == b && b != c)
cout << 2 << endl;
else if (a == c && b != c)
cout <... | #include <algorithm>
#include <iostream>
#include <string>
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 if (a == b && b != c)
cout << 2 << endl;
else if (a == c && b != c)
... | [
"control_flow.branch.if.condition.change"
] | 1,490,030 | 1,490,031 | u226223646 | cpp |
p03962 | #include <stdio.h>
int main(void) {
int a, b, c, count = 0;
scanf("%d %d %d", &a, &b, &c);
if (a != b) {
count++;
}
if (a != c && b != c) {
count++;
}
printf("%d\n", count);
return 0;
} | #include <stdio.h>
int main(void) {
int a, b, c, count = 1;
scanf("%d %d %d", &a, &b, &c);
if (a != b) {
count++;
}
if (a != c && b != c) {
count++;
}
printf("%d\n", count);
return 0;
} | [
"literal.number.change",
"variable_declaration.value.change"
] | 1,490,034 | 1,490,035 | u373291210 | cpp |
p03962 | #include <iostream>
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 <iostream>
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;
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 1,490,037 | 1,490,038 | u012774664 | cpp |
p03962 | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a == b && b == c)
cout << 1 << endl;
if (a != b && b != c)
cout << 3 << endl;
else
cout << 2 << endl;
return 0;
} | #include <iostream>
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;
return 0;
} | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove",
"control_flow.branch.if.condition.change"
] | 1,490,039 | 1,490,038 | u012774664 | cpp |
p03962 | #include <bits/stdc++.h>
using namespace std;
#define DEBUG(x) cerr << #x << ": " << x << endl;
#define ll long long
int main() {
set<int> s;
int a, b, c;
cin >> a >> b >> c;
s.insert(a);
s.insert(b);
s.insert(b);
cout << s.size() + 1 << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define DEBUG(x) cerr << #x << ": " << x << endl;
#define ll long long
int main() {
set<int> s;
int a, b, c;
cin >> a >> b >> c;
s.insert(a);
s.insert(b);
s.insert(c);
cout << s.size() << endl;
return 0;
} | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.remove"
] | 1,490,040 | 1,490,041 | u219873012 | cpp |
p03963 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <string>
#include <utility>
#include <vector>
#define pb push_back
#define mp make_pair
using namespace std;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef unsigned long long ull;
typedef long long l... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <string>
#include <utility>
#include <vector>
#define pb push_back
#define mp make_pair
using namespace std;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef unsigned long long ull;
typedef long long l... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 1,490,048 | 1,490,049 | u505018470 | cpp |
p03963 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
cout << K * pow(K - 1, N - 1) << endl;
} | #include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
cout << long(K * pow(K - 1, N - 1)) << endl;
} | [
"call.add",
"call.arguments.change"
] | 1,490,052 | 1,490,053 | u358765098 | cpp |
p03963 | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
cout << round(K * pow(K - 1, N - 1)) << '\n';
}
| #include <cmath>
#include <iostream>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
cout << (int)round(K * pow(K - 1, N - 1)) << '\n';
}
| [
"type_conversion.add"
] | 1,490,054 | 1,490,055 | u445256674 | cpp |
p03963 | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
cout << K * round(pow(K - 1, N - 1)) << '\n';
}
| #include <cmath>
#include <iostream>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
cout << (int)round(K * pow(K - 1, N - 1)) << '\n';
}
| [
"expression.operation.binary.add"
] | 1,490,056 | 1,490,055 | u445256674 | cpp |
p03963 | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
cout << K * pow(K - 1, N - 1) << '\n';
}
| #include <cmath>
#include <iostream>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
cout << (int)round(K * pow(K - 1, N - 1)) << '\n';
}
| [
"call.arguments.change"
] | 1,490,057 | 1,490,055 | u445256674 | cpp |
p03963 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
int n, k;
cin >> n >> k;
cout << k * pow(k - 1, n - 1) << endl;
return 0;
} | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
int n, k;
cin >> n >> k;
cout << k * (int)pow(k - 1, n - 1) << endl;
return 0;
}
| [
"type_conversion.add"
] | 1,490,064 | 1,490,065 | u534923072 | cpp |
p03963 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n, k;
cin >> n >> k;
long long answer = k;
for (int i = 0; i < n; i++) {
answer *= (k - 1);
}
cout << answer;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n, k;
cin >> n >> k;
long long answer = k;
for (int i = 1; i < n; i++) {
answer *= (k - 1);
}
cout << answer;
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 1,490,072 | 1,490,073 | u004676431 | cpp |
p03963 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <map>
#include <new>
#include <queue>
#include <set>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
cout ... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <map>
#include <new>
#include <queue>
#include <set>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
cout ... | [
"call.add",
"call.arguments.change"
] | 1,490,102 | 1,490,103 | u638221831 | cpp |
p03963 | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
cout << K * pow(K - 1, N - 1) << endl;
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
cout << int(K * pow(K - 1, N - 1)) << endl;
} | [
"call.add",
"call.arguments.change"
] | 1,490,104 | 1,490,105 | u580363327 | cpp |
p03963 | #include <bits/stdc++.h>
using namespace std;
#define watch(x) cout << (#x) << " is " << (x) << '\n'
#define rep(i, a, n) for (int i = a; i < n; i++)
#define per(i, a, n) for (int i = n - 1; i >= a; i--)
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(), (x).end()
#define fi first
#define se second
#... | #include <bits/stdc++.h>
using namespace std;
#define watch(x) cout << (#x) << " is " << (x) << '\n'
#define rep(i, a, n) for (int i = a; i < n; i++)
#define per(i, a, n) for (int i = n - 1; i >= a; i--)
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(), (x).end()
#define fi first
#define se second
#... | [
"variable_declaration.value.change",
"identifier.replace.add",
"literal.replace.remove",
"literal.number.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"assignment.value.change",
"identifier.replace.remove",
"literal.replace.add",
"expression.operation.binary.change"... | 1,490,106 | 1,490,107 | u080529099 | cpp |
p03963 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ll a, b, c;
cin >> a >> b;
c = (b - 1) * (a - 1);
if (a == 1) {
cout << b << endl;
return 0;
} else {
cout << c * b << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ll a, b, c;
cin >> a >> b;
c = pow(b - 1, a - 1);
if (a == 1) {
cout << b << endl;
return 0;
} else {
cout << c * b << endl;
}
return 0;
} | [
"call.add",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 1,490,110 | 1,490,111 | u089230684 | cpp |
p03963 | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
long long sum = K;
for (int i = 0; i < N - 1; i++) {
sum *= K - 1;
cout << sum << endl;
return 0;
}
}
| #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
long long sum = K;
for (int i = 0; i < N - 1; i++) {
sum *= K - 1;
}
cout << sum << endl;
return 0;
}
| [] | 1,490,116 | 1,490,117 | u645451083 | cpp |
p03963 | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
long long sum = K;
for (int i = 0; i < N - 1; i++) {
sum = sum * K - 1;
}
cout << sum << endl;
return 0;
} | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
long long sum = K;
for (int i = 0; i < N - 1; i++) {
sum *= K - 1;
}
cout << sum << endl;
return 0;
}
| [
"assignment.change",
"assignment.compound.arithmetic.replace.add",
"expression.operator.arithmetic.replace.remove",
"expression.operation.binary.change"
] | 1,490,118 | 1,490,117 | u645451083 | cpp |
p03963 | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
long long sum = K;
for (int i = 0; i < N - 1; i++) {
sum = sum * K - 1;
}
cout << sum << endl;
return 0;
} | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
long long sum = K;
for (int i = 0; i < N - 1; i++)
sum *= K - 1;
cout << sum << endl;
return 0;
}
| [
"assignment.change",
"assignment.compound.arithmetic.replace.add",
"expression.operator.arithmetic.replace.remove",
"expression.operation.binary.change"
] | 1,490,118 | 1,490,119 | u645451083 | cpp |
p03963 | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
static const int INF = 1e9 + 7;
// 型定義
typedef long long ll;
typedef pair<ll, ll> P;
#define rep(i, n) for (int i = 0; i < n; i++)
#define ... | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
static const int INF = 1e9 + 7;
// 型定義
typedef long long ll;
typedef pair<ll, ll> P;
#define rep(i, n) for (int i = 0; i < n; i++)
#define ... | [
"call.add",
"call.arguments.change"
] | 1,490,122 | 1,490,123 | u274615057 | cpp |
p03963 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <chrono>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <string>
#include <unordered_map>
#includ... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <chrono>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <string>
#include <unordered_map>
#includ... | [
"type_conversion.add"
] | 1,490,126 | 1,490,125 | u864785784 | cpp |
p03963 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pi;
typedef tuple<int, int, int> ti;
#define forn(i, a, n) for (int i = a; i < n; i++)
#define mem(str, a) memset(str, a, sizeof(str));
#define fast_cin() ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pi;
typedef tuple<int, int, int> ti;
#define forn(i, a, n) for (int i = a; i < n; i++)
#define mem(str, a) memset(str, a, sizeof(str));
#define fast_cin() ... | [
"call.remove",
"call.arguments.change",
"identifier.replace.remove",
"literal.replace.add",
"expression.operation.binary.change"
] | 1,490,130 | 1,490,131 | u473445428 | cpp |
p03963 | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
int main() {
int n, k;
cin >> n >> k;
long long int res = k;
for (int i = 1; i ... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
int main() {
int n, k;
cin >> n >> k;
long long int res = k;
for (int i = 1; i ... | [] | 1,490,132 | 1,490,133 | u495704746 | cpp |
p03963 | #include <iostream>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
int a = K - 1;
for (int i = 1; i < N - 1; i++) {
a *= a;
}
cout << K * a;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
int a = 1;
for (int i = 0; i < N - 1; i++) {
a *= K - 1;
}
cout << K * a;
return 0;
} | [
"expression.operation.binary.remove",
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"assignment.value.change",
"assignment.change"
] | 1,490,134 | 1,490,135 | u235321041 | cpp |
p03963 | #include <bits/stdc++.h>
#define ll long long
using namespace std;
ll func(int a, int b) {
ll res = 1;
while (b > 0) {
if (b % 2 != 0) {
res *= a;
}
b /= 2;
a *= a;
}
return res;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
int n, k;
cin >> n >> k;
ll ans = k * func... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
ll func(int a, int b) {
ll res = 1;
while (b > 0) {
if (b % 2 != 0) {
res *= a;
}
b /= 2;
a *= a;
}
return res;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
int n, k;
cin >> n >> k;
ll ans = k * func... | [] | 1,490,138 | 1,490,139 | u202550027 | cpp |
p03963 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
#define ll long long;
int main() {
int n, k;
cin >> n >> k;
int ans = k;
for (int i = 2; i < n; ++i) {
ans *= k - 1;
}
cout << ans << endl;
return 0;
}
| #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
#define ll long long
int main() {
int n, k;
cin >> n >> k;
int ans = k;
for (int i = 1; i < n; ++i) {
ans *= k - 1;
}
cout << ans << endl;
return 0;
}
| [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 1,490,140 | 1,490,141 | u127727773 | cpp |
p03963 | #include <bits/stdc++.h>
using namespace std;
#ifndef ONLINE_JUDGE
#define LOG(x) (cerr << ">>>>>>" << #x << " = " << (x) << endl)
#else
#define LOG(x) ((void)0)
#endif
int i[256];
int main() {
int n, k, an;
cin >> n >> k;
an = k;
k--;
n--;
while (n-- >= 0)
an *= k;
cout << an << endl;
}
| #include <bits/stdc++.h>
using namespace std;
#ifndef ONLINE_JUDGE
#define LOG(x) (cerr << ">>>>>>" << #x << " = " << (x) << endl)
#else
#define LOG(x) ((void)0)
#endif
int i[256];
int main() {
int n, k, an;
cin >> n >> k;
an = k;
k--;
n--;
while (n-- > 0)
an *= k;
cout << an << endl;
}
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 1,490,142 | 1,490,143 | u804550245 | cpp |
p03963 | #include <bits/stdc++.h>
using namespace std;
#define debug(n) cerr << #n << ':' << n << endl;
#define dline cerr << __LINE__ << endl;
using ll = long long;
using ull = unsigned long long;
template <class T, class U> using P = pair<T, U>;
template <class T> using Heap = priority_queue<T>;
template <class T> using he... | #include <bits/stdc++.h>
using namespace std;
#define debug(n) cerr << #n << ':' << n << endl;
#define dline cerr << __LINE__ << endl;
using ll = long long;
using ull = unsigned long long;
template <class T, class U> using P = pair<T, U>;
template <class T> using Heap = priority_queue<T>;
template <class T> using he... | [
"type_conversion.add"
] | 1,490,146 | 1,490,147 | u691380397 | cpp |
p03963 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
int main() {
ll n, k;
cin >> n >> k;
ll ans = k;
rep(i, n) ans *= k - 1;
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
int main() {
ll n, k;
cin >> n >> k;
ll ans = k;
rep(i, n - 1) ans *= k - 1;
cout << ans << endl;
return 0;
} | [
"assignment.change"
] | 1,490,150 | 1,490,151 | u933962236 | cpp |
p03962 | #include <iostream>
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 << 2 << endl;
} else {
cout << 1 << endl;
}
} | #include <iostream>
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,490,152 | 1,490,153 | u576522716 | cpp |
p03962 | // ABC067_A.cpp : Defines the entry point for the console application.
//
#include <algorithm>
#include <iostream>
#include <string>
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 << 2 << endl;
} else... | // ABC067_A.cpp : Defines the entry point for the console application.
//
#include <algorithm>
#include <iostream>
#include <string>
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... | [
"control_flow.branch.if.condition.change"
] | 1,490,154 | 1,490,155 | u317731893 | cpp |
p03962 | #include <iostream>
using namespace std;
int main() {
int a, b, c, some1, some2, some3;
cin >> a >> b >> c;
some1 = a - b;
some2 = b - c;
some2 = a - c;
if (some1 == some2 && some2 == some3) {
cout << 1 << endl;
} else if (some1 == 0 || some2 == 0 || some3 == 0) {
cout << 2 << endl;
} else {
... | #include <iostream>
using namespace std;
int main() {
int a, b, c, some1, some2, some3;
cin >> a >> b >> c;
some1 = a - b;
some2 = b - c;
some3 = a - c;
if (some1 == some2 && some2 == some3) {
cout << 1 << endl;
} else if (some1 == 0 || some2 == 0 || some3 == 0) {
cout << 2 << endl;
} else {
... | [
"assignment.variable.change",
"identifier.change"
] | 1,490,162 | 1,490,163 | u848736574 | cpp |
p03962 | #include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c, ans;
cin >> a >> b >> c;
if (a == b == c) {
ans = 1;
} else if (a == b || b == c || c == a) {
ans = 2;
} else {
ans = 3;
}
cout << ans << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c, ans;
cin >> a >> b >> c;
if (a == b && b == c) {
ans = 1;
} else if (a == b || b == c || c == a) {
ans = 2;
} else {
ans = 3;
}
cout << ans << endl;
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 1,490,164 | 1,490,165 | u382176401 | 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 || A != B && B == C || A == C && C != B)
cout << 2 << 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 && A == C)
cout << 1 << endl;
else if (A == B && A != C || A != B && B == C || A == C && C != B)
cout << 2 << endl;
else
cout << 3 << endl;
return 0;
}
| [
"literal.number.change",
"io.output.change"
] | 1,490,190 | 1,490,191 | u386294884 | cpp |
p03962 | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <map>
#include <random>
#include <string>
#include <vector>
using namespace std;
#define MK make_pair
#define PB push_back
#define MSI map<string, int>
#define VI vector<int>
#define VII vector<int, int>
#define FOR(i, a, b) for (int ... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <map>
#include <random>
#include <string>
#include <vector>
using namespace std;
#define MK make_pair
#define PB push_back
#define MSI map<string, int>
#define VI vector<int>
#define VII vector<int, int>
#define FOR(i, a, b) for (int ... | [
"control_flow.branch.if.condition.change"
] | 1,490,193 | 1,490,194 | u001513927 | cpp |
p03962 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int a, b, c, ans = 3;
cin >> a >> b >> c;
if (a == b == c) {
ans = 1;
} else if (a == b || b == c || c == a) {
ans = 2;
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
int a, b, c, ans = 3;
cin >> a >> b >> c;
if (a == b && a == c) {
ans = 1;
} else if (a == b || b == c || c == a) {
ans = 2;
}
cout << ans << endl;
}
| [
"control_flow.branch.if.condition.change"
] | 1,490,195 | 1,490,196 | u388033483 | 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;
return 0;
} else if (a == b || b == c || a == c) {
cout << 2 << endl;
return 0;
} else {
cout << 3 << 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;
return 0;
} else if (a == b || b == c || a == c) {
cout << 2 << endl;
return 0;
} else {
cout << 3 << endl;
return 0;
}
} | [
"control_flow.branch.if.condition.change"
] | 1,490,199 | 1,490,200 | u906880177 | 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;
return 0;
}
if (a == b || b == c || a == c) {
cout << 2 << endl;
return 0;
} else {
cout << 3 << 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;
return 0;
} else if (a == b || b == c || a == c) {
cout << 2 << endl;
return 0;
} else {
cout << 3 << endl;
return 0;
}
} | [
"control_flow.branch.if.condition.change",
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 1,490,201 | 1,490,200 | u906880177 | cpp |
p03962 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define vecint vector<int>
#define listint list<int>
#define Pii pair<int, int>
#define REP(i, x, n) for (int i = x; i < n; i++)
#define rep(i, n) RE... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define vecint vector<int>
#define listint list<int>
#define Pii pair<int, int>
#define REP(i, x, n) for (int i = x; i < n; i++)
#define rep(i, n) RE... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 1,490,202 | 1,490,203 | u718935188 | 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 && a != 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 && a != c)
cout << 3 << endl;
else
cout << 2 << endl;
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 1,490,210 | 1,490,211 | u946847864 | cpp |
p03962 | #include <iostream>
using std::cin;
using std::cout;
using std::endl;
int main() {
int a, b, c, cnt;
cin >> a >> b >> c;
if (a == b == c) {
cnt = 1;
} else if (a == b || b == c || a == c) {
cnt = 2;
} else {
cnt = 3;
}
cout << cnt << endl;
}
| #include <iostream>
using std::cin;
using std::cout;
using std::endl;
int main() {
int a, b, c, cnt;
cin >> a >> b >> c;
if (a == b && b == c) {
cnt = 1;
} else if (a == b || b == c || a == c) {
cnt = 2;
} else {
cnt = 3;
}
cout << cnt << endl;
}
| [
"control_flow.branch.if.condition.change"
] | 1,490,212 | 1,490,213 | u947370605 | cpp |
p03962 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
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;
retu... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
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;
retu... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 1,490,216 | 1,490,217 | u886628397 | cpp |
p03962 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
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;
return 0;... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
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;
retu... | [
"control_flow.branch.if.condition.change"
] | 1,490,218 | 1,490,217 | u886628397 | cpp |
p03962 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a[3];
int cnt = 0;
for (int i = 0; i < 3; i++) {
cin >> a[i];
bool flag = false;
for (int j = 0; j < i; j++)
flag |= (a[i] == a[j]);
if (flag)
cnt++;
}
cout << cnt << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a[3];
int cnt = 0;
for (int i = 0; i < 3; i++) {
cin >> a[i];
bool flag = false;
for (int j = 0; j < i; j++)
flag |= (a[i] == a[j]);
if (!flag)
cnt++;
}
cout << cnt << endl;
return 0;
}
| [
"expression.operation.unary.add",
"control_flow.branch.if.condition.change"
] | 1,490,219 | 1,490,220 | u795689468 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.