版本比较
乱谈数学
正文
增加 1 行删除 1 行
166 行未改动全部展开16716816917017117117217317417512 行未改动166 行未改动全部展开 inline void mmul(int&x,int y){x=1ll*x*y%P;} inline int fmmul(int x,int y){return 1ll*x*y%P;} inline void SOLVE(){ char c=gc(); int n=0; int n=0; while(c<'0'||c>'9')c=gc(); while(c>='0'&&c<='9')n=(n*10+c-'0')%P,c=gc(); cout<<(1ll*(n)*(n+1)*(n+2)/6)%P<<'\n'; }12 行未改动