ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1044. Счастливые билеты. Easy!

Показать все сообщения Спрятать все сообщения

Hi,
   Is this number 63363 lucky number?
Is it necessary all lucky numbers have to be a palindrome?

Regards
Anupam
If number of digits is odd, answer is 0.
I don't agree. There is no such rule. So you can solve the n-1 problem and then multiplicate it on 10.
Re: what about odd number of digits? Could someone explain Please Md. Shahedul Islam (Shahed) 8 июн 2015 22:15
According to the problem the input number isn't odd as it is divisible 2. source:
"Output
should contain a number of tickets such that the sum of the first half of digits is equal to the sum of the second half of digits."
the input says "an even integer N", so there should be no odd number as input.