游客 Signup | Login
中文 | En

2755 - 三个数中最大数

输入三个数,请编程找出三个数中的最大数。

Input

一行共3个整数

Output

 最大的整数

Examples

Input

4 5 6

Output

6

Solution C++

#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
    int n,max;
    cin>>max;
    cin>>n;
    if(n>max)
    {
        max=n;
    }
    cin>>n;
    if(n>max)
    {
        max=n;
    }
    cout<<max<<endl;
    return 0;
}
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题