#include
#include
using namespace std;
struct SchoolNo
{
int no;
friend bool operator == (const SchoolNo &school1,const SchoolNo &school2)
{
return (school1.no==school2.no);
}
friend ostrea...
分类:
编程语言 时间:
2015-04-07 15:42:48
阅读次数:
123
题目大意见http://pan.baidu.com/s/1o6zajc2
主席树裸上就好了。。。
#include
#include
#include
#include
#define M 100100
using namespace std;
struct Segtree{
Segtree *ls,*rs;
int size;
long long sum;
void* op...
分类:
其他好文 时间:
2015-04-07 15:41:45
阅读次数:
129
#include
#include
using namespace std;
#define SIZE 10
#define NULL_DATA -1
class Node
{
public:
Node(int x=SIZE)
{
data = new int[x];
for(int i=0;i<x;i++)
{
data[i] = NULL_DATA;
}
}
...
分类:
编程语言 时间:
2015-04-07 15:40:40
阅读次数:
184
#include
#include
#define CHAR_BIT 8
using namespace std;
template
class bitset
{
typedef unsigned long _Ty;
friend ostream & operator &_R)
{
for(size_t _P=_N;_P>0;)
_O<<(_R.test(--_P)?'1...
分类:
编程语言 时间:
2015-04-07 15:40:31
阅读次数:
285
#include
using namespace std;
#define maxn 105
int m, n, x, y, k;
char s;
int a[maxn][maxn];
int cnt;
void solve()
{
while(cnt++ < k)
{
if(s == 'U')
{
if(a[x...
分类:
其他好文 时间:
2015-04-07 15:39:23
阅读次数:
132
命名空间应包裹include, 全局定义、声明和其他命名空间的前置声明之后的一切代码:
// in the .h file
namespace mynamespace{
// All declarations are within the namespace scope...
分类:
编程语言 时间:
2015-04-07 15:38:15
阅读次数:
180
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
namespace WebApplication_study.Linq...
分类:
其他好文 时间:
2015-04-07 15:37:26
阅读次数:
101
Floyd-Warshall算法其实是比较容易理解也比较容易coding的DP... 不说了,上代码:#include #include #include #include #include #include #include #include #include using namespace st...
分类:
编程语言 时间:
2015-04-07 15:09:24
阅读次数:
133
题目见 http://pan.baidu.com/s/1o6zajc2
此外不知道H-L
#include
#include
#include
#include
#include
#define M 10001000
#define INF 0x3f3f3f3f
#define MOD 1000000007
using namespace std;
int mu[M],p...
分类:
其他好文 时间:
2015-04-07 14:00:00
阅读次数:
160
今天老师让做了个迷宫问题,我一看到就发现和我之前写过的一个程序是一样 的,但是在后来编写的时候有一个地方搞错了,最后下课了我还是没有正确的编写好,然后今天回来之后自己有看了一下,现在已经解决了。
#ifndef DIRECTION_H
#define DIRECTION_H
#include
using namespace std;
struct node
{
int a;
int...
分类:
编程语言 时间:
2015-04-07 13:51:37
阅读次数:
130