Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5878 Tracy 小玉家的电费 C++ 解答错误 3 0 MS 748 KB 337 2020-08-20 14:15:57

Tests(1/29):


#include <iostream> #include <cstdio> #include <iomanip> #include <cmath> using namespace std; int main () { int y; double x; cin >> y; if (y<=150) { x = y*0.4463; } else if (y>=150 && y<400) { x = y*0.4663; } else if (y>= 401) { x = y*0.5663; } printf("%.1f", x); return 0; }


测评信息: