import java.util.Arrays;
import java.util.Scanner;
/**
* Solucion al problema: 1495 - Increasing Order List [http://coj.uci.cu]
*
* @author BreakDark (Jhonny Monrroy)
* @version 1.0 beta 12 de jun. de 2016
*/
// Accepted!!! xD
public class Main {
public static void main(String[] args) {
Scanner Lee; // para leer datos
int[] ni; // lista de enteros
int n; // numero de enteros
// AQUI INICIA EL PROGRAMA
Lee = new Scanner(System.in);
n = Lee.nextInt();
ni = new int[n];
for (int i = 0; i < n; i++) {
ni[i] = Lee.nextInt();
}
Arrays.sort(ni);
for (int i = 0; i < n; i++) {
System.out.println(ni[i]);
}
Lee.close();
}
}
Blog dedicado a la publicación de artículos, programas propios, traducciones de Roms de Nes, super Nes y mas, y alguno que otro artículo sobre tecnologia.
Sunday, June 12, 2016
Solucion al problema: 1495 - Increasing Order List [http://coj.uci.cu] con Java
Para ver el link del problema Click aqui
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment