fork download
  1. import java.util.Scanner;
  2.  
  3. class Capitulo2 {
  4.  
  5. public static void main(String[] args) {
  6. Scanner teclado = new Scanner(System.in);
  7. long soma = 0;
  8. long tam = teclado.nextLong();
  9. long[] vetor = new long[10000002];
  10. for (int i = 0; i < tam; i++) {
  11. vetor[i] = teclado.nextLong();
  12. soma += vetor[i];
  13. }
  14. }
  15. }
Success #stdin #stdout 0.15s 107672KB
stdin
5 6 7 8 9 10
stdout
Standard output is empty