Skip to content

Instantly share code, notes, and snippets.

@Eric-Bro
Created February 10, 2012 13:14
Show Gist options
  • Save Eric-Bro/1789610 to your computer and use it in GitHub Desktop.
Save Eric-Bro/1789610 to your computer and use it in GitHub Desktop.
Olymp_H
var source: string;
i, k, flag: integer;
c: char;
begin
readln(source);
for i:= 1 to length(source) do
begin
flag:=0;
for k:= (i+1) to length(source) do
if (source[i] = source[k]) then
begin
flag:= 1;
break;
end;
if (flag = 1) then
begin
writeln(source[i]);
break;
end;
end;
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment