URI Online Judge | 1013 The Greatest Solve with source code

URI Online Judge | 1013
The Greatest
Adapted by Neilor Tonin, URI  Brazil

Timelimit: 1

Make a program that reads 3 integer values and present the greatest one followed by the message "eh o maior". Use the following formula:



Input
The input file contains 3 integer values.

Output
Print the greatest of these three values followed by a space and the message “eh o maior”.


SOLVE
                    A,B,S = input().split()
                    A = int(A)
                    B = int(B)
                    S =int(S)
                    P=max(A,B,S)
                    print(P,"eh o maior")

Comments

Popular posts from this blog

How to solve an 8 puzzle problem using A* Algorithm in python

Timus Online Judge 1000. A+B Problem question and SOLVE with sudo code