zhyf • 7天前
using namespace std;
int main() {
double a, b, d;
scanf("%lf", &b);
int c;
c = b + 0.999999999;
if (0 <= c <= 20) {
d = (double)c * 1.68;
}
if (c > 20) {
d = (c - 20) * 1.98 + 20 * 1.68;
}
printf("%.2f", d);
return 0;
}
评论:
请先登录,才能进行评论