#157. 求三个整数的最大值

    ID: 157 Type: Default 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>codingbatWarmup-1gesp1条件结构

求三个整数的最大值

Find the Maximum Value

Background

Congcong is learning how to compare numbers. He has encountered a problem where he needs to find the largest among three integers. Can you help him?

Problem Description

Given three integer values, a,b,ca, b, c, return the largest among them.

Input Format

Input is given from Standard Input in the following format.

aa bb cc

Output Format

Output to Standard Output in the following format.

The maximum value

Sample

1 2 3
3
1 3 2
3
3 2 1
3

Constraints

Time limit: 1 second, Memory limit: 1024 KiB for each test case.