#include
#include
#include
#include
#include
#include
#include
const int maxn=510;
using namespace std;
int my[maxn],mx[maxn],vis[maxn],e[maxn][maxn],n;
int path(int i)
{
int j;
for(j=1;j<=n...
分类:
其他好文 时间:
2014-07-21 23:29:42
阅读次数:
199
DZY Loves Modification
Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u
Submit
Status
Practice
CodeForces 446B
Description
As we know, DZY loves playing games. One da...
分类:
其他好文 时间:
2014-07-21 23:29:41
阅读次数:
243
剪枝暴力搜索。
代码:/******************************************************
* @author:xiefubao
*******************************************************/
#pragma comment(linker, "/STACK:102400000,102400000"...
分类:
其他好文 时间:
2014-07-21 23:29:40
阅读次数:
303
Multiplication Table
Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u
Submit
Status
Practice
CodeForces 448D
Description
Bizon the Champion isn't just charming, he al...
分类:
其他好文 时间:
2014-07-21 23:29:23
阅读次数:
311
挺水的一道题,规律性很强,在数组中找出最大的数max,用max/m计算出倍数t,然后再把数组中的书都减去t*m,之后就把数组从后遍历找出第一个大于零的就行了
#include
#include
using namespace std;
int main(){
// freopen("in.txt","r",stdin);
int a[105],n,m;
while(~sca...
分类:
其他好文 时间:
2014-07-21 23:29:23
阅读次数:
312
直接套KMP模板
#include
#include
#include
using namespace std;
int s[1000005],w[10005],next[10005];
int b,c;
void show()
{
int i,j;
i=0;
next[0]=-1;
j=-1;
while(i<c)
{
if(j=...
分类:
其他好文 时间:
2014-07-21 23:29:03
阅读次数:
334
代理模式(Proxy):为其他对象提供一种代理以控制这个对象的访问。...
分类:
编程语言 时间:
2014-07-21 23:28:09
阅读次数:
315
怒拿一血,first blood,第一个区间DP,第一次就这样子莫名其妙不知不觉滴没了~~~
题目虽然是鸟语,但还是很赤裸裸的告诉我们要求最大的括号匹配数,DP走起~
dp[i][j]表示区间[i,j]的最大匹配数,那么最重要的状态转移方程就是:
dp[i][j]=max(dp[i][k]+dp[k+1][j])
对啦,要先初始化边界啊,两步走~:
memset(dp,0,siz...
分类:
其他好文 时间:
2014-07-21 23:27:29
阅读次数:
214
Windows 2012及其自带的IIS 8.0是微软公司新一代的Web服务器软件,和老版本的IIS相比,有很多破天荒的新功能。随着微软宣布不再支持Windows XP操作系统,XP系统对应的服务器版本Windows 2003连同IIS 6.0一起,都面临着被市场淘汰的风险。本文用图文并茂的方式,指导大家如何一步步地安装IIS 8.0。下面的安装步骤也同样适用于Windows 2012 R2,但是...