1 条题解

  • 0
    @ 2025-9-6 13:34:49

    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;
    }
    
    • 1

    信息

    ID
    5506
    时间
    1000ms
    内存
    128MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者