秒了
查看原帖
秒了
1247040
V_HAPPY666楼主2024/5/26 20:29

如果你不想成为最优解的话 请使用耗时较长的

max()函数

#include <bits/stdc++.h>
using namespace std;

int main()
{
	ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
	int a,b;
	cin>>a>>b;
	cout<<max(a,b)<<endl;
	return 0;
}

2024/5/26 20:29
加载中...