HDU-2003

来源:互联网 发布:天庭淘宝城宋小刀txt 编辑:程序博客网 时间:2024/05/16 13:56

题目:http://acm.hdu.edu.cn/showproblem.php?pid=2003

仅供参考:

#include<stdio.h>int main(){double x;while (scanf("%lf",&x) != EOF){x >= 0 ? printf("%.2lf\n", x) : printf("%.2lf\n",-x);}return 0;}








0 0
原创粉丝点击