TRESFDEX - Calcular F(x) para 3 números

in English

Write a function that computes F(x) = x2 - 3x + x%10, and then a program that reads three numbers and report F (x) for each one.

Input

3 integers.

Output

Result of F(x) for the 3 numbers entered.

Example 1

Input:
1
3
2 Output: -1 3 0

en Español

Escribir una función que calcule: F(x) = x2 - 3x + x%10, y luego un programa que lea 3 números y para cada uno informe F(x).

Entrada

3 números enteros.

Salida

resultado de F(x) para los 3 numeros ingresados.

Ejemplo

Input:
1
3
2 Output: -1 3 0

Added by:Coach UTN FRSF
Date:2015-08-12
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64 GOSU JS-MONKEY

hide comments
2018-03-25 04:17:03
"x2" should be "x^2".
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.