about summary refs log tree commit diff
path: root/others/volume1/065.pas
blob: 6e9106c1dbeb79411976806d88365c4c9c0bd888 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
var
  n, i, k: int32;
  b: array of boolean;

begin
  readln(n, k);
  setlength(b, n);
  for i := 0 to n - 1 do
    b[i] := true;
  repeat
    read(i);
    b[i - 1] := false;
    dec(k)
  until k = 0;
  for i := 0 to n - 1 do
    if b[i] then
      write(i + 1, ' ');
  writeln
end.