题解 | #小球的距离#
小球的距离
https://www.nowcoder.com/practice/e637331ec6254a74a863ccb9040444c4
import java.util.*; public class Balls { public int calcDistance(int A, int B, int C, int D) { // write code here // S = A + 2 * A/(2^n) 求无限极数 得到为 3A return 3*(A+B+C+D); } }