logback( "官网文档传送门" ) 组成 logback core 其他两个模块的基础 logback classic 扩展了logback cor模块,比log4j有重大改进,天生实现了 "slf4j" API "logback access" 结合Servlet容器提供记录http acc Read More
posted @ 2017-03-04 12:21 ACSeed Views(134) Comments(0) Diggs(0)
在维基百科上看到了生成下一个排列的算法(这里)Find the largest indexksuch thata[k] 2 3 using namespace std; 4 5 const int MAXN = 1000; 6 int A[MAXN], n; //sequence to gen... Read More
posted @ 2015-09-24 00:47 ACSeed Views(346) Comments(0) Diggs(0)
设变量 a = 1, b = 2, 我们要交换两个变量的值, 当用异或交换两个值的时候会有一个小问题用位运算大概是这个样子的 1 #include 2 3 using namespace std; 4 5 void swap(int& a, int &b) { 6 a ^= b; 7 ... Read More
posted @ 2015-09-24 00:35 ACSeed Views(421) Comments(0) Diggs(1)
http://www.patest.cn/contests/pat-a-practise/1088 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 typedef long long LL; 8 9 ... Read More
posted @ 2015-08-06 02:45 ACSeed Views(218) Comments(0) Diggs(0)
http://www.patest.cn/contests/pat-a-practise/1059 1 #include 2 #include 3 4 using namespace std; 5 6 const int MAXN = 100000; 7 int prime[MAXN]; 8 b... Read More
posted @ 2015-08-05 00:45 ACSeed Views(239) Comments(0) Diggs(0)
http://www.patest.cn/contests/pat-a-practise/1028 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 const int MAXN = 100; 8 int C; 9 10 ... Read More
posted @ 2015-08-04 23:47 ACSeed Views(136) Comments(0) Diggs(0)
http://www.patest.cn/contests/pat-a-practise/1020根据后序遍历和中序遍历求层序遍历 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 const int MAXN = 100... Read More
posted @ 2015-08-04 23:19 ACSeed Views(218) Comments(0) Diggs(0)
我的系统是ubuntu14.04LTS1.安装git2.生成ssh-key(这里)3.建仓库就可以用了 Read More
posted @ 2015-08-04 16:35 ACSeed Views(134) Comments(0) Diggs(0)
http://www.patest.cn/contests/pat-a-practise/1021STL慎用啊, 不是超时就是超内存 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 8 usin... Read More
posted @ 2015-08-04 13:51 ACSeed Views(287) Comments(0) Diggs(0)
http://www.patest.cn/contests/pat-a-practise/1046 1 #include 2 3 using namespace std; 4 5 #define MIN(X, Y) ((X) *y) {14 int tmp = *x;15 ... Read More
posted @ 2015-08-03 22:52 ACSeed Views(206) Comments(0) Diggs(0)
点击右上角即可分享
微信分享提示