POJ1565 水题
来源:互联网 发布:有线键鼠套装推荐 知乎 编辑:程序博客网 时间:2024/06/06 23:42
#include <stdio.h>#include <string.h>int main(){char str[33];while(scanf("%s",str)==1&&strcmp(str,"0")){int len = strlen(str);int sum = 0;for(int i=0;i<len;i++){sum += (int)(str[i]-'0') * ((1<<len-i)-1);}printf("%d\n",sum);}return 0;}
0 0
- POJ1565 水题
- poj1565
- 北大ACM poj1565
- poj1565-Skew Binary
- 水题
- 水题
- 水题
- 水题
- 【水题】
- 水题
- 水题:
- 水题
- 水题~
- 水题
- 水题
- 水题
- 水题
- 水题
- NodeJS安装express框架
- Maven常用命令
- ResultSet参数设置和更新(翻译总结)
- 一幅图告诉你所有的NodeJS命令行调试语句
- windows下PTAM的编译
- POJ1565 水题
- PANIC: Could not open AVD config file:
- 编译PTAM的碎碎念
- SQLSERVER 文件组解决大数据量数据存储
- Leetcode NO.191 Number of 1 Bits
- Matlab lugui
- Matlab pivotgolf
- Matlab interpgui
- Matlab piecelin