版本比较
个人用 C++ 模板
正文
增加 4 行删除 4 行
32 行未改动33343536373738393940414242434445454647484910 行未改动32 行未改动
```cpp line-numbersstruct Int { int val; Int(int x = 0) : val(x) {} Int(int x = 0) : val((x % mod + mod) % mod) {} inline Int operator + (const Int &rhs) const { return (1LL * val + rhs.val) % mod; return (1ll * val + rhs.val) % mod; } inline Int operator - (const Int &rhs) const { return (1LL * val - rhs.val + mod) % mod; return (1ll * val - rhs.val + mod) % mod; } inline Int operator * (const Int &rhs) const { return 1LL * val * rhs.val % mod; return 1ll * val * rhs.val % mod; }};```
10 行未改动