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