杭电ACM,1002题,总是格式错误InputInput 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.我的程序:OutputFor each group of input integers you sho
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/20 11:52:08
杭电ACM,1002题,总是格式错误InputInput 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.我的程序:OutputFor each group of input integers you sho
杭电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
杭电ACM,1002题,总是格式错误InputInput 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.我的程序:OutputFor each group of input integers you sho
#include"stdio.h"
#define N 100
int main()
{
int n,m,i,j,sum[N]={0},a;
scanf("%d",&m);
for(j=0;j