包对的

coke · 发布于 2024-05-05 · 浏览 809 回复 2

include <bits/stdc++.h>

using namespace std;

int main() {

int a, b, c, d, s; cin >> a >> b >> c >> d >> s; if (a + b == s) {

cout << '1';

} else if (a + c == s) {

cout << '1';

} else if (a + d == s) {

cout << '1';

} else if (b + c == s) {

cout << '1';

} else if (b + d == s) {

cout << '1';

} else if (c + d == s) {

cout << '1';

} else {

cout << "-1";

}

return 0;

}

全部回复 共 2 条

  1. 楊卍广 #1 ·

    笑死,什么实力啊,小老弟

  2. coke #2 楼主 ·

    没实力就别说话,fvv

发表回复