C++ :
#include <bits/stdc++.h> using namespace std; int main(){ int x; cin>>x; for(int y=1;y<=2025;y++){ if((x&y)+(x|y)==2025){ cout<<y; return 0; } }cout<<-1; }
使用您的 YanhuOJ 通用账户