题解 3013: 求小数的某一位 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,n,c; cin>>a>>b>…… 题解列表 2024年01月16日 0 点赞 0 评论 454 浏览 评分:0.0
3013: 求小数的某一位 摘要:解题思路:注意事项:这里的cout要在外面写a的值可以改变参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long lo…… 题解列表 2024年01月15日 0 点赞 0 评论 479 浏览 评分:9.9
Yu(正确的做法)求小数的某一位 #解题思路**很多题解都是错误的**首先这是循环题,很多题解不使用循环,也没有算法。如果数据按题目给的量级,那些题解的方法不可能过,longdouble没有那么大的范围。我们应该把商放大,取余最后一位来得到结果。为了不超过数据范围,需要不断取模。 题解列表 2023年12月01日 0 点赞 0 评论 461 浏览 评分:9.9
【稳定做法】求小数的某一位-模拟列竖式 前排题解基本用浮点数运算,但是对于$$n\leq10000$$的数据范围来说理论上都是错误的,无论是`double`还是`longdouble`在$$10^{10000}$$面前都无法保证精度正确做法应该模拟列竖式除法的过程,商只保留运算到的最后一位, 题解列表 2023年10月30日 0 点赞 0 评论 624 浏览 评分:9.9
求小数的某一位 解题思路:注意事项:参考代码:importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);inta=sc.nextInt();intb=sc.nex 题解列表 2023年10月13日 0 点赞 0 评论 430 浏览 评分:6.0
3013: 求小数的某一位 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,n;//定义a,b,n, cin>>a>>b>>n…… 题解列表 2023年07月11日 0 点赞 0 评论 713 浏览 评分:9.9
求小数的某一位 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,n,c; cin>>a>>b>>n…… 题解列表 2023年07月11日 0 点赞 0 评论 482 浏览 评分:9.9
求小数的某一位 摘要:解题思路:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,n,c; cin>>a>>b>>n; for…… 题解列表 2023年07月11日 0 点赞 0 评论 491 浏览 评分:0.0
aaaaaaaaaaaaaaaaaaaa 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,c,n; cin>>a>>b>>n…… 题解列表 2023年07月11日 0 点赞 0 评论 499 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,t; double a, b,c; scanf("%lf %lf %d", &…… 题解列表 2023年06月16日 0 点赞 0 评论 599 浏览 评分:6.0