Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
54423 尹翊泽 寻找最低数 C++ Accepted 100 0 MS 248 KB 246 2022-07-29 15:23:05

Tests(1/1):


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


Judgement Protocol: