A long-distance telephone company charges its customers by the following rules: Making a long-distance call costs a certain amount per minute, dependi ...
分类:
其他好文 时间:
2018-08-19 16:16:17
阅读次数:
205
In a row of seats, 1 represents a person sitting in that seat, and 0 represents that the seat is empty. There is at least one empty seat, and at least ...
分类:
其他好文 时间:
2018-08-19 10:52:25
阅读次数:
147
应该是一个很经典的题目了吧 上题面描述 概念 字符串的编辑距离,又称为Levenshtein距离,由俄罗斯的数学家Vladimir Levenshtein在1965年提出。是指利用字符操作,把字符串A转换成字符串B所需要的最少操作数。其中,字符操作包括: 删除一个字符 a) Insert a cha ...
分类:
其他好文 时间:
2018-08-17 22:26:27
阅读次数:
160
1、链接地址 https://leetcode.com/problems/hamming-distance/description/ 2、题目要求 汉明距离指两个整数的二进制表示中,对应位置数字不同的位数 注意:两个整数的范围是[0,2**31) 示例: 输入:x=1,y=4 输出:2 解释: 3、 ...
分类:
其他好文 时间:
2018-08-17 12:49:37
阅读次数:
131
题目大意 输入点数为$N$一棵树 求树上长度恰好为$K$的路径个数 题解 据说正解点分 然而我用树形dp的,简单易懂 虽然跑得没有点分快就是了 ...
分类:
其他好文 时间:
2018-08-15 18:39:09
阅读次数:
168
Consider integer numbers from 0 to n - 1 written down along the circle in such a way that the distance between any two neighboring numbers is equal (n ...
分类:
其他好文 时间:
2018-08-13 23:56:10
阅读次数:
619
A gas station has to be built at such a location that the minimum distance between the station and any of the residential housing is as far away as po ...
分类:
其他好文 时间:
2018-08-12 14:04:57
阅读次数:
284
一、引入turtle模块 二、turtle模块中的一些函数 1、向前移动 turtle.forward(distance) turtle.fd(distance) 参数:distance -- 数字(整数或浮点数) 2、向后移动 turtle.back(distance) turtle.bk(dis ...
分类:
其他好文 时间:
2018-08-10 21:17:48
阅读次数:
1926
read_image(Image,'C:/Users/研发/Pictures/Saved Pictures/qq.bmp')dev_set_draw ('margin')get_image_size(Image, Width, Height)Row:=[479,479,479,479,479]Col:=[450,455,460,465,470]RowAfter:=[
分类:
其他好文 时间:
2018-08-09 18:25:45
阅读次数:
1806
分别把前四个函数存成m文件,再运行最后一个。 ...
分类:
其他好文 时间:
2018-08-02 23:14:24
阅读次数:
333