razrlele

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...]

解决ssh连接服务器不操作时自动掉线

Written by  on August 17, 2014

昨天从学长那里蹭来了一台FreeBSD VPS, 可是每次ssh登录过后只要一两分钟不操作SSH就会自动掉线, 搜索了一下过后过后解决方法如下:

[Read more...]

POJ2499

Written by  on August 16, 2014

POJ2499 Binary Tree Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 6424 Accepted: 2954 Description Background Binary trees are a common data structure in computer science. In this problem we will look at an infinite binary tree where the nodes contain a pair of integers. The tree is constructed like this:

[Read more...]

Codeforces #459 B

Written by  on August 16, 2014

Codeforces #459 B B. Pashmak and Flowers time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output

[Read more...]

Codeforces #459 A

Written by  on August 16, 2014

昨天刚回学校, 晚上就和孟海一起打了一场, 结果得了个鸭蛋, 身残志坚, 我还能再战. Codeforces #459 A A. Pashmak and Garden

[Read more...]

Factorial

Written by  on August 4, 2014

《算法竞赛入门经典》(刘汝佳) 5.2.2 阶乘的精确值:输入不超过1000的正整数n。输出n!=1234...n的精确结果。 这个代码粗略地介绍了一下大数运算的实现,主要是用数组来存储位数,估计gmp函数库原理跟这个差不多。

[Read more...]

POJ2234

Written by  on July 29, 2014

POJ2234 Matches Game Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 9306 Accepted: 5372 Description Here is a simple game. In this game, there are several piles of matches and two players. The two player play in turn. In each turn, one can choose a pile and take away arbitrary number of matches from the pile (Of course the number of matches, which is taken away, cannot be zero and cannot be larger than the number of matches in the chosen pile). If after a player’s turn, there is no match left, the player is the winner. Suppose that the two players are all very clear. Your job is to tell whether the player who plays first can win the game or not.

[Read more...]

20140727

Written by  on July 28, 2014

今天下午第一次约妹子拍片,恩,没错,是拍片,就是。。。拍片。。。。O(∩_∩)O! 其实,准确来说是别人约了一个我认识的妹子去拍照片然后我去顺便跟着一起见识一下,第一次跟着专业人员操作多多少少还是有一点收获的,不过妹子好像对这次的照片不怎么满意,虽然我觉得拍的还是很有一点女神范的,妹子不想照片被po,所以就放一张后背照看看吧。

[Read more...]