HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Functions > problem:


016. 50459 - The Biggest Digit

Guest
• Review clarifications (2)

Volume problems

• 50469 - Letter Grades
• 51012 - Palindrome-k
• 50559 - Prime Factors of a Number
• 002. 50428 - Three Times
• 003. 50432 - Numbers and Squares
• 004. 50433 - Sum of Cubes
• 005. 50595 - Sum of the numbers
• 010. 50582 - Number of digits
• 016. 50459 - The Biggest Digit
• 020. 50575 - Number of Prime num...
• 030. 50576 - Number of Perfect nu...
• 035. 50467 - Random Numbers
• 040. 50354 - Intersecting Rectangles
• 050. 50510 - What floor are they?
• 050. 50566 - Grade Point Average (...
• 060. 50727 - Fibonacci Numbers
• 061. 50733 - The Highest Average

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
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