坦克炸碉堡,用碉堡總血量算的,一開始沒想過總血量會(huì)一次扣成負(fù)的,卡了好久。。。 public static void main(String[] args) { Scanner in = new Scanner(System.in); int a = in.nextInt(), b = in.nextInt(), c = in.nextInt(), d = in.nextInt(); long time = 0, total = d * b; while (d > 0) { if (a == 0)...