//没那么麻烦把!写的比较low import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int hp=sc.nextInt(); int normal=sc.nextInt(); int bf=sc.nextInt(); int count=0; if(2*normal>=bf){ count=hp%normal==0? hp/normal:hp/normal+1; } else{ int i=hp/bf; if(hp/bf!=0) { if (hp - bf * i 1; else count += 2; } count+=i; } System.out.println(count); } }
点赞 评论

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务