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