随笔分类 - 技巧
摘要:回退背包,感觉挺牛的,之前没见过。 https://www.luogu.com.cn/record/181645733 https://h.hszxoj.com/d/hztg/p/362 https://www.luogu.com.cn/problem/P4141 https://h.hszxoj.
阅读全文
摘要:什么把模数因数分解+crt 之前没见过。 ans % m1 = x1 ans % m2 = x2 ... ans % mi = xi #include <bits/stdc++.h> using namespace std; using ubt = long long; int read() { i
阅读全文