Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
56156 王籽易 寻找最低数 C++ Accepted 100 1 MS 264 KB 225 2022-08-01 15:48:21

Tests(1/1):


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


Judgement Protocol: