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;}阅读更多