求小数的某一位 分数a/b化为小数后,小数点后第n位的数字是多少? 摘要:解题思路:由于double是浮点型,如果强制转化成int会造成精度缺失,这可能是大部分人会错一个答案的原因。在这里采用的方法是类似于手算小学除法题。比如1➗3。我们都知道,1比3小,所以要对1进位取1…… 题解列表 2025年07月24日 1 点赞 0 评论 407 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d…… 题解列表 2025年07月24日 0 点赞 1 评论 261 浏览 评分:0.0
1032:[编程入门]自定义函数之字符串连接 摘要:解题思路:注意事项:要写括号参考代码:#include<bits/stdc++.h>using namespace std;int q(string a,string b){ …… 题解列表 2025年07月24日 1 点赞 1 评论 315 浏览 评分:10.0
2936:简单算数表达式求值;;;;;;题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int s(int a,char c,int b){&nbs…… 题解列表 2025年07月24日 1 点赞 0 评论 172 浏览 评分:10.0
2816:统计满足条件的4位数个数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,a[110],s=0; cin>…… 题解列表 2025年07月24日 0 点赞 0 评论 167 浏览 评分:0.0
3020 :正确题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m=0;&…… 题解列表 2025年07月23日 1 点赞 1 评论 256 浏览 评分:10.0
2835:计算书费 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ float a[10]…… 题解列表 2025年07月23日 0 点赞 0 评论 193 浏览 评分:0.0
整数序列的元素最大跨度值 给定一个长度为n的非负整数序列,请计算序列的最大跨度值(最大跨度值 = 最大值减去最小值)。 摘要:解题思路:通过循环将数组赋值后,将a[0]赋值给max和min分别代表最大值和最小值,接着进行循环比较,从a[1]对比到a[n-1]。如果a[j]大于max,那就max更新为a[j]的值。相反,如果a…… 题解列表 2025年07月22日 0 点赞 0 评论 249 浏览 评分:0.0
2894 肿瘤检测 。题解 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){int a[…… 题解列表 2025年07月22日 0 点赞 0 评论 127 浏览 评分:0.0
尼科彻斯定理 纯数学方法 保姆级教程 摘要:解题思路:找左边界 例如 案例当中的m=13 m的立方 三个m相乘 相当于 m个m*m相加 答案说连续的奇数所以可以分成两种情况讨论奇数的情况是m*m就是答案的那串…… 题解列表 2025年07月22日 1 点赞 0 评论 212 浏览 评分:10.0