码迷,mamicode.com
首页 >  
搜索关键字:st    ( 5888个结果
django1.5添加robots.txt
方法一:(The best way)urlpatterns = patterns((r’^robots\.txt$’, TemplateView.as_view(template_name=’robots.txt’, content_type=’text/plain’)),)其他:http://st...
分类:其他好文   时间:2015-02-16 23:25:12    阅读次数:147
转:最小堆的数组实现
最小堆的数组实现//**************minHeap.h****************////******最小堆的类定义和各操作的实现*******////C++源码#ifndef MINHEAP_H#define MINHEAP_H#include using namespace st...
分类:编程语言   时间:2015-02-16 18:17:05    阅读次数:185
snort使用
接上篇,如果编译安装snort并指定了prefix,那么须指定一个软链接,不然每次要用绝对路径,才可以使用。[root@localhost ~]# ln -s /root/snort/st/bin/snort /bin/snort[root@localhost ~]# snort -V ,,_ -*...
分类:其他好文   时间:2015-02-15 16:22:00    阅读次数:206
POJ 2190
直接枚举0~X就可以了。。。我开始竟然往扩展欧几里德定理想了,呃呃---#include #include #include #include using namespace std;char st[20];int main(){ //freopen("t.txt", "r", stdin);...
分类:其他好文   时间:2015-02-14 23:49:03    阅读次数:296
POJ 2189
P是端点,牛在区域中啊。。。#include #include #include #include using namespace std;const int N=1005;int pt[N],s[N];int n,p,c;int slove(int st){ int ans=0; int l=st...
分类:其他好文   时间:2015-02-14 23:47:16    阅读次数:193
路径寻找问题……!
一开始哈希表那部分死活看不懂……就是你找到head[]数组标记的每个哈希数最开始的坐标。然后 next[]数组标记的是相同的哈希数的一条链……主要代码……bool try_to_insert(int s){ int h = hash(st[s]); /*相对应的哈希数*/ int u =...
分类:其他好文   时间:2015-02-14 12:38:49    阅读次数:142
POJ 1951
直接模拟就好,这里利用了scanf不读空格的优势吧。。#include #include #include #include using namespace std;char st[100];bool vis[300];int main(){ //freopen("t.txt", "r", s...
分类:其他好文   时间:2015-02-14 00:51:50    阅读次数:228
学习 LCA&&RMQ
参考:点击打开链接 点击打开链接      点击打开链接(一些总结) 点击打开链接(不错的模板) 题目:点击打开链接 花了4天时间做完了这个专题,LCA的问题用处还是很大,同时能体会RMQ的ST算法中dp的味道.基本方法就是ST,LCA转RMQ,LCA的Tarjan,LCA倍增(这个可存储边权) 这个专题后面四道题都非常好,推荐大家做做. 细节: 1. ST方法2^i 包含自己,因此其真...
分类:其他好文   时间:2015-02-13 10:11:09    阅读次数:167
LCA&&RMQ问题
参考:点击打开链接 点击打开链接      点击打开链接(一些总结) 点击打开链接(不错的模板) 题目:点击打开链接 花了4天时间做完了这个专题,LCA的问题用处还是很大,同时能体会RMQ的ST算法中dp的味道.基本方法就是ST,LCA转RMQ,LCA的Tarjan,LCA倍增(这个可存储边权) 这个专题后面四道题都非常好,推荐大家做做. 细节: 1. ST方法2^i 包含自己,因此其真...
分类:其他好文   时间:2015-02-12 16:23:39    阅读次数:210
POJ 2251 Dungeon Master【BFS】
题意:给出一个三维坐标的牢,给出起点st,给出终点en,问能够在多少秒内逃出。学习的第一题三维的广搜@_@过程和二维的一样,只是搜索方向可以有6个方向(x,y,z的正半轴,负半轴)另外这一题的输入的方式还要再多看看--@_@--#include #include #include #inclu...
分类:其他好文   时间:2015-02-12 15:55:06    阅读次数:155
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!