题解 2777: 计算2的幂 摘要:解题思路:在python3中long类型已合并到int类型里,且**即为幂次方计算,所以造就了超简洁一行代码注意事项:参考代码:print(2**int(input()))…… 题解列表 2025年11月11日 1 点赞 0 评论 83 浏览 评分:10.0
题目 2777: 计算2的幂 摘要:解题思路:使用pow函数进行快速求解注意事项:pow函数里形参为double类型,返回值也是double类型参考代码:#include <iostream>#inc…… 题解列表 2025年07月21日 0 点赞 0 评论 161 浏览 评分:0.0
2025.7.21刷题记录 摘要:解题思路:pow(x,y) 求x的y次方注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ …… 题解列表 2025年07月21日 0 点赞 0 评论 132 浏览 评分:0.0
计算2的幂pow使用 摘要:解题思路:注意事项:参考代码:a =int(input())print(pow(2, a))…… 题解列表 2025年02月12日 0 点赞 0 评论 272 浏览 评分:0.0
题解 2777: 计算2的幂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b=0; scanf("%d&qu…… 题解列表 2025年01月25日 0 点赞 0 评论 265 浏览 评分: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 评论 300 浏览 评分: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 评论 241 浏览 评分:9.9
计算2的幂(超简单解答) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int n; scanf("%d",&n); …… 题解列表 2024年08月02日 0 点赞 0 评论 651 浏览 评分:9.9
2777 计算2的幂 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ ll n,…… 题解列表 2024年07月17日 0 点赞 0 评论 288 浏览 评分:0.0