杭电ACM 2030怎么Output Limit Exceeded 了http:⼀⼀acm.hdu.edu.cn⼀showproblem.php?pid=2030

2024-11-30 01:18:24
推荐回答(2个)
回答1:

Output Limit Exceeded (OLE) :
Your program tried to write too much information. This usually occurs if it goes into a infinite loop.
不知道你的代码是否改过、没做修改直接贴上去就ac了;

回答2:

已AC。
#include
#include
void main()
{
char a[1000];
int n,flge,i;
scanf("%d",&n);

getchar();
while(n--)
{
flge=i=0;
gets(a);
while(a[i++]!='\0')
{
if(a[i]<0)
{
flge++;
i++;
}
}
printf("%d\n",flge);
}

}