题解 | #求小球落地5次后所经历的路程和第5次反弹的高度#
求小球落地5次后所经历的路程和第5次反弹的高度
https://www.nowcoder.com/practice/2f6f9339d151410583459847ecc98446
import java.util.*; public class Main { public static void main(String[] args) { Scanner fzhinput = new Scanner(System.in); float csgd = fzhinput.nextFloat(); float gd,dwcgd; gd = csgd+csgd+csgd/2+csgd/4+csgd/8; dwcgd = csgd/32; System.out.println(gd); System.out.println(dwcgd); } }