2的幂 基础模式,中规中矩 摘要:解题思路:pow函数的应用注意事项:注意头文件math.h参考代码:#include<stdio.h>#include<math.h>int main(){ int n,i; scanf(…… 题解列表 2022年12月31日 0 点赞 0 评论 328 浏览 评分:0.0
ikun崩溃代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ double n; scanf("%lf",&n); printf("…… 题解列表 2023年01月31日 0 点赞 0 评论 210 浏览 评分:0.0
题解 2777: 计算2的幂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a = 0; int b = 1; int i = 0; scanf("%d\n", &a); for …… 题解列表 2023年02月27日 0 点赞 0 评论 192 浏览 评分:0.0
解法有很多,多思考进步才会大 摘要:解题思路:注意事项:参考代码: int n,s=2; scanf("%d",&n); for(int i=0;i<n-1;i++){ s = s * 2; …… 题解列表 2023年02月27日 0 点赞 0 评论 183 浏览 评分:0.0
221486416456185456 摘要:解题思路:#include <bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; cout<<(int)pow(…… 题解列表 2023年04月22日 0 点赞 0 评论 310 浏览 评分:0.0
C语言-计算2的幂 摘要:解题思路:循环结构,n个2相乘注意事项:参考代码:#include<stdio.h>#include <math.h>int main(){ int n,s=1; scanf("%d",&…… 题解列表 2024年01月18日 0 点赞 0 评论 130 浏览 评分:0.0
编写题解 2777: 计算2的幂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <math.h>int main(){ int a,A; scanf("%d",&a); A=pow…… 题解列表 2024年02月03日 0 点赞 0 评论 107 浏览 评分: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 评论 185 浏览 评分:0.0
题解 2777: 计算2的幂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b=0; scanf("%d&qu…… 题解列表 2025年01月25日 0 点赞 0 评论 134 浏览 评分:0.0
每日一道----计算2的幂 摘要:解题思路:注意事项:主要需要注意的是pow函数返回的是double类型的数值,通过强制类型转换成int类型参考代码:#include<stdio.h>#include<math.h>int main(…… 题解列表 2022年12月15日 0 点赞 0 评论 701 浏览 评分:8.7