2777: 计算2的幂 摘要:解题思路:注意事项:位运算 1<<n。2的n次等价于整数1左移n位。都是正确提交过的,可以直接用。参考代码:#include<iostream>using namespace …… 题解列表 2026年05月23日 0 点赞 0 评论 74 浏览 评分:0.0
题目 2777: 计算2的幂 摘要:解题思路:使用pow函数进行快速求解注意事项:pow函数里形参为double类型,返回值也是double类型参考代码:#include <iostream>#inc…… 题解列表 2025年07月21日 1 点赞 0 评论 325 浏览 评分:0.0
2777 计算2的幂 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ ll n,…… 题解列表 2024年07月17日 0 点赞 0 评论 426 浏览 评分:0.0
编写题解 2777: 计算2的幂 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=1;cin>>n; for…… 题解列表 2024年06月30日 0 点赞 0 评论 615 浏览 评分:9.9
2777:计算2的幂 摘要:解题思路:循环注意事项:变量参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int i,n,sum; sum=1;…… 题解列表 2024年06月30日 0 点赞 0 评论 360 浏览 评分:0.0
编写题解 2777: 计算2的幂 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a=1,n; cin>>n…… 题解列表 2024年02月23日 0 点赞 0 评论 349 浏览 评分:0.0
2777: 计算2的幂 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int i,n,sum; sum=1; …… 题解列表 2024年01月08日 0 点赞 0 评论 405 浏览 评分:9.9
2777: 计算2的幂(超级简单) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; long long…… 题解列表 2024年01月08日 0 点赞 0 评论 329 浏览 评分:0.0
题解 2777: 计算2的幂 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; int m…… 题解列表 2024年01月08日 0 点赞 0 评论 317 浏览 评分:0.0