Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5869 peng 小玉家的电费 C++ 输出格式错误 0 0 MS 748 KB 374 2020-08-20 14:05:01

Tests(0/29):


#include <iostream> #include <cstdio> using namespace std; int main () { int tt; double d; cin >> tt; if (tt < 150) d = tt * 0.4463; else if (tt <400 && tt > 151) d = (tt - 150) * 0.4663 + 150 * 0.4463; else if (tt > 401) d = (tt - 400 ) * 0.5663 + 150 * 0.4463 + 250 * 0.4663; printf ("% .1f",d); return 0; }


测评信息: