/** * A+B for Input-Output Practice (V) * 和Problem1000是同一个题目,注意题目的输入和输出格式. * Created by YangYuan on 2017/12/7. */ public class Problem1093 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); for (int i = 0; i < n; i++) { int x = scanner.nextInt(); int sum = 0; for (int j = 0; j < x; j++) sum += scanner.nextInt(); System.out.println(sum); } } }
HDOJ 1093 A+B for Input-Output Practice (V)
最新推荐文章于 2020-03-11 14:27:41 发布