报告见代码。。 1 #include 2 #include 3 #include 4
#include 5 using namespace std; 6 7 const int MAX=105; 8 int
dir[4][2]={1,0,-1,0,0,1,0,-1}; 9...
分类:
其他好文 时间:
2014-06-09 23:04:01
阅读次数:
261
【题解】:【代码】: 1 #include 2 #include 3 #include 4
#define inf 99999999 5 using namespace std; 6 int
dp[105][10005];//i件设备,最小带宽(瓶颈)为j时的最小花费 7 int B[105]...
分类:
其他好文 时间:
2014-06-09 22:35:23
阅读次数:
259
GDI+存在的意义:将变成与具体硬件实现细节分开。GDI+步骤:获取画布,绘制图像、处理图像命名空间:using
System.Drawing;//提供对GDI+基本图形功能的访问using
System.Drawing.Drawing2D;//提供高级的二维和矢量图像功能using System....
分类:
其他好文 时间:
2014-06-09 22:13:16
阅读次数:
450
Using a custom contentType to creating a
list:function GetContentType(){ var clientContext = new
SP.ClientContext(siteUrl); var currentW...
分类:
其他好文 时间:
2014-06-09 00:39:06
阅读次数:
301
点击打开链接
两次求最短路(第二次把边反向求)
1、spfa
//poj 3268 Silver Cow Party
//SPFA
#include
#include
#include
using namespace std;
const int M = 100000 + 100;
const int N = 1000 + 100;
const int inf = 1...
分类:
其他好文 时间:
2014-06-08 05:29:39
阅读次数:
241
题目来源:Light OJ 1026 Critical Links
题意:输出桥
思路:模版
#include
#include
#include
#include
#include
using namespace std;
const int maxn = 10010;
struct Edge
{
int u, v;
Edge(){}
Edge(int u, int v):...
分类:
其他好文 时间:
2014-06-08 04:07:05
阅读次数:
235
// ConsoleApplication1.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include
#include
#include
#include
#include
#include
#include
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
i...
分类:
编程语言 时间:
2014-06-08 03:24:24
阅读次数:
357
问题:
在Visual C++ 6.0 下面运行正常的代码放到Visual Studio 20xx系列里就跑不动了,有时候会提示如下错误:
error C4996: 'fopen': This function or variable may be unsafe. Consider using
fopen_s instead. To disable deprecation, use _CRT...
分类:
其他好文 时间:
2014-06-08 03:17:14
阅读次数:
227
题目来源:Light OJ 1291 Real Life Traffic
题意:最少添加几条边 可以使全图边双连通
思路:缩点 重新构图 答案就是(叶子节点数+1)/ 2
#include
#include
#include
#include
#include
using namespace std;
const int maxn = 10010;
struct Edge
{
i...
分类:
其他好文 时间:
2014-06-08 02:57:26
阅读次数:
276
1.多项式的系数存放在数组中
# include
# include
# define max(x,y) ((x)>(y)?(x):(y))
using namespace std;
const int N=100;
struct poly
{
int arr[N];
int mexp;
};
void add(poly &a,poly &b,poly &c)
{
memset(c.ar...
分类:
其他好文 时间:
2014-06-08 02:17:57
阅读次数:
264