http://acm.hdu.edu.cn/showproblem.php?pid=2003
#include <bits/stdc++.h> using namespace std; int main() { double n; while(cin>>n) { if(n>=0) printf("%.2lf\n",n); else printf("%.2lf\n",-1*n); } return 0; }
原文:https://www.cnblogs.com/zlrrrr/p/9201208.html