码迷,mamicode.com
首页 > 其他好文 > 详细

FZU Problem 2034 Password table (简单模拟题)

时间:2014-05-10 02:14:11      阅读:328      评论:0      收藏:0      [点我收藏+]

标签:blog   class   code   color   c   http   

这种简单题做了好长时间,我是不是有点逗?

地址:http://acm.fzu.edu.cn/problem.php?pid=2034

不解释了,自己看吧,练手的好题

上个代码吧

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
 
int main()
{
    int s,n,m,i,j,k,t;
    char str[10][10][5],str1[1005];
    scanf("%d",&t);
    for(i=1;i<=t;i++)
    {
        scanf("%d%d%d",&n,&m,&k);
        for(j=0;j<n;j++)
            for(s=0;s<m;s++)
        {
            scanf("%s",str[j][s]);
        }
        printf("Case %d:\n",i);
        for(j=0;j<k;j++)
        {
            scanf("%s",str1);
            for(s=0;s<strlen(str1);s+=2)
            {
                //printf(" %c**",str1[s+1]);
                printf("%s",str[str1[s+1]-‘1‘][str1[s]-‘A‘]);
            }
        printf("\n");
        }
 
    }
    return 0;
}

  真不知道自己怎么了,今天做练习赛,明明很明显的错误,找了好长时间,还让队友找,引来队友异样的眼光。还是当时太激动了,不该那么紧张

思维不够敏捷吧,题目做的太少了,搜了一道模板,求多边形是否对称的,直接过了,我在想到了现场赛,你搜模板?这题铁定是A不了的。

  有点问题还是自己解决吧,养成独立自主的习惯,也许就好了

FZU Problem 2034 Password table (简单模拟题),布布扣,bubuko.com

FZU Problem 2034 Password table (简单模拟题)

标签:blog   class   code   color   c   http   

原文地址:http://www.cnblogs.com/ccccnzb/p/3708142.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!