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

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

    AC

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

    Problem Description:

        作为第一次月赛的第一题,当然得是签到题啦!
    我们OJ提交题目后的状态有6种。
    AC:Accepted!
    WA:Wrong Answer!
    PE:Presentation Error!
    CE:Compilation Error
    TLE:Time Limit Exceeded!
    RE:Runtime Error!
    
    输入简称,输出对应的全称。

    Input:

    多组数据输入(EOF),每次输入提交结果的简称。

    Output:

    输出对应的全称,注意要换行。

    Sample Input:

    AC
    RE

    Sample Output:

    Accepted!
    Runtime Error!

    思路:按题目要求输出就好

    难度:非常非常简单

    代码:
     1 #include<stdio.h>
     2 int main()
     3 {
     4     char ch[3];
     5     while(~scanf("%s",ch))
     6     {
     7         if(ch[0]=='A'&&ch[1]=='C')
     8             printf("Accepted!
    ");
     9         if(ch[0]=='W'&&ch[1]=='A')
    10             printf("Wrong Answer!
    ");
    11         if(ch[0]=='P'&&ch[1]=='E')
    12             printf("Presentation Error!
    ");
    13         if(ch[0]=='C'&&ch[1]=='E')
    14             printf("Compilation Error
    ");
    15         if(ch[0]=='T'&&ch[1]=='L'&&ch[2]=='E')
    16             printf("Time Limit Exceeded!
    ");
    17         if(ch[0]=='R'&&ch[1]=='E')
    18             printf("Runtime Error!
    ");
    19     }
    20     return 0;
    21 }
  • 相关阅读:
    [bzoj3123] [Sdoi2013]森林
    [bzoj2173] 整数的lqp拆分
    Linux
    使用高德地图API
    EF具体用在什么类型的项目上
    出现Data Tools 与VS 不兼容问题
    Entity FramWork
    Entity
    Entity
    BASH
  • 原文地址:https://www.cnblogs.com/ruo786828164/p/6009234.html
Copyright © 2011-2022 走看看