| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 128599 | 林嘉乐 | 二进制转十进制 | C++ | Wrong Answer | 1 MS | 264 KB | 437 | 2025-08-18 16:11:54 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a; cin>>a; int a1=a%10; int b=a%100/10*1; int c=a%1000/100*2; int d=a%10000/1000*4; int e=a%100000/10000*8; cout<<a+b+c+d+e; return 0; }
------Input------
111001111110000111111010111100
------Answer-----
972586684
------Your output-----
-2147483557