二级C语言-自定义函数题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>double fact(int n){ double s; if(n==1) s=…… 题解列表 2022年11月13日 0 点赞 0 评论 343 浏览 评分:9.9
简单快捷的代码 摘要:解题思路:想办法输入10个值在对比注意事项:参考代码:int main(){ int arr[10],s; int tem; for(s=1;s<=9;s++) { scanf("%d",&arr[…… 题解列表 2022年11月13日 0 点赞 0 评论 295 浏览 评分:0.0
1015: [编程入门]求和训练 摘要:解题思路:注意事项:注意倒数需用double,以输出浮点数参考代码:#include<stdio.h>int main(){ int a,b,c; int A=0,B=0; doub…… 题解列表 2022年11月13日 0 点赞 0 评论 307 浏览 评分:8.0
1059: 二级C语言-等差数列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; int n=2; int sum; scanf("%d",&a); …… 题解列表 2022年11月13日 0 点赞 0 评论 339 浏览 评分:0.0
巧用数组和字符串来解题 摘要:解题思路:就是简单的字符串和数组的使用注意事项:没啥要注意的参考代码:n=list(input().split( )) str=str(n[0]) n=int(n[1]) sum=0 for …… 题解列表 2022年11月12日 0 点赞 0 评论 370 浏览 评分:0.0
计算1977!*---高精度阶乘 摘要: #include using namespace std; int main() { int a[10005]; a[1]=1…… 题解列表 2022年11月12日 0 点赞 0 评论 463 浏览 评分:0.0
c++---阶乘计算 摘要: #include using namespace std; int n; int a[100005]; int main() { …… 题解列表 2022年11月12日 0 点赞 0 评论 447 浏览 评分:0.0
c++——set函数自动去重排序 摘要: #include using namespace std; int main() { int n; cin>>n; int a…… 题解列表 2022年11月12日 0 点赞 0 评论 420 浏览 评分:0.0
高中找规律 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int i, n, k; while (scanf("%d", &n) != EOF) {…… 题解列表 2022年11月12日 0 点赞 0 评论 355 浏览 评分:0.0
适合初学者看通俗易懂C++ 摘要:解题思路: 1.题目要求最小步数,利用BFS搜索,一旦找到就是最小步数; 2.使用双向搜索减少时间,分别从初态和终态使用BFS,使用map关联数组命名为maps的键…… 题解列表 2022年11月12日 0 点赞 0 评论 757 浏览 评分:9.9