散文诗 A Tear and A Smile 眼泪与微笑 by Khalil Gibran 纪伯伦 长风译 I would not exchange the sorrows of my heart For the joys of the multitude. And I would not have ...
分类:
其他好文 时间:
2017-10-08 11:13:11
阅读次数:
161
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. ...
分类:
移动开发 时间:
2017-10-06 18:09:58
阅读次数:
239
题面不给……题意:求出一个高低不平的矩阵每个点可盛水的多少,注意边框高度为$0$。 本来以为是个$bfs$……结果一个多小时没调出来…… 结果被正解吓傻了……竟然是个最小生成树……我们可以发现每个点水位最高值可以看做从边界到达这个点路上经过的最高点的最小值……然后我们就上下左右连边……边权就是两点之 ...
分类:
其他好文 时间:
2017-10-03 22:21:25
阅读次数:
193
link Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after rai ...
分类:
移动开发 时间:
2017-10-03 16:58:28
阅读次数:
216
vs2017默认编码方式并不是UTF-8,似乎是UTF-16,当我们使用中文时,经常会发生乱码。 解决方法:工具->扩展和更新->联机,然后搜索ForceUTF8 我这里已经安装了,没安装的话,就可以下载安装了。下载后好像要关闭VS,就可以开始安装了。安装好后,重新打开乱码的地方,以前的中文就会变成 ...
分类:
其他好文 时间:
2017-10-02 23:51:53
阅读次数:
402
The Coast Guard released a damning report Sunday on the sinking of the El Faro cargo ship during Hurricane Joaquin in 2015 that holds the captain most ...
分类:
其他好文 时间:
2017-10-02 12:19:40
阅读次数:
221
Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacen ...
分类:
其他好文 时间:
2017-10-01 19:04:20
阅读次数:
135
Every time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover patch. This means that the clover is covered by water for awhi ...
分类:
其他好文 时间:
2017-09-30 23:04:40
阅读次数:
232
spring现在已经将源码和jar包分开放置,不能直接一下都拥有源码和jar包。 有些朋友说jar包需要通过maven去下载,其实不然,spring官网上就能拿到一切。 一,下载源码 (1)输入官网地址http://spring.io或spring.io(有默认http的浏览器),进入简洁的官网页面 ...
分类:
编程语言 时间:
2017-09-28 15:58:41
阅读次数:
169
直接上代码:(对应的类:android.content.ClipboardManager) 上面的代码就可以将文字放到剪贴板了,然后找个输入框“粘贴”就行啦~ ps:API 11之前,复制到系统剪贴板是cm.setText(“复制的文字”);但这句已经失效了,在API11后对,对ClipboardM ...
分类:
移动开发 时间:
2017-09-28 11:36:05
阅读次数:
323