棨戟 • 15天前
using namespace std; int main(){
int a,b,c,d,S; cin>>a>>b>>c>>d>>S; { if(a+b==S||a+c==S||a+d==S||b+c==S||c+d==S||b+d==S){cout<<"1";} else {cout<<"-1";} } return 0;
}
评论:
请先登录,才能进行评论