求助大佬

P1422 小玉家的电费

#include <iostream> #include <cstdlib> #include <cstdio> using namespace std; int main() { float x,y; scanf("%f",&x); y=0.4463*x; y=(x>=151&&x<=400)? y+(x-150)*0.02:((x<=150)? y:y+5+(x-400)*0.1); printf("%3.1f",y); } 依然WA了两个
by 1030819289_ @ 2018-10-23 22:34:53


~~呵呵哒,666,我也不知道啊,可能是哪个地方少了东西~~
by _JEB_ @ 2018-10-30 12:28:58


|