ZOJ 1195总是超时,不知道是哪的错
程序如下:#include<stdio.h>
#define N 1000
int main()
{
int n,m,c,d=0;
int i,ci[N];
while(scanf("%d%d%d",&n,&m,&c))
{
if(m==0 && n==0 &&c==0)
break;
d++;
for(i=0;i<(m+n);i++)
scanf("%d",&ci[i]);
printf("Sequence %d\n",d);
if(ci[m-1]+ci[n-1]>c)
printf("Fuse was blown.\n");
else
{
printf("Fuse was not blown.\n");
printf("Maximal power consumption was %d amperes.\n",ci[m-1]+ci[n-1]);
}
printf("\n");
}
return 0;
}