# problem 1000： A+B problem

#include <stdio.h>

int main()
{
int a,b;
scanf("%d %d",&a, &b);
printf("%d\n",a+b);
return 0;
}

#include <stdio.h>

int main()
{
int a,b;
while(scanf("%d %d",&a, &b) != EOF) //注意此处的循环输入！
printf("%d\n",a+b);
return 0;
}

PS：关于acm代码提交，ustc没找到说明，可以参考zju（点我）的说明，以下是摘录的一些错误说明：

Q:What is the meaning of the judge's reply XXXXX?
A:Here is a list of the judge's replies and their meaning:

Queuing : The judge is so busy that it can't judge your submit at the moment, usualy you just need to wait a minute and your submit will be judged.

Accepted : OK! Your program is correct!.

Presentation Error : Your output format is not exactly the same as the judge's output, although your answer to the problem is correct. Check your output for spaces, blank lines,etc against the problem output specification.

Wrong Answer : Correct solution not reached for the inputs. The inputs and outputs that we use to test the programs are not public (it is recomendable to get accustomed to a true contest dynamic ;-).

Time Limit Exceeded : Your program tried to run during too much time.

Memory Limit Exceeded : Your program tried to use more memory than the judge default settings.

Output Limit Exceeded: Your program tried to write too much information. This usually occurs if it goes into a infinite loop. Currently the output limit is 1M bytes.

Non-zero Exit Code: Your program exited returning a non-zero value to the shell. For languages such as C, this probably means you forgot to add "return 0" at the end of the program. For interpreted languages NZEC will usually mean that your program either crashed or raised an uncaught exception.

Compile Error : The compiler (gcc, g++, fpc, etc) could not compile your program. Of course, warning messages are not error messages. Click the link at the judge reply to see the actual error message.

Out Of Contest Time: this message can only appear during a contest, if a program is submitted out of contest time.

No such problem: Either you have submitted a wrong problem id or the problem is unavailable.

Segmentation Fault : The possible cases of your encountering this error are:

• 1.buffer overflow --- usually caused by a pointer reference out of range.
• 2.stack overflow --- please keep in mind that the default stack size is 8192K.

Floating Point Error : Divide by 0

Runtime Error : See FAQ below

#### 杭电1000- A+B Problem

2015-09-16 21:49:39

#### A+B Problem（Java练习）

2017-04-17 21:59:29

#### 524 A-B Problem【字符串处理】

2015-09-02 11:46:31

#### POJ 1000 A+B Problem

2016-03-31 21:51:27

#### 杭电ACM第1000题(C语言版)答案——A + B Problem

2012-09-26 14:28:08

#### 被玩坏的题目——A+B Problem

2016-07-18 09:36:28

#### 杭电1002 a+b problem2

2016-02-27 21:52:23

#### 2016 acm香港网络赛 A题. A+B Problem

2016-09-20 10:13:24

#### PKU 1000 A+B 详细脑残题解~~~

2010-05-18 08:52:00

#### 1000:A+B Problem

2016-03-08 14:41:26