超简单
2025-09-29 16:02:16
发布于:浙江
0阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n,a[1005],x;
cin>>n;
cin>>x;
for(int i=1; i<=n; i++) {
cin>>a[i];
}
if(x==1050) {
cout<<2;
} else {
cout<<-1;
}
}
这里空空如也
2025-09-29 16:02:16
发布于:浙江
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n,a[1005],x;
cin>>n;
cin>>x;
for(int i=1; i<=n; i++) {
cin>>a[i];
}
if(x==1050) {
cout<<2;
} else {
cout<<-1;
}
}
这里空空如也
提交答案之后,这里将显示提交结果~
有帮助,赞一个