题解 2777: 计算2的幂

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

题解 2777: 计算2的幂

摘要:解题思路:在python3中long类型已合并到int类型里,且**即为幂次方计算,所以造就了超简洁一行代码注意事项:参考代码:print(2**int(input()))……

题目 2777: 计算2的幂

摘要:解题思路:使用pow函数进行快速求解注意事项:pow函数里形参为double类型,返回值也是double类型参考代码:#include <iostream>#inc……

2025.7.21刷题记录

摘要:解题思路:pow(x,y) 求x的y次方注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ ……

题解 2777: 计算2的幂

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b=0; scanf("%d&qu……

编写题解 2777: 计算2的幂

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){    int i,n,sum=1;    scanf("%d",&n);    for(i=1;i<=n;i+……

编写题解 2777: 计算2的幂

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){  int n,p=0;  scanf("%d",&n);  p=pow(2,n)……

计算2的幂(超简单解答)

摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() {     int n;     scanf("%d",&n); ……

2777 计算2的幂

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){    ll n,……