题解(其实想要自己写,他那个函数太长)
2025-09-14 08:53:42
发布于:浙江
36阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
typedef long long apple;
apple maxn(apple a,apple b){
if(a>b) return a;
else if(a<b) return b;
}
apple minn(apple a,apple b){
if(a>b) return b;
else if(b>a) return a;
}
int main(){
apple a,b;
cin>>a>>b;
cout<<"max"<<"="<<maxn(a,b)<<endl;
cout<<"min"<<"="<<minn(a,b)<<endl;
return 0;
}
这里空空如也
有帮助,赞一个