hdu4144 Bacon's Cipher
来源:互联网 发布:matlab 数组截断 编辑:程序博客网 时间:2024/05/21 06:39
#include <stdio.h>int check(char ch){if(ch>='A'&&ch<='Z')return 0;elsereturn 1;}int main(){int n,i,ans;char str[10002];while(scanf("%d %s",&n,str)!=EOF){for (i=0;i<n;i+=5){ans=0;if(check(str[i]))ans+=16;if(check(str[i+1]))ans+=8;if(check(str[i+2]))ans+=4;if(check(str[i+3]))ans+=2;if(check(str[i+4]))ans+=1;printf("%c",ans+'A');}printf("\n");}return 0;}
- HDU4144:Bacon's Cipher
- hdu4144 Bacon's Cipher
- HDU4144 Bacon's Cipher
- Bacon's Cipher hdu4144 水题
- 【字符串】hdu4144 Bacon's Cipher
- HDU 4144 Bacon's Cipher
- HDU 4144 Bacon's Cipher
- hdu 4144 Bacon's Cipher
- 17.04.29 Bacon's Cipher
- Ural 1590. Bacon’s Cipher 后缀数组
- HDU 4144Bacon's Cipher (解码)
- HDU菜鸟杯比赛第二题Bacon's Cipher
- 2011百校联动“菜鸟杯”程序设计公开赛&&Bacon's Cipher
- 1042 W's Cipher
- POJ_1107_W's Cipher
- hdu4144Bacon's Cipher
- POJ1107 W's Cipher
- ZOJ1042-W`s Cipher
- SQL Server自增字段的方法
- training exercises
- 移植FreeModbus+ModbusMaster(主机)+STM32至RT-Thread(初步)
- 2013年8月最新浏览器市场份额
- grub之 menu.lst 样例
- hdu4144 Bacon's Cipher
- 数据库分页以及删除全部
- 使用显卡有关的问题 No protocol specified
- poj——2689(数论之素数筛法)
- 装饰设计模式
- iOS越狱程序开发(1)- 工具篇
- 几种常见的排序算法
- 在Ubuntu 12.10下安装 jdk-7u10-linux-x64.tar.gz
- oracle视图的DML操作