Submit | All submissions | Best solutions | Back to list |
TRESMDEX - Calcular M(x) para 3 números |
in English
Write a function that calculates M(x): the higher between the unit digit and the ten digit, of a positive integer. Then create a program that reads three numbers and reports M(x) for each one.
Input
3 integers.
Output
Result of M(x) for the 3 numbers entered.
Example 1
Input:
121
3926
3 Output: 2 6 3
en Español
Escribir una función que calcule M(x): el mayor entre la cifra unidad y la cifra decena de un número entero positivo , y luego un programa que lea 3 números y para cada uno informe M(x).
Entrada
3 números enteros.
Salida
Resultado de M(x) para los 3 numeros ingresados.
Ejemplo
Input: 121
3926
3 Output: 2 6 3
Added by: | Coach UTN FRSF |
Date: | 2015-08-13 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ASM64 GOSU JS-MONKEY |
hide comments
2023-04-28 10:48:52 Simes
Is there something funny with the input? I cannot get AC for this simple problem. There are only two AC and plenty of WAs. |