大师傅

Nicole · 发布于 2025-09-06 · 浏览 370 回复 0
#include <stdio.h>

int main() {
double a, b, c;
int d;
scanf("%lf", &a);
d = a + 0.99999;
if (d <= 20) {
	c = d * 1.68;
	printf("%.2lf", c);
}
if (d > 20) {
	b = (d - 20) * 1.98 + 20 * 1.68;
	printf("%.2lf", b);
}

return 0;
}

全部回复 共 0 条

还没有人回复。往下写第一条。

发表回复