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

在玩OJ时候的各种提示

时间:2016-06-06 23:46:35      阅读:278      评论:0      收藏:0      [点我收藏+]

标签:

1.Accepted,简称AC,代码已通过评测,意思就是这题你做完了,恭喜啊

#include <stdio.h>
int main()
{
    int a,b;
    scanf("%d%d",&a,&b);
    printf("%d\n",a+b);
    return 0;
}

2.Wrong Answer,简称WA,就是代码在运行时没有输出正确的答案。

#include <stdio.h>
int main()
{
    int a,b;
    scanf("%d%d",&a,&b);
    printf("%d\n",a-b);
    return 0;
}

3.Time Limit Exceeded,简称TLE,超时,就是你的代码运行时间过长。超出了限定时间。

#include <stdio.h>
int main()
{
    int a,b;
    scanf("%d%d",&a,&b);
    while(1);
    printf("%d\n",a+b);
    return 0;
}

4.Memory Limit Exceeded,简称MLE,超内存,程序运行的过程中内存超过了限制内存。

5.Output Limit Exceeded,简称OLE,程序产生了不必要的输出。

6.Runtime Error,简称RE,在运行过程中发生了错误,比如除以0,等等

7.Presentation Error,简称PE,输出格式错误,至于格式就是换行符,制表符和空格的问题。

8.Compile Error,简称CE,编译器在编译的过程中出错了,一般是代码格式的问题。

在玩OJ时候的各种提示

标签:

原文地址:http://www.cnblogs.com/oier/p/5565344.html

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