//个人认为的难点:for循环的循环控制行
//可能遗漏的点:两位小数(注意到就行)
AC代码:
#include <iostream>
#include <stdio.h>
#include<cmath>
#include<iomanip>
using namespace std;
int main()
{
int t;
long double x, ans;
cin >> t;
for (t; t != 0; t--)
{
cin >> x;
ans = abs(x);
cout <<fixed<<setprecision(2)<< ans << endl;
}
return 0;
}