SB才看

徐翼天  •  1个月前


include <stdio.h>

int main() {

double a, c, d;
int b;
scanf("%lf", &a);
b = a + 0.999999;

if (b < 20) {

	d = b * 1.68;
}
if (b > 20) {
	c = b - 20;
	d = 20 * 1.68 + c * 1.98;
}
if (a == 20) {
	d = 20 * 1.68;
}
printf("%.2lf", d);
return 0;

}


评论:

请先登录,才能进行评论