[TOC] Problem portal: "1008 Elevator (20 分)" Description The highest building in our city has only one elevator. A request list is made up with ...
分类:
其他好文 时间:
2019-09-02 09:24:38
阅读次数:
100
https://codeforc.es/gym/101461 5题结束了,可能是只打了3个小时吧。要是E试试Java8去用高精浮点二分,或者坚持读下来发现F是个割点模板题?以后可能远古场还是不打了,要拉2015年以内的。 D City Game 悬线法求最大非1子矩阵,根据up[i][j]=(g[i ...
分类:
其他好文 时间:
2019-09-01 11:10:12
阅读次数:
99
Key UP 或Down 事件中 实现CTR+A全选 if ( Control.ModifierKeys==Keys.Control && e.KeyCode == Keys.A) { tb_pnts.SelectAll(); } 阻止按键事件传递,须在KeyDown事件中,而不能在KeyUp事件中 ...
分类:
其他好文 时间:
2019-08-31 01:02:16
阅读次数:
270
--跳到上一空白行 ctrl+alt+enter --跳到下一空白行 shift+enter --为代码生成包裹快(try catch等) ctrl+alt+t --跳到某行 ctrl+g --实现父类方法 ctrl+i --上下移动选中的代码 shift+ctrl+UP(DOWN) --导包 al ...
分类:
其他好文 时间:
2019-08-30 22:47:46
阅读次数:
66
Description An earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless network with the lap computers, ...
分类:
Web程序 时间:
2019-08-30 20:52:52
阅读次数:
84
某次intellj idea提交git总是失败。问别人又是很羞耻的事情。 我已经我代码重新pull下来,再把改动的文件一一添加上去了。完全没有冲突的问题。但是就是不行。 幸亏一个同事给指导了以下。 在项目目录下面右键“git Bash here” 输入命令: $ git pullAlready up ...
分类:
其他好文 时间:
2019-08-30 10:06:55
阅读次数:
293
给一棵 N 个点的树,每个点有一个权值,求每个点的子树中有多少个点的权值比它大。 考虑线段树合并,将权值离散化,每个点开一棵权值线段树。 求答案时直接在权值线段树上查询,线段树合并时类似于可并堆。 要注意的是线段树要动态开点,合并时别忘了 up。 内存什么的最好算一下,数组别开小了。 1 #incl ...
分类:
其他好文 时间:
2019-08-30 09:52:54
阅读次数:
96
Reverse a singly linked list. Example: Follow up: A linked list can be reversed either iteratively or recursively. Could you implement both? 思路: 重塑链表, ...
分类:
其他好文 时间:
2019-08-29 16:13:39
阅读次数:
92
Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be ...
分类:
其他好文 时间:
2019-08-29 15:27:24
阅读次数:
81
"2019 Multi University Training Contest 3" 补题链接: "2019 Multi University Training Contest 3" 1002 Blow up the city "(HDU 6604)" 题意 给定 $n$ 个点和 $m$ 条边的有向 ...
分类:
其他好文 时间:
2019-08-29 12:10:19
阅读次数:
114