【防炸long long】快速乘总结
#define ull unsigned long long
#define ll long long
#define ld long double
inline ll ksc(ll x,ll y,ll p)
{
ll z=(ld)x/p*y;
ll res=(ull)x*y-(ull)z*p;
return (res+p)%p;
}
#define ull unsigned long long
#define ll long long
#define ld long double
inline ll ksc(ll x,ll y,ll p)
{
ll z=(ld)x/p*y;
ll res=(ull)x*y-(ull)z*p;
return (res+p)%p;
}