提交时间:2022-11-27 20:55:47

运行 ID: 6285

#include<iostream> using namespsce std ; #include<iomanip> int main () { double x; cin >> x; if (x >= 0){ cout<<fixed<<setprecision(2)<<x; }else{ cout<<fixed<<setprecision(2)<<(-x); } return 0; }