码迷,mamicode.com
首页 >  
搜索关键字:code    ( 108667个结果
如何实现一个搜索引擎
Welcome to my ‘how to implement a search engine’ series. I describe how to implement an actual search engine with working code in python. Here you can ...
分类:其他好文   时间:2018-02-10 11:19:11    阅读次数:198
图片验证码jsp
...
分类:Web程序   时间:2018-02-10 11:16:12    阅读次数:182
在Eclipse中设置自动生成javadoc注释
1)windows-->preference-->Java-->Code Style-->Code Templates-->code-->new Java file /** * @author : luozh* @date 创建时间:${date} ${time} * @version 1.0 * ...
分类:编程语言   时间:2018-02-10 11:16:02    阅读次数:274
Bzoj2428: [HAOI2006]均分数据
题面 "链接" Sol 模拟退火 再做数列上的$DP$ cpp include define RG register define IL inline define Fill(a, b) memset(a, b, sizeof(a)) using namespace std; typedef lon ...
分类:其他好文   时间:2018-02-10 11:15:54    阅读次数:151
Codeforces 922F Divisibility (构造 + 数论)
题目链接 Divisibility 题意 给定$n$和$k$,构造一个集合$\left\{1, 2, 3, ..., n \right\}$的子集,使得在这个集合中恰好有$k$对正整数$(x, y)$, $x < y$ 满足$x$是$y$的约数。 选定$1$和$2$, 首先把满足 $x > [\fr ...
分类:其他好文   时间:2018-02-10 11:15:47    阅读次数:228
练习:线段树+扫描线
题意 一个序列,每次给一段区间一些数,询问每个点出现次数最多的数。 分析 扫描线,从左到右扫描,遇到区间的左端点,在权值线段树(下标是数字种类)中相应的位置+1,右端点-1。操作完成后,输出权值线段树中最大的(即出现次数)的数(下标)。 code 1 #include<cstdio> 2 #incl ...
分类:其他好文   时间:2018-02-09 23:57:22    阅读次数:270
BZOJ 1079: [SCOI2008]着色方案(巧妙的dp)
BZOJ 1079: [SCOI2008]着色方案(巧妙的dp) 题意:有$n$个木块排成一行,从左到右依次编号为$1$~$n$。你有$k$种颜色的油漆,其中第$i$种颜色的油漆足够涂$c_i$个木块。所有油漆刚好足够涂满所有木块,即$\sum\limits _{i=1}^{k}c_i=n$。统计任 ...
分类:其他好文   时间:2018-02-09 22:39:46    阅读次数:239
Python Hello World
Python Hello World 命令行模式和 交互模式 命令行模式 启动cmd 输入 进入命令行模式 Python 交互模式 创建 文件 执行 文件 ...
分类:编程语言   时间:2018-02-09 22:26:18    阅读次数:212
笔记:promise实例+注释
就是promise代码片段 ...
分类:其他好文   时间:2018-02-09 22:24:43    阅读次数:133
kafka快速开始
Step 1: Download the code Step 2: Start the server Step 3: Create a topic Step 4: Send some messages Step 5: Start a consumer Step 6: Setting up a mul ...
分类:其他好文   时间:2018-02-09 20:48:52    阅读次数:163
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!