| import java.util.Scanner;
/**
 * 136A - Presents [http://www.codeforces.com]
 * 
 * @author BreakDark
 * @version 1.0 beta
 */
// ACEPTADO!!! xD
public class Main {
 public static void main(String[] args) {
  Scanner Lee; // para leer los dtos de entrada
  byte n;
  int[] amigos;
  int i;
  // AQUI INICIA EL PROGRAMA
  Lee = new Scanner(System.in);
  while (Lee.hasNext()) {
   n = Lee.nextByte();
   amigos = new int[n];
   for (i = 0; i < n; i++)
    amigos[Lee.nextInt() - 1] = i + 1;
   for (i = 0; i < n; i++) {
    System.out.print(amigos[i]);
    if (i < n - 1)
     System.out.print(" ");
    else
     System.out.println();
   }
  }
 }
}
 | 
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.
Thursday, June 28, 2012
Solución a 136A - Presents [http://www.codeforces.com] con Java
Solución a 136A - Presents [http://www.codeforces.com] el enlace del problema está en el siguiente link
Subscribe to:
Post Comments (Atom)
 
 
No comments:
Post a Comment