题目链接斜率优化n^2的DP 1 #include 2 #include 3 using namespace std; 4 int yp() 5 { 6 int x=0,f=0;char ch=getchar(); 7 while(ch'9'){if(ch=='-')f=1;ch=g...
分类:
其他好文 时间:
2016-01-22 17:12:49
阅读次数:
127
题目链接单调队列优化枚举起点找出每一种颜色在这个位置之后的第一个位置与这个位置距离的最大值。再找出每一个起点结果的最小值。 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 const int inf=21474...
分类:
其他好文 时间:
2016-01-22 17:03:35
阅读次数:
116
题目链接暴力DFS当然不行于是迭代加深吧。IDA* 1 #include 2 #include 3 #include 4 using namespace std; 5 int tt,k,flag; 6 int ans[5][5]= 7 { 8 {1,1,1,1,1}, 9 {0,1,1,1,1},1...
分类:
其他好文 时间:
2016-01-22 17:01:41
阅读次数:
153
一、想要实现这样的操作 1、分布视图页面_NewList(这里用的是异步加载数据): @using Webdiyer.WebControls.Mvc; @model PagedList ...
分类:
Web程序 时间:
2016-01-22 14:03:07
阅读次数:
234
Log.cs using System; using System.Collections.Generic; using System.Web; using System.IO; namespace PC.Common { public class Log { //在网站根目录下创建日志目录 pub...
分类:
其他好文 时间:
2016-01-22 13:35:10
阅读次数:
176
题目来源:POJ 1442 Black Box题意:输入xi 输出前xi个数的第i大的数思路:试了下自己的treap模版#include #include #include #include using namespace std;struct Node{ Node *ch[2]; int r; i...
分类:
其他好文 时间:
2016-01-22 13:33:08
阅读次数:
154
/* 创建者:菜刀居士的博客* 创建日期:2014年07月08号*/ namespace Net.CRM.FetchXml{ using System; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Query; /// /// 使用FetchX....
分类:
其他好文 时间:
2016-01-22 10:35:15
阅读次数:
255
1 #include 2 #include 3 #include 4 using namespace std; 5 int main() 6 { 7 int a[1010],b[1010]; 8 int n,m,l,r,k,i,j; 9 while(~scanf("%d",...
分类:
编程语言 时间:
2016-01-22 02:31:37
阅读次数:
230
参考文献: 量子行为粒子群优化算法研究[D] ,孙俊,博士论文2.4节.#include #include #include using namespace std;#define M 50 //群体数目50#define N 4 //每个粒子的维数4//测试类class TestFunct...
分类:
编程语言 时间:
2016-01-21 23:25:36
阅读次数:
241
vector是C++中的一种数据结构,确切的说是一个类,它相当于一个动态的数组,当程序员无法知道自己需要的数组长度多大时,使用vector可以达到最大节约空间的目的,也就是实现动态分配数组。举例如下:#include #include using namespace std;void main(){...
分类:
编程语言 时间:
2016-01-21 23:20:15
阅读次数:
242