码迷,mamicode.com
首页 >  
搜索关键字:unique paths ii    ( 12050个结果
[十二省联考2019]异或粽子(可持久化tire,堆)
[十二省联考2019]异或粽子(luogu) Description 题目描述 小粽是一个喜欢吃粽子的好孩子。今天她在家里自己做起了粽子。 小粽面前有 nn 种互不相同的粽子馅儿,小粽将它们摆放为了一排,并从左至右编号为 11 到 nn。第 ii 种馅儿具有一个非负整数的属性值 a_iai?。每种馅 ...
分类:其他好文   时间:2020-02-08 18:04:02    阅读次数:121
【bzoj3157/3516/4126】国王奇遇记
求$\displaystyle{\sum_{i=1}^n m^ii^m}(x\le 10^5,n\le10^9)$ 首先转为有更一般的形式$\displaystyle{\sum_{i=1}^nm^if(i)}$其中$f(i)$是$x$次多项式 $\displaystyle{\sum m^xf(x)\ ...
分类:其他好文   时间:2020-02-08 17:16:42    阅读次数:66
Mayor's posters(线段树+离散化+lazy)
Mayor's posters(线段树+离散化+lazy) 题目大意:在墙上贴海报,然后很多海报,一层又一层,问你最后可以看到多少张海报。 题目分析:数据范围很大,普通的线段树肯定超时+超内存,所以要用到离散化,离散化有基础的和稍微复杂一点的,然后这题要用到稍微复杂一点的,离散化简单的来说就是只取我 ...
分类:其他好文   时间:2020-02-08 10:03:59    阅读次数:63
MySQL----约束
##约束 * 概念:对表中的数据进行限定,保证数据的正确性,有效性和完整性。 * 分类: 1、主键约束:primary key 2、非空约束:not null 3、唯一约束:unique 4、外键约束:foreign key * 非空约束:not null,值不能为null 1、创建表时,添加约束。 ...
分类:数据库   时间:2020-02-07 19:14:32    阅读次数:113
[leetcode]Read N Characters Given Read4 II - Call multiple times
调用多次readN,所以要重复使用internal buffer """ The read4 API is already defined for you. @param buf, a list of characters @return an integer def read4(buf): # B ...
分类:其他好文   时间:2020-02-07 18:42:43    阅读次数:71
[LeetCode] 240. 搜索二维矩阵 II ☆☆☆(二分查找类似)
描述 编写一个高效的算法来搜索 m x n 矩阵 matrix 中的一个目标值 target。该矩阵具有以下特性: 每行的元素从左到右升序排列。每列的元素从上到下升序排列。示例: 现有矩阵 matrix 如下: [ [1, 4, 7, 11, 15], [2, 5, 8, 12, 19], [3, ...
分类:其他好文   时间:2020-02-07 01:41:19    阅读次数:85
[USACO17DEC]Standing Out from the Herd
[USACO17DEC]Standing Out from the Herd 题目描述 Just like humans, cows often appreciate feeling they are unique in some way. Since Farmer John's cows all ...
分类:其他好文   时间:2020-02-06 19:30:04    阅读次数:81
Codeforces #617 (Div. 3) D. Fight with Monsters(贪心,排序)
There are nn monsters standing in a row numbered from 11 to nn . The ii -th monster has hihi health points (hp). You have your attack power equal to a ...
分类:编程语言   时间:2020-02-06 16:24:55    阅读次数:146
[leetcode]First Unique Character in a String
用了一个字典 class Solution: def firstUniqChar(self, s: str) -> int: charIndexDict = {} for i in range(len(s)): if s[i] in charIndexDict: charIndexDict[s[i] ...
分类:其他好文   时间:2020-02-05 21:51:17    阅读次数:62
45. 跳跃游戏 II
给定一个非负整数数组,你最初位于数组的第一个位置。 数组中的每个元素代表你在该位置可以跳跃的最大长度。 你的目标是使用最少的跳跃次数到达数组的最后一个位置。 示例: 输入: [2,3,1,1,4]输出: 2解释: 跳到最后一个位置的最小跳跃数是 2。 从下标为 0 跳到下标为 1 的位置,跳 1 步 ...
分类:其他好文   时间:2020-02-05 20:33:24    阅读次数:76
12050条   上一页 1 ... 90 91 92 93 94 ... 1205 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!