| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 54608 | 李言 | 寻找最低数 | C++ | Accepted | 100 | 1 MS | 248 KB | 279 | 2022-07-29 16:31:56 |
#include<bits/stdc++.h> using namespace std; int a; int er(int x){ int k=0,ans=1; while(x){ if(x%2==0) k++; else break; x/=2; } for(int i=1;i<=k;i++){ ans*=2; } return ans; } int main(){ while(cin>>a&&a!=0){ cout<<er(a)<<endl; } return 0; }