UVA10878
来源:互联网 发布:uc聊天软件下载 编辑:程序博客网 时间:2024/05/17 22:37
思路:关于assic的输出
#include<stdio.h>#include<string.h>int bite[] = {128, 64, 32, 16, 8, 4, 2, 1};int main(){char s[300];int assic;while (gets(s)){if (s[0] == '|'){assic = 0;for(int i = 0;i <= 5; i++)if(s[i] == 'o')assic += bite[i - 1];for(int i = 7;i <= 9; i++)if(s[i] == 'o')assic += bite[i - 2];printf("%c", assic);}} return 0;}
- UVA10878
- UVA10878
- UVA10878
- uva10878--String
- uva10878(字符串)
- ACM->uva10878
- UVA10878水题
- UVa10878 Decode the tape
- UVa10878 - Decode the tape
- uva10878看清图
- UVA10878 - Decode the tape
- UVA10878 Decode the tape
- UVA10878 - Decode the tape
- UVa10878 - Decode the tape-字符串-难度1
- MySQL数据切分的相关概念和原理详解
- asp.net图片缩略和加水印程序
- ScrollView 监听当前的高度改变
- jeecms安装配置
- block link
- UVA10878
- hdu1016(素数环)
- 如何知道我在通知栏的展示的 Notification 被点击了?
- USB摄像头(V4L2接口)的图片采集 (一)
- Django:project与app的概念区别
- 设计模式 - 代理模式
- Merge Intervals
- valgrind使用简介
- 新版Dell本本BIOS设置完全手册