FZU 2034 Password table
2013-11-10 21:33
211 查看
FZU 2034 Password table 题目链接:http://acm.fzu.edu.cn/problem.php?pid=2034
模拟水
题目大意及分析:密码版加密,一一对应即可。
code:
PS:一wrong,sad……
今日最大收获:学会了freopen()的大概用法……
模拟水
题目大意及分析:密码版加密,一一对应即可。
code:
#include<stdio.h> #include<string.h> int main() { //freopen("in.txt","r",stdin); int m,n,p,i,j,k,t,len; char c[50],g[10][10][2]; scanf("%d",&t); for(k=1;k<=t;k++) { scanf("%d%d%d",&m,&n,&p); for(i=0;i<m;i++) { for(j=0;j<n;j++) { scanf("%s",g[i][j]); } } printf("Case %d:\n",k); while(p--) { scanf("%s",c); len=strlen(c); for(i=0;i<len;i+=2) { printf("%c%c",g[c[i+1]-'1'][c[i]-'A'][0],g[c[i+1]-'1'][c[i]-'A'][1]); } printf("\n"); } } return 0; }
PS:一wrong,sad……
今日最大收获:学会了freopen()的大概用法……
相关文章推荐
- FZU 2034-Password table(模拟)
- FZU Problem 2034 Password table (简单模拟题)
- fzu 2034 Password table(水题)
- FZU 2011年全国大学生程序设计邀请赛(福州) 2034 Password table
- FZU 2034 Password table(水题)
- fzu——Problem 2034 Password table
- fzu 2034 Password table (水)
- fzu Password table
- fzu 1683 纪念SlingShot 矩阵
- FZU 1054 阅读顺序 别紧张,很简单
- FZU Fire Game(两点BFS)
- BZOJ2034 [2009国家集训队]最大收益
- fzu 防守阵地 1
- FZU-2239 Daxia & Yayamao's problem(斜率优化)
- FZU2202-犯罪嫌疑人
- DP+树状数组——FZU 2236 第十四个目标
- FZU Number lengths(数学)
- FZU 1062 洗牌问题(打表找规律)
- fzu 1050 Number lengths
- FZU 1076 穿越沙漠(逆推建模)(数学)