java--study||O.o--循环添零取模 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年02月15日 0 点赞 0 评论 113 浏览 评分: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 评论 131 浏览 评分:9.9
3013: 求小数的某一位 摘要:```cpp #include #include using namespace std; int main() { long double a,b,n; cin>>a>…… 题解列表 2023年01月08日 0 点赞 0 评论 273 浏览 评分:9.9
直接数学方法进行计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double a,b,n,r,p,m,q; scanf("%lf %lf %lf…… 题解列表 2023年01月07日 0 点赞 0 评论 393 浏览 评分:9.9
优质题解 3013: 求小数的某一位 摘要:解题思路:这道题的难点是怎么查询小数点后的位数,最简单的做法是将浮点数转换成字符串,查找到小数点后就可以找到小数点n位后的那个值了,c++里的string库里提供了浮点数转字符串的to_string函…… 题解列表 2022年11月29日 0 点赞 0 评论 822 浏览 评分:9.9