洛谷笔记 - P5706 【深基2.例8】再分肥宅水

好久没整了……

英语不行,那是真的不行

//P5706 【深基2.例8】再分肥宅水
//作者 深入浅出
#include<bits/stdc++.h>
using namespace std;
int main(){
    float t;
    int n;
    cin>>t>>n;
    cout<<fixed<<setprecision(3)<<t/n<<endl; //fixed确定精度,setprecision确定小数点位数
    cout<<n*2; //为什么要分开输出?脑子不好使了呗(划掉)
    return 0;
}
Just Programming With ♥️ & Peace
使用 Hugo 构建
主题 StackJimmy 设计