求小数的某一位 分数a/b化为小数后,小数点后第n位的数字是多少? 摘要:解题思路:由于double是浮点型,如果强制转化成int会造成精度缺失,这可能是大部分人会错一个答案的原因。在这里采用的方法是类似于手算小学除法题。比如1➗3。我们都知道,1比3小,所以要对1进位取1…… 题解列表 2025年07月24日 1 点赞 0 评论 87 浏览 评分:0.0
2025/7/24刷题记录 摘要:解题思路:switch 可以将输出结果一样的case放一部分不写break到最后一个再写 如果switch 如果前面的case匹配成功但是没有break会继续往下执行注意事项:参考代码:#includ…… 题解列表 2025年07月24日 0 点赞 0 评论 86 浏览 评分:0.0
2025/7/24刷题记录 摘要:解题思路:if...elseif 如果前面的if成功匹配后面的elseif不管匹配成功不成功都不会执行了 但是if...if前面的if匹配执行后后面的if如果也匹配还会继续执行注意事项:参考代码:#i…… 题解列表 2025年07月24日 0 点赞 0 评论 88 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d…… 题解列表 2025年07月24日 0 点赞 0 评论 41 浏览 评分:0.0
1032:[编程入门]自定义函数之字符串连接 摘要:解题思路:注意事项:要写括号参考代码:#include<bits/stdc++.h>using namespace std;int q(string a,string b){ …… 题解列表 2025年07月24日 1 点赞 1 评论 47 浏览 评分:10.0
简单思路解求矩阵的两对角线上的元素之和 摘要:解题思路:利用斜对线的数组编号注意事项:奇数的时候中间的那个数是多加了一次,要减掉参考代码:#include<stdio.h>int main(){ int n,…… 题解列表 2025年07月24日 1 点赞 0 评论 29 浏览 评分:8.0
2936:简单算数表达式求值;;;;;;题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int s(int a,char c,int b){&nbs…… 题解列表 2025年07月24日 1 点赞 0 评论 28 浏览 评分:10.0
冒泡排序法-------编写题解 1006: [编程入门]三个数找最大值 摘要:解题思路:先降序排列,取数组第一个输出即可注意事项:参考代码:#include<stdio.h>#define n 3int main(){ int a, b, …… 题解列表 2025年07月24日 0 点赞 0 评论 32 浏览 评分:0.0
2816:统计满足条件的4位数个数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,a[110],s=0; cin>…… 题解列表 2025年07月24日 0 点赞 0 评论 23 浏览 评分:0.0
3020 :正确题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m=0;&…… 题解列表 2025年07月23日 0 点赞 0 评论 50 浏览 评分:0.0