跳到正文

题解

GESP202503 三级] 2025

bl0923约 1 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2026年2月26日
篇幅
约 1 分钟
获赞
1
题目
B4261

版本

  1. v1当前

这道题很简单啊!!! 那我就不讲了,直接发送c++代码(请勿抄袭) #include<bits/stdc++.h> using namespace std; int main(){ int x; scanf(“%d”,&x); for(int y=1;y<=2025;y++){ if((x&y)+(x|y)==2025){ printf(“%d\n”,y); return 0; } } printf(“-1\n”); return 0; }

原文