社区讨论

为啥十分???

P1422小玉家的电费参与者 2已保存回复 4

讨论操作

快速查看讨论及其快照的属性,并进行相关操作。

当前回复
4 条
当前快照
1 份
快照标识符
@mi6mn0f3
此快照首次捕获于
2025/11/20 07:21
4 个月前
此快照最后确认于
2025/11/20 07:21
4 个月前
查看原帖
CPP
#include<bits/stdc++.h>
using namespace std;
int main(){
    double a;
    cin>>a;
    if(a<=150){
        cout<<fixed
            <<setprecision(1)
            <<(0.4463*a)<<endl;
    }else{
        if(a>150&&a<400){
            cout<<fixed
                <<setprecision(1)
                <<(a*0.4663)<<endl;
        }else{
            if(a>401){
                cout<<fixed
                    <<setprecision(1)
                    <<(a*0.5663)<<endl;
            }
        }
    }
    return 0;
}
//求求求大大大老姥姥。//重要的是勤说三遍

回复

4 条回复,欢迎继续交流。

正在加载回复...