ac 棨戟 · 发布于 2026-08-05 · 浏览 79 回复 0 include 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; }