zoukankan      html  css  js  c++  java
  • GDUFE ACM-1158

    题目:http://acm.gdufe.edu.cn/Problem/read/id/1158

    Compensations for ACMers

    Time Limit: 2000/1000ms (Java/Others)

    Problem Description:

    Recently,it is said that our senior “JunHong” will hold on a contest for the ACM lover in GDUFE.There are so many reasons for why.One is that some greeners on the road of ACM was hurt in last contest held by senior GuiKai.So,we have to do some compensations for that(but the ‘contest’ will not be really simple as descirbed if you are lazy there days).For the other, I hope all of you can remember that our school is still weak in ACM when compared to all the universities around China.So,that is said not matter how much time you have paid on the ACM,it is still not enought,and if you really love it and want to do something for our ACM-Organization,your road of ACM is still long to go.Okay,time is out!Just solve the first problem now!

    Input:

    There are so many test cases.Each test case only contains a letter(between ‘a’ and ‘z’).

    Output:

    For each test case,output the corresponding uppercase for the lowercase letter given in one line.

    Sample Input:

    a
    c
    m

    Sample Output:

    A
    C
    M

    思路:就是把小写字母换成大写字母,减32即可

    难度:超级简单

    代码:
     1 #include<stdio.h>
     2 int main()
     3 {
     4     char c;
     5     while(~scanf("%c",&c))
     6         {
     7             getchar();
     8             printf("%c
    ",c-32);
     9         }
    10     return 0;
    11 }
  • 相关阅读:
    ajax三级联动
    ajax基础
    pdo连接数据
    jquery选择器和基本语句
    会话
    封装连接类
    1218数据访问
    php登陆与注册
    数据库连接和乱码问题
    mysql 严格模式 Strict Mode说明(text 字段不能加默认或者 不能加null值得修改方法)
  • 原文地址:https://www.cnblogs.com/ruo786828164/p/6009248.html
Copyright © 2011-2022 走看看