类 1 using System; 2 namespace bin 3 { 4 public
class Doctor 5 { 6 public Doctor(){} 7 public Doctor(string name,byte age) 8 { 9
...
分类:
其他好文 时间:
2014-05-09 10:29:26
阅读次数:
218
题目来源:HDU 3081 Marriage Match II
题意:
思路:
错误代码 纠结不知道哪错了 先放一放
#include
#include
#include
#include
#include
using namespace std;
const int maxn = 1010;
const int INF = 999999999;
struct Edg...
分类:
其他好文 时间:
2014-05-09 02:38:25
阅读次数:
264
/*
* uva575
* Date:2014/5/7
* State: AC
*/
#include
#include
#include
#include
#include
using namespace std;
const int MAXN=34;
char Arr[MAXN];
int main()
{
//cout << "Hello world!" << end...
分类:
其他好文 时间:
2014-05-09 02:25:56
阅读次数:
269
前些天买了本《程序设计语言理论》,因为硕士阶段的研究方向就是这个,看了简介,Lambda 演算贯穿整个理论,尤其在函数式语言中具有重要作用。C++11 中也加入了 Lambda 表达式,下面做个总结。1、一个简单的 Lambda 表达式如下:
[] {}
这就定义了一个对象,这个对象匿名,记住,Lambda 表达式是对象,不是类型,这很重要!本例中,该对象的类型是 'anonymous-namespace'::,这是编译器给它设的一个类型名。...
分类:
编程语言 时间:
2014-05-09 02:10:39
阅读次数:
485
题意:求长度不超过K的最大的连续序列的和
思路:采用单调队列,我们要求的是Max{sum[i]-sum[j]}(i-j#include
#include
#include
#include
using namespace std;
const int MAXN = 1000005;
const int INF = 0x3f3f3f3f;
int n,k;
int arr[MAXN],s...
分类:
其他好文 时间:
2014-05-09 01:57:07
阅读次数:
264
Linux下修改主机名为gpdb步骤一、运行vi /etc/sysconfig/network命令NETWORKING=yesHOSTNAME=gpdb步骤二、运行hostname gpdb命令步骤三、运行vi /etc/hosts命令192.168.1.121 gpdb # Added by NetworkManager127.0.0.1 localhost.localdom...
分类:
系统相关 时间:
2014-05-09 01:48:57
阅读次数:
343
# -*- coding: utf-8 -*-
try:
import httplib2
except ImportError:
print('错误:')
print(' httplib2这个XML解析库没有找到,程序无法继续执行!')
exit(255)
def network_get_proc(self, use_cache = True):
'''POST动作'...
分类:
编程语言 时间:
2014-05-09 01:39:09
阅读次数:
337
/*
* uva10879
* Date:2014/5/7
* State:AC
*/
#include
#include
using namespace std;
int main()
{
//cout << "Hello world!" <>N;
...
分类:
其他好文 时间:
2014-05-09 00:30:58
阅读次数:
287
#include using namespace std;void CountSort(int*
a,int k,int n){ int s = 1; for(int i=0;i=0;i--){ tmp1 = a[i]; tmp2 = a[i] % s;
...
分类:
其他好文 时间:
2014-05-08 22:42:33
阅读次数:
382
#include "stdafx.h"#include #include using
namespace std;HANDLE hMutex;DWORD WINAPI Fun(LPVOID lp){ while(1){
WaitForSingleObject(hMutex,INFINITE); .....
分类:
编程语言 时间:
2014-05-08 22:41:35
阅读次数:
406