码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
HDU 1330 Nearest Common Ancestors(求两个点的近期公共祖先)
题目链接:传送门 在线算法: #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 --- 4.10
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
数据结构和算法 – 2.基础查找算法
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
【BZOJ1623】 [Usaco2008 Open]Cow Cars 奶牛飞车 贪心
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
【BZOJ1231】[Usaco2008 Nov]mixup2 混乱的奶牛 状压DP
开始刷奶牛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
C++ ssd5 16 optional exercise 3
#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# 弹出窗体位置设定
一、C#中弹出窗口位置 加入命名空间using System.Drawing和using System.Windows.Forms假定窗口名为form1,则 form1.StartPosition = FormStartPosition.CenterScreen;窗体位置在屏幕中间 form1.St ...
分类:Windows程序   时间:2016-04-03 21:55:40    阅读次数:219
【BZOJ1415】 [Noi2005]聪聪和可可 概率与期望
其实题不难,不知提交了几次。。。不能代码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
C# ConcurrentBag与list
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
MySql错误代码1045的解决方案
错误代码 1045Access denied for user 'root'@'localhost' (using password:YES) 解决办法是重新设置root用户密码,在Windows平台下操作步骤如下: 1、以系统管理员身份登录到系统; 2、如果MySQL服务器正在运行,停止它。 如果 ...
分类:数据库   时间:2016-04-03 17:34:24    阅读次数:165
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!