if(a==1 and b==1 or a==b){ cout<<"0"; return 0; } for(int i=1;i<=n;i++){ w * =10; } cout<<(int)(a / b * w)%10; 最后一个错了,求解