1 条题解

  • 0
    @ 2026-4-5 20:13:23

    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
    644
    时间
    1000ms
    内存
    128MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者