独立生活100% Scanner sc = new Scanner(System.in); String nums=sc.nextLine(); String[] numbers=nums.split(" "); int x=Integer.parseInt(numbers[0]); int f=Integer.parseInt(numbers[1]); int d=Integer.parseInt(numbers[2]); int p=Integer.parseInt(numbers[3]); int i,j; int count=0; int temp=0; if(x*f<d){ temp=d-x*f; count+=f; count+=temp/(x+p); } else{ count+=d/x; } System.out.println(count);
点赞 评论

相关推荐

迷茫的大四🐶:干脆大厂搞个收费培训得了,这样就人均大厂了
点赞 评论 收藏
分享
09-22 22:22
中山大学 Java
乌鱼子萨奇:羡慕你啊,直接转正了,都不用经历秋招的炼狱,但是你少经历了很多痛苦的事情啊
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务