游客 Signup | Login
中文 | En

1947 - C++语言1.3

输入两个整数,比较大小并输出“max=”,之后输出较大的值。

Input

两个整数,用空格分隔。

Output

请输出读入的两个整数的较大值,并在较大值之前输出“max=”。
请注意不需要输出引号,行尾输出换行。

Examples

Input

8 5

Output

max=8

Solution C++

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