摘要: Pythagorean Triples Katya studies in a fifth grade. Recently her class studied right triangles and the Pythagorean theorem. It appeared, that there ar 阅读全文
posted @ 2016-08-20 23:51 stort 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Bakery Masha wants to open her own bakery and bake muffins in one of the n cities numbered from 1 to n. There are m bidirectional roads, each of whose 阅读全文
posted @ 2016-08-20 23:45 stort 阅读(213) 评论(0) 推荐(0) 编辑
摘要: Brain's Photos Small, but very brave, mouse Brain was not accepted to summer school of young villains. He was upset and decided to postpone his plans 阅读全文
posted @ 2016-08-20 23:37 stort 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Cleaner Robot Masha has recently bought a cleaner robot, it can clean a floor without anybody's assistance. Schematically Masha's room is a rectangle, 阅读全文
posted @ 2016-08-20 23:26 stort 阅读(261) 评论(0) 推荐(0) 编辑
摘要: Lottery Today Berland holds a lottery with a prize — a huge sum of money! There are k persons, who attend the lottery. Each of them will receive a uni 阅读全文
posted @ 2016-08-20 23:18 stort 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Boulevard Welcoming autumn evening is the best for walking along the boulevard and n people decided to do so. The boulevard can be represented as the 阅读全文
posted @ 2016-08-20 23:14 stort 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Layer Cake Dasha decided to bake a big and tasty layer cake. In order to do that she went shopping and bought n rectangular cake layers. The length an 阅读全文
posted @ 2016-08-20 23:06 stort 阅读(176) 评论(0) 推荐(0) 编辑
摘要: Email Aliases Polycarp has quite recently learned about email aliases. Of course, he used to suspect that the case of the letters doesn't matter in em 阅读全文
posted @ 2016-08-20 22:58 stort 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Anniversary party Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9361 Accepted Submission(s): 40 阅读全文
posted @ 2016-08-20 09:57 stort 阅读(138) 评论(0) 推荐(0) 编辑