Shovels and Swords
纯数学
#include<bits/stdc++.h>
using namespace std;
int main()
{
int t,n,m;
scanf("%d",&t);
while(t–)
{
scanf("%d%d",&n,&m);
if(m>n) swap(n,m);
if(n>=m*2) printf("%d\n",m);
else printf("%d\n",(m+n)/3);
}
return 0;
}
06-12
253
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交