Ответ:
20
Объяснение:
/** libraries */
#include
#include
#include
#include
#include
#include
#include
#include
/** libraries */
using namespace std;
/** defines */
#define ll long long
#define ld long double
#define yes cout << "YES" << "\n"</p>
#define no cout << "NO" << "\n"</p>
/** defines */
signed main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
ll a[10]{10, -10, 20, 0, 11, 9, 15, 24, 25,30};
for(ll k = -1000; k <= 1000; k++){</p>
ll s = 0;
for(ll i = 0; i < 10; i++){
if(a[i] % 2 == 0 && a[i] > k)
s-= a[i];
else
s += a[i];
}
if(s > 0){
cout << k;</p>
return 0;
}
}
}