C题三分这样写会什么会wa 不加这一句可以过 "else if(lres==rres){l=lm;r=rm;}" ```cpp #include<bits/stdc++.h> using namespace std; int x,y; int check(int l){ int xx=x-l*2,yy=y-l*3; if(xx<0||yy<0) return min(x/2,y/3); int r=min(xx/4,yy); return l+r; } int main(){ int T; cin>>T; while(T--){ cin>>x>>y; int l=0,r=min(x/2,y/3),ans=r; //cout<<r<<endl; for(int i=1;i<=1000;++i){ int lm=(l*2+r)/3,rm=(l+r*2)/3; int lres=check(lm),rres=check(rm); //cout<<lm<<" :"<<lres<<" "<<rm<<":"<<rres<<endl; if(lres>rres){ r=rm; } else if(lres==rres){ l=lm;r=rm; } else { l=lm; } ans=max(ans,max(lres,rres)); } cout<<ans<<endl; } return 0; } ```