二级C语言-分段函数-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include <cstdio> #include <cmath> using namespace std; float f(int ); int main…… 题解列表 2020年08月16日 0 点赞 0 评论 640 浏览 评分:0.0
二级C语言-自定义函数-题解(C++代码) 摘要:解题思路:注意事项:利用 n&1 判断n的奇偶。n为奇数值为1;n为偶数值为0参考代码:#include <cstdio> using namespace std; double f(double…… 题解列表 2020年08月16日 0 点赞 0 评论 461 浏览 评分:8.0
输出字符'A'个数-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n; scanf("%d",&n); for(int i=0;i<n;i…… 题解列表 2020年08月16日 0 点赞 0 评论 500 浏览 评分:0.0
求所给范围内水仙花数并排列-题解(C语言代码)二本冲冲冲。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int m,n,bai,shi,ge,count=0; while(scanf(…… 题解列表 2020年08月16日 0 点赞 0 评论 616 浏览 评分:0.0
[编程入门]迭代法求平方根-题解(C++代码) 摘要:解题思路:牛顿迭代法注意事项:参考代码:#include <cstdio> using namespace std; int main(){ float a,x1,x2; scanf(…… 题解列表 2020年08月16日 0 点赞 0 评论 528 浏览 评分:0.0
判断第几天-题解(C语言代码)谁说我一个二本学生就不会写ACM,加油兄弟们。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int y,m,d,time=0; int mon[12]; mon[1]=…… 题解列表 2020年08月16日 0 点赞 0 评论 414 浏览 评分:0.0
蓝桥杯2015年第六届真题-生命之树-题解(C++代码) 摘要:这一题我试着将ans初始化为负无穷,或者w1(第一个权值),因为怕所有权值都是负数,但是另ans=0反而满分,而另ans为负无穷却只有79%的分值。大家知道怎么回事吗?解题思路:其实就是无根树转化为有…… 题解列表 2020年08月16日 0 点赞 3 评论 261 浏览 评分:7.3
蓝桥杯基础练习VIP-回形取数-题解(C++代码)-dfs剪枝【思路比较清晰】 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int m, n; int a[200][200]; int vis[2…… 题解列表 2020年08月16日 0 点赞 1 评论 1202 浏览 评分:9.9
[编程入门]Sn的公式求和-题解(C++代码) 摘要:解题思路:将数字理解为字符,再将字符转换为数字相加注意事项:参考代码:#include<bits/stdc++.h> #include<string> using namespace std; …… 题解列表 2020年08月16日 0 点赞 0 评论 863 浏览 评分:0.0
成绩等级转换-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a; while(scanf("%d",&a)!=EOF) { if(…… 题解列表 2020年08月16日 0 点赞 0 评论 678 浏览 评分:0.0