Created
December 26, 2011 06:21
-
-
Save kirs/1520624 to your computer and use it in GitHub Desktop.
Pascal Shit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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