欢迎光临
我们一直在努力

4109:【GESP2503三级】2025C++

#include<bits/stdc++.h>
using namespace std;
int main() {
int x,sum=0;
cin>>x;
for(int y=1;y<=2025;y++){
if((x&y)+(x|y)==2025){
cout<<y;
sum++;
}
}
if(sum<1){
cout<<"-1";
}
return 0;
}

给个赞呗!给个赞呗!给个赞呗!

赞(0)
未经允许不得转载:171主机测评 » 4109:【GESP2503三级】2025C++
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址