#include "Board.h" Board::Board(){ size = 10; s = new char[9]; set(); //对于棋盘的初始化 } char Board::getS(int i){ return s[i];} int Board::getSize(){ return ...
分类:
其他好文 时间:
2016-10-22 14:45:35
阅读次数:
260
为这条记录声明所匹配的 PostgreSQL 用户,值 all 表明它匹配 于所有用户。否则,它就是特定 PostgreSQL 用户的名字,多个用户名可以通过用逗号分隔的方法声明,在名字前面加上+代表匹配该用户组的所有用户。一个包含用户名的文件可以 通过在文件名前面前缀 @ 来声明,该文件必需和 p ...
分类:
其他好文 时间:
2016-10-22 14:45:35
阅读次数:
212
#include<iostream>#include<cmath>#include<cstdio> using namespace std; template <typename T, int capacity> class Array { public: Array(); ~Array(); bo ...
分类:
其他好文 时间:
2016-10-22 14:45:01
阅读次数:
172
#include<iostream>#include<sstream>#include<iomanip>using namespace std;int main(){ int integer; string str; double doulb; while(cin>>str){ stringstre ...
分类:
其他好文 时间:
2016-10-22 14:43:43
阅读次数:
135
public static void main(String[] args) throws Exception { /** * 把时间对象转化成指定格式的字符串. * 把指定格式的字符串转化成时间对象 * 一般使用 * */ SimpleDateFormat s1 = new SimpleDateF ...
分类:
其他好文 时间:
2016-10-22 14:45:04
阅读次数:
138
摘要: 1.各个数据结构的应用举例 1.1 String类型应用举例 1.2List类型应用举例 1.3Set类型应用举例 1.4Sorted Set类型应用举例 1.5Hash类型应用举例 ...
分类:
其他好文 时间:
2016-10-22 14:42:35
阅读次数:
122
安装配置 安装环境 #查看系统版本环境 配置并启动SVN 创建两个目录 1、SVN 数据目录 2、SVN 密码目录 启动SVN 查看启动状态 通过进程号 查找对应的服务 lsof -i tcp:3690 lsof -i tcp:3690 建立版本库 svnadmin create /www/svn/ ...
分类:
其他好文 时间:
2016-10-22 14:40:42
阅读次数:
202
题意: 求树上距离小于等于K的点对有多少个 思路: 每次分治,我们首先算出重心,为了计算重心,需要进行两次dfs,第一次把以每个结点为根的子树大小求出来,第二次是从这些结点中找重心 找到重心后,需要统计所有结点到重心的距离,看其中有多少对小于等于K 但是这些求出来满足小于等于K的里面只有那些路径经过 ...
分类:
其他好文 时间:
2016-10-22 14:40:16
阅读次数:
282
这题数据太水,一开始没有加上Get的方法也能AC。。话说AC自动机中一定要注意加上Get的方法!(不然,同一个后缀的其他单词就没被算上了。) 代码如下: ...
分类:
其他好文 时间:
2016-10-22 14:42:03
阅读次数:
240
PLSQL Developer在测试存储过程,遇到"Debugging not possible in single session mode" 解决办法: 点击菜单栏“Tools”->“Preferences”,然后按下图操作 之后再重启PLSQL Developer ...
分类:
其他好文 时间:
2016-10-22 14:40:33
阅读次数:
1058
背景 SigFox 开始于2009,这项技术对长期作为标准移动电话交互标准的3GPP造成了有力冲击。SigFox 解决了终端设备互联场景下的多个痛点: 1 过于复杂; 2 昂贵的设备; 3 耗电不持久; 4 传输距离短 SigFox在物联平台上已经成功了很长时间,然而拥有巨资产值的运营商并不怎么关心 ...
分类:
其他好文 时间:
2016-10-22 14:39:16
阅读次数:
343
#include <iostream> #include <iomanip> #include <cmath> using namespace std; //your code will be hereclass Land { public: Land() : price_(0) {} explic ...
分类:
其他好文 时间:
2016-10-22 14:40:06
阅读次数:
122
#include<iostream>#include<sstream>#include<cstring>using namespace std;int main(){ char s[1000]; string str; int count = 0; int count1 = 0; cin.get(s ...
分类:
其他好文 时间:
2016-10-22 14:39:37
阅读次数:
184
#include<iostream> using namespace std; class Complex //复数类 { public: Complex(double real = 0, double imag = 0); Complex operator+(Complex& com); Comp ...
分类:
其他好文 时间:
2016-10-22 14:40:08
阅读次数:
149
#include<stdio.h>#include<stdlib.h> /* usingnamespacestd; structNode{ int data;//数据域 struct Node*next;//指针域}; /*Create*函数功能:创建链表.*输入:各节点的data*返回值:指针he ...
分类:
其他好文 时间:
2016-10-22 14:39:22
阅读次数:
246
#include<iostream>#include<string>#include<cstdio>using namespace std;int main(){ int t; cin>>t; int a = t; getchar(); while(t--){ string s; int n; ci ...
分类:
其他好文 时间:
2016-10-22 14:38:44
阅读次数:
149
#include <iostream>#include <iomanip>#include <cstdlib> #include<ctime>using namespace std;class player{ public: char manplay(int a); char computerpla ...
分类:
其他好文 时间:
2016-10-22 14:38:09
阅读次数:
180