ac

zhyf · 发布于 2025-09-07 · 浏览 354 回复 0

include <bits/stdc++.h>

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;

}

全部回复 共 0 条

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

发表回复