神威难藏泪 • 29天前
int main() {
int a, b, c, d, s;
scanf ("%d%d%d%d%d", &a, &b, &c, &d, &s);
if (a + b == s || a + c == s || a + d == s || b + c == s || b + d == s || c + d == s) {
printf("1");
} else {
printf("-1");
}
return 0;
}
评论:
请先登录,才能进行评论