diff options
author | Raphael McSinyx <vn.mcsinyx@gmail.com> | 2017-02-15 11:33:54 +0700 |
---|---|---|
committer | Raphael McSinyx <vn.mcsinyx@gmail.com> | 2017-02-15 11:33:54 +0700 |
commit | 5a44eb260b9b35096df7371a702ba99b7265b3f9 (patch) | |
tree | 60ad135076dbca49d1e20eac540c53bdd6e8b97a /others/volume1/055.pas | |
parent | fa7cbaee4baf174ee416280d82a60fade6d3eaad (diff) | |
download | cp-5a44eb260b9b35096df7371a702ba99b7265b3f9.tar.gz |
Update others/volume1
Diffstat (limited to 'others/volume1/055.pas')
-rw-r--r-- | others/volume1/055.pas | 18 |
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. |