编写题解 2779: 输出绝对值 摘要:#include<bits/stdc++.h>using namespace std;int main(){ double i; &nbs…… 题解列表 2025年09月10日 0 点赞 0 评论 81 浏览 评分:0.0
C++简单解法 摘要:解题思路:属于基础题目,重要的是知道求绝对值的函数fabs及如何控制小数点后的位数注意事项:参考代码:#include<iostream>#include<cmath>#inc…… 题解列表 2025年03月04日 0 点赞 0 评论 270 浏览 评分:0.0
题解 2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a; cin>>a; pr…… 题解列表 2023年12月23日 0 点赞 0 评论 395 浏览 评分:9.9
2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x; cin >> x ; …… 题解列表 2023年12月17日 0 点赞 0 评论 160 浏览 评分:0.0
2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x; cin >> x ; …… 题解列表 2023年12月17日 0 点赞 0 评论 138 浏览 评分:0.0
2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x; cin >> x ; …… 题解列表 2023年12月17日 0 点赞 0 评论 185 浏览 评分:0.0
编写题解 2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a; cin>>a; pr…… 题解列表 2023年12月09日 0 点赞 2 评论 139 浏览 评分:6.0
题解 2779: 输出绝对值 摘要:解题思路:创建一个浮点型变量,再用printf输出就可以了。注意事项:要用#include <bits/stdc++.h>当头文件参考代码:#include <bits/stdc++.h>using …… 题解列表 2023年12月03日 0 点赞 0 评论 494 浏览 评分:9.9
2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> #include<iomanip> using namespace std; int mai…… 题解列表 2023年11月01日 0 点赞 0 评论 195 浏览 评分:0.0
2779 输出绝对值题解 摘要:解题思路:本题只需要按照题干的要求模拟输出即可。注意事项:1.绝对值,即非负数的绝对值为其本身,负数的绝对值为其相反数(即符号相反) 2.注意保留两位小数。可以用fixed和…… 题解列表 2022年12月31日 0 点赞 0 评论 269 浏览 评分:0.0