public class t_1089 { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); while(n!=0) { int sum=0; int a=sc.nextInt(); while(a!=0) { int b=sc.nextInt(); sum+=b; a--; } System.out.println(sum); System.out.println(); n--; } } }
0.0分
0 人评分
IP判断 (C语言代码)浏览:922 |
C语言训练-求素数问题 (C语言代码)浏览:958 |
上车人数 (C语言代码)浏览:779 |
2006年春浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:640 |
C语言程序设计教程(第三版)课后习题8.7 (C语言代码)浏览:595 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:780 |
1050题解(结构体数组与结构体指针的使用)浏览:1107 |
矩形面积交 (C语言代码)浏览:1306 |
杨辉三角 (C语言代码)浏览:676 |
C语言程序设计教程(第三版)课后习题8.4 (C语言代码)浏览:603 |