提交时间:2022-11-27 20:54:18

运行 ID: 6284

#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;