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

Разделы > Поиск > задача:


50459 - The Biggest Digit

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

Задачи раздела

• 51077 - Grades Histogram
• 51057 - Number of students
• 51046 - The biggest number
• 50535 - Image Compression
• 50450 - Last Appereance of a Number
• 50457 - The Number of Winners
• 50453 - The Cubic Difference
• 50451 - Processing Cost
• 50459 - The Biggest Digit
• 50538 - Sum of kth Diagonal
• 50465 - How many students have p...
• 50378 - Sum of the given digits
• 50470 - Close Pairs - Revised
• 50784 - Top Growing Company
• 50458 - Weekly Report
• 50478 - Letter Grades
• 50791 - Mine field

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

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

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

The Biggest Digit

Question: You will be given n numbers. Find the biggest digits of each number. And then, find sum of the biggest digits. For example: if you are given the following 3 numbers
  5071
  189
  32636
The biggest digits of given numbers are 7,9 and 6. And the sum is 22.

Input specification
You will be given an integer number (n) where is 0 ≤ n ≤ 100 and each of the following n lines will have a number which are between -2x109 and 2x109.

Output specification
Show one number: sum of the biggest digits of the given numbers.

 Sample Input   
 3
 10002
 -2500
 153
 Sample Output   
 12


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

www.contester.ru