Từ 2025 HEMS 6
Thông tin
include<bits/stdc++.h>
using namespace std; int main() { iosbase::syncwith_stdio(false); cin.tie(NULL); long long n; cin >> n; long long Count = 0; for(int i = 0; i<n*2-1 ; i++) { long long a; cin >> a; Count += a; } if(Count>0) { cout << -1 << endl << Count; } else { cout << 1 << endl << Count; } return 0; }