拓扑排序,不开心持续中
#include
#include
#include
#include
#define maxn 2100
using namespace std;
vector >mapp;
int head[maxn];
int n;
void solve()
{
queueroot;
for(int i=0;i<n;i++)
{
if(!head[i]) root.pus...
分类:
其他好文 时间:
2015-04-13 09:31:28
阅读次数:
114
原文:http://www.weibo.com/p/1001603829422523342026由docker ipc namespace引起的.Docker部署重型应用,比如数据库,是否有坑?今天还真发现了一个在部署数据库的时候,可能需要调整一些内核参数,比如/proc/sys/kernel/sh...
分类:
其他好文 时间:
2015-04-13 09:22:01
阅读次数:
230
1、错误描述
Count:2org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
The current document is unable to create an element of the requested type (namespace: http://www.w3.org/2000/sv...
分类:
Web程序 时间:
2015-04-13 00:25:47
阅读次数:
842
using System;using System.Collections.Generic;using System.Text;using Microsoft.Win32;using System.Runtime.InteropServices;namespace ShortcutNamespace...
类的完整代码:using System;using System.Collections;using System.Xml;namespace Keleyi.Com.XmlDAL{public class XmlHelper{#region 公共变量XmlDocument xmldoc;XmlNod...
#includeusing namespace std;class poly{public: int coef; int expon; poly *next;};poly*input(); //输入函数poly *poly...
分类:
其他好文 时间:
2015-04-12 22:43:19
阅读次数:
131
1 #include 2 using namespace std; 3 #define max 100 //这里默认构造100以内的素数 4 int p[max], a[max]; 5 int main() 6 { 7 for (int i = 2; i*i < max; i++) 8 ...
分类:
其他好文 时间:
2015-04-12 22:43:09
阅读次数:
165
其实就是模拟一下栈啦。 1 #include 2 using namespace std; 3 4 const int N = 10; 5 char o1[N]; 6 char o2[N]; 7 char s[N]; 8 int ans[N * 2]; 9 10 int main ()11 {1.....
分类:
其他好文 时间:
2015-04-12 22:42:55
阅读次数:
114
using System;using System.Collections.Generic;using System.Text;using System.Threading;namespace 用函数把闹钟习题练一练无返回值{ class Program { public void naozhong...
分类:
其他好文 时间:
2015-04-12 22:38:57
阅读次数:
139
namespace 函数{ //函数的作用:提高代码的重用性,一块封闭的代码块。 //语法结构:返回值(当执行完函数之后,返回的结果的数据类型),函数名,输入参数,输出参数,函数体。 //一:无返回值,无参数的函数 /* public void dayin() //只是调用,不需要返回值 { Con...
分类:
其他好文 时间:
2015-04-12 22:33:32
阅读次数:
261