已采纳 段辰曦 初级守护 int f(int a,int b){ if(a==b) return a*b; return 0; } int n,t,m; cin>>n; for(int i=1;i<=n;i++){ cin>>t>>m; cout<<f(t,m)<<endl; }