### 杭电ACM-1002，请问为什么是“Presentation Error”

C/C++ > C++ 语言 [问题点数：40分，结帖人wanggang999]

windsting

1062（presentation error 待解决） Problem Description Ignatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words and t...

ACM Presentation Error错误

import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(new BufferedReade

Problem Description I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. Input The first line of the input contains an integer T(1)

【求助】杭电ACM 1001 一道简单问题，老是PE

#include #include int main() {  int n=0;  int i,sum=0;  while(scanf("%d",&n)!=EOF)  {  for(i=0;i  printf("%d\n",sum);  sum=0;  }  return 0; }

#include #include using namespace std; int main() { int t,i; string s1,s2; string data,input; scanf("%d",&t); getchar(); //过滤掉数字后的回车字符，防止后面多读一行 while(t--) {

acm 杭电 1001 sum

1.题目 Problem Description Hey, welcome to HDOJ(Hangzhou Dianzi University Online Judge). In this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n.   ...The input

HDU-1002

A + B Problem II Problem Description I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.   Input The first line of the input contains

Online Judge Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6197 Accepted ... 除去‘ ’ ， ‘\t’，‘\n',其它都一样输出Presentation Error else 输出

Problem Description 春天是鲜花的季节，水仙花就是其中最迷人的代表，数学上有个水仙花数，他是这样定义的： “水仙花数”是指一个三位数，它的各位数字的立方和等于其本身，比如：153=13+53+3^3。...

ACM错误提示/错误原因

Compiling Restricted Function Compilation Error Running Time Limit Exceeded Memory Limit Exceeded Runtime Error:SIGFPE Runtime Error:SIGSEGV Presentation Error Accepted Wrong Answer

//AS  #include #include int main() { int n,j,k; int a1,e1,i1,o1,u1; char a,e,i,o,u; char b[150],*p,c; scanf("%d",&n); getchar(); //有了它就可以解决gets(b)的问题  for(j=0;j { //scanf("%s",b);

hdu 2067 小兔的棋盘【关于Catalan数的一点学习】

Catalan数（卡特兰数，又称卡塔兰数）是组合数学中一个常出现在各种计数问题中的数列。前几项1，1，2，5，14，42，132…

Online Judge Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 8675 Accepted Submission(s): 3165 Problem Description ...Ignatius is b

ACM的各种结果

1.Accepted. ---通过！(AC) 2.Wrong Answer. ---答案错。(WA) 3.RunTime Error. ---程序运行出错，意外终止等。...4.Time Limit Exceeded....5.Presentation Error. ---格式错。程序没按规定的格式输出答案。(PE)

1000是A+B,代码如下： #include using namespace std; int main() {  int a,b;  while(cin>>a>>b)  cout  return 0; }   1001 sum(n)，代码如下： #include using namespace std;...

Section 1 A+B for Input-Output Practice (I) 代码： #include &lt;stdio.h&gt; int main() { int a,b,sum; while(scanf("%d%d",&amp;a,&amp;b) !...%...

ACM基本输入输出(C++语言)

1.使用vector之前,一定要先清空 .clear(); 2.对于int转float或double,需要*1.0,否则还会是整除,出现错误 4.程序错误的一般原因: 1）内存越界(查找数组(负数)下标) 具体的代码形式可为数组下标... 2）指针空 ...

acm集训队课程设置--第一节课