Skip to content

Instantly share code, notes, and snippets.

@UndeRus
Last active January 2, 2016 05:39
Show Gist options
  • Save UndeRus/8258261 to your computer and use it in GitHub Desktop.
Save UndeRus/8258261 to your computer and use it in GitHub Desktop.
var
a:array[1..100000] of longint;
n,min,ind,i: longint;
begin
read(n);
for i:=1 to n do
begin
read(a[i]);
end;
min:=a[1];
ind:=1;
for i:=1 to n do
begin
if (min)>(a[i]) then
begin
min:=a[i];
ind:=i;
end;
end;
write(ind);
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment