作业帮 > 综合 > 作业

杭电ACM,1002题,总是格式错误

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/23 19:35:31
杭电ACM,1002题,总是格式错误
Input
Input contains an integer N in the first line,and then N lines follow.Each line starts with a integer M,and then M integers follow in the same line.
我的程序:
Output
For each group of input integers you should output their sum in one line,and you must note that there is a blank line between outputs.
#include"stdio.h"
#define N 100
int main()
{int n,m,i,j,sum[N]={0},a;
scanf("%d",&m);
for(j=0;j
#include"stdio.h"
#define N 100
int main()
{
int n,m,i,j,sum[N]={0},a;
scanf("%d",&m);
for(j=0;j
再问: 还是格式错误啊
再答: 我没有密码进不去,我只能猜你是怎么个PE。。 你给我个密码吧 或者试试这个: #include"stdio.h" #define N 100 int main() { int n,m,i,j,sum[N]={0},a; scanf("%d",&m); for(j=0;j