题解 2777: 计算2的幂

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

筛选

题目 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,……

Java学习小练习

摘要:解题思路:注意事项:由于c的数据类型是int,最大为2,147,483,647(2^31-1),也就是输入的数不能超过30,要注意.参考代码:import java.util.Scanner;publ……