2777: 计算2的幂 摘要:解题思路:注意事项:位运算 1<<n。2的n次等价于整数1左移n位。都是正确提交过的,可以直接用。参考代码:#include<iostream>using namespace …… 题解列表 2026年05月23日 0 点赞 0 评论 74 浏览 评分:0.0
最简单C方法 摘要:解题思路:利用计算机系统位运算注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf(&…… 题解列表 2026年03月14日 0 点赞 0 评论 142 浏览 评分:0.0
题解 2777: 计算2的幂 摘要:解题思路:在python3中long类型已合并到int类型里,且**即为幂次方计算,所以造就了超简洁一行代码注意事项:参考代码:print(2**int(input()))…… 题解列表 2025年11月11日 2 点赞 0 评论 287 浏览 评分:10.0
题目 2777: 计算2的幂 摘要:解题思路:使用pow函数进行快速求解注意事项:pow函数里形参为double类型,返回值也是double类型参考代码:#include <iostream>#inc…… 题解列表 2025年07月21日 1 点赞 0 评论 325 浏览 评分:0.0
2025.7.21刷题记录 摘要:解题思路:pow(x,y) 求x的y次方注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ …… 题解列表 2025年07月21日 1 点赞 0 评论 257 浏览 评分:0.0
计算2的幂pow使用 摘要:解题思路:注意事项:参考代码:a =int(input())print(pow(2, a))…… 题解列表 2025年02月12日 0 点赞 0 评论 409 浏览 评分:0.0
题解 2777: 计算2的幂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b=0; scanf("%d&qu…… 题解列表 2025年01月25日 0 点赞 0 评论 425 浏览 评分:0.0
编写题解 2777: 计算2的幂 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,n,sum=1; scanf("%d",&n); for(i=1;i<=n;i+…… 题解列表 2024年12月05日 0 点赞 0 评论 432 浏览 评分:0.0
编写题解 2777: 计算2的幂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,p=0; scanf("%d",&n); p=pow(2,n)…… 题解列表 2024年11月07日 0 点赞 0 评论 348 浏览 评分:9.9