我第二题直接就两个循环
for(itn i=0;i<m;i++)
for(int j=0;j<n;j++)
if(i/10+i%10+j/10+j%10==k) count++;