int calDays(int rm_fee,int fruits,int balance,int fr_fee) { int timer=0; int bal = balance-(fruits*rm_fee); if (bal>0) { timer=fruits+(int)(bal)/(rm_fee+fr_fee); } else if (bal=0) { timer=fruits; } else { timer=(int)(balance/rm_fee) } return timer; } 独立生活100%AC,题都比较巧妙
点赞 4

相关推荐

今天 16:47
门头沟学院 Java
点赞 评论 收藏
分享
zYvv:双一流加大加粗再标红,然后广投。主要是获奖荣誉不够,建议开始不用追求大厂,去别的厂子刷下实习。
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务