version_1: def find_nb(m): # your code ii = 1 total = 0 while total < m: total = sum(each**3 for each in range(ii)) ii += 1 if total == m: result = ii ...
分类:
其他好文 时间:
2019-06-11 01:13:46
阅读次数:
144
On a grid, we place some cubes. Each value represents a tower of cubes placed on top of grid cell . Return the total surface area of the resulting sha ...
分类:
其他好文 时间:
2019-05-26 23:40:48
阅读次数:
258
On a N * N grid, we place some 1 * 1 * 1 cubes. Each value v = grid[i][j] represents a tower of v cubes placed on top of grid cell (i, j). Return the ...
分类:
其他好文 时间:
2019-05-23 21:10:05
阅读次数:
134
On a grid, we place some cubes that are axis aligned with the x, y, and z axes. Each value represents a tower of cubes placed on top of grid cell . No ...
分类:
其他好文 时间:
2019-05-15 00:44:37
阅读次数:
179
大意: 给定$n$元素序列$a$, 可以任选不超过$k$个$a_i$变换为$a_i!$, 求变换后任选若干元素和为S的方案数. 分成两块暴搜, 复杂度$O(3^{\frac{n}{2}})$ ...
分类:
其他好文 时间:
2019-04-02 00:21:41
阅读次数:
156
Schema Schema 定义了一个多维数据库。包含了一个逻辑模型,而这个逻辑模型的目的是为了书写 MDX 语言的查询语句。这个逻辑模型实际上提供了这几个概念: Cubes (立方体)、维度( Dimensions )、层次( Hierarchies )、级别( Levels )、和成员( Mem ...
分类:
其他好文 时间:
2019-03-05 11:10:30
阅读次数:
206
We have a machine for painting cubes. It is supplied with three different colors: blue, red and green. Each face of the cube gets one of these colors. ...
分类:
其他好文 时间:
2019-02-20 10:02:54
阅读次数:
261
You can see a (4 × 4) grid below. Can you tell me how many squares and rectangles are hidden there? You can assume that squares are not rectangles. Pe ...
分类:
其他好文 时间:
2019-02-20 09:24:36
阅读次数:
205
Bholu the Pandit on this New Year wanted to divide his Cuboidal Packaging block into cubes. But he loves uniformity so he asks you to divide it such a ...
分类:
其他好文 时间:
2019-02-02 23:04:03
阅读次数:
154
题目要求 On a N * N grid, we place some 1 * 1 * 1 cubes that are axis-aligned with the x, y, and z axes. Each value v = grid[i][j] represents a tower of v ...
分类:
其他好文 时间:
2019-02-02 10:33:48
阅读次数:
205