```cpp printf("%lld",((1+n)*n/2-f(n)%N)%N); ``` 取模运算不能直接除2,而是要乘以2在mod P意义下的逆元 by Pluto_Xz @ 2021-11-20 11:44:39