1 条题解

  • 0
    @ 2025-1-7 11:49:13

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	while(1){
    		int x;scanf("%d",&x);
    		if(x==0) return 0;
    		printf("%d\n",x&(-x));
    	}
    }
    
    
    • 1

    信息

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