UVA 10851 - 2D Hieroglyphs decoder
来源:互联网 发布:ios 取出数组相同元素 编辑:程序博客网 时间:2024/05/16 04:52
对于每一列,枚举所有的字符就可以
#include <cstdio>#include <cstring>#include <iostream>#include <memory.h>using namespace std;#define MAX 100char H[11][MAX];int conPow[]={1,2,4,8,16,32,64,128,256,512,1024};char bFunc(int i,char c){if((c/conPow[i])%2)return 92;else return 47;}int main(){int t;scanf("%d",&t);while (t--){getchar();for (int i=0;i<10;++i){gets(H[i]);}int m=strlen(H[0])-2;for (int i=1;i<=m;++i){for (char ch=' ';ch<='z';++ch){int f=1;for (int j=1;j<=8;++j){if(bFunc(j-1,ch)!=H[j][i]){f=0;break;}}if(f){printf("%c",ch);break;}}}printf("\n");}return 0;}
- UVA 10851 - 2D Hieroglyphs decoder
- UVa10851 - 2D Hieroglyphs decoder(枚举)
- Uva 458 - The Decoder
- UVa 458 - The Decoder
- uva 458 The Decoder
- UVA 458 - The Decoder
- uva-458 - The Decoder
- uva 458 The Decoder
- UVa 458 - The Decoder
- UVA 458 The Decoder
- UVA - 458 - The Decoder
- UVa 458 - The Decoder
- UVa 458 - The Decoder
- UVA 458 The Decoder
- UVA 458 The Decoder
- UVA - 458 The Decoder
- UVA - 458 The Decoder
- UVA 458 The Decoder
- Telnet 命令
- 串口调试助手 及编程详细过程(二)
- UVA 10878 - Decode the tape
- flex的Socket通信
- 安装SqlServer2008有感
- UVA 10851 - 2D Hieroglyphs decoder
- DataGridView实现点击左边空白部分选中行,并对其进行操作
- 微软开始犯贱了,一开机就访问论坛。
- 35个非常酷的wordpress全屏的Slide主题
- ERROR:Class 'Log' not found thinkphp
- 安全模式和普通模式
- 快速去除和恢复系统快捷方式的小箭头图标
- Metro UI风格配色方案
- Timequest学习之一