int plus_mod(int x,int y,int mod) { x+=y-mod; x+=(x>>31)&mod; return x; }
这段实现(x+y)%mod是什么原理,为什么是x+=(x>>1)&mod
求问