2777: 计算2的幂(递归) 摘要:解题思路:递归注意事项:参考代码:#include<iostream> using namespace std; int mi(int n) { if(n==0) return 1; i…… 题解列表 2023年01月02日 0 点赞 0 评论 238 浏览 评分:0.0
2774: 计算三角形面积 摘要:解题思路:海伦公式注意事项:参考代码:#include<iostream> #include<cstdio> #include<cmath> using namespace std; doub…… 题解列表 2023年01月02日 0 点赞 0 评论 182 浏览 评分:0.0
C语言——题解 2979: 确定进制 摘要:解题思路:注意事项:参考代码:int jinzhi(int i,int n); //这个函数用于进制转换,按权展开再相加。int maxs(int a,int b,int c); /…… 题解列表 2023年01月02日 0 点赞 0 评论 415 浏览 评分:9.9
1464: 蓝桥杯基础练习VIP-分解质因数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int asd(int n) //判断素数 { int k =(int) (sqrt(n)…… 题解列表 2023年01月02日 0 点赞 0 评论 221 浏览 评分:7.3
2797: 最高的分数(STL函数最快解决问题) 摘要:##2797: 最高的分数 ######用max_element的时候输出记得加*解引用 ```cpp #include using namespace std; int main() {…… 题解列表 2023年01月02日 0 点赞 0 评论 361 浏览 评分:9.9
2796: 求整数的和与均值 摘要:##2796: 求整数的和与均值 ```c #include int main() { double n,a,sum=0; scanf("%lf",&n); int temp=n;…… 题解列表 2023年01月02日 0 点赞 0 评论 323 浏览 评分:0.0
<指针练习>数字逆序输出(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10]; int* p = &a[9];//定义指针p指向最后一个元素; for (int i = …… 题解列表 2023年01月02日 0 点赞 0 评论 295 浏览 评分:9.9
计算(a+b)/c的值(C++) 摘要:解题思路:只需先定义一个整数,输入后直接输出商就行了注意事项:参考代码:#include<iostream>using namespace std;int main( ){int a,b,c;//定义…… 题解列表 2023年01月02日 0 点赞 0 评论 391 浏览 评分:9.9
自定义阶乘函数和幂函数 摘要:解题思路:递归写一个阶乘函数,然后自定义一个幂函数,最后主函数调用即可。注意double数据类型如何一直保持double的问题!!!不要与整型数据进行乘除计算即可,如果遇到了记得转换一下。注意事项:①…… 题解列表 2023年01月02日 0 点赞 0 评论 223 浏览 评分:9.9
Java题解:左移右移 摘要:解题思路: 把1-n的值初始化大一点 保存最大最小值跟着变化最后根据下标排个序就行了参考代码:import java.io.BufferedReader; import java.io.IOExc…… 题解列表 2023年01月02日 0 点赞 0 评论 601 浏览 评分:5.5