#include<cstdio>
#include<iostream>
#include<algorithm>
#include<cstring>
typedef long long ll;
using namespace std;
const ll mod=100000000;
int main()
{
int n,m;
cin>>n>>m;
int s=0;
while(1)
{
if(n==0||m==0||(n<=1&&m<=1))
break;
if(n>=m)
{
n-=2;
m--;
}
else
{
m-=2;
n--;
}
s++;
}
cout<<s<<endl;
return 0;
}
探讨了在编程比赛中如何根据经验成员和新手的数量形成最优团队组合,通过两种不同的团队配置方案实现最大的团队数量。
633

被折叠的 条评论
为什么被折叠?



