"题目链接" Problem Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a bl ...
分类:
其他好文 时间:
2020-02-01 12:47:27
阅读次数:
85
A - Red and Black There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. ...
分类:
其他好文 时间:
2020-01-23 13:54:42
阅读次数:
86
You have a set of tiles, where each tile has one letter tiles[i]printed on it. Return the number of possible non-empty sequences of letters you can ma ...
分类:
其他好文 时间:
2020-01-13 10:55:57
阅读次数:
73
Nasa支持的WorldWind项目最近推出了1.4RC5版,可以加入三维模型,效果如下图所示: 点击查看大图 WW1.4对XML配置文件增加了许多新的元素,其中ModelFeature就是用来增加三维模型的,如下所示: 本来在LayerSet.xsd中应该对其进行描术,不过我下载的最新版本中该文件 ...
简单搜索 红与黑: There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a ...
分类:
其他好文 时间:
2019-12-15 12:18:22
阅读次数:
88
import numpy as np # (1)random(d0,d1,....dn)用来生成d0*d1*....*dn维的数组。数组的值在[0,1)之间 np.random.rand(3,2,2)#生成一个3*2*2的数组 array([[[0.10141273, 0.97087629], [0 ...
分类:
其他好文 时间:
2019-12-06 13:59:28
阅读次数:
98
"cf" "luogu" 首先每个点到最远点的距离可以预处理出来,这个距离显然是这个点到树直径两端点的最大值.把那个距离记为$d_i$,然后从小到大枚举$d_i$,并强制它为最大的$d_i$,那么前面$d_j$更小的,满足$d_i d_j\le L$的点都可以被计入答案,那么就可以维护一些点的连通情 ...
分类:
其他好文 时间:
2019-11-02 18:20:49
阅读次数:
57
你有一套活字字模 tiles,其中每个字模上都刻有一个字母 tiles[i]。返回你可以印出的非空字母序列的数目。 示例 1: 输入:"AAB"输出:8解释:可能的序列为 "A", "B", "AA", "AB", "BA", "AAB", "ABA", "BAA"。示例 2: 输入:"AAABBC ...
分类:
其他好文 时间:
2019-10-05 20:26:02
阅读次数:
153
传送门 考虑一块块填,首先 $(1,1)$ 有 $4$ 种方案 然后根据 $(1,1)$ 的右边颜色,$(1,2)$ 有两种方案,$(1,3)$ 根据 $(1,2)$ 也有两种方案... 考虑 $(2,1)$ 根据 $(1,1)$ 有两种方案,$(3,1)$ 也有两种.... 然后发现,如果我们确定 ...
分类:
其他好文 时间:
2019-09-29 12:32:28
阅读次数:
80
原题链接在这里:https://leetcode.com/problems/domino-and-tromino-tiling/ 题目: We have two types of tiles: a 2x1 domino shape, and an "L" tromino shape. These s ...
分类:
其他好文 时间:
2019-09-16 11:43:48
阅读次数:
104