Sorry, your browser cannot access this site
This page requires browser support (enable) JavaScript
Learn more >

题目描述 思路这道题主要考察的是对二进制的理解。 假设我们在第 $i$ 天会放入数量为 $x_i$ 的细菌,那么 $n$ 天之后会得到 $\sum^n_{i=0}x_i \cdot 2^i$ 。 所以给定一个数 $x$ ,我们需要找到一组 $[x_0,x_1,…,x_n]$ ,使得 $\sum^n_{i=0}x_i$ 最小,并且 $\sum^n_{i=0}x_i \cdot 2^i = x$...