摘要:        
Problem C: WERTYUA common typing error is to place the hands on the keyboard one row to the right of the correct position. So "Q" is typed as "W" and "J" is typed as "K" and so on. You are to decode a message typed in this manner.Input consists of several line    阅读全文
posted @ 2013-03-14 22:26
刘一卜
阅读(1048)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Problem Description读入N名学生的成绩,将获得某一给定分数的学生人数输出。Input测试输入包含若干测试用例,每个测试用例的格式为第1行:N第2行:N名学生的成绩,相邻两数字用一个空格间隔。第3行:给定分数当读到N=0时输入结束。其中N不超过1000,成绩分数为(包含)0到100之间的一个整数。Output对每个测试用例,将获得给定分数的学生人数输出。Sample Input3 80 60 9060 2 85 66 05 60 75 90 55 7575 0Sample Output102 题意:略!分析:运用数组,将给定的分数与数组中存储的数据相比较即可。AC源代码(C语言    阅读全文
posted @ 2013-03-14 19:46
刘一卜
阅读(220)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Problem Description读入两个小于10000的正整数A和B,计算A+B。需要注意的是:如果A和B的末尾K(不超过8)位数字相同,请直接输出-1。Input测试输入包含若干测试用例,每个测试用例占一行,格式为"A B K",相邻两数字有一个空格间隔。当A和B同时为0时输入结束,相应的结果不要输出。Output对每个测试用例输出1行,即A+B的值或者是-1。Sample Input1 2 1 11 21 1 108 8 2 36 64 3 0 0 1Sample Output3 -1-1 100题意:略!分析:a和b对10^k求模,然后判断这两个数是否相等,如果    阅读全文
posted @ 2013-03-14 19:42
刘一卜
阅读(391)
评论(0)
推荐(0)
        
 
                     
                    
                 
                    
                
 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号