OI-Codes/XSM OJ 重庆小码王集团OJ/长方形周长(保留小数).cpp
2024-02-15 22:38:30 +08:00

11 lines
159 B
C++

#include <iostream>
#include <iomanip>
using namespace std;
int main(){
float a;
float b;
cin >>a>>b;
cout <<fixed<<setprecision(1)<<(a+b)*2;
return 0;
}