mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-07-08 02:13:51 +08:00
Update: Rename folder name to XSMOJ
This commit is contained in:
10
XSMOJ/长方形周长(保留小数).cpp
Normal file
10
XSMOJ/长方形周长(保留小数).cpp
Normal file
@ -0,0 +1,10 @@
|
||||
#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;
|
||||
}
|
Reference in New Issue
Block a user