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 9
values |
|---|---|---|---|---|---|---|---|
p03075 | // https://atcoder.jp/contests/abc123/tasks/abc123_a
#include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int i = 0; i < (n); i++)
#define REP2(i, x, n) for (int i = x; i < (n); i++)
#define ALL(n) begin(n), end(n)
struct cww {
cww() {
ios::sync_with_stdio(false);
cin.tie(0);
}
} star;
const long long INF = numeric_limits<long long>::max();
int main() {
vector<int> v(5);
for (auto &x : v) {
cin >> x;
}
int N;
cin >> N;
sort(ALL(v));
cout << (v[4] - v[0] < N ? "Yay!" : ":(") << endl;
return 0;
} | // https://atcoder.jp/contests/abc123/tasks/abc123_a
#include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int i = 0; i < (n); i++)
#define REP2(i, x, n) for (int i = x; i < (n); i++)
#define ALL(n) begin(n), end(n)
struct cww {
cww() {
ios::sync_with_stdio(false);
cin.tie(0);
}
} star;
const long long INF = numeric_limits<long long>::max();
int main() {
vector<int> v(5);
for (auto &x : v) {
cin >> x;
}
int N;
cin >> N;
sort(ALL(v));
cout << (v[4] - v[0] <= N ? "Yay!" : ":(") << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"io.output.change"
] | 888,149 | 888,150 | u679904527 | cpp |
p03075 | #include <iostream>
int main(void) {
int a[6];
int count = 0;
for (int i = 0; i < 6; i++)
std::cin >> a[i];
for (int i = 0; i < 5; i++)
for (int j = i + 1; j < 5; j++)
if (a[j] - a[i] <= a[5])
count++;
std::cout << ((count == 0) ? "Yay!" : ":(") << std::endl;
return 0;
} | #include <iostream>
int main(void) {
int a[6];
int count = 0;
for (int i = 0; i < 6; i++)
std::cin >> a[i];
for (int i = 0; i < 5; i++)
for (int j = i + 1; j < 5; j++) {
if (a[j] - a[i] > a[5])
count++;
}
std::cout << ((count == 0) ? "Yay!" : ":(") << std::endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,156 | 888,157 | u139018733 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a <= k) {
cout << "Yay" << endl;
} else {
cout << ":(" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a <= k)
cout << "Yay!" << endl;
else
cout << ":(" << endl;
}
| [
"literal.string.change",
"io.output.change"
] | 888,166 | 888,167 | u401900157 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a;
cin >> b;
cin >> c;
cin >> d;
cin >> e;
cin >> k;
if (e - a <= k) {
cout << "Yay" << endl;
} else {
cout << ":(" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a;
cin >> b;
cin >> c;
cin >> d;
cin >> e;
cin >> k;
if (e - a <= k) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
}
| [
"literal.string.change",
"io.output.change"
] | 888,172 | 888,173 | u401900157 | cpp |
p03075 | #include <iostream>
using namespace std;
int main() {
int a, b, k;
for (int i = 0; i < 4; ++i)
cin >> b;
cin >> k;
if (b - a <= k)
cout << "Yay!" << endl;
else
cout << ":(" << endl;
} | #include <iostream>
using namespace std;
int main() {
int a, b, k;
cin >> a;
for (int i = 0; i < 4; ++i)
cin >> b;
cin >> k;
if (b - a <= k)
cout << "Yay!" << endl;
else
cout << ":(" << endl;
}
| [] | 888,174 | 888,175 | u898749314 | cpp |
p03075 |
#include <bits/stdc++.h>
#include <cmath>
#include <cstdlib>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a < k) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
return 0;
}
|
#include <bits/stdc++.h>
#include <cmath>
#include <cstdlib>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a <= k) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,187 | 888,188 | u098679988 | cpp |
p03075 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <queue>
#include <stack>
#include <tuple>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a > k) {
cout << ":(" << endl;
} else {
cout << "Yey!" << endl;
}
return 0;
} | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <queue>
#include <stack>
#include <tuple>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a > k) {
cout << ":(" << endl;
} else {
cout << "Yay!" << endl;
}
return 0;
} | [
"literal.string.change",
"io.output.change"
] | 888,202 | 888,203 | u061732150 | cpp |
p03075 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if ((e - a) <= k) {
cout << "Yay!" << endl;
} else {
cout << "(" << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if ((e - a) <= k) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
return 0;
}
| [
"literal.string.change",
"io.output.change"
] | 888,207 | 888,208 | u455015745 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a > k)
cout << "Yay!";
else
cout << ":(";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a > k)
cout << ":(";
else
cout << "Yay!";
return 0;
} | [
"control_flow.branch.else.remove",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add"
] | 888,211 | 888,212 | u239897421 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main(int argc, const char *argv[]) {
int i, k, m, n, l;
int data[5];
for (i = 0; i < 5; i++) {
cin >> data[i];
}
cin >> k;
for (m = 0; m < 5; m++) {
for (n = m + 1; n < 5; n++) {
if (data[n] - data[m] >= k) {
printf(":(\n");
return 0;
}
}
}
printf("Yay!\n");
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main(int argc, const char *argv[]) {
int i, k, m, n, l;
int data[5];
for (i = 0; i < 5; i++) {
cin >> data[i];
}
cin >> k;
for (m = 0; m < 5; m++) {
for (n = m + 1; n < 5; n++) {
if (data[n] - data[m] > k) {
printf(":(\n");
return 0;
}
}
}
printf("Yay!\n");
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,219 | 888,220 | u590825849 | cpp |
p03075 |
#define FOR(i, m, n) for (int i = (m); i < (n); ++i)
#define REP(i, n) FOR(i, 0, n)
#include <climits>
#include <cstdio>
#include <cstring>
#include <vector>
using namespace std;
int main() {
int A[5];
int dis;
REP(i, 5) { scanf("%d", &A[i]); }
scanf("%d", &dis);
int max = 0, min = 124;
REP(i, 5) {
max = max > A[i] ? max : A[i];
min = min < A[i] ? min : A[i];
}
if ((max - min) > dis) {
printf("%s\n", ":(");
} else {
printf("%s\n", "Yay!¥n");
}
}
|
#define FOR(i, m, n) for (int i = (m); i < (n); ++i)
#define REP(i, n) FOR(i, 0, n)
#include <climits>
#include <cstdio>
#include <cstring>
#include <vector>
using namespace std;
int main() {
int A[5];
int dis;
REP(i, 5) { scanf("%d", &A[i]); }
scanf("%d", &dis);
int max = 0, min = 124;
REP(i, 5) {
max = max > A[i] ? max : A[i];
min = min < A[i] ? min : A[i];
}
if ((max - min) > dis) {
printf("%s\n", ":(");
} else {
printf("%s\n", "Yay!");
}
}
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 888,223 | 888,224 | u089177147 | cpp |
p03075 |
#define FOR(i, m, n) for (int i = (m); i < (n); ++i)
#define REP(i, n) FOR(i, 0, n)
#include <climits>
#include <cstdio>
#include <cstring>
#include <vector>
using namespace std;
int main() {
int A[5];
int dis;
REP(i, 5) { scanf("%d", &A[i]); }
scanf("%d", &dis);
int max = 0, min = 124;
REP(i, 5) {
max = max > A[i] ? max : A[i];
min = min < A[i] ? min : A[i];
}
if ((max - min) > dis) {
printf("%s¥n", ":(");
} else {
printf("%s¥n", "Yay!");
}
}
|
#define FOR(i, m, n) for (int i = (m); i < (n); ++i)
#define REP(i, n) FOR(i, 0, n)
#include <climits>
#include <cstdio>
#include <cstring>
#include <vector>
using namespace std;
int main() {
int A[5];
int dis;
REP(i, 5) { scanf("%d", &A[i]); }
scanf("%d", &dis);
int max = 0, min = 124;
REP(i, 5) {
max = max > A[i] ? max : A[i];
min = min < A[i] ? min : A[i];
}
if ((max - min) > dis) {
printf("%s\n", ":(");
} else {
printf("%s\n", "Yay!");
}
}
| [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 888,225 | 888,224 | u089177147 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if ((e - a) <= k) {
cout << "Yay" << endl;
} else {
cout << ":(" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if ((e - a) <= k) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
}
| [
"literal.string.change",
"io.output.change"
] | 888,226 | 888,227 | u378253030 | cpp |
p03075 | #include "bits/stdc++.h"
#define ed cout << "\n";
#define speed \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
using namespace std;
int main() {
speed;
int a, b, k;
cin >> a >> b >> b >> b >> b >> k;
if (b - a >= k)
cout << ":(";
else
cout << "Yay!";
ed;
return 0;
}
| #include "bits/stdc++.h"
#define ed cout << "\n";
#define speed \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
using namespace std;
int main() {
speed;
int a, b, k;
cin >> a >> b >> b >> b >> b >> k;
if (b - a > k)
cout << ":(";
else
cout << "Yay!";
ed;
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,228 | 888,229 | u662918817 | cpp |
p03075 | #include "bits/stdc++.h"
#define ed cout << "\n";
#define speed \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
using namespace std;
int main() {
speed;
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
string s;
if (e - a >= k)
s = ":(";
else
s = "Yay!";
cout << s;
ed;
return 0;
} | #include "bits/stdc++.h"
#define ed cout << "\n";
#define speed \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
using namespace std;
int main() {
speed;
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
string s;
if (e - a <= k)
s = "Yay!";
else
s = ":(";
cout << s;
ed;
return 0;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.branch.else.remove",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add",
"assignment.add"
] | 888,230 | 888,231 | u662918817 | cpp |
p03075 | #include "bits/stdc++.h"
#define ed cout << "\n";
#define speed \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
using namespace std;
int main() {
speed;
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
string s;
if (e - a >= k)
s = ":(";
else
s = "Yay!"; // wrong"Yey"correct"Yay!" I did it. :(
cout << s;
ed;
return 0;
} | #include "bits/stdc++.h"
#define ed cout << "\n";
#define speed \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
using namespace std;
int main() {
speed;
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
string s;
if (e - a <= k)
s = "Yay!";
else
s = ":(";
cout << s;
ed;
return 0;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.branch.else.remove",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add",
"assignment.add"
] | 888,232 | 888,231 | u662918817 | cpp |
p03075 | #include "bits/stdc++.h"
#define ed cout << "\n";
#define speed \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
using namespace std;
int main() {
speed;
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
string s;
if (e - a >= k)
s = ":(";
else
s = "Yey!";
cout << s;
ed;
return 0;
}
| #include "bits/stdc++.h"
#define ed cout << "\n";
#define speed \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
using namespace std;
int main() {
speed;
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
string s;
if (e - a <= k)
s = "Yay!";
else
s = ":(";
cout << s;
ed;
return 0;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"assignment.add",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add",
"control_flow.branch.else.remove"
] | 888,233 | 888,231 | u662918817 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D, E, X;
cin >> A >> B >> C >> D >> E >> X;
if ((E - A) < X) {
cout << "Yay!" << endl;
} else {
cout << ":( " << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D, E, X;
cin >> A >> B >> C >> D >> E >> X;
if ((E - A) <= X) {
cout << "Yay!" << endl;
} else {
cout << ":( " << endl;
}
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,234 | 888,235 | u955534952 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a <= k) {
cout << "yay" << endl;
} else
cout << ":(" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a <= k) {
cout << "Yay!" << endl;
} else
cout << ":(" << endl;
}
| [
"literal.string.change",
"io.output.change"
] | 888,236 | 888,237 | u667294123 | cpp |
p03075 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if ((e - a) < k) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if ((e - a) <= k) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,238 | 888,239 | u728894486 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a < k) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a <= k) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,248 | 888,249 | u319001729 | cpp |
p03075 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e;
int k = 0;
bool flag = false;
cin >> a >> b >> c >> d >> e;
if (k >= (e - a)) {
flag = true;
}
if (flag == true)
cout << "Yay!" << endl;
else if (flag == false)
cout << ":(" << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e;
int k = 0;
bool flag = false;
cin >> a >> b >> c >> d >> e >> k;
if (k >= (e - a)) {
flag = true;
}
if (flag == true)
cout << "Yay!" << endl;
else if (flag == false)
cout << ":(" << endl;
return 0;
} | [
"expression.operation.binary.add"
] | 888,255 | 888,256 | u826315133 | cpp |
p03075 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
string ans;
ans = e - a > k ? ":)" : "Yay!";
cout << ans << endl;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
string ans;
ans = e - a > k ? ":(" : "Yay!";
cout << ans << endl;
} | [
"literal.string.change"
] | 888,259 | 888,260 | u254766083 | cpp |
p03075 | //
// Created by yuu on 2019-04-16.
//
#include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
int main(void) {
int A[4];
for (int i = 0; i < 4; ++i) {
cin >> A[i];
}
int K;
cin >> K;
sort(A, A + 4);
if (A[4] - A[0] > K) {
cout << ":(" << endl;
} else {
cout << "Yay!" << endl;
}
return 0;
} | //
// Created by yuu on 2019-04-16.
//
#include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
int main(void) {
int A[5];
for (int i = 0; i < 5; ++i) {
cin >> A[i];
}
int K;
cin >> K;
sort(A, A + 5);
if (A[4] - A[0] > K) {
cout << ":(" << endl;
} else {
cout << "Yay!" << endl;
}
return 0;
} | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"call.arguments.change"
] | 888,269 | 888,270 | u149583407 | cpp |
p03075 | #include <iostream>
int main(void) {
int a, b, c, d, e, k;
std::cin >> a >> b >> c >> d >> e >> k;
e - a >= k ? std::cout << "Yay!" : std::cout << ":(";
return 0;
} | #include <iostream>
int main(void) {
int a, b, c, d, e, k;
std::cin >> a >> b >> c >> d >> e >> k;
if (e - a <= k)
std::cout << "Yay!";
else
std::cout << ":(";
return 0;
}
| [
"control_flow.branch.if.add",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add"
] | 888,273 | 888,274 | u481584122 | cpp |
p03075 | #include <algorithm>
#include <math.h>
#include <stdio.h>
using namespace std;
int main() {
int a[5];
for (int i = 0; i < 5; i++) {
scanf("%d", &a[i]);
}
sort(a, a + 5);
int x = a[4] - a[0];
int k;
scanf("%d", &k);
if (x <= k) {
printf("Yay! %d", x);
} else {
printf(":(");
}
} | #include <algorithm>
#include <math.h>
#include <stdio.h>
using namespace std;
int main() {
int a[5];
for (int i = 0; i < 5; i++) {
scanf("%d", &a[i]);
}
sort(a, a + 5);
int x = a[4] - a[0];
int k;
scanf("%d", &k);
if (x <= k) {
printf("Yay!");
} else {
printf(":(");
}
} | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 888,281 | 888,282 | u379288456 | cpp |
p03075 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
main() {
vector<int> xs(5);
for (auto &x : xs)
cin >> x;
int k;
cin >> k;
vector<pair<int, int>> xss;
for (int i = 1; i <= 5; ++i) {
for (int j = 1; j <= 5; ++j) {
xss.push_back({xs[i], xs[j]});
}
}
vector<bool> bools;
for (auto xs : xss) {
int p = xs.first, q = xs.second;
bools.push_back(abs(p - q) <= k);
}
bool exists = find(bools.begin(), bools.end(), false) != bools.end();
printf(exists ? ":(\n" : "Yay!\n");
} | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
main() {
vector<int> xs(5);
for (auto &x : xs)
cin >> x;
int k;
cin >> k;
vector<pair<int, int>> xss;
for (int i = 0; i < 5; ++i) {
for (int j = 0; j < 5; ++j) {
xss.push_back({xs[i], xs[j]});
}
}
vector<bool> bools;
for (auto xs : xss) {
int p = xs.first, q = xs.second;
bools.push_back(abs(p - q) <= k);
}
bool exists = find(bools.begin(), bools.end(), false) != bools.end();
printf(exists ? ":(\n" : "Yay!\n");
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 888,291 | 888,292 | u095676321 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e;
cin >> k;
int dis;
dis = min(a, (b, c, d, e));
-max(a, (b, c, d, e));
if (k >= dis) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e;
cin >> k;
int dis;
dis = max(a, (b, c, d, e)) - min(a, (b, c, d, e));
if (k >= dis) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
} | [
"assignment.change"
] | 888,293 | 888,294 | u832995587 | cpp |
p03075 | #include <algorithm>
#include <iostream>
#include <map>
#include <vector>
using namespace std;
int main() {
//入力
int a, b, c, d, e;
int k;
cin >> a >> b >> c >> d >> e;
cin >> k;
//処理
string ans;
int L = e - a;
if (L < k)
ans = "Yay!";
else
ans = ":(";
cout << ans << endl;
return 0;
} | #include <algorithm>
#include <iostream>
#include <map>
#include <vector>
using namespace std;
int main() {
//入力
int a, b, c, d, e;
int k;
cin >> a >> b >> c >> d >> e;
cin >> k;
//処理
string ans;
int L = e - a;
if (L <= k)
ans = "Yay!";
else
ans = ":(";
cout << ans << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,299 | 888,300 | u947750088 | cpp |
p03075 | #include <algorithm>
#include <iostream>
#include <map>
#include <vector>
using namespace std;
int main() {
//入力
int a, b, c, d, e;
int k;
cin >> a >> b >> c >> d >> e;
cin >> k;
//処理
string ans;
int L = e - a;
if (L > k)
ans = "Yay!";
else
ans = ":(";
cout << ans << endl;
return 0;
} | #include <algorithm>
#include <iostream>
#include <map>
#include <vector>
using namespace std;
int main() {
//入力
int a, b, c, d, e;
int k;
cin >> a >> b >> c >> d >> e;
cin >> k;
//処理
string ans;
int L = e - a;
if (L <= k)
ans = "Yay!";
else
ans = ":(";
cout << ans << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,301 | 888,300 | u947750088 | cpp |
p03075 | #include <cstdio>
#include <string>
using namespace std;
int main(void) {
int a, e, k, i;
scanf("%d", &a);
scanf("%d", &i);
scanf("%d", &i);
scanf("%d", &i);
scanf("%d", &e);
scanf("%d", &k);
if (e - a > k)
printf("Yay!\n");
else
printf(":(\n");
fflush(stdout);
return 0;
}
| #include <cstdio>
#include <string>
using namespace std;
int main(void) {
int a, e, k, i;
scanf("%d", &a);
scanf("%d", &i);
scanf("%d", &i);
scanf("%d", &i);
scanf("%d", &e);
scanf("%d", &k);
if (e - a <= k)
printf("Yay!\n");
else
printf(":(\n");
fflush(stdout);
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,304 | 888,305 | u925478083 | cpp |
p03075 | #include <stdio.h>
int main(void) {
int a, b, c, d, e, k;
a < b;
b < c;
c < d;
d < e;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
scanf("%d", &d);
scanf("%d", &e);
scanf("%d", &k);
if ((e - a) > k) {
printf(":(");
}
if ((e - a) < k) {
printf("Yay!");
}
}
| #include <stdio.h>
int main(void) {
int a, b, c, d, e, k;
a < b;
b < c;
c < d;
d < e;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
scanf("%d", &d);
scanf("%d", &e);
scanf("%d", &k);
if ((e - a) > k) {
printf(":(");
}
if ((e - a) <= k) {
printf("Yay!");
}
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,312 | 888,313 | u607104908 | cpp |
p03075 | #include <iostream>
using namespace std;
int main() {
int a, e, k, tmp;
cin >> a >> tmp >> tmp >> tmp >> e >> k;
int res = (e - a) < k;
cout << (res ? "Yay!" : ":(");
return 0;
} | #include <iostream>
#include <vector>
using namespace std;
int main() {
int a, e, k, tmp;
cin >> a >> tmp >> tmp >> tmp >> e >> k;
int res = (e - a) <= k;
cout << (res ? "Yay!" : ":(");
return 0;
} | [
"import.add",
"expression.operator.compare.change",
"expression.operation.binary.change"
] | 888,314 | 888,315 | u939527507 | cpp |
p03075 | #include <iostream>
#include <vector>
using namespace std;
#define NUMSSIZE 6
int main() {
vector<int> nums;
for (int i = 0; i < NUMSSIZE; i++) {
int j = 0;
cin >> j;
nums.push_back(j);
}
if (nums[nums.size() - 2] - nums[0] < nums[nums.size() - 1]) {
cout << "Yay!";
} else {
cout << ":(";
}
} | #include <iostream>
#include <vector>
using namespace std;
#define NUMSSIZE 6
int main() {
vector<int> nums;
for (int i = 0; i < NUMSSIZE; i++) {
int j = 0;
cin >> j;
nums.push_back(j);
}
if (nums[nums.size() - 2] - nums[0] <= nums[nums.size() - 1]) {
cout << "Yay!";
} else {
cout << ":(";
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,318 | 888,319 | u271381409 | cpp |
p03075 | #include <iostream>
using namespace std;
int main() {
int N[5], i;
int flg;
//入力
for (i = 0; i < 6; i++) {
cin >> N[i];
}
//計算
if (N[4] - N[0] < N[5]) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int N[5], i;
int flg;
//入力
for (i = 0; i < 6; i++) {
cin >> N[i];
}
//計算
if (N[4] - N[0] <= N[5]) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,329 | 888,330 | u242067199 | cpp |
p03075 | #include <bits/stdc++.h>
#define rep(i, a, b) for (int i = a; i < b; i++)
#define rrep(i, a, b) for (int i = a; i >= b; i--)
#define all(x) (x).begin(), (x).end()
#define dbg(x) cerr << #x << ": " << x << endl;
typedef long long ll;
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int a[5];
rep(i, 0, 5) { cin >> a[i]; }
int k;
cin >> k;
if (a[4] - a[0] < k) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
return 0;
} | #include <bits/stdc++.h>
#define rep(i, a, b) for (int i = a; i < b; i++)
#define rrep(i, a, b) for (int i = a; i >= b; i--)
#define all(x) (x).begin(), (x).end()
#define dbg(x) cerr << #x << ": " << x << endl;
typedef long long ll;
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int a[5];
rep(i, 0, 5) { cin >> a[i]; }
int k;
cin >> k;
if (a[4] - a[0] <= k) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,333 | 888,334 | u489846029 | cpp |
p03075 | #include "bits/stdc++.h"
using namespace std;
#define LL long long
#define REP(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define PB push_back
#define MP make_pair
#define all(x) x.begin(), x.end()
#define MOD 1000000007
int main() {
int v[5];
for (int i = 0; i < 5; i++)
cin >> v[i];
int k;
cin >> k;
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 5; j++) {
if (abs(i - j) > k) {
cout << ":(" << endl;
return 0;
}
}
}
cout << "Yay!" << endl;
return 0;
}
| #include "bits/stdc++.h"
using namespace std;
#define LL long long
#define REP(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define PB push_back
#define MP make_pair
#define all(x) x.begin(), x.end()
#define MOD 1000000007
int main() {
int v[5];
for (int i = 0; i < 5; i++)
cin >> v[i];
int k;
cin >> k;
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 5; j++) {
if (abs(v[i] - v[j]) > k) {
cout << ":(" << endl;
return 0;
}
}
}
cout << "Yay!" << endl;
return 0;
}
| [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 888,335 | 888,336 | u422592877 | cpp |
p03075 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string.h>
#include <vector>
typedef long long ll;
using namespace std;
ll Mod = 1e9 + 7;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a < k)
cout << "Yay!" << endl;
else
cout << ":(" << endl;
return 0;
} | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string.h>
#include <vector>
typedef long long ll;
using namespace std;
ll Mod = 1e9 + 7;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a <= k)
cout << "Yay!" << endl;
else
cout << ":(" << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,339 | 888,340 | u831873811 | cpp |
p03075 | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
int antenna[5];
int k;
std::cin >> antenna[0];
std::cin >> antenna[1];
std::cin >> antenna[2];
std::cin >> antenna[3];
std::cin >> antenna[4];
std::cin >> k;
for (int i = 4; i < 0; i--) {
for (int j = 0; j < i; j++) {
if (antenna[i] - antenna[j] > k) {
std::cout << ":(" << std::endl;
goto point;
}
}
}
std::cout << "Yay!" << std::endl;
point:
return 0;
} | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
int antenna[5];
int k;
std::cin >> antenna[0];
std::cin >> antenna[1];
std::cin >> antenna[2];
std::cin >> antenna[3];
std::cin >> antenna[4];
std::cin >> k;
for (int i = 4; i > 0; i--) {
for (int j = 0; j < i; j++) {
if (antenna[i] - antenna[j] > k) {
std::cout << ":(" << std::endl;
goto point;
}
}
}
std::cout << "Yay!" << std::endl;
point:
return 0;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 888,350 | 888,351 | u329731898 | cpp |
p03075 | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
int antenna[5];
int k;
std::cin >> antenna[0];
std::cin >> antenna[1];
std::cin >> antenna[2];
std::cin >> antenna[3];
std::cin >> antenna[4];
std::cin >> k;
for (int i = 4; i < 0; i--) {
for (int j = 0; j < i; j++) {
if (antenna[i] - antenna[j] > k) {
std::cout << ":" << std::endl;
goto point;
}
}
}
std::cout << "Yay!" << std::endl;
point:
return 0;
} | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
int antenna[5];
int k;
std::cin >> antenna[0];
std::cin >> antenna[1];
std::cin >> antenna[2];
std::cin >> antenna[3];
std::cin >> antenna[4];
std::cin >> k;
for (int i = 4; i > 0; i--) {
for (int j = 0; j < i; j++) {
if (antenna[i] - antenna[j] > k) {
std::cout << ":(" << std::endl;
goto point;
}
}
}
std::cout << "Yay!" << std::endl;
point:
return 0;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"literal.string.change"
] | 888,352 | 888,351 | u329731898 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
string ans = ":(";
if (e - a < k) {
ans = "Yay!";
}
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
string ans = ":(";
if (e - a <= k) {
ans = "Yay!";
}
cout << ans << endl;
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,353 | 888,354 | u120826790 | cpp |
p03075 | #include <iostream>
using namespace std;
int main() {
int a[5];
int k;
for (int i = 0; i < 5; ++i)
cin >> a[i];
cin >> k;
if ((a[4] - a[0]) < k)
cout << "Yay!" << endl;
else
cout << ":(" << endl;
} | #include <iostream>
using namespace std;
int main() {
int a[5];
int k;
for (int i = 0; i < 5; ++i)
cin >> a[i];
cin >> k;
if ((a[4] - a[0]) <= k)
cout << "Yay!" << endl;
else
cout << ":(" << endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,355 | 888,356 | u309446269 | cpp |
p03075 | #include <algorithm>
#include <chrono>
#include <cstdio>
#include <cstdlib>
#include <float.h>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator> // std::back_inserter
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main(int argc, char *argv[]) {
int a, b, c;
cin >> a;
cin >> b;
cin >> b;
cin >> b;
cin >> b;
cin >> c;
if (a - b > c)
cout << ":(";
else
cout << "Yay!";
return 0;
}
| #include <algorithm>
#include <chrono>
#include <cstdio>
#include <cstdlib>
#include <float.h>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator> // std::back_inserter
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main(int argc, char *argv[]) {
int a, b, c;
cin >> a;
cin >> b;
cin >> b;
cin >> b;
cin >> b;
cin >> c;
if (b - a > c)
cout << ":(";
else
cout << "Yay!";
return 0;
}
| [
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change"
] | 888,357 | 888,358 | u056889505 | cpp |
p03075 | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <queue>
#include <stack>
#include <vector>
#define PI 3.1415926535
#define MAX 100
#define swap(a, b, t) (t = a, a = b, b = t)
using namespace std;
int main() {
int num[5], i = 0, m1 = 0, mn = 124, d;
while (i < 5) {
cin >> num[i];
if (m1 < num[i])
m1 = num[i];
if (mn > num[i])
mn = num[i];
i++;
}
cin >> d;
if (m1 - mn < d)
cout << "Yay!";
else
cout << ":(";
// system("pause");
return 0;
}
| #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <queue>
#include <stack>
#include <vector>
#define PI 3.1415926535
#define MAX 100
#define swap(a, b, t) (t = a, a = b, b = t)
using namespace std;
int main() {
int num[5], i = 0, m1 = 0, mn = 124, d;
while (i < 5) {
cin >> num[i];
if (m1 < num[i])
m1 = num[i];
if (mn > num[i])
mn = num[i];
i++;
}
cin >> d;
if (m1 - mn <= d)
cout << "Yay!";
else
cout << ":(";
// system("pause");
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,359 | 888,360 | u131889965 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> a(5);
for (int i = 0; i < 5; i++)
cin >> a.at(i);
int k;
cin >> k;
for (int i = 0; i < 4; i++) {
for (int j = 1; j < 4 - i; j++) {
if (abs(a.at(i) - a.at(i + j)) > k) {
cout << ":(" << endl;
return 0;
}
}
}
cout << "Yay!" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> a(5);
for (int i = 0; i < 5; i++)
cin >> a.at(i);
int k;
cin >> k;
for (int i = 0; i < 4; i++) {
for (int j = 1; j < 5 - i; j++) {
if (abs(a.at(i) - a.at(i + j)) > k) {
cout << ":(" << endl;
return 0;
}
}
}
cout << "Yay!" << endl;
return 0;
} | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 888,372 | 888,373 | u405230134 | cpp |
p03075 | #include <iostream>
using namespace std;
main() {
int a, b, c, d, e, k;
cin >> a;
cin >> b;
cin >> c;
cin >> d;
cin >> e;
cin >> k;
if (e - a < k)
cout << "Yay!";
else
cout << ":(";
}
| #include <iostream>
using namespace std;
main() {
int a, b, c, d, e, k;
cin >> a;
cin >> b;
cin >> c;
cin >> d;
cin >> e;
cin >> k;
if (e - a <= k)
cout << "Yay!";
else
cout << ":(";
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,374 | 888,375 | u373717076 | cpp |
p03075 | #include <iostream>
using namespace std;
int main() {
int num[5];
int k;
for (int i = 0; i < 5; i++)
cin >> num[i];
cin >> k;
if (num[4] - num[0] > k)
cout << ":)" << endl;
else
cout << "Yay!" << endl;
} | #include <iostream>
using namespace std;
int main() {
int num[5];
int k;
for (int i = 0; i < 5; i++)
cin >> num[i];
cin >> k;
if (num[4] - num[0] > k)
cout << ":(" << endl;
else
cout << "Yay!" << endl;
} | [
"literal.string.change",
"io.output.change"
] | 888,382 | 888,383 | u905802918 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int i;
int main() {
int a[5];
int k;
int mami[2];
for (i = 0; i < 5; i++)
cin >> a[i];
cin >> k;
int maxv = INT_MIN;
int minv = INT_MAX;
int ans[2];
for (i = 0; i < 5; i++) {
if (a[i] > maxv)
maxv = a[i];
if (a[i] < minv)
minv = a[i];
}
ans[0] = maxv;
ans[1] = minv;
if ((ans[0] - ans[1]) > k)
cout << ":(" << endl;
else if ((ans[0] - ans[1]) < k)
cout << "Yay!" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int i;
int main() {
int a[5];
int k;
int mami[2];
for (i = 0; i < 5; i++)
cin >> a[i];
cin >> k;
int maxv = INT_MIN;
int minv = INT_MAX;
int ans[2];
for (i = 0; i < 5; i++) {
if (a[i] > maxv)
maxv = a[i];
if (a[i] < minv)
minv = a[i];
}
ans[0] = maxv;
ans[1] = minv;
if ((ans[0] - ans[1]) > k)
cout << ":(" << endl;
else if ((ans[0] - ans[1]) <= k)
cout << "Yay!" << endl;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,386 | 888,387 | u912899441 | cpp |
p03075 | #include <iostream>
using namespace std;
int main(void) {
int a, b, c, d, e, k, i = 0;
cin >> a >> b >> c >> d >> e >> k;
if (0 <= a, b, c, d, e, k <= 123) {
if (a < b < c < d < e) {
if ((e - a) <= k) {
i = 1;
}
}
}
cout << ((i == 1) ? "Yay!" : ";(") << endl;
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int a, b, c, d, e, k, i = 0;
cin >> a >> b >> c >> d >> e >> k;
if (0 <= a, b, c, d, e, k <= 123) {
if (a < b < c < d < e) {
if ((e - a) <= k) {
i = 1;
}
}
}
cout << ((i == 1) ? "Yay!" : ":(") << endl;
return 0;
} | [
"literal.string.change",
"io.output.change"
] | 888,394 | 888,395 | u121243942 | cpp |
p03075 | #include <stdio.h>
int main(void) {
char ans[4];
int a, b, c, d, e, k;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
scanf("%d", &d);
scanf("%d", &e);
scanf("%d", &k);
if (e - a > k) {
printf(":(\n");
} else {
printf("YaY!\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
char ans[4];
int a, b, c, d, e, k;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
scanf("%d", &d);
scanf("%d", &e);
scanf("%d", &k);
if (e - a > k) {
printf(":(\n");
} else {
printf("Yay!\n");
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 888,396 | 888,397 | u629341543 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a[5], k;
cin >> a[0] >> a[1] >> a[2] >> a[3] >> a[4] >> k;
for (int i = 0; i < 4; i++) {
for (int j = i + 1; j < 4; j++) {
if (a[j] - a[i] > k) {
cout << ":(" << endl;
return 0;
}
}
}
cout << "Yay!" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a[5], k;
cin >> a[0] >> a[1] >> a[2] >> a[3] >> a[4] >> k;
for (int i = 0; i < 4; i++) {
for (int j = i + 1; j < 5; j++) {
if (a[j] - a[i] > k) {
cout << ":(" << endl;
return 0;
}
}
}
cout << "Yay!" << endl;
return 0;
}
| [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 888,405 | 888,406 | u988542029 | cpp |
p03075 | #include <algorithm>
#include <cassert>
#include <cstring>
#include <iostream>
#include <math.h>
#include <stdexcept>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <utility>
#include <vector>
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--) /// n-1番目からn回
#define REP(i, a, b) for (int i = a; i < b; i++) /// a番目からb回
#define RREP(i, a, b) for (int i = a; i < b; i--)
typedef long long int ll;
typedef vector<ll> vl;
typedef vector<int> vi;
typedef vector<string> vs;
// int arr[N]
////sort(arr,arr +N)
// vector <int> hoge
////sort(hoge.begin(),hoge.end());
///*min_element(hoge.begin(),hoge.end(); 最小値 最大値はmax_element();
int gcd(int a, int b);
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a < k) {
puts("Yay!");
return 0;
} else
puts(":(");
}
int gcd(int a, int b) {
if (b == 0)
return a;
return gcd(b, a % b);
} | #include <algorithm>
#include <cassert>
#include <cstring>
#include <iostream>
#include <math.h>
#include <stdexcept>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <utility>
#include <vector>
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--) /// n-1番目からn回
#define REP(i, a, b) for (int i = a; i < b; i++) /// a番目からb回
#define RREP(i, a, b) for (int i = a; i < b; i--)
typedef long long int ll;
typedef vector<ll> vl;
typedef vector<int> vi;
typedef vector<string> vs;
// int arr[N]
////sort(arr,arr +N)
// vector <int> hoge
////sort(hoge.begin(),hoge.end());
///*min_element(hoge.begin(),hoge.end(); 最小値 最大値はmax_element();
int gcd(int a, int b);
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a <= k) {
puts("Yay!");
return 0;
} else
puts(":(");
}
int gcd(int a, int b) {
if (b == 0)
return a;
return gcd(b, a % b);
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,407 | 888,408 | u696415377 | cpp |
p03075 | #include <iostream>
using namespace std;
int main() {
int arr[5], k;
for (int &i : arr)
cin >> i;
cin >> k;
bool flag = true;
for (int i = 0; i < 5; i++)
for (int j = i + 1; j < 5; j++)
flag = flag && (arr[j] - arr[i] <= k);
cout << flag ? "Yay!" : ":(";
} | #include <iostream>
using namespace std;
int main() {
int arr[5], k;
for (int &i : arr)
cin >> i;
cin >> k;
bool flag = true;
for (int i = 0; i < 5; i++)
for (int j = i + 1; j < 5; j++)
flag = flag && (arr[j] - arr[i] <= k);
cout << (flag ? "Yay!" : ":(");
} | [] | 888,409 | 888,410 | u081249228 | cpp |
p03075 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main(void) {
// Your code here!
vector<int> a;
for (int i = 0; i < 6; i++) {
int n;
cin >> n;
a.push_back(n);
}
int x = a[4] - a[0];
if (x <= a[5]) {
cout << "Yey!" << endl;
} else {
cout << ":(" << endl;
}
}
| #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main(void) {
// Your code here!
vector<int> a;
for (int i = 0; i < 6; i++) {
int n;
cin >> n;
a.push_back(n);
}
int x = a[4] - a[0];
if (x <= a[5]) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
}
| [
"literal.string.change",
"io.output.change"
] | 888,413 | 888,414 | u354492470 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a[5], k;
for (int i = 0; i < 5; i++) {
cin >> a[i];
}
cin >> k;
sort(a, a + 5);
if (a[4] > k)
cout << ":(";
else
cout << "Yay!";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a[5], k;
for (int i = 0; i < 5; i++) {
cin >> a[i];
}
cin >> k;
sort(a, a + 5);
if (a[4] - a[0] > k)
cout << ":(";
else
cout << "Yay!";
} | [
"control_flow.branch.if.condition.change"
] | 888,417 | 888,418 | u168820186 | cpp |
p03075 | #include <algorithm>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
using namespace std;
int main() {
int ans = 0;
int tosort[5];
int k;
int s = 0;
bool can = true;
for (int i = 0; i < 5; i++)
cin >> tosort[i];
cin >> k;
for (int i = 0; i < 5; i++) {
int tmp = 0;
for (int j = 0; j < 5; j++) {
if (tosort[i] > tosort[j]) {
tmp = tosort[i];
tosort[i] = tosort[j];
tosort[j] = tmp;
}
}
}
if (abs(tosort[0] - tosort[4]) >= k)
can = false;
if (can)
cout << "Yay!" << '\n';
else
cout << ":(" << '\n';
return 0;
} | #include <algorithm>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
using namespace std;
int main() {
int ans = 0;
int tosort[5];
int k;
int s = 0;
bool can = true;
for (int i = 0; i < 5; i++)
cin >> tosort[i];
cin >> k;
for (int i = 0; i < 5; i++) {
int tmp = 0;
for (int j = 0; j < 5; j++) {
if (tosort[i] > tosort[j]) {
tmp = tosort[i];
tosort[i] = tosort[j];
tosort[j] = tmp;
}
}
}
if (abs(tosort[0] - tosort[4]) > k)
can = false;
if (can)
cout << "Yay!" << '\n';
else
cout << ":(" << '\n';
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,437 | 888,438 | u395846213 | cpp |
p03075 | #include <algorithm>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
using namespace std;
int main() {
int ans = 0;
int tosort[5];
int k;
int s = 0;
bool can = true;
for (int i = 0; i < 5; i++)
cin >> tosort[i];
cin >> k;
for (int i = 0; i < 5; i++) {
int tmp = 0;
for (int j = 0; j < 5; j++) {
if (tosort[i] > tosort[j]) {
tmp = tosort[i];
tosort[i] = tosort[j];
tosort[j] = tmp;
}
}
}
if (tosort[0] - tosort[4] >= k)
can = false;
if (can)
cout << "Yay!" << '\n';
else
cout << ":(" << '\n';
return 0;
}
| #include <algorithm>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
using namespace std;
int main() {
int ans = 0;
int tosort[5];
int k;
int s = 0;
bool can = true;
for (int i = 0; i < 5; i++)
cin >> tosort[i];
cin >> k;
for (int i = 0; i < 5; i++) {
int tmp = 0;
for (int j = 0; j < 5; j++) {
if (tosort[i] > tosort[j]) {
tmp = tosort[i];
tosort[i] = tosort[j];
tosort[j] = tmp;
}
}
}
if (abs(tosort[0] - tosort[4]) > k)
can = false;
if (can)
cout << "Yay!" << '\n';
else
cout << ":(" << '\n';
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 888,439 | 888,438 | u395846213 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a < k) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a <= k) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,440 | 888,441 | u539675863 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
// input
vector<int> a(5);
int k;
for (int i = 0; i < 5; i++) {
cin >> a[i];
}
cin >> k;
if (a[4] - a[0] > k) {
cout << ":(" << endl;
} else {
cout << "Yay !" << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
// input
vector<int> a(5);
int k;
for (int i = 0; i < 5; i++) {
cin >> a[i];
}
cin >> k;
if (a[4] - a[0] > k) {
cout << ":(" << endl;
} else {
cout << "Yay!" << endl;
}
return 0;
} | [
"literal.string.change",
"io.output.change"
] | 888,442 | 888,443 | u843574076 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
// input
vector<int> a(5);
int k;
for (int i = 0; i < 5; i++) {
cin >> a[i];
}
cin >> k;
if (a[4] - a[0] < k) {
cout << ":(" << endl;
} else {
cout << "Yay !" << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
// input
vector<int> a(5);
int k;
for (int i = 0; i < 5; i++) {
cin >> a[i];
}
cin >> k;
if (a[4] - a[0] > k) {
cout << ":(" << endl;
} else {
cout << "Yay!" << endl;
}
return 0;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"io.output.change"
] | 888,444 | 888,443 | u843574076 | cpp |
p03075 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a > k) {
cout << "Yey!" << endl;
} else {
cout << ":(" << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a <= k) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"io.output.change"
] | 888,453 | 888,454 | u119012830 | cpp |
p03075 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
cout << ((e - a) > k ? "Yay!" : ":(") << endl;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
cout << ((e - a) <= k ? "Yay!" : ":(") << endl;
}
| [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"io.output.change"
] | 888,455 | 888,456 | u635406078 | cpp |
p03075 | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <string>
#include <vector>
#define rep(i, a, n) for (int(i) = (a); (i) < (n); (i)++)
#define rrep(i, a, n) for (int(i) = (a); (i) >= (n); (i)--)
#define INF 100000000
typedef long long ll;
using namespace std;
double euclid_distance(double a, double b) { return sqrt(a * a + b * b); }
int gcd(long long int a, long long int b) {
long long int r;
if (a < b) {
int tmp;
tmp = a;
a = b;
b = tmp;
}
while (r != 0) {
r = a % b;
a = b;
b = r;
}
return r;
}
void Integer_factorization(long long int b, long long int n) {
long long int a = 2;
long long int count = 0;
long long int ans = 1;
long long int ndash = n;
if (b == 1)
cout << n << endl;
else {
while (ndash >= a * a) {
if (n % a == 0) {
count++;
n /= a;
if (count % b == 0) {
ans *= a;
}
} else {
a++;
count = 0;
}
}
cout << ans << endl;
}
}
void ys() { cout << "Yes" << endl; }
void yb() { cout << "YES" << endl; }
void ns() { cout << "No" << endl; }
void nb() { cout << "NO" << endl; }
void solve(void) {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a < k)
cout << "Yay!" << endl;
else
cout << ":(" << endl;
}
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
solve();
}
| #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <string>
#include <vector>
#define rep(i, a, n) for (int(i) = (a); (i) < (n); (i)++)
#define rrep(i, a, n) for (int(i) = (a); (i) >= (n); (i)--)
#define INF 100000000
typedef long long ll;
using namespace std;
double euclid_distance(double a, double b) { return sqrt(a * a + b * b); }
int gcd(long long int a, long long int b) {
long long int r;
if (a < b) {
int tmp;
tmp = a;
a = b;
b = tmp;
}
while (r != 0) {
r = a % b;
a = b;
b = r;
}
return r;
}
void Integer_factorization(long long int b, long long int n) {
long long int a = 2;
long long int count = 0;
long long int ans = 1;
long long int ndash = n;
if (b == 1)
cout << n << endl;
else {
while (ndash >= a * a) {
if (n % a == 0) {
count++;
n /= a;
if (count % b == 0) {
ans *= a;
}
} else {
a++;
count = 0;
}
}
cout << ans << endl;
}
}
void ys() { cout << "Yes" << endl; }
void yb() { cout << "YES" << endl; }
void ns() { cout << "No" << endl; }
void nb() { cout << "NO" << endl; }
void solve(void) {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a <= k)
cout << "Yay!" << endl;
else
cout << ":(" << endl;
}
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
solve();
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,473 | 888,474 | u843974324 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> a(5);
for (int i = 0; i < 5; i++) {
cin >> a[i];
}
int k;
cin >> k;
sort(a.begin(), a.end());
if (a[5] - a[0] <= k) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> a(5);
for (int i = 0; i < 5; i++) {
cin >> a[i];
}
int k;
cin >> k;
sort(a.begin(), a.end());
if (a[4] - a[0] <= k) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
} | [
"literal.number.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 888,475 | 888,476 | u544165468 | cpp |
p03075 | #include <bits/stdc++.h>
#define REP(i, n) for (long long i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define FORR(i, m, n) for (int i = m; i >= n; i--)
#define SORT(v, n) sort(v, v + n);
#define VSORT(v) sort(v.begin(), v.end());
#define ll long long
#define pb(a) push_back(a)
#define INF 999999999
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (d - a <= k) {
cout << "Yay!";
} else {
cout << ":(";
}
} | #include <bits/stdc++.h>
#define REP(i, n) for (long long i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define FORR(i, m, n) for (int i = m; i >= n; i--)
#define SORT(v, n) sort(v, v + n);
#define VSORT(v) sort(v.begin(), v.end());
#define ll long long
#define pb(a) push_back(a)
#define INF 999999999
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a <= k) {
cout << "Yay!";
} else {
cout << ":(";
}
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 888,496 | 888,497 | u179643082 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (k > e - a) {
cout << "Yay!";
} else {
cout << ":(";
}
cout << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (k >= e - a) {
cout << "Yay!";
} else {
cout << ":(";
}
cout << endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,498 | 888,499 | u794565416 | cpp |
p03075 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (d - a > k)
cout << ":(" << endl;
else
cout << "Yay!";
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a > k)
cout << ":(" << endl;
else
cout << "Yay!";
return 0;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 888,500 | 888,501 | u520205434 | cpp |
p03075 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (d - a > k)
cout << ":(" << endl;
else
cout << "yay!";
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a > k)
cout << ":(" << endl;
else
cout << "Yay!";
return 0;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 888,502 | 888,501 | u520205434 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (b - a > k) {
cout << ":(" << endl;
} else if (c - b > k) {
cout << ":(" << endl;
} else if (d - c > k) {
cout << ":(" << endl;
} else if (e - d > k) {
cout << ":(" << endl;
} else {
cout << "Yay!" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a > k) {
cout << ":(" << endl;
} else if (e - b > k) {
cout << ":(" << endl;
} else if (e - c > k) {
cout << ":(" << endl;
} else if (e - d > k) {
cout << ":(" << endl;
} else {
cout << "Yay!" << endl;
}
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 888,510 | 888,511 | u201743726 | cpp |
p03075 | //
// Created on 4/26/19.
//
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a;
cin >> b;
cin >> c;
cin >> d;
cin >> e;
cin >> k;
if (e - a >= k) {
cout << ":(" << endl;
} else {
cout << "Yay!" << endl;
}
} | //
// Created on 4/26/19.
//
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a;
cin >> b;
cin >> c;
cin >> d;
cin >> e;
cin >> k;
if (e - a <= k) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"io.output.change"
] | 888,514 | 888,515 | u655975843 | cpp |
p03075 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main(void) {
int a, b, c, d, e, f;
cin >> a >> b >> c >> d >> e >> f;
if ((d - a) <= f)
cout << "Yay!" << endl;
else
cout << ":(" << endl;
return 0;
}
| #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main(void) {
int a, b, c, d, e, f;
cin >> a >> b >> c >> d >> e >> f;
if ((e - a) <= f)
cout << "Yay!" << endl;
else
cout << ":(" << endl;
return 0;
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 888,535 | 888,536 | u454349421 | cpp |
p03075 | #include <iostream>
using namespace std;
int main(void) {
// Your code here!
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a < k)
cout << "Yay!" << endl;
else
cout << ":(" << endl;
} | #include <iostream>
using namespace std;
int main(void) {
// Your code here!
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a <= k)
cout << "Yay!" << endl;
else
cout << ":(" << endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,543 | 888,544 | u652286295 | cpp |
p03075 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a >= k)
cout << ":(" << endl;
else
cout << "Yay!" << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a > k)
cout << ":(" << endl;
else
cout << "Yay!" << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,554 | 888,555 | u513736711 | cpp |
p03075 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#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 ASC(c) sort((c).begin(), (c).end())
#define DESC(c) sort((c).begin(), (c).end(), greater<int>())
#define DUMP(x) cerr << #x << " = " << (x) << endl;
#define DEBUG(x) \
cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" \
<< " " << __FILE__ << endl;
typedef long long ll;
typedef unsigned long long ull;
struct edge {
int u, v;
ll w;
};
ll MOD = 1000000007;
ll _MOD = 1000000009;
double EPS = 1e-10;
int main() {
vector<int> a(5);
REP(i, 5) cin >> a[i];
int k;
cin >> k;
if (a[5] - a[0] <= k)
cout << "Yay!" << endl;
else
cout << ":(" << endl;
}
| #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#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 ASC(c) sort((c).begin(), (c).end())
#define DESC(c) sort((c).begin(), (c).end(), greater<int>())
#define DUMP(x) cerr << #x << " = " << (x) << endl;
#define DEBUG(x) \
cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" \
<< " " << __FILE__ << endl;
typedef long long ll;
typedef unsigned long long ull;
struct edge {
int u, v;
ll w;
};
ll MOD = 1000000007;
ll _MOD = 1000000009;
double EPS = 1e-10;
int main() {
vector<int> a(5);
REP(i, 5) cin >> a[i];
int k;
cin >> k;
if (a[4] - a[0] <= k)
cout << "Yay!" << endl;
else
cout << ":(" << endl;
}
| [
"literal.number.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 888,556 | 888,557 | u112581208 | cpp |
p03075 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#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 ASC(c) sort((c).begin(), (c).end())
#define DESC(c) sort((c).begin(), (c).end(), greater<int>())
#define DUMP(x) cerr << #x << " = " << (x) << endl;
#define DEBUG(x) \
cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" \
<< " " << __FILE__ << endl;
typedef long long ll;
typedef unsigned long long ull;
struct edge {
int u, v;
ll w;
};
ll MOD = 1000000007;
ll _MOD = 1000000009;
double EPS = 1e-10;
int main() {
vector<int> a(6);
REP(i, 5) cin >> a[i];
int k;
cin >> k;
ASC(a);
if (a[4] - a[0] <= k)
cout << "Yay!" << endl;
else
cout << ":(" << endl;
}
| #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#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 ASC(c) sort((c).begin(), (c).end())
#define DESC(c) sort((c).begin(), (c).end(), greater<int>())
#define DUMP(x) cerr << #x << " = " << (x) << endl;
#define DEBUG(x) \
cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" \
<< " " << __FILE__ << endl;
typedef long long ll;
typedef unsigned long long ull;
struct edge {
int u, v;
ll w;
};
ll MOD = 1000000007;
ll _MOD = 1000000009;
double EPS = 1e-10;
int main() {
vector<int> a(5);
REP(i, 5) cin >> a[i];
int k;
cin >> k;
if (a[4] - a[0] <= k)
cout << "Yay!" << endl;
else
cout << ":(" << endl;
}
| [
"literal.number.change",
"call.arguments.change",
"call.remove"
] | 888,558 | 888,557 | u112581208 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
using VS = vector<string>;
using LL = long long;
using VI = vector<int>;
using VVI = vector<VI>;
using PII = pair<int, int>;
using PLL = pair<LL, LL>;
using VL = vector<LL>;
using VVL = vector<VL>;
#define ALL(a) begin((a)), end((a))
#define RALL(a) (a).rbegin(), (a).rend()
#define SZ(a) int((a).size())
#define SORT(c) sort(ALL((c)))
#define RSORT(c) sort(RALL((c)))
#define UNIQ(c) (c).erase(unique(ALL((c))), end((c)))
#define FOR(i, s, e) for (int(i) = (s); (i) < (e); (i)++)
#define FORR(i, s, e) for (int(i) = (s); (i) > (e); (i)--)
//#pragma GCC optimize ("-O3")
#ifdef YANG33
#include "mydebug.hpp"
#else
#define DD(x)
#endif
const int INF = 1e9;
const LL LINF = 1e16;
const LL MOD = 1000000007;
const double PI = acos(-1.0);
int DX[8] = {0, 0, 1, -1, 1, 1, -1, -1};
int DY[8] = {1, -1, 0, 0, 1, -1, 1, -1};
/* ----- 2019/04/24 Problem: ABC 123 A / Link:
* http://abc123.contest.atcoder.jp/tasks/abc123_a ----- */
int main() {
cin.tie(0);
ios_base::sync_with_stdio(false);
int N = 5;
vector<int> a(N);
for (int i = 0; i < N; ++i) {
cin >> a[i];
}
int K;
cin >> K;
LL ans = a.back() - a.front();
cout << (ans < K ? "Yay!" : ":(") << "\n";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
using VS = vector<string>;
using LL = long long;
using VI = vector<int>;
using VVI = vector<VI>;
using PII = pair<int, int>;
using PLL = pair<LL, LL>;
using VL = vector<LL>;
using VVL = vector<VL>;
#define ALL(a) begin((a)), end((a))
#define RALL(a) (a).rbegin(), (a).rend()
#define SZ(a) int((a).size())
#define SORT(c) sort(ALL((c)))
#define RSORT(c) sort(RALL((c)))
#define UNIQ(c) (c).erase(unique(ALL((c))), end((c)))
#define FOR(i, s, e) for (int(i) = (s); (i) < (e); (i)++)
#define FORR(i, s, e) for (int(i) = (s); (i) > (e); (i)--)
//#pragma GCC optimize ("-O3")
#ifdef YANG33
#include "mydebug.hpp"
#else
#define DD(x)
#endif
const int INF = 1e9;
const LL LINF = 1e16;
const LL MOD = 1000000007;
const double PI = acos(-1.0);
int DX[8] = {0, 0, 1, -1, 1, 1, -1, -1};
int DY[8] = {1, -1, 0, 0, 1, -1, 1, -1};
/* ----- 2019/04/24 Problem: ABC 123 A / Link:
* http://abc123.contest.atcoder.jp/tasks/abc123_a ----- */
int main() {
cin.tie(0);
ios_base::sync_with_stdio(false);
int N = 5;
vector<int> a(N);
for (int i = 0; i < N; ++i) {
cin >> a[i];
}
int K;
cin >> K;
LL ans = a.back() - a.front();
cout << (ans <= K ? "Yay!" : ":(") << "\n";
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"io.output.change"
] | 888,563 | 888,564 | u788341294 | cpp |
p03075 | #include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> coordinate;
int a, k;
for (int i = 0; i < 5; i++) {
cin >> a;
coordinate.push_back(a);
}
cin >> k;
if (coordinate[4] - coordinate[0] > k) {
cout << ":(" << endl;
} else if (coordinate[4] - coordinate[0] <= k) {
cout << "Yey!" << endl;
}
return 0;
} | #include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> coordinate;
int a, k;
for (int i = 0; i < 5; i++) {
cin >> a;
coordinate.push_back(a);
}
cin >> k;
if (coordinate[4] - coordinate[0] > k) {
cout << ":(" << endl;
} else if (coordinate[4] - coordinate[0] <= k) {
cout << "Yay!" << endl;
}
return 0;
} | [
"literal.string.change",
"io.output.change"
] | 888,569 | 888,570 | u081094913 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
string re;
cin >> a >> b >> c >> d >> e >> k;
if (e - a <= k) {
re = 'Yay!';
} else {
re = ':(';
}
cout << re << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
string re;
cin >> a >> b >> c >> d >> e >> k;
if (e - a <= k) {
re = "Yay!";
} else {
re = ":(";
}
cout << re << endl;
return 0;
} | [
"literal.string.change",
"assignment.value.change"
] | 888,585 | 888,586 | u313578168 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a < 15)
cout << "Yay!" << endl;
else
cout << ":(" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a <= k)
cout << "Yay!" << endl;
else
cout << ":(" << endl;
return 0;
} | [] | 888,589 | 888,588 | u954081460 | cpp |
p03075 | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <string>
#include <vector>
#define MOD 1000000007
#define INF INT_MAX
#define NINF INT_MIN
#define LLINF LLONG_MAX
using ll = long long;
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a <= k) {
cout << ":(" << endl;
} else {
cout << "Yay!" << endl;
}
getchar();
getchar();
return 0;
} | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <string>
#include <vector>
#define MOD 1000000007
#define INF INT_MAX
#define NINF INT_MIN
#define LLINF LLONG_MAX
using ll = long long;
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a > k) {
cout << ":(" << endl;
} else {
cout << "Yay!" << endl;
}
getchar();
getchar();
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,594 | 888,595 | u165374901 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, K;
cin >> a >> b >> c >> d >> e >> K;
if (e - a < K) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, K;
cin >> a >> b >> c >> d >> e >> K;
if (e - a <= K) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,596 | 888,597 | u097827299 | cpp |
p03075 | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
vector<int> antenna(5);
REP(i, 5) cin >> antenna[i];
int k;
cin >> k;
int maxi = *max_element(antenna.begin(), antenna.end());
int mini = *min_element(antenna.begin(), antenna.end());
if ((maxi - mini) < k)
cout << "Yay!" << endl;
else
cout << ":(" << endl;
} | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
vector<int> antenna(5);
REP(i, 5) cin >> antenna[i];
int k;
cin >> k;
int maxi = *max_element(antenna.begin(), antenna.end());
int mini = *min_element(antenna.begin(), antenna.end());
if ((maxi - mini) <= k)
cout << "Yay!" << endl;
else
cout << ":(" << endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,600 | 888,601 | u342042786 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
// type alias
typedef long long LL;
typedef pair<int, int> II;
typedef tuple<int, int, int> III;
typedef vector<int> VI;
typedef vector<string> VS;
typedef unordered_map<int, int> MAPII;
typedef unordered_set<int> SETI;
template <class T> using VV = vector<vector<T>>;
// minmax
template <class T> inline T SMIN(T &a, const T b) {
return a = (a > b) ? b : a;
}
template <class T> inline T SMAX(T &a, const T b) {
return a = (a < b) ? b : a;
}
// repetition
#define FORE(i, a, b) for (int i = (a); i <= (b); ++i)
#define REPE(i, n) for (int i = 0; i <= (n); ++i)
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) for (int i = 0; i < (n); ++i)
#define FORR(x, arr) for (auto &x : arr)
#define SZ(a) int((a).size())
// collection
#define ALL(c) (c).begin(), (c).end()
// DP
#define MINUS(dp) memset(dp, -1, sizeof(dp))
#define ZERO(dp) memset(dp, 0, sizeof(dp))
// stdout
#define println(args...) fprintf(stdout, ##args), putchar('\n');
// debug cerr
template <class Iter> void __kumaerrc(Iter begin, Iter end) {
for (; begin != end; ++begin) {
cerr << *begin << ',';
}
cerr << endl;
}
void __kumaerr(istream_iterator<string> it) {
(void)it;
cerr << endl;
}
template <typename T, typename... Args>
void __kumaerr(istream_iterator<string> it, T a, Args... args) {
cerr << *it << "=" << a << ", ", __kumaerr(++it, args...);
}
template <typename S, typename T>
std::ostream &operator<<(std::ostream &_os, const std::pair<S, T> &_p) {
return _os << "{" << _p.first << ',' << _p.second << "}";
}
#define __KUMATRACE__ true
#ifdef __KUMATRACE__
#define dump(args...) \
{ \
string _s = #args; \
replace(_s.begin(), _s.end(), ',', ' '); \
stringstream _ss(_s); \
istream_iterator<string> _it(_ss); \
__kumaerr(_it, args); \
}
#define dumpc(ar) \
{ \
cerr << #ar << ": "; \
FORR(x, (ar)) { cerr << x << ','; } \
cerr << endl; \
}
#define dumpC(beg, end) \
{ \
cerr << "~" << #end << ": "; \
__kumaerrc(beg, end); \
}
#else
#define dump(args...)
#define dumpc(ar)
#define dumpC(beg, end)
#endif
// $ cp-batch FiveAntennas | diff FiveAntennas.out -
// $ g++ -std=c++14 -Wall -O2 -D_GLIBCXX_DEBUG -fsanitize=address
// FiveAntennas.cpp && ./a.out
/*
4/7/2019
19:55-
*/
int K;
LL A[5];
void solve() { cout << (A[4] - A[0] <= 15 ? "Yay!" : ":(") << endl; }
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout << setprecision(12) << fixed;
REP(i, 5) cin >> A[i];
cin >> K;
solve();
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
// type alias
typedef long long LL;
typedef pair<int, int> II;
typedef tuple<int, int, int> III;
typedef vector<int> VI;
typedef vector<string> VS;
typedef unordered_map<int, int> MAPII;
typedef unordered_set<int> SETI;
template <class T> using VV = vector<vector<T>>;
// minmax
template <class T> inline T SMIN(T &a, const T b) {
return a = (a > b) ? b : a;
}
template <class T> inline T SMAX(T &a, const T b) {
return a = (a < b) ? b : a;
}
// repetition
#define FORE(i, a, b) for (int i = (a); i <= (b); ++i)
#define REPE(i, n) for (int i = 0; i <= (n); ++i)
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) for (int i = 0; i < (n); ++i)
#define FORR(x, arr) for (auto &x : arr)
#define SZ(a) int((a).size())
// collection
#define ALL(c) (c).begin(), (c).end()
// DP
#define MINUS(dp) memset(dp, -1, sizeof(dp))
#define ZERO(dp) memset(dp, 0, sizeof(dp))
// stdout
#define println(args...) fprintf(stdout, ##args), putchar('\n');
// debug cerr
template <class Iter> void __kumaerrc(Iter begin, Iter end) {
for (; begin != end; ++begin) {
cerr << *begin << ',';
}
cerr << endl;
}
void __kumaerr(istream_iterator<string> it) {
(void)it;
cerr << endl;
}
template <typename T, typename... Args>
void __kumaerr(istream_iterator<string> it, T a, Args... args) {
cerr << *it << "=" << a << ", ", __kumaerr(++it, args...);
}
template <typename S, typename T>
std::ostream &operator<<(std::ostream &_os, const std::pair<S, T> &_p) {
return _os << "{" << _p.first << ',' << _p.second << "}";
}
#define __KUMATRACE__ true
#ifdef __KUMATRACE__
#define dump(args...) \
{ \
string _s = #args; \
replace(_s.begin(), _s.end(), ',', ' '); \
stringstream _ss(_s); \
istream_iterator<string> _it(_ss); \
__kumaerr(_it, args); \
}
#define dumpc(ar) \
{ \
cerr << #ar << ": "; \
FORR(x, (ar)) { cerr << x << ','; } \
cerr << endl; \
}
#define dumpC(beg, end) \
{ \
cerr << "~" << #end << ": "; \
__kumaerrc(beg, end); \
}
#else
#define dump(args...)
#define dumpc(ar)
#define dumpC(beg, end)
#endif
// $ cp-batch FiveAntennas | diff FiveAntennas.out -
// $ g++ -std=c++14 -Wall -O2 -D_GLIBCXX_DEBUG -fsanitize=address
// FiveAntennas.cpp && ./a.out
/*
4/7/2019
19:55-19:59 WA
*/
int K;
LL A[5];
void solve() { cout << (A[4] - A[0] <= K ? "Yay!" : ":(") << endl; }
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout << setprecision(12) << fixed;
REP(i, 5) cin >> A[i];
cin >> K;
solve();
return 0;
}
| [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.condition.change",
"io.output.change"
] | 888,602 | 888,603 | u465317453 | cpp |
p03075 | #include <iostream>
int main() {
int a, b, c, d, e, k;
std::cin >> a >> b >> c >> d >> e >> k;
std::cout << (e - a <= k) ? "Yay!" : ":(";
return 0;
} | #include <iostream>
int main() {
int a, b, c, d, e, k;
std::cin >> a >> b >> c >> d >> e >> k;
std::cout << ((e - a <= k) ? "Yay!" : ":(");
return 0;
}
| [] | 888,606 | 888,607 | u444349080 | cpp |
p03075 | // doot diddly donger cuckerino Hahahahahah
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef long double LD;
typedef unsigned int UINT;
typedef unsigned long long ULL;
typedef pair<int, int> PII;
typedef pair<string, int> PSI;
typedef pair<LL, LL> PLL;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef vector<bool> VB;
typedef vector<PII> VPII;
typedef vector<PLL> VPLL;
typedef vector<LL> VLL;
typedef vector<VLL> VVLL;
typedef tuple<int, int, int> TPL;
typedef priority_queue<int> pqueue;
typedef priority_queue<int, VI, greater<>> pdqueue;
#define sim template <class T
#define ris return *this
#define dor > debug &operator<<
#define eni(x) \
sim > typename enable_if<sizeof dud<T>(0) x 1, debug &>::type operator<<( \
T i) {
sim > struct rge { T b, e; };
sim > rge<T> range(T i, T j) { return rge<T>{i, j}; }
sim > auto dud(T *x) -> decltype(cerr << *x, 0);
sim > char dud(...);
struct debug {
#ifdef LOCAL
~debug() { cerr << endl; }
eni(!=) cerr << boolalpha << i;
ris;
} eni(==) ris << range(begin(i), end(i));
}
sim, class b dor(pair<b, T> d) {
ris << "(" << d.first << ", " << d.second << ")";
}
sim dor(rge<T> d) {
*this << "[";
for (auto it = d.b; it != d.e; ++it)
*this << ", " + 2 * (it == d.b) << *it;
ris << "]";
}
#else
sim dor(const T &) { ris; }
#endif
}
;
#define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
#define MP make_pair
#define MT make_tuple
#define PB push_back
#define EB emplace_back
#define UNIQUE(X) \
sort(ALL(X)); \
(X).erase(unique(ALL(X)), (X).end())
#define F first
#define S second
#define SZ(x) (int)(x).size()
#define ALL(a) std::begin(a), std::end(a)
#define Fill(n, x) memset(n, x, sizeof(n))
#define IN_REP \
int _t; \
cin >> _t; \
while (_t--)
#define IOS \
ios::sync_with_stdio(false); \
cin.tie(NULL)
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) FOR(i, 0, n)
#define FORR(i, n) for (int i = (n); i >= 0; i--)
#define EPS (double)1e-9
#define MOD (LL)(1000 * 1000 * 1000 + 7)
#define cerr2(x, y) cerr << (x) << " " << (y) << endl;
#define cout2(x, y) cout << (x) << " " << (y) << endl;
const LD PI = acos(-1);
sim > T gcd(T x, T y) { return (y == 0) ? x : gcd(y, x % y); }
sim > void mini(T &a, T b) { a = min(a, b); }
sim > void maxi(T &a, T b) { a = max(a, b); }
sim > inline void add(T &x, T y) {
x += y;
if (x >= MOD)
x -= MOD;
}
sim > inline void sub(T &x, T y) {
x -= y;
if (x < 0)
x += MOD;
}
sim > inline T mul(T a, T b) {
LL x = (long long)a * b;
x %= MOD;
return x;
}
sim > inline T power(T base, T exp) {
T result = 1;
while (exp) {
if (exp & 1)
result *= base;
exp >>= 1;
base *= base;
}
return result;
}
sim > inline T power(T a, T b, T mod) {
T res = 1;
while (b > 0) {
if (b & 1) {
res = mul(res, a);
}
a = mul(a, a);
b >>= 1;
}
return res % mod;
}
sim > inline T modInverse(T n, T p) { return power(n, p - 2, p) % p; }
sim, typename U > string to_string(pair<T, U> p) {
return "" + to_string(p.F) + " " + to_string(p.S) + "";
}
int main() {
int n = 5, k;
VI a(n);
REP(i, n) cin >> a[i];
cin >> k;
sort(ALL(a));
cout << (abs(a[n - 1] - a[0]) < k ? "Yay!" : ":(") << endl;
return 0;
}
| // doot diddly donger cuckerino Hahahahahah
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef long double LD;
typedef unsigned int UINT;
typedef unsigned long long ULL;
typedef pair<int, int> PII;
typedef pair<string, int> PSI;
typedef pair<LL, LL> PLL;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef vector<bool> VB;
typedef vector<PII> VPII;
typedef vector<PLL> VPLL;
typedef vector<LL> VLL;
typedef vector<VLL> VVLL;
typedef tuple<int, int, int> TPL;
typedef priority_queue<int> pqueue;
typedef priority_queue<int, VI, greater<>> pdqueue;
#define sim template <class T
#define ris return *this
#define dor > debug &operator<<
#define eni(x) \
sim > typename enable_if<sizeof dud<T>(0) x 1, debug &>::type operator<<( \
T i) {
sim > struct rge { T b, e; };
sim > rge<T> range(T i, T j) { return rge<T>{i, j}; }
sim > auto dud(T *x) -> decltype(cerr << *x, 0);
sim > char dud(...);
struct debug {
#ifdef LOCAL
~debug() { cerr << endl; }
eni(!=) cerr << boolalpha << i;
ris;
} eni(==) ris << range(begin(i), end(i));
}
sim, class b dor(pair<b, T> d) {
ris << "(" << d.first << ", " << d.second << ")";
}
sim dor(rge<T> d) {
*this << "[";
for (auto it = d.b; it != d.e; ++it)
*this << ", " + 2 * (it == d.b) << *it;
ris << "]";
}
#else
sim dor(const T &) { ris; }
#endif
}
;
#define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
#define MP make_pair
#define MT make_tuple
#define PB push_back
#define EB emplace_back
#define UNIQUE(X) \
sort(ALL(X)); \
(X).erase(unique(ALL(X)), (X).end())
#define F first
#define S second
#define SZ(x) (int)(x).size()
#define ALL(a) std::begin(a), std::end(a)
#define Fill(n, x) memset(n, x, sizeof(n))
#define IN_REP \
int _t; \
cin >> _t; \
while (_t--)
#define IOS \
ios::sync_with_stdio(false); \
cin.tie(NULL)
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) FOR(i, 0, n)
#define FORR(i, n) for (int i = (n); i >= 0; i--)
#define EPS (double)1e-9
#define MOD (LL)(1000 * 1000 * 1000 + 7)
#define cerr2(x, y) cerr << (x) << " " << (y) << endl;
#define cout2(x, y) cout << (x) << " " << (y) << endl;
const LD PI = acos(-1);
sim > T gcd(T x, T y) { return (y == 0) ? x : gcd(y, x % y); }
sim > void mini(T &a, T b) { a = min(a, b); }
sim > void maxi(T &a, T b) { a = max(a, b); }
sim > inline void add(T &x, T y) {
x += y;
if (x >= MOD)
x -= MOD;
}
sim > inline void sub(T &x, T y) {
x -= y;
if (x < 0)
x += MOD;
}
sim > inline T mul(T a, T b) {
LL x = (long long)a * b;
x %= MOD;
return x;
}
sim > inline T power(T base, T exp) {
T result = 1;
while (exp) {
if (exp & 1)
result *= base;
exp >>= 1;
base *= base;
}
return result;
}
sim > inline T power(T a, T b, T mod) {
T res = 1;
while (b > 0) {
if (b & 1) {
res = mul(res, a);
}
a = mul(a, a);
b >>= 1;
}
return res % mod;
}
sim > inline T modInverse(T n, T p) { return power(n, p - 2, p) % p; }
sim, typename U > string to_string(pair<T, U> p) {
return "" + to_string(p.F) + " " + to_string(p.S) + "";
}
int main() {
int n = 5, k;
VI a(n);
REP(i, n) cin >> a[i];
cin >> k;
sort(ALL(a));
cout << (abs(a[n - 1] - a[0]) <= k ? "Yay!" : ":(") << endl;
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"io.output.change"
] | 888,618 | 888,619 | u592758681 | cpp |
p03075 | #include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define vi vector<ll int>
#define all(a) (a).begin(), (a).end()
#define F first
#define S second
#define hell 1000000007
#define lbnd lower_bound
#define ubnd upper_bound
#define sll set<ll int>
#define msll multiset<ll int>
#define io \
ios_base::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
using namespace std;
int main() {
io ll i, j, a[6], k;
for (i = 0; i < 5; i++)
cin >> a[i];
if ((*max_element(a, a + 5)) - (*min_element(a, a + 5)) > k)
cout << ":(";
else
cout << "Yay!";
return 0;
} | #include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define vi vector<ll int>
#define all(a) (a).begin(), (a).end()
#define F first
#define S second
#define hell 1000000007
#define lbnd lower_bound
#define ubnd upper_bound
#define sll set<ll int>
#define msll multiset<ll int>
#define io \
ios_base::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
using namespace std;
int main() {
io ll i, j, a[6], k;
for (i = 0; i < 5; i++)
cin >> a[i];
cin >> k;
if ((*max_element(a, a + 5)) - (*min_element(a, a + 5)) > k)
cout << ":(";
else
cout << "Yay!";
return 0;
} | [] | 888,620 | 888,621 | u118498303 | cpp |
p03075 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
int maxdis = a - e;
if (maxdis <= k) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
} | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
int maxdis = e - a;
if (maxdis <= k) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
} | [
"expression.operation.binary.remove"
] | 888,632 | 888,633 | u640827947 | cpp |
p03075 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a;
cin >> b;
cin >> c;
cin >> d;
cin >> e;
cin >> k;
if (k > e - a) {
cout << "Yay!";
} else {
cout << ":(";
}
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a;
cin >> b;
cin >> c;
cin >> d;
cin >> e;
cin >> k;
if (k >= e - a) {
cout << "Yay!";
} else {
cout << ":(";
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,641 | 888,642 | u231396853 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int jl[11];
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
jl[1] = b - a;
jl[2] = c - a;
jl[3] = d - a;
jl[4] = e - a;
jl[5] = c - b;
jl[6] = d - b;
jl[7] = e - b;
jl[8] = d - c;
jl[9] = e - c;
jl[10] = e - d;
bool ans = true;
for (int i = 1; i <= 10; i++) {
if (jl[i] > k)
ans = false;
}
if (ans = true)
cout << "Yay!";
else
cout << ":(";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int jl[11];
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
jl[1] = b - a;
jl[2] = c - a;
jl[3] = d - a;
jl[4] = e - a;
jl[5] = c - b;
jl[6] = d - b;
jl[7] = e - b;
jl[8] = d - c;
jl[9] = e - c;
jl[10] = e - d;
bool ans = true;
for (int i = 1; i <= 10; i++) {
if (jl[i] > k)
ans = false;
}
if (ans == true)
cout << "Yay!";
else
cout << ":(";
return 0;
} | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 888,667 | 888,668 | u211018720 | cpp |
p03075 | #include <algorithm>
#include <bits/stdc++.h>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
using ll = long long;
#define FOR(i, a, b) for (int i = (a); i <= (b); i++)
#define RFOR(i, a, b) for (int i = (a); i >= (b); i--)
#define LFOR(i, a, b) for (long long int i = (a); i <= (b); i++)
#define LRFOR(i, a, b) for (long long int i = (a); i >= (b); i--)
#define MOD 1000000007
#define LLONG_MAXs 9223372036854775800
#define ALL(a) (a).begin(), (a).end()
#include <cmath>
#include <iostream>
using namespace std;
bool isPrimeNum(ll x) { // 素数である場合 true を返す
if (x <= 1) { // 1以下である場合は素数でないことがすぐにわかる
return false;
}
// sqrt( double型 ) は引数の平方根を double型で返すので、int型でキャスト
int n = (int)sqrt((double)x);
for (int i = 2; i <= n; i++) {
if (x % i == 0) { // 割り切る整数がある場合、即判定終了
return false;
}
}
return true; // 割り切る整数がない場合、素数である
}
ll myPow(ll x, ll n, ll m) {
if (n == 0)
return 1;
if (n % 2 == 0)
return myPow(x * x % m, n / 2, m);
else
return x * myPow(x, n - 1, m) % m;
}
constexpr ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
constexpr ll lcm(ll a, ll b) { return a * b / gcd(a, b); }
constexpr ll abs(ll a, ll b) {
if (a >= b)
return a - b;
if (a < b)
return b - a;
}
constexpr ll min(ll a, ll b) {
if (a >= b)
return b;
if (a < b)
return a;
}
constexpr ll max(ll a, ll b) {
if (a >= b)
return a;
if (a < b)
return b;
}
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
class UnionFind {
public:
//親の番号を格納する。親だった場合は-(その集合のサイズ)
vector<int> Parent;
//作るときはParentの値を全て-1にする
//こうすると全てバラバラになる
UnionFind(int N) { Parent = vector<int>(N, -1); }
// Aがどのグループに属しているか調べる
int root(int A) {
if (Parent[A] < 0)
return A;
return Parent[A] = root(Parent[A]);
}
//自分のいるグループの頂点数を調べる
int size(int A) {
return -Parent[root(A)]; //親をとってきたい]
}
// AとBをくっ付ける
bool connect(int A, int B) {
// AとBを直接つなぐのではなく、root(A)にroot(B)をくっつける
A = root(A);
B = root(B);
if (A == B) {
//すでにくっついてるからくっ付けない
return false;
}
//大きい方(A)に小さいほう(B)をくっ付けたい
//大小が逆だったらひっくり返しちゃう。
if (size(A) < size(B))
swap(A, B);
// Aのサイズを更新する
Parent[A] += Parent[B];
// Bの親をAに変更する
Parent[B] = A;
return true;
}
};
long long fac[510000], finv[510000], inv[510000];
// テーブルを作る前処理
void COMinit() {
fac[0] = fac[1] = 1;
finv[0] = finv[1] = 1;
inv[1] = 1;
for (int i = 2; i < 510000; i++) {
fac[i] = fac[i - 1] * i % MOD;
inv[i] = MOD - inv[MOD % i] * (MOD / i) % MOD;
finv[i] = finv[i - 1] * inv[i] % MOD;
}
}
// 二項係数計算
long long COM(int n, int k) {
if (n < k)
return 0;
if (n < 0 || k < 0)
return 0;
return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}
priority_queue<pair<ll, ll>, vector<pair<ll, ll>>, greater<pair<ll, ll>>> que;
int main() {
// 前処理
// COMinit();
ll a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if ((d - a) <= k) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
return 0;
}
| #include <algorithm>
#include <bits/stdc++.h>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
using ll = long long;
#define FOR(i, a, b) for (int i = (a); i <= (b); i++)
#define RFOR(i, a, b) for (int i = (a); i >= (b); i--)
#define LFOR(i, a, b) for (long long int i = (a); i <= (b); i++)
#define LRFOR(i, a, b) for (long long int i = (a); i >= (b); i--)
#define MOD 1000000007
#define LLONG_MAXs 9223372036854775800
#define ALL(a) (a).begin(), (a).end()
#include <cmath>
#include <iostream>
using namespace std;
bool isPrimeNum(ll x) { // 素数である場合 true を返す
if (x <= 1) { // 1以下である場合は素数でないことがすぐにわかる
return false;
}
// sqrt( double型 ) は引数の平方根を double型で返すので、int型でキャスト
int n = (int)sqrt((double)x);
for (int i = 2; i <= n; i++) {
if (x % i == 0) { // 割り切る整数がある場合、即判定終了
return false;
}
}
return true; // 割り切る整数がない場合、素数である
}
ll myPow(ll x, ll n, ll m) {
if (n == 0)
return 1;
if (n % 2 == 0)
return myPow(x * x % m, n / 2, m);
else
return x * myPow(x, n - 1, m) % m;
}
constexpr ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
constexpr ll lcm(ll a, ll b) { return a * b / gcd(a, b); }
constexpr ll abs(ll a, ll b) {
if (a >= b)
return a - b;
if (a < b)
return b - a;
}
constexpr ll min(ll a, ll b) {
if (a >= b)
return b;
if (a < b)
return a;
}
constexpr ll max(ll a, ll b) {
if (a >= b)
return a;
if (a < b)
return b;
}
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
class UnionFind {
public:
//親の番号を格納する。親だった場合は-(その集合のサイズ)
vector<int> Parent;
//作るときはParentの値を全て-1にする
//こうすると全てバラバラになる
UnionFind(int N) { Parent = vector<int>(N, -1); }
// Aがどのグループに属しているか調べる
int root(int A) {
if (Parent[A] < 0)
return A;
return Parent[A] = root(Parent[A]);
}
//自分のいるグループの頂点数を調べる
int size(int A) {
return -Parent[root(A)]; //親をとってきたい]
}
// AとBをくっ付ける
bool connect(int A, int B) {
// AとBを直接つなぐのではなく、root(A)にroot(B)をくっつける
A = root(A);
B = root(B);
if (A == B) {
//すでにくっついてるからくっ付けない
return false;
}
//大きい方(A)に小さいほう(B)をくっ付けたい
//大小が逆だったらひっくり返しちゃう。
if (size(A) < size(B))
swap(A, B);
// Aのサイズを更新する
Parent[A] += Parent[B];
// Bの親をAに変更する
Parent[B] = A;
return true;
}
};
long long fac[510000], finv[510000], inv[510000];
// テーブルを作る前処理
void COMinit() {
fac[0] = fac[1] = 1;
finv[0] = finv[1] = 1;
inv[1] = 1;
for (int i = 2; i < 510000; i++) {
fac[i] = fac[i - 1] * i % MOD;
inv[i] = MOD - inv[MOD % i] * (MOD / i) % MOD;
finv[i] = finv[i - 1] * inv[i] % MOD;
}
}
// 二項係数計算
long long COM(int n, int k) {
if (n < k)
return 0;
if (n < 0 || k < 0)
return 0;
return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}
priority_queue<pair<ll, ll>, vector<pair<ll, ll>>, greater<pair<ll, ll>>> que;
int main() {
// 前処理
// COMinit();
ll a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if ((e - a) <= k) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
return 0;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 888,671 | 888,672 | u043443359 | cpp |
p03075 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
int s = e - a;
if (s >= k)
cout << ":(" << endl;
else
cout << "Yay!" << endl;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
int s = e - a;
if (s > k)
cout << ":(" << endl;
else
cout << "Yay!" << endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,679 | 888,680 | u715627316 | cpp |
p03075 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
int s = e - a;
if (s >= k)
cout << ":(" << endl;
else
cout << "Yay!" << endl;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
int s = e - a;
if (s > k)
cout << ":(" << endl;
else
cout << "Yay!" << endl;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,679 | 888,681 | u715627316 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a[6], k;
for (int i = 0; i < 5; i++)
cin >> a[i];
cin >> k;
int sum = 0;
int flag = 0;
for (int i = 0; i < 5; i++)
for (int j = i + 1; j < 5; j++) {
sum = a[j] - a[i];
if (sum >= k)
flag = 1;
}
flag == 0 ? puts("Yay!") : puts(":(");
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a[6], k;
for (int i = 0; i < 5; i++)
cin >> a[i];
cin >> k;
int sum = 0;
int flag = 0;
for (int i = 0; i < 5; i++)
for (int j = i + 1; j < 5; j++) {
sum = a[j] - a[i];
if (sum > k)
flag = 1;
}
flag == 0 ? puts("Yay!") : puts(":(");
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 888,684 | 888,685 | u914135866 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
void solveA() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a > 15) {
cout << ":(" << endl;
} else {
cout << "Yay!" << endl;
}
}
void solveB() {}
void solveC() {}
void solveD() {}
int main() { solveA(); }
| #include <bits/stdc++.h>
using namespace std;
void solveA() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a > k) {
cout << ":(" << endl;
} else {
cout << "Yay!" << endl;
}
}
void solveB() {}
void solveC() {}
void solveD() {}
int main() { solveA(); }
| [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 888,692 | 888,693 | u735499035 | cpp |
p03075 | #include <iostream>
#include <vector>
using namespace std;
int main() {
int num[5];
int k;
bool flag = true;
for (int i = 0; i > 5; i++) {
cin >> num[i];
}
cin >> k;
((num[4] - num[0]) > k) ? cout << "Yay!" << endl : cout << ":(" << endl;
return 0;
}
| #include <iostream>
#include <vector>
using namespace std;
int main() {
int num[5];
int k;
bool flag = true;
for (int i = 0; i < 5; i++) {
cin >> num[i];
}
cin >> k;
((num[4] - num[0]) <= k) ? cout << "Yay!" << endl : cout << ":(" << endl;
return 0;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 888,700 | 888,701 | u571790125 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
string ans;
cin >> a >> b >> c >> d >> e >> k;
if (e - a > k) {
ans == ":(";
} else {
ans == "Yay!";
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, k;
string ans;
cin >> a >> b >> c >> d >> e >> k;
if (e - a > k) {
ans = ":(";
} else {
ans = "Yay!";
}
cout << ans << endl;
}
| [
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 888,708 | 888,709 | u552201227 | cpp |
p03075 | #include <bits/stdc++.h>
using namespace std;
#define INF 1001000100010001000
#define MOD 1000000007
#define EPS 1e-10
#define int long long
#define rep(i, N) for (int i = 0; i < N; i++)
#define Rep(i, N) for (int i = 1; i < N; i++)
#define For(i, a, b) for (int i = (a); i < (b); i++)
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define pii pair<int, int>
#define vi vector<int>
#define vvi vector<vi>
#define vb vector<bool>
#define vvb vector<vb>
#define vp vector<pii>
#define all(a) (a).begin(), (a).end()
#define Int(x) \
int x; \
cin >> x;
#define int2(x, y) \
Int(x); \
Int(y);
#define int3(x, y, z) \
Int(x); \
int2(y, z);
#define in(x, a, b) ((a) <= (x) && (x) < (b))
#define fir first
#define sec second
#define ffir first.first
#define fsec first.second
#define sfir second.first
#define ssec second.second
#define Decimal fixed << setprecision(10)
// int dxy[5] = {0, 1, 0, -1, 0};
// cmd
signed main() {
std::ios::sync_with_stdio(false);
std::cin.tie(0);
vector<int> data(6);
for (int i = 0; i < 6; i++) {
cin >> data[i];
}
if (data[4] - data[0] > data[5]) {
std::cout << ":(" << std::endl;
} else {
std::cout << "Yey!" << std::endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
#define INF 1001000100010001000
#define MOD 1000000007
#define EPS 1e-10
#define int long long
#define rep(i, N) for (int i = 0; i < N; i++)
#define Rep(i, N) for (int i = 1; i < N; i++)
#define For(i, a, b) for (int i = (a); i < (b); i++)
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define pii pair<int, int>
#define vi vector<int>
#define vvi vector<vi>
#define vb vector<bool>
#define vvb vector<vb>
#define vp vector<pii>
#define all(a) (a).begin(), (a).end()
#define Int(x) \
int x; \
cin >> x;
#define int2(x, y) \
Int(x); \
Int(y);
#define int3(x, y, z) \
Int(x); \
int2(y, z);
#define in(x, a, b) ((a) <= (x) && (x) < (b))
#define fir first
#define sec second
#define ffir first.first
#define fsec first.second
#define sfir second.first
#define ssec second.second
#define Decimal fixed << setprecision(10)
// int dxy[5] = {0, 1, 0, -1, 0};
// cmd
signed main() {
std::ios::sync_with_stdio(false);
std::cin.tie(0);
vector<int> data(6);
for (int i = 0; i < 6; i++) {
cin >> data[i];
}
if (data[4] - data[0] > data[5]) {
std::cout << ":(" << std::endl;
} else {
std::cout << "Yay!" << std::endl;
}
return 0;
}
| [
"literal.string.change",
"expression.operation.binary.change"
] | 888,712 | 888,713 | u572468811 | cpp |
p03075 | #include <iostream>
using namespace std;
int main() {
int a[10];
int b = 0;
for (int i = 0; i < 6; i++)
cin >> a[i];
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 5; j++) {
b = max(b, abs(a[i] - a[j]));
}
}
if (b <= a[6]) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int a[10];
int b = 0;
for (int i = 0; i < 6; i++)
cin >> a[i];
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 5; j++) {
b = max(b, abs(a[i] - a[j]));
/*
cout<<"b = "<<b<<endl;
cout<<"a[6] = "<<a[5]<<endl;
cout<<"abs = "<<abs(a[i]-a[j])<<endl;
if(b <= a[5]){
cout<<abs(a[i]-a[j])<<"Yay!"<<endl;
}else{
cout<<abs(a[i]-a[j])<<":("<<endl;
}
*/
}
}
if (b <= a[5]) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
}
| [
"literal.number.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 888,714 | 888,715 | u245414044 | cpp |
p03075 | #include <iostream>
using namespace std;
int main() {
int a[10];
int b = 0;
for (int i = 0; i < 6; i++)
cin >> a[i];
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 5; j++) {
b = max(b, abs(a[i] - a[j]));
// cout<<b<<" ";
}
}
if (b <= a[6]) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int a[10];
int b = 0;
for (int i = 0; i < 6; i++)
cin >> a[i];
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 5; j++) {
b = max(b, abs(a[i] - a[j]));
/*
cout<<"b = "<<b<<endl;
cout<<"a[6] = "<<a[5]<<endl;
cout<<"abs = "<<abs(a[i]-a[j])<<endl;
if(b <= a[5]){
cout<<abs(a[i]-a[j])<<"Yay!"<<endl;
}else{
cout<<abs(a[i]-a[j])<<":("<<endl;
}
*/
}
}
if (b <= a[5]) {
cout << "Yay!" << endl;
} else {
cout << ":(" << endl;
}
}
| [
"literal.number.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 888,716 | 888,715 | u245414044 | cpp |
p03075 | #include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
#define INF 1000000007
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a > k)
cout << "Yay!\n";
else
cout << ":(\n";
return 0;
}
| #include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
#define INF 1000000007
int main() {
int a, b, c, d, e, k;
cin >> a >> b >> c >> d >> e >> k;
if (e - a > k)
cout << ":(\n";
else
cout << "Yay!\n";
return 0;
}
| [
"control_flow.branch.else.remove",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add"
] | 888,725 | 888,726 | u170650966 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.