码迷,mamicode.com
首页 >  
搜索关键字:possible    ( 2665个结果
P1330 封锁阳光大学
题面:https://www.luogu.org/problem/P1330 cpp 本题直接将相邻点染成不同的颜色,遇到染不了的就输出Impossible 然后每次统计染色点数少的加起来就行了. Code: include include include include include inclu ...
分类:其他好文   时间:2019-09-30 14:54:32    阅读次数:86
[mysql 2019-09-29] explain详解
我们对mysql表建立了索引之后怎么查看索引的使用情况呢? 这时候,我们就需要explain执行计划来帮助了。 1.语法 2.explain详细信息 2.1概要描述: id:选择标识符select_type:表示查询的类型。table:输出结果集的表type:表示表的连接类型possible_key ...
分类:数据库   时间:2019-09-29 09:57:33    阅读次数:128
需要用的头文件优先放在哪里
Put as much as you can in the .c and as little as possible in the .h. The includes in the .c are only included when that one file is compiled, but the ...
分类:其他好文   时间:2019-09-28 20:29:54    阅读次数:87
[LC] 46. Permutations
Given a collection of distinct integers, return all possible permutations. Example: Solution 2: ...
分类:其他好文   时间:2019-09-22 23:11:46    阅读次数:105
[LC] 78. Subsets
Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set must not contain duplicate subsets. Exampl ...
分类:其他好文   时间:2019-09-22 10:40:08    阅读次数:113
最短路 二分图 模板
最小生成树 (正边,负边都可以) Prim 朴素版 O(n^2) 稠密图,代码短,跟Dij很相似 算法流程(以点来扩展): 初始化dist [i] 为 正无穷 for i 0 ~ n ? 先集合外距离最近的点 赋值给 t ? 用 t 更新 其他点到 集合 的距离 ? st[t] = true; ? ...
分类:其他好文   时间:2019-09-21 12:52:29    阅读次数:66
mysql 优化
id select 查询的序列号,包含一组可以重复的数字,表示查询中执行sql语句的顺序。一般有三种情况:第一种:id全部相同,sql的执行顺序是由上至下;第二种:id全部不同,sql的执行顺序是根据id大的优先执行;第三种:id既存在相同,又存在不同的。先根据id大的优先执行,再根据相同id从上至 ...
分类:数据库   时间:2019-09-20 19:19:58    阅读次数:113
17. Letter Combinations of a Phone Number
17. Letter Combinations of a Phone Number Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number ...
分类:其他好文   时间:2019-09-18 09:17:11    阅读次数:85
77. Combinations
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. Example: backtracking的变种 ...
分类:其他好文   时间:2019-09-18 09:15:52    阅读次数:108
POJ 3126 Prime Path BFS
题目: Prime Path Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 35295 Accepted: 18998 Description The ministers of the cabinet were quite up ...
分类:其他好文   时间:2019-09-16 09:39:25    阅读次数:128
2665条   上一页 1 ... 17 18 19 20 21 ... 267 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!