Codeforces #733 D

Written by  on November 2, 2016

733D D. Kostya the Sculptor time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output Kostya is a genial sculptor, he has an idea: to carve a marble sculpture in the shape of a sphere. Kostya has a friend Zahar who works at a career. Zahar knows about Kostya’s idea and wants to present him a rectangular parallelepiped of marble from which he can carve the sphere.

[Read more...]

Codeforces #719 C

Written by  on October 26, 2016

719C C. Efim and Strange Grade time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output

[Read more...]

博客关闭评论

Written by  on October 23, 2016

由于Disqus时不时加载抽风,多说又实在是丑并且听说还停止维护了,用博客自带的评论系统的话又要顾着anti-spam而且也丑,自己暂时也懒得去折腾,所以最终还是决定关掉了评论,页面清爽了一些加载速度快了一些浏览体验似乎更好了一点。。。

[Read more...]

Codeforces #721 C

Written by  on October 11, 2016

721C C. Journey time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output Recently Irina arrived to one of the most famous cities of Berland — the Berlatov city. There are n showplaces in the city, numbered from1 to n, and some of them are connected by one-directional roads. The roads in Berlatov are designed in a way such that there are nocyclic routes between showplaces.

[Read more...]

Python中的多进程队列

Written by  on September 21, 2016

在Python中进程间共享数据比较常用的方法就是多进程队列multiprocessesing.queues.Queue,官方文档在这里是这么说的: The Queue class is a near clone of Queue.Queue; Queues are thread and process safe.

[Read more...]

用Python备份WordPress数据至Google Drive

Written by  on July 28, 2016

前段时间因为Google Photos照片传太多把Google Drive空间用完了,就买了三刀一个月的Google会员,然后就发现100G空间似乎一时半会儿还用不完,正好之前一直想着给博客服务器来个自动备份脚本,所以就先把坑填了。

[Read more...]

git通过config指定ssh密钥

Written by  on July 9, 2016

之前博客里面有记载过通过脚本的方式指定git的ssh密钥,略为复杂,后来从同事那里知道了一种更简单直接的方法。

[Read more...]

张家界

Written by  on June 21, 2016

算是按部就班地来了一次毕业旅行吧。 起初是决定去凤凰的,结果当时在长沙和小伙伴们一起向过来人打听,都说张家界比凤凰好玩,就临时改途买了火车票去张家界。

[Read more...]

代码与猫

Written by  on May 14, 2016

此生我最痴迷得无法自拔的有两样,一个是代码,一个是猫,即使我现在并不是一个代码高手,也没有养猫。 读过一点村上春树的《猫》,里面对猫的爱之表达真实毫无保留,毫无保留到令人发指,没错我说的就是里面的虐猫描写,我能够理解他们日本人这种习惯将任何情怀发挥到极致,但是对于同样爱猫的我来说,着实不能接受,所以那书我看了一半就丢掉了(只是从我的Kindle Library删除 :p)。不过书中倒是有一个有趣的事实,那就是猫只会在人类面前发出「喵」的叫声,仔细一想还真的是,说是永远不可能被驯服的喵君,无形之中也似乎已为人类所征服,当然这也可能只是我们这些无知人类的意淫。

[Read more...]

南昌大学计算机图形学实验室招人

Written by  on May 6, 2016

Update: 已经找到合适人选。   因为本宝宝即将毕业,所以现在本宝宝所在搬砖的计算机图形学实验室需要招一个本科生(不限专业,达到相关要求即可):

[Read more...]