From 5a44eb260b9b35096df7371a702ba99b7265b3f9 Mon Sep 17 00:00:00 2001 From: Raphael McSinyx Date: Wed, 15 Feb 2017 11:33:54 +0700 Subject: Update others/volume1 --- others/volume1/067.pas | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 others/volume1/067.pas (limited to 'others/volume1/067.pas') diff --git a/others/volume1/067.pas b/others/volume1/067.pas new file mode 100644 index 0000000..f5c4d6b --- /dev/null +++ b/others/volume1/067.pas @@ -0,0 +1,16 @@ +uses clib; + +var + n, i: int16; + a: array of int64; + +begin + readln(n); + setlength(a, n); + for i := 0 to n - 1 do + read(a[i]); + qsort(a); + for i := 0 to n - 2 do + write(a[i], ' '); + writeln(a[n - 1]) +end. -- cgit 1.4.1