mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-07-07 18:06:58 +08:00
更新了许多
This commit is contained in:
10
长方形周长(保留小数).cpp
Normal file
10
长方形周长(保留小数).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