Skip to content

Instantly share code, notes, and snippets.

@kirs
Created December 26, 2011 06:21
Show Gist options
  • Save kirs/1520624 to your computer and use it in GitHub Desktop.
Save kirs/1520624 to your computer and use it in GitHub Desktop.
Pascal Shit
for i:=1 to n do
begin
for i2 := 1 to d do if a[i] = b[i2] then FlagFound := true else begin FlagFound := false; c:=1 end;
if flagfound = false then for i1 := (i + 1) to n do if a[i] = a[i1] then c := c + 1;
if (c > 2) and (FlagFound = false) then begin b[d + 1] := a[i]; d := d + 1; c := 0; end else c :=0;
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment