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/056.pas | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 others/volume1/056.pas (limited to 'others/volume1/056.pas') diff --git a/others/volume1/056.pas b/others/volume1/056.pas new file mode 100644 index 0000000..8fdc2dc --- /dev/null +++ b/others/volume1/056.pas @@ -0,0 +1,17 @@ +uses sysutils, clib; + +var + n, count: int16; + a: int64; + +begin + count := 0; + readln(n); + repeat + readln(a); + if ispalindrome(inttostr(a)) then + inc(count); + dec(n) + until n = 0; + writeln(count) +end. -- cgit 1.4.1