| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 54432 | 202203xhl | 寻找最低数 | C++ | Output Limit Exceeded | 0 | 0 MS | 248 KB | 267 | 2022-07-29 15:26:15 |
#include<bits/stdc++.h> using namespace std; int n[100000],t; void jz(int a){ while(a){ t++; n[t]=a%2; a/=2; } } int main(){ int a; while(cin>>a&&a){ cin>>a; jz(a); for(int i=1;i<=t;i++){ if(n[i]==1) cout<<i; } } return 0; }