- [语言过关]求最大数
kunkun
- 2023-9-2 14:29:35 @
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
int max=0,min=0;
cin>>a>>b>>c;
max=a;
min=a;
if(max<b)
{
max=b;
}
if(max<c)
{
max=c;
}
if(min>b)
{
min=b;
}
if(min>c)
{
min=c;
}
cout<<max<<" "<<min<<endl;
return 0;
}
0 comments
No comments so far...
Information
- ID
- 236
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 6
- Tags
- # Submissions
- 168
- Accepted
- 48
- Uploaded By