3013: 求小数的某一位 摘要:解题思路:注意事项:参考代码:a,b,n=map(int,input().split())c=float(a/b)for i in range(1,n+1): c=a*10/…… 题解列表 2025年02月14日 0 点赞 0 评论 40 浏览 评分:0.0
循环乘以10再求模,直到移动到整除结束 摘要:解题思路:1.转换为分数核心逻辑是循环乘以10再求模,直到移动到整除结束2.遍历循环2步:逐位计算:x=a*10/b;更新余数:a=a*10%b;注意事项:更新的次数由n决定。参考代码:#includ…… 题解列表 2024年12月05日 0 点赞 0 评论 85 浏览 评分:0.0
编写题解 3013: 求小数的某一位 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a,b,n,m;cin>>a>>b>>n;m=a*1.…… 题解列表 2024年06月05日 0 点赞 0 评论 139 浏览 评分:0.0
java--study||O.o--循环添零取模 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年02月15日 0 点赞 0 评论 90 浏览 评分:9.9
java--study||O.o--高精度 摘要:参考代码:import java.math.BigDecimal; import java.math.RoundingMode; import java.util.Scanner; pub…… 题解列表 2024年02月14日 0 点赞 0 评论 86 浏览 评分:9.9
求小数的某一位 3013: 摘要:解题思路:#include <iostream>using namespace std;int main(){ long long a,b,n,c; cin>>a>>b>>n; fo…… 题解列表 2024年01月16日 0 点赞 0 评论 55 浏览 评分:0.0
题解 3013: 求小数的某一位 标题 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ long long a,b,n,c; cin>>a>>b…… 题解列表 2024年01月16日 0 点赞 0 评论 117 浏览 评分:0.0
3013: 求小数的某一位 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a,b,n,c; cin>…… 题解列表 2024年01月16日 0 点赞 0 评论 71 浏览 评分:0.0
题解 3013: 求小数的某一位 摘要:解题思路:用for循环来模拟除法的过程注意事项:注意:本题不需要浮点型,用sum累加器存储商,最后输出 。 …… 题解列表 2024年01月16日 0 点赞 0 评论 41 浏览 评分:0.0
题解 3013: 求小数的某一位 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,n,c; cin>>a>>b>…… 题解列表 2024年01月16日 0 点赞 0 评论 64 浏览 评分:0.0