题解 | #L1-2单位换算#
L1-2单位换算
https://ac.nowcoder.com/acm/contest/19304/R
#include<iostream> using namespace std; #include<iomanip> int main() { double a; cin>>a; double b=a*12*2.54*10; if(b==int(b))cout<<b; else cout<<fixed<<setprecision(1)<<b<<endl; }