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

[Read more...]

POJ1062

Written by  on August 22, 2014

POJ1062 昂贵的聘礼 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 41914 Accepted: 12245 Description 年轻的探险家来到了一个印第安部落里。在那里他和酋长的女儿相爱了,于是便向酋长去求亲。酋长要他用10000个金币作为聘礼才答应把女儿嫁给他。探险家拿不出这么多金币,便请求酋长降低要求。酋长说:”嗯,如果你能够替我弄到大祭司的皮袄,我可以只要8000金币。如果你能够弄来他的水晶球,那么只要5000金币就行了。”探险家就跑到大祭司那里,向他要求皮袄或水晶球,大祭司要他用金币来换,或者替他弄来其他的东西,他可以降低价格。探险家于是又跑到其他地方,其他人也提出了类似的要求,或者直接用金币换,或者找到其他东西就可以降低价格。不过探险家没必要用多样东西去换一样东西,因为不会得到更低的价格。探险家现在很需要你的帮忙,让他用最少的金币娶到自己的心上人。另外他要告诉你的是,在这个部落里,等级观念十分森严。地位差距超过一定限制的两个人之间不会进行任何形式的直接接触,包括交易。他是一个外来人,所以可以不受这些限制。但是如果他和某个地位较低的人进行了交易,地位较高的的人不会再和他交易,他们认为这样等于是间接接触,反过来也一样。因此你需要在考虑所有的情况以后给他提供一个最好的方案。

[Read more...]

POJ3259

Written by  on August 19, 2014

POJ3259 Wormholes Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 37982 Accepted: 13985 Description While exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a one-way path that delivers you to its destination at a time that is BEFORE you entered the wormhole! Each of FJ’s farms comprises N (1 ≤ N ≤ 500) fields conveniently numbered 1..N, M (1 ≤ M ≤ 2500) paths, and W (1 ≤ W ≤ 200) wormholes.

[Read more...]

POJ1860

Written by  on August 18, 2014

POJ1860 Currency Exchange Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 23824 Accepted: 8620 Description Several currency exchange points are working in our city. Let us suppose that each point specializes in two particular currencies and performs exchange operations only with these currencies. There can be several points specializing in the same pair of currencies. Each point has its own exchange rates, exchange rate of A to B is the quantity of B you get for 1A. Also each exchange point has some commission, the sum you have to pay for your exchange operation. Commission is always collected in source currency.

[Read more...]

Sublime 3下用Fcitx输入法输入中文

Written by  on August 18, 2014

首先安装一下依赖包 Shell 1 sudo apt-get install pkg-config gtk+-2.0

[Read more...]

英文版Ubuntu Gnome 14.04配置Fcitx输入法

Written by  on August 17, 2014

安装fcitx Shell 123 sudo apt-get install fcitxsudo apt-get install fcitx-googlepinyin//我安装的是Google拼音//也可以有其他选择

[Read more...]