随笔分类 -  Codeforce

摘要:Coloring Trees time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output ZS the Coder and Chris th 阅读全文
posted @ 2016-08-30 11:17 stort 阅读(280) 评论(0) 推荐(0)
摘要:B. Chris and Magic Square time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output ZS the Coder a 阅读全文
posted @ 2016-08-30 07:37 stort 阅读(226) 评论(0) 推荐(0)
摘要:Generate a String Generate a String zscoder wants to generate an input file for some programming competition problem. His input is a string consisting 阅读全文
posted @ 2016-08-23 10:27 stort 阅读(252) 评论(0) 推荐(0)
摘要:Magic Odd Square Magic Odd Square Find an n × n matrix with different numbers from 1 to n2, so the sum in each row, column and both main diagonals are 阅读全文
posted @ 2016-08-23 10:15 stort 阅读(270) 评论(0) 推荐(0)
摘要:Optimal Point on a Line Optimal Point on a Line You are given n points on a line with their coordinates xi. Find the point x so the sum of distances t 阅读全文
posted @ 2016-08-23 10:09 stort 阅读(237) 评论(0) 推荐(0)
摘要:King Moves King Moves The only king stands on the standard chess board. You are given his position in format "cd", where c is the column from 'a' to ' 阅读全文
posted @ 2016-08-23 10:04 stort 阅读(206) 评论(0) 推荐(0)
摘要: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 阅读(225) 评论(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 阅读(224) 评论(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 阅读(185) 评论(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 阅读(270) 评论(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 阅读(218) 评论(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 阅读(235) 评论(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 阅读(184) 评论(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 阅读(224) 评论(0) 推荐(0)
摘要:Winner The winner of the card game popular in Berland "Berlogging" is determined according to the following rules. If at the end of the game there is 阅读全文
posted @ 2016-08-19 15:21 stort 阅读(215) 评论(0) 推荐(0)
摘要:Ancient Berland Circus Nowadays all circuses in Berland have a round arena with diameter 13 meters, but in the past things were different. In Ancient 阅读全文
posted @ 2016-08-19 14:24 stort 阅读(394) 评论(0) 推荐(0)
摘要:Bear and Finding Criminals There are n cities in Bearland, numbered 1 through n. Cities are arranged in one long row. The distance between cities i an 阅读全文
posted @ 2016-08-19 11:01 stort 阅读(226) 评论(0) 推荐(0)
摘要:Vanya and Label While walking down the street Vanya saw a label "Hide&Seek". Because he is a programmer, he used & as a bitwise AND for these two word 阅读全文
posted @ 2016-08-19 10:50 stort 阅读(395) 评论(0) 推荐(0)
摘要:A. Theatre Square time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Theatre Square in the c 阅读全文
posted @ 2016-08-19 09:33 stort 阅读(239) 评论(0) 推荐(0)
摘要:Vanya and Food Processor Vanya smashes potato in a vertical food processor. At each moment of time the height of the potato in the processor doesn't e 阅读全文
posted @ 2016-08-19 09:32 stort 阅读(275) 评论(0) 推荐(0)