私信TA
用户名:Frank3821
访问量:18006
签 名:
十月一日那天,祝你幸福!
自我简介:
每走一次捷径,就会丧失一点人性!
作者: 灿烂的神 发表时间:2018-08-20 16:38:55 浏览:380 | 评论:0
解题思路:注意事项:参考代码:
#include<stdio.h>
int main(){
int t;
float s,award=0;
scanf("%d %f",&t,&s);
if(t>50){
award+=(t-50)*s*2; t=50;
}
if(t>40){
award+=(t-40)*s*1.5; t=40;
award+=t*s;
printf("%.2f",award);
return 0;
0.0分
0 人评分