地址
http://acm.hdu.edu.cn/showproblem.php?pid=2003
定位
数学题
水题
分析
- 水题
代码
- #include <iostream>
- #include <math.h>
- #include <stdio.h>
- #include <string.h>
- using namespace std;
- int main() {
- double a;
- while(scanf(“%lf”,&a)!=EOF) {
- printf(”%.2lf\n”,fabs(a));
- }
- return 0;
- }
性能
| Exe.Time | Exe.Memory | Code Length | Language |
|---|---|---|---|
| 0MS | 1876K | 232B | c++ |
本文提供了一道 HDU ACM 题目 2003 的解答思路及 C++ 代码实现,该题为一道数学相关的简单题目,主要涉及绝对值的计算。
321

被折叠的 条评论
为什么被折叠?



