import java.io.IOException; import java.io.PrintStream; import java.util.Arrays; import java.util.Scanner; /** * Solution to Missing Gnomes * * @author vanb */ public class gnomes_vanb { private static Scanner sc; private static PrintStream ps; /** * Do it! * @throws IOException */ private void doit() throws IOException { int n = sc.nextInt(); int m = sc.nextInt(); boolean used[] = new boolean[n+1]; Arrays.fill( used, false ); // Read in the remaining gnomes, mark their numbers as "used" int gnomes[] = new int[m]; for( int i=0; i