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!\n");
 9         if(ch[0]=='W'&&ch[1]=='A')
10             printf("Wrong Answer!\n");
11         if(ch[0]=='P'&&ch[1]=='E')
12             printf("Presentation Error!\n");
13         if(ch[0]=='C'&&ch[1]=='E')
14             printf("Compilation Error\n");
15         if(ch[0]=='T'&&ch[1]=='L'&&ch[2]=='E')
16             printf("Time Limit Exceeded!\n");
17         if(ch[0]=='R'&&ch[1]=='E')
18             printf("Runtime Error!\n");
19     }
20     return 0;
21 }

 

posted @ 2016-10-28 20:05  ruoruoruoruo  阅读(173)  评论(0编辑  收藏  举报