码迷,mamicode.com
首页 >  
搜索关键字:sam    ( 4212个结果
[Ramda] Change Object Properties with Ramda Lenses
In this lesson we'll learn the basics of using lenses in Ramda and see how they enable you to focus changes on specific properties of an object while ...
分类:其他好文   时间:2017-03-01 22:54:04    阅读次数:237
BZOJ3998 TJOI2015 弦论 后缀自动机
题意:求一个字符串的第K小字串,T=0表示不同位置相同的子串算作一个,T=1算作多个 题意: 建出SAM来跑第K子串,由于一个点所代表的子串在原串出现次数为其子树叶子结点的数量,因而有: T==1,每个点的|right|=1 T==2,每个点的|right|=子树叶子结点数 BFS跑出所有子串出现的 ...
分类:其他好文   时间:2017-03-01 00:38:26    阅读次数:181
GCPC11j Time to live
As you might know, most computer networks are organized in a tree-like fashion, i.e. each computer is reachable by each other computer but only over o... ...
分类:其他好文   时间:2017-02-28 20:53:05    阅读次数:227
改变图片尺寸
$ratio_orig){ $target_width = $target_height * $ratio_orig; }else{ $target_height = $target_width / $ratio_orig; } } switch ($source_mime){ case 'imag... ...
分类:其他好文   时间:2017-02-28 18:03:38    阅读次数:142
Python基础类型的基础函数总结
#""" sets""" len+*find,replacesplitisalpha,isdigit,rstrip"%s"str len(s)s[0],s[-1] (raw)s=‘sam‘ s=‘S‘+s[1:] prints Sam line=‘aaa,bbb,ccc,ddd‘ printline.split(‘,‘) line=line.split(‘,‘) printline "result":[‘aaa‘,‘bbb‘,‘ccc‘,‘ddd‘] [‘aaa‘,‘bbb‘,‘ccc‘,‘ddd‘] li..
分类:编程语言   时间:2017-02-28 14:23:00    阅读次数:209
navicat设置外键
最近使用navicat设置外键发现保存以后会消失,然后各种百度发现问题了,表的引擎是MyISAM,InnoDB引擎才支持设置外键 如图打开表设计,在选项一栏选择InnoDB,然后保存,被关联的表同样需要设置InnoDB引擎 两个都引擎都设置好了以后,添加外键 保存的时候,报错,保存不了,仔细观察发现 ...
分类:其他好文   时间:2017-02-28 00:17:30    阅读次数:203
kattis Curious Cupid (莫队算法)
Curious Cupid Curious Cupid Curious Cupid There are K There are K different languages in the world. Each person speaks one and only one language. Ther ...
分类:编程语言   时间:2017-02-27 22:54:57    阅读次数:222
1. Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:其他好文   时间:2017-02-27 20:58:32    阅读次数:197
HDU2896 AC自动机
病毒侵袭 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 24563 Accepted Submission(s): 5887 Problem D ...
分类:其他好文   时间:2017-02-27 19:31:46    阅读次数:223
poj1182食物链,经典带权并查集
动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知道它到底是哪一种。 有人用两种说法对这N个动物所构成的食物链关系进行描述: 第一种说法是"1 X Y",表示X和Y是同类。 第二种 ...
分类:其他好文   时间:2017-02-27 19:11:33    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!