原创 Shell Game

Description input input.txt output output.txt Today the «Z» city residents enjoy a shell game competition. The

原创 Company Income Growth

Description Petya works as a PR manager for a successful Berland company BerSoft. He needs to prepare a presentati

原创 Warehouse

Description input input.txt output output.txt Once upon a time, when the world was more beautiful, the sun sho

原创 廣搜2 —— Red and Black

Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A ma

原创 Fire Again

Description input input.txt output output.txt After a terrifying forest fire in Berland a forest rebirth progr

原创 2015.11.27

好久沒總結一下自己了,好久沒檢討自己了,2015年馬上就要結束了,時間真的過得好快,馮禕煒走了,胡立軒走了,徐寧走了,所有給我幫助的人都畢業了,找工作了回家了,現在才明白別人給你幫助時要感恩,不要認爲所有的幫忙都是理所應當的,要明

原创 Guilty — to the kitchen!

Description It’s a very unfortunate day for Volodya today. He got bad mark in algebra and was therefore forced to

原创 廣搜3 ——Property Distribution

Description タナカ氏が HW アールの果樹園を殘して亡くなりました。果樹園は東西南北方向に H×W の區畫に分けられ、區畫ごとにリンゴ、カキ、ミカンが植えられています。タナカ氏はこんな遺言を殘していました。 果樹園は

原创 Blinds(百葉窗)

Description The blinds are known to consist of opaque horizontal stripes that can be rotated thus regulating the a

原创 printf()問題

今天解決了一個很早以前就糾結的問題,a = 1 ,print(“%d %d\n”, a++, a++) 到底輸出啥? 也百度了好多,也看了他們的博客,自己也總結了一下,但也只是知道爲什麼,但是深入講解還是不行,先看一下專業人

原创 廣搜1—— Meteor Shower(流星雨)

Description Bessie hears that an extraordinary meteor shower is coming; reports say that these meteors will crash

原创 Chess

Description Two chess pieces, a rook and a knight, stand on a standard chessboard 8 × 8 in size. The positions in

原创 廣搜4 ——Cheese

Description 問題 今年も JOI 町のチーズ工場がチーズの生産を始め,ねずみが巣から顔を出した.JOI 町は東西南北に區畫整理されていて,各區畫は巣,チーズ工場,障害物,空き地のいずれかである.ねずみは巣から出発して

原创 Cola

Description To celebrate the opening of the Winter Computer School the organizers decided to buy in n liters of co

原创 Indian Summer

Description Indian summer is such a beautiful time of the year! A girl named Alyona is walking in the forest and p