Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
56116 老师 寻找最低数 C++ Accepted 100 1 MS 244 KB 225 2022-08-01 15:06:54

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int a; while(cin>>a && a!=0){ long long t=1; while(a){ if(a%2==1){ cout<<t<<endl; break; } a/=2; t*=2; } } return 0; }


Judgement Protocol: