50000*50000是25亿,已经超过了int的取值范围(最大值2^31-1,大约21亿),把printf那一行改成printf("%u",(unsigned)A*B);就行了。unsigned int的最大值是2^32-1,所以就没问题