about summary refs log tree commit diff
path: root/others/volume1/055.pas
diff options
context:
space:
mode:
Diffstat (limited to 'others/volume1/055.pas')
-rw-r--r--others/volume1/055.pas18
1 files changed, 18 insertions, 0 deletions
diff --git a/others/volume1/055.pas b/others/volume1/055.pas
new file mode 100644
index 0000000..0e57447
--- /dev/null
+++ b/others/volume1/055.pas
@@ -0,0 +1,18 @@
+var
+  n, i, j: int16;
+  a, min: int64;
+ 
+begin
+  min := 9223372036854775807;
+  readln(n);
+  for i := 1 to n do
+    begin
+      read(a);
+      if a < min then
+        begin
+          j := i;
+          min := a
+        end
+    end;
+  writeln(j, ' ', min)
+end.