乘方计算C解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,a,n; scanf("%d %d",&a,&n); m=pow(a,n); …… 题解列表 2024年02月17日 0 点赞 0 评论 528 浏览 评分:0.0
python 2805: 乘方计算 注意事项:参考代码:a,n=map(int,input().split())print(a**n) 题解列表 2024年03月13日 0 点赞 0 评论 683 浏览 评分:6.0
2805: 乘方计算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,n; cin>>a>>n; int sum; i…… 题解列表 2024年05月07日 0 点赞 0 评论 420 浏览 评分:0.0
编写题解 2805: 乘方计算题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long a,n,s=1; cin>>a>>n; …… 题解列表 2024年05月11日 0 点赞 0 评论 443 浏览 评分:0.0
2805: 乘方计算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,n,sum=1; cin>>a>>n…… 题解列表 2024年06月30日 0 点赞 0 评论 435 浏览 评分:0.0
编写题解 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
2805: 乘方计算 摘要:解题思路:注意事项:因为是乘,所以“sum=1”,不是“sum=0”参考代码:#include <bits/stdc++.h>using namespace std;int main(){ in…… 题解列表 2024年06月30日 1 点赞 0 评论 507 浏览 评分:0.0
超简单新手题解 摘要:解题思路:pow函数注意事项:参考代码:#i#include <stdio.h>int main() { int a,b,j; scanf("%d %d",&a,&b); j=pow(a,b); pr…… 题解列表 2024年11月07日 0 点赞 0 评论 495 浏览 评分:2.0
pow默认输出double,如果题目要求整数需要int强制转换 摘要:解题思路:用pow函数的注意是,即使是两个int运算得到的pow结果也默认为double。而题目中要求,给出整数结果,就必须在输出前(int)强制转换。参考代码:#include<iostream>#…… 题解列表 2024年12月02日 0 点赞 0 评论 564 浏览 评分:0.0
新手 乘方计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d",&a,&b); c=pow(a,b); …… 题解列表 2024年12月07日 0 点赞 0 评论 539 浏览 评分:0.0