摘要:
目录 "D Interesting Series" "E Magic Master" "I Yukino With Subinterval" D Interesting Series 在dq大佬的指点下搞出来的,貌似因为w的误差累积导致要longdouble才能通过。当然据说是预处理w也可以通过。 阅读全文
摘要:
```cpp include using namespace std; typedef long long ll; const int MAXN = 4e6, mod = 998244353; inline int pow_mod(ll x, int n) { ll res; for(res = 1 阅读全文
摘要:
```cpp include using namespace std; typedef long long ll; const int MAXN = 4e6; const double PI = acos( 1.0); struct Complex { double x, y; Complex() 阅读全文
摘要:
A What is better? 推不出来,写个程序打表,用扩展中国剩余定理合并,居然会溢出longlong,还好不会溢出__int128(赛后exit( 1)测试),实际证明溢出返回 1是不靠谱的,毕竟后面可以又把它搞小了。 cpp include using namespace std; ty 阅读全文
摘要:
这样的圆应该不会太多。 1.学会了二分取左右边界的方法,记得要取min和max防止越界。 2.学会了一种新的线段树的写法,父节点并不完全包含子节点,相反地,父节点拥有的元素,子节点不会再拥有。 cpp include using namespace std; typedef long long ll 阅读全文