第21行`b[i]=a/q;`中,$a,q$ 都是int类型,运算时舍去了小数部分,应该先强制转换一下`b[i]=(double)a/q;`。
by 369Pai @ 2022-03-06 13:18:40
@[369Pai](/user/290023) 谢谢大佬指点过了。再次感谢!
by darkerblue @ 2022-03-06 14:20:00