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

雨花毓秀周六B班

结束 2025-09-13 11:40:00
Contest is over.
当前 2025-11-04 21:21:53

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  •  1个月前

比赛已结束。