| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 165216 | 王垚植 | 二进制转十进制 | C++ | Wrong Answer | 0 MS | 276 KB | 226 | 2026-11-14 11:05:45 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,m=0,i=0; cin>>n; n=abs(n); while(n!=0){ m+=(n%10)*(1<<i); i++; n/=10; } cout<<m<<'\n'; return 0; }
------Input------
111001111110000111111010111100
------Answer-----
972586684
------Your output-----
2559