2026-01-11发表2026-01-13更新 Ichooooooo 算法6 分钟读完 (大约872个字)AtCoder Beginner Contest 440题解AtCoder Beginner Contest 440题解A题意求$X$翻倍$Y$次的结果 是翻倍不是求幂QAQ 思路位运算或者$pow()$ 代码1234567void solve(){ int x, y; cin >> x >> y; // cout << x * pow(2, y) << endl; while (y --) x <<= 1; // 位运算 cout << x << endl;}阅读更多
2026-01-01发表2026-01-13更新 Ichooooooo 算法4 分钟读完 (大约536个字)杂项知识下面是我整理的平时碰到的一些奇怪的错误总结的奇怪的提示,持续更新(哈哈使用排序/查找 lower_bound如果没有找到大于等于的值返回a.end() lower_bound返回值是一个迭代器,*解值,-begin()返回序列pos sort排序左闭右开区间 优先级1cout << (x ^ pre) << ' '; 这里一定要加括号否则报错阅读更多