python 2805: 乘方计算 注意事项:参考代码:a,n=map(int,input().split())print(a**n) 题解列表 2024年03月13日 0 点赞 0 评论 683 浏览 评分:6.0
2805: 乘方计算 摘要:``` #include using namespace std; int main(){ int a,n,sum; cin>>a>>n; sum=1; for(int i=0;…… 题解列表 2023年11月05日 0 点赞 0 评论 506 浏览 评分:7.3
编写题解 2805: 乘方计算 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,n,sum=1;cin>>a>>n; …… 题解列表 2024年06月30日 1 点赞 0 评论 671 浏览 评分:9.0
有错误请指出 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,n; scanf("%d %d",&a,&n); int i=0,cheng=1; …… 题解列表 2022年12月20日 0 点赞 0 评论 781 浏览 评分:9.5
for循环c语言版 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,n; int ax=1; scanf("%d %d",&a,&n); if(…… 题解列表 2023年11月04日 0 点赞 0 评论 722 浏览 评分:9.9
题解 2805: 乘方计算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int z,f=0,b,c=0; cin>>b>>z; f=…… 题解列表 2023年11月08日 0 点赞 0 评论 615 浏览 评分:9.9
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年01月11日 0 点赞 0 评论 641 浏览 评分:9.9
题解 2805: 乘方计算 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){long long a,n,sum=1;cin>>a>>n;for(i…… 题解列表 2024年01月10日 0 点赞 0 评论 512 浏览 评分:9.9
题解 2805: 乘方计算 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,n; int sum=1; …… 题解列表 2024年01月10日 0 点赞 0 评论 421 浏览 评分:9.9
2805: 乘方计算(C语言之奇奇怪怪解法) #include//power函数使用递归方式计算乘方。如果指数n为0,返回1。如果指数n为偶数,递归计算a^(n/2)并返回结果的平方。如果指数n为奇数,递归计算a^((n-1)/2),将结果与a相乘,然后再乘以结果的平方。longlongintpower(inta, 题解列表 2023年07月07日 0 点赞 1 评论 757 浏览 评分:9.9