请问我的代码在哪里出问题了,虽然没错误和警告,结果是wrong answer
#include <stdio.h>int main()
{
int worktime;
float wageh,wage;
scanf("%d %f",&worktime,&wageh);
if(worktime<=0||worktime>168)
{
printf("input is wrong\n");
return 0;
}
else if(worktime>0&&worktime<=40)
{
wage=worktime*wageh;
}
else if(worktime>40&&worktime<=60)
{
wage=((worktime-40)*1.5+40)*wageh;
}
else
{
wage=((worktime-60)*3+20*1.5+40)*wageh;
}
printf("%g\n",wage);
return 0;
}