上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 36 下一页
摘要: 倍增求LCA LCA函数返回(u,v)两点的最近公共祖先 #include <bits/stdc++.h> using namespace std; const int N = 40010*2; struct node { int v,val,next; node(){} node(int vv,i 阅读全文
posted @ 2018-09-10 09:13 Draymonder 阅读(216) 评论(0) 推荐(0)
摘要: 为迎接,接下来的区域赛,要做好准备(虽然不是特别有信心,但是还是要鼓励自己,可以取得收获的,加油) acm_latex模板: https://www.cnblogs.com/palayutm/p/6444833.html#e69bb4e696b0_1 windows下安装texlive: https 阅读全文
posted @ 2018-09-09 20:31 Draymonder 阅读(544) 评论(0) 推荐(0)
摘要: public synchronized void hurt() { //... this.wait(); //... } public synchronized void recover() { //... this.notify(); } 这里需要强调的是,wait方法和notify方法,并不是T 阅读全文
posted @ 2018-09-08 00:19 Draymonder 阅读(476) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-09-07 23:51 Draymonder 阅读(308) 评论(0) 推荐(0)
摘要: 发现更改了 layout里面的xml文件后 切换到design后,没有显示控件 解决方法 解决办法: 在 res/values/styles.xml 文件中 将原有的 前面添加 Base. Theme.AppCompat.Light.DarkActionBar 如下图所示 <resources> < 阅读全文
posted @ 2018-09-06 23:12 Draymonder 阅读(3893) 评论(0) 推荐(0)
摘要: 类似题解 There are NN cities in the country, and MM directional roads from uu to v(1\le u, v\le n)v(1≤u,v≤n). Every road has a distance c_ici​. Haze is a 阅读全文
posted @ 2018-09-06 09:27 Draymonder 阅读(254) 评论(0) 推荐(0)
摘要: 题目链接: https://nanti.jisuanke.com/t/30994 Dlsj is competing in a contest with n (0 < n \le 20)n(0<n≤20) problems. And he knows the answer of all of the 阅读全文
posted @ 2018-09-01 20:27 Draymonder 阅读(390) 评论(0) 推荐(0)
摘要: 功能要求: 具体类: Decrypt 测试类,用来启动破解和日志线程 DecryptThread 破解线程类,用来生成测试的字符串,并暴力破解 LogThread 日志类,将输出每次生成的字符串结果集,并且设置为守护线程,等DecryptThread线程运行结束,也将停止运行 package dec 阅读全文
posted @ 2018-08-31 18:57 Draymonder 阅读(1805) 评论(0) 推荐(0)
摘要: 代码 package thread; public class TestChongNeng { public static void main(String[] args) { Thread t1 = new Thread() { public void run() { while (true) { 阅读全文
posted @ 2018-08-31 17:01 Draymonder 阅读(3882) 评论(0) 推荐(0)
摘要: 学过了操作系统,突然不知道多线程有什么用了。 看了一下百度,发现多线程,可以提升系统利用率 在系统进行IO操作的时候,CPU可以处理一些其他的东西,等IO读取到内存后,CPU再处理之前的操作。 总之可以在用户层面,可以提升效率,不过,有时候多线程设计不当,调试也很麻烦 今天尝试一下简单的查找文件后缀 阅读全文
posted @ 2018-08-31 12:02 Draymonder 阅读(1629) 评论(0) 推荐(0)
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 36 下一页