Ubuntu下配置Mosh

Written by  on October 18, 2014

等我工作了第一件事就是去办一张Visa然后去Linode日本机房开个VPS, 就!是!这!么!没!出!息! DigitialOcean的SFO1机房速度刚开的时候感觉还好, ping值200上下, 但是好像装了VPN过后ping值就会稳定上升到80左右, ssh上去打字就会感觉略卡, 关于DO SFO1机房具体网络情况, 可以参考以下mtr输出(江西电信网络):

[Read more...]

POJ2085

Written by  on October 12, 2014

POJ2085 Inversion Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 4004 Accepted: 1790 Description The inversion number of an integer sequence a1, a2, . . . , an is the number of pairs (ai, aj) that satisfy i < j and ai > aj . Given n and the inversion number m, your task is to find the smallest permutation of the set { 1, 2, . . . , n }, whose inversion number is exactly m.

[Read more...]

20141010

Written by  on October 10, 2014

不知不觉居然有快一个月没更博了,题解也只是今天才刚补了一篇而已,倒不是因为没刷题,而是刷题的效率有所提升,认识到有必要注意一下题解的质量,主要丢一些比较典型的问题上来比较好。

[Read more...]

POJ2084

Written by  on October 10, 2014

POJ2084 Game of Connections Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 7901 Accepted: 3973 Description This is a small but ancient game. You are supposed to write down the numbers 1, 2, 3, . . . , 2n – 1, 2n consecutively in clockwise order on the ground to form a circle, and then, to draw some straight line segments to connect them into number pairs. Every number must be connected to exactly one another.

[Read more...]

POJ2140

Written by  on September 17, 2014

最近改变刷题思路,开始跟Stanford的CS97SI来刷POJ,这样的话感觉比单纯地按照题目分类来刷更有效率一点 POJ2140 Herd Sums

[Read more...]

POJ1125

Written by  on August 29, 2014

POJ1125 Stockbroker Grapevine Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 31827 Accepted: 17443 Description Stockbrokers are known to overreact to rumours. You have been contracted to develop a method of spreading disinformation amongst the stockbrokers to give your employer the tactical edge in the stock market. For maximum effect, you have to spread the rumours in the fastest possible way.

[Read more...]

Ubuntu下安装Android Studio

Written by  on August 26, 2014

首先下载Android Studio /* 下下来过后你也可以直接双击解压,然后mv到opt文件夹下直接点击bin目录下的studio.sh打开(这个没有亲自测试,不过我觉得因为Ubuntu自带的OpenJDK好像不行,所以应该跑不了首先得配置JDK这一关)

[Read more...]

在Ubuntu下进行STC89C52RC单片机开发

Written by  on August 26, 2014

  方法概述:   使用文本编辑器编写代码(比如VIM)——使用SDCC编译源代码——使用SDCC自带套件packihx将.ihx文件转换成.hex文件——使用hextobin将.hex转换成.bin文件——使用gSTC-ISP将文件烧录到单片机。

[Read more...]

三星NP530U 双硬盘重装系统

Written by  on August 25, 2014

深夜,来写点有用的东西。 今天晚上看TOFEL口语看得心裂之时,良总蹦跶蹦跶地就把他的电脑拿过来问我可不可以跟他装个Win8。

[Read more...]

Vim

Written by  on August 22, 2014

今天把电脑里面的Vim直接remove –purge了, 把之前wget的Vim配置全部删了重新来: Shell rm -rf ~/.vim rm -f .vimrc

[Read more...]