返回小组 开始 2025-09-13 10:05:00

雨花毓秀周六B班

结束 2025-09-13 11:40:00
Contest is over.
当前 2026-01-11 05:49:40

78

include <stdio.h>

include <math.h>

int main() {

double n, c;
int b;

scanf("%lf", &n);
b=ceil(n);
if (b <= 20) {
	c = 1.68 * b;
}else{
	c=20*1.68+(b-20)*1.98;
}

printf("%.2lf", c);
return 0;

}


nijiama  •  3个月前

比赛已结束。