1039: n个数求和
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);int n,x,sum=0;n=cin.nextInt();for(int i=0;i<n;i++){
x=cin.nextInt();sum+=x;}System.out.println(sum);}
}