1 typedef pair<int,int> P; 2 typedef long long ll; 3 #define _for(i,a,b) for(register int i = (a);i < b;i ++) 4 #define _rep(i,a,b) for(register int i... ...
分类:
其他好文 时间:
2019-10-13 12:52:23
阅读次数:
80
1.旧版本,MySQL Connector/J 5.x 版本的连接方式: url = jdbc:mysql://localhost:3306/thrcloud_db01?useUnicode=true&characterEncoding=utf8driver-class-name = com.mys ...
分类:
数据库 时间:
2019-10-13 11:12:37
阅读次数:
98
看守题解 此题是这一题的简化版, 这道题看上去很难,曼哈顿距离之和就足以吓跑一大堆人, 但我们一看,D define ll long long define re register using namespace std; const int N=1e6+6,inf=2e9; struct xd{ ...
分类:
其他好文 时间:
2019-10-12 09:19:18
阅读次数:
77
装饰器的一个关键特性是,它们在被装饰的函数定义之后立即运行。这 通常是在导入时(即 Python 加载模块时),如示例 7-2 中的 registration.py 模块所示。 示例 7-2 registration.py 模块 registry = [] def register(func): p ...
分类:
编程语言 时间:
2019-10-11 18:16:49
阅读次数:
113
Failed to create provisioning profile. There are no devices registered in your account on the developer website. Plug in and select a device to have X ...
分类:
其他好文 时间:
2019-10-10 19:50:47
阅读次数:
129
1 /* // 图论模板 // */ 2 //----------------------------------------------------------------------------- 3 /*卡常小技巧*/ 4 #define re register 5 #define max(x... ...
分类:
其他好文 时间:
2019-10-10 17:28:27
阅读次数:
94
xampp in ubuntu下命令行启动mysql报错: 启动mysql服务: 运行mysqlStart.sh: 关于此这篇文章给出很好的分析:http://www.samundra.com.np/solved-error-2002-hy000-cant-connect-to-local-mysq ...
分类:
数据库 时间:
2019-10-10 10:26:12
阅读次数:
165
今天又是自己被虐的一天 今天难度大概是省选难度-,noip+ x姓巨佬100+0+20 g姓巨佬100+10+0 窝:60+10+0 又被爆踩了。。。 先放题面吧 t1的话就是一个权值树状数组,先进行问题转化,将T从小到大排序,问题就成了sum(l)-n*t1-(n-1)*t2...1*tn 然后可 ...
分类:
其他好文 时间:
2019-10-09 19:47:20
阅读次数:
99
https://www.luogu.org/problem/P1858 模板题,套路东西,思路代码里,很清晰,很明了 code : c++ include define IL inline define RI register int using namespace std; IL void in( ...
分类:
其他好文 时间:
2019-10-09 09:20:58
阅读次数:
80
首先定义两个基于NIO的事件循环组(EventLoopGroup),一个用于接收连接(bossGroup),另一个用于完成对应的连接处理(workerGroup)。 ServerBootstrap是netty提供的帮助我们简化服务器启动的类,而我们需要再定义一个子处理器,其作用是在channel一旦 ...
分类:
Web程序 时间:
2019-10-08 12:34:44
阅读次数:
129