ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Турниры > CEN112 Homeworks 2013-2015 > задача:


50393 - Palindromic Numbers

CEN112 Homeworks 2013-2015

Старт: 15.дек.2013 в 12:00:00
Финиш: 15.дек.2013 в 17:00:00
Турнир завершён!
• Турнирная таблица

Гость
• Вопросы к жюри (2)

Задачи турнира

• 50530 - Sum of Ratios
• 50375 - Area of Circles
• 50388 - Number of Armstrong Num...
• 50393 - Palindromic Numbers
• 50339 - The Largest Rectangle
• 50345 - Orders
• 50758 - National Elections - Revisited
• 50754 - Team Standings
• 12-Spr1-40. 50327 - Parallel Lines
• 13-Fall2-20. 50395 - Page "Like" Av...
• 14-Spr1-30. 50492 - Contest Score...
• 14-Spr1-40. 50538 - Sum of kth Dia...

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Prepared by Ibrahim Mesecan.

The Number of Palindromic Numbers

Note: This question has been designed for C & C++. It will not work for other programming languages.
A number is palindromic, if it's read from left to right and from right to left the same. e.g. StackcatS is a palindromic word, but Cat is not.

Question: Assume that you are given the following functions in the header file Palin.h :

  • bool palindrome(int num); // decides if the given number is palindromic or not
  • int getNum(); // this function gets and returns a number
  • void showResult(int num);// shows the result on screen

Use the functions above in your program, and, get 5 numbers (using the function getNum(); ). And then, show the number of palindromic numbers (using the function showResult(int num); )
Note: For C and C++, you can include the functions using the following statement.
  #include "utils/Palin.h"

Input specification
Get five numbers through the function getNum();

Output specification
Show the result through the function showResult(int num);

Для отправки решений необходимо выполнить вход.

www.contester.ru