题目链接:传送门 在线算法: #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; const int maxn = 40010; struct nod{ ...
分类:
其他好文 时间:
2016-04-04 10:24:11
阅读次数:
261
4.4 一周没有学51nod上的dp了 编辑距离 1 #include<cstdio> 2 #include<cstring> 3 #include<iostream> 4 #include<algorithm> 5 using namespace std; 6 7 const int maxn = ...
分类:
其他好文 时间:
2016-04-04 10:22:46
阅读次数:
203
1.顺序查找 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 数据结构和算法 { class _... ...
分类:
编程语言 时间:
2016-04-04 06:46:21
阅读次数:
179
SB贪心,一开始还想着用二分,看了眼黄学长的blog,发现自己SB了。。。 最小道路=已选取的奶牛/道路总数。 1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 using namespace std; 5 int ...
分类:
其他好文 时间:
2016-04-04 06:45:21
阅读次数:
112
开始刷奶牛T。。。 状压DP。 f[i][j] 状态为j插入i在结尾的奶牛数,不要吝啬用括号。。。 1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 using namespace std; 5 int v[5001 ...
分类:
其他好文 时间:
2016-04-04 06:42:28
阅读次数:
214
#ifndef GRID_H#define GRID_H #include <string>#include <vector> using namespace std; /** IMPORTANT NOTE:** For this assignment, you might need to add ...
分类:
编程语言 时间:
2016-04-03 22:19:30
阅读次数:
209
一、C#中弹出窗口位置 加入命名空间using System.Drawing和using System.Windows.Forms假定窗口名为form1,则 form1.StartPosition = FormStartPosition.CenterScreen;窗体位置在屏幕中间 form1.St ...
其实题不难,不知提交了几次。。。不能代码MD。。。注意一些基本问题。。。SB概率题 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #define N 1001 5 using namespace std; 6 dou ...
分类:
其他好文 时间:
2016-04-03 19:00:44
阅读次数:
155
ConcurrentBag<T>与List<T> 我遇到的一个情况是: using System.Collections.Concurrent; class WX { public string wxNo; public string wxPsw; } static public bool Read ...
分类:
Windows程序 时间:
2016-04-03 18:58:40
阅读次数:
1118
错误代码 1045Access denied for user 'root'@'localhost' (using password:YES) 解决办法是重新设置root用户密码,在Windows平台下操作步骤如下: 1、以系统管理员身份登录到系统; 2、如果MySQL服务器正在运行,停止它。 如果 ...
分类:
数据库 时间:
2016-04-03 17:34:24
阅读次数:
165