编写题解 2779: 输出绝对值 摘要:解题思路:float为浮点数函数'%.2f'保留两位数abs为绝对值函数注意事项:参考代码:n = float(input())print('%.2f'%(abs(n)…… 题解列表 2024年04月29日 3 点赞 0 评论 798 浏览 评分:9.0
编写题解 2779: 输出绝对值,python超简单 摘要:解题思路:输入,注意是浮点数输出浮点数并保留两位小数注意事项:abs(N)计算浮点数N的绝对值。float(input())将用户输入的字符串转换为浮点数'%.2f' % abs(N)…… 题解列表 2024年03月14日 0 点赞 0 评论 1023 浏览 评分:9.0
输出绝对值 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>#include<iomanip>using namespace std;int main(){ …… 题解列表 2022年10月30日 0 点赞 0 评论 394 浏览 评分:8.0
输出绝对值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x; scanf("%lf",&x); p…… 题解列表 2022年12月30日 0 点赞 0 评论 633 浏览 评分:8.0
编写题解 2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int main() { doubl…… 题解列表 2022年09月02日 0 点赞 0 评论 1046 浏览 评分:7.3
小试牛刀!!!!!!!!!! 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main{ public static void main(String[] args)…… 题解列表 2023年02月19日 0 点赞 0 评论 573 浏览 评分:7.3
求绝对值的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ float a; scanf("%f",&a); if(a>=0){ printf("%.2f",a); }…… 题解列表 2022年10月25日 0 点赞 0 评论 564 浏览 评分:7.0
感谢支持,谢谢你们的支持 摘要:解题思路:#include <bits/stdc++.h>using namespace std;int main(){ double a; cin>>a; if(a<0) {…… 题解列表 2023年05月13日 0 点赞 0 评论 305 浏览 评分:6.0
题解 2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;double a;int main(){ cin>>a; if(a>0…… 题解列表 2023年12月10日 0 点赞 0 评论 616 浏览 评分:6.0
编写题解 2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a; cin>>a; pr…… 题解列表 2023年12月09日 0 点赞 2 评论 179 浏览 评分:6.0