uva 10878 - Decode the tape 字符串水题 找到规律就简单了
来源:互联网 发布:紫外灯测量数据 编辑:程序博客网 时间:2024/05/22 08:18
#include<cstdio>#include<cstring>int main(){ #ifdef LOCAL freopen("in.txt","r",stdin); #endif // LOCAL char x[15] = "___________"; char str[15]; int d[11] = {0,0,64,32,16,8,0,4,2,1,0}; int t = 0; while(t < 2) { gets(str); if(strcmp(str,x)==0){t++;continue;} int sum = 0; for(int i = 2;str[i]!='\0'; i++) if(str[i] == 'o')sum += d[i]; printf("%c",sum); } return 0;}
- uva 10878 - Decode the tape 字符串水题 找到规律就简单了
- uva 10878 Decode the tape (简单题)
- Decode the tape - UVa 10878 找规律
- UVA 10878 - Decode the tape(字符串)
- UVa 10878 - Decode the tape
- uva 10878 Decode the tape
- uva-10878 - Decode the tape
- uva 10878 - Decode the tape
- UVa 10878 - Decode the tape
- Uva - 10878 - Decode the tape
- UVA 10878 - Decode the tape
- UVa 10878 - Decode the tape
- UVA 10878 - Decode the tape
- UVA 10878 Decode the tape
- UVa - 10878 - Decode the tape
- UVA 10878 Decode the tape
- uva 10878 Decode the tape
- UVa 10878 - Decode the tape
- oracle 体系结构图
- 屏幕输入与输出
- [高并发引擎]定时器模块
- SVN分支与合并
- 动态链接与静态链接
- uva 10878 - Decode the tape 字符串水题 找到规律就简单了
- POJ 2886 Who Gets the Most Candies? (线段树)
- VC++2010下调用halcon 10与11库配置
- 80端口被system占用
- multi_index_container性能测试
- JQuery Mobile框架使用技巧几则
- KVM虚拟机CPU绑定性能调优
- 云计算的几种类型和模式
- 当跨域时,js ajax 请求出现options请求