摘要:
题目链接 1.智力测试 算法(暴力枚举) \(O(n)\) 枚举即可,直到大于所给值就退出,并且减一即为答案。 C++ 代码 #include<iostream> #include<vector> #include<queue> #include<stack> #include<algorithm> 阅读全文
![acwing52周赛](https://img2022.cnblogs.com/blog/2522554/202205/2522554-20220521235727843-681179878.png)
摘要:
a.位运算 1.快速幂 ll qmi(int m, int k, int p) { ll res = 1 % p, t = m; while (k) { if (k&1) res = res * t % p; t = t * t % p; k >>= 1; } return res; } b.前缀和 阅读全文
![算法模板](https://img2022.cnblogs.com/blog/2522554/202205/2522554-20220521145616536-1161139963.png)