# include
# include
# include
using namespace std;
struct node
{
int t;
int v;
int yy;
};
struct node a[100010],b[100010];
bool cmp(node a1,node a2)
{
if(a1.t==a2.t)//先按时间从大到小
return a1.v>a2....
分类:
其他好文 时间:
2014-07-24 23:10:33
阅读次数:
238
安装方式有非常多种,以下仅仅是我喜欢的一种方式,安装的路径不一定要跟我一样。眼下最新的版本号是v0.10.28Windows1、下载(放到E:\node\nodejs):http://nodejs.org/dist/latest/x64/node.exehttp://nodejs.org/dist/...
不懂得见算法背包问题详解
代码如下:
#include
struct node
{
int cost;
double wei;
} a[10004];
double min(double a,double b)
{ return a>b? b:a;}
int main()
{
int i,j,n,m;
double dp[10004];
whil...
分类:
其他好文 时间:
2014-07-24 17:44:25
阅读次数:
235
打开当前模版文件夹template/当前模版/forum/viewthread_node.htm文件删除以下代码: {lang viewthread_share_to}: ...
分类:
其他好文 时间:
2014-07-24 17:28:25
阅读次数:
274
#include#includeusing namespace std;typedef int ElemType;typedef struct Node{ ElemType data; struct Node* next;}*LinkList,Node;LinkList LinkList...
分类:
其他好文 时间:
2014-07-24 17:19:15
阅读次数:
224
- - - - 读取上面XMl,获取某一个区的值,代码如下XmlNode node = xmlDoc.SelectSingleNode("area/province[@p...
分类:
其他好文 时间:
2014-07-24 12:09:55
阅读次数:
137
express是基于node.js的一个web框架,但是到了4.xx版本之后,session管理和cookies等许多模块都不再直接包含在express中,而是需要单独下载添加。 由于之前没有注意看人家的更新日志等,所以纠结了一两天,今晚终...
分类:
其他好文 时间:
2014-07-24 10:56:35
阅读次数:
165
源码:
#!/usr/bin/env python
#coding:utf-8
import os.path
import tornado.locale
import tornado.httpserver
import tornado.ioloop
import tornado.options
import tornado.web
from tornado.options import defi...
分类:
数据库 时间:
2014-07-24 10:31:32
阅读次数:
314
树状数组,果断1A啦,心情舒畅啊,哈哈
先按照y轴从小到大排序,然后一次加入并统计每个点得x坐标,这道题数据不严谨啊,在y轴相同得情况下,应该以x轴从大到小排序,可我都没排x轴就过了
#include
#include
#include
#include
using namespace std;
int Max;
struct node{
int x,y;
}a[15005];
int...
分类:
其他好文 时间:
2014-07-24 10:23:24
阅读次数:
185
题目:A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep c....
分类:
编程语言 时间:
2014-07-24 10:00:33
阅读次数:
310