2779: 输出绝对值 摘要:解题思路:else的条件是a<0 此时a为负数 所以a的绝对值是 -a ,--a=a。注意事项:都是成功提交过的可以直接使用。参考代码:#include<iostream>…… 题解列表 2026年05月30日 0 点赞 0 评论 68 浏览 评分:0.0
编写题解 2779: 输出绝对值 摘要:#include<bits/stdc++.h>using namespace std;int main(){ double i; &nbs…… 题解列表 2025年09月10日 0 点赞 0 评论 589 浏览 评分:0.0
C++简单解法 摘要:解题思路:属于基础题目,重要的是知道求绝对值的函数fabs及如何控制小数点后的位数注意事项:参考代码:#include<iostream>#include<cmath>#inc…… 题解列表 2025年03月04日 0 点赞 0 评论 520 浏览 评分:0.0
题解 2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a; cin>>a; pr…… 题解列表 2023年12月23日 0 点赞 0 评论 596 浏览 评分:9.9
2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x; cin >> x ; …… 题解列表 2023年12月17日 0 点赞 0 评论 351 浏览 评分:0.0
2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x; cin >> x ; …… 题解列表 2023年12月17日 0 点赞 0 评论 323 浏览 评分:0.0
2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x; cin >> x ; …… 题解列表 2023年12月17日 0 点赞 0 评论 353 浏览 评分:0.0
编写题解 2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a; cin>>a; pr…… 题解列表 2023年12月09日 0 点赞 2 评论 269 浏览 评分:6.0
题解 2779: 输出绝对值 摘要:解题思路:创建一个浮点型变量,再用printf输出就可以了。注意事项:要用#include <bits/stdc++.h>当头文件参考代码:#include <bits/stdc++.h>using …… 题解列表 2023年12月03日 0 点赞 0 评论 720 浏览 评分:9.9
2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> #include<iomanip> using namespace std; int mai…… 题解列表 2023年11月01日 0 点赞 0 评论 377 浏览 评分:0.0