
codeforce
文章平均质量分 79
徐诚武
小白
展开
-
CodeForces 3C Tic-tac-toe 井字棋盘游戏
CodeForces 3C Tic-tac-toe 井字棋盘游戏原创 2015-07-09 10:14:41 · 1007 阅读 · 0 评论 -
codeforces 412A Poster
Description The R1 company has recently bought a high rise building in the centre of Moscow for its main office. It’s time to decorate the new office, and the first thing to do is to write the company原创 2015-11-27 21:00:10 · 467 阅读 · 0 评论 -
codeforces 412C Pattern
Description Developers often face with regular expression patterns. A pattern is usually defined as a string consisting of characters and metacharacters that sets the rules for your search. These patt原创 2015-11-27 20:56:48 · 336 阅读 · 0 评论 -
codeforces 424A Squats
Description Pasha has many hamsters and he makes them work out. Today, n hamsters (n is even) came to work out. The hamsters lined up and each hamster either sat down or stood up.For another exercise,原创 2015-12-15 20:32:51 · 487 阅读 · 0 评论 -
codeforces 424B Megacity
Description The administration of the Tomsk Region firmly believes that it’s time to become a megacity (that is, get population of one million). Instead of improving the demographic situation, they de原创 2015-12-15 20:34:22 · 397 阅读 · 0 评论 -
codeforces 424C Magic Formulas
Description People in the Tomskaya region like magic formulas very much. You can see some of them below.Imagine you are given a sequence of positive integer numbers p1, p2, …, pn. Lets write down some原创 2015-12-15 20:36:05 · 410 阅读 · 0 评论 -
codeforces 414A Mashmokh and Numbers 模拟题
Description It’s holiday. Mashmokh and his boss, Bimokh, are playing a game invented by Mashmokh.In this game Mashmokh writes sequence of n distinct integers on the board. Then Bimokh makes several (p原创 2015-12-01 20:58:12 · 422 阅读 · 0 评论 -
codeforces Police Recruits
Description The police department of your city has just started its journey. Initially, they don’t have any manpower. So, they started hiring new recruits in groups.Meanwhile, crimes keeps occurring w原创 2015-12-18 21:44:28 · 362 阅读 · 0 评论 -
codeforces Prison Transfer
Description The prison of your city has n prisoners. As the prison can’t accommodate all of them, the city mayor has decided to transfer c of the prisoners to a prison located in another city.For this原创 2015-12-18 21:46:30 · 360 阅读 · 0 评论 -
codeforces Sereja and Mugs
Description Sereja showed an interesting game to his friends. The game goes like that. Initially, there is a table with an empty cup and n water mugs on it. Then all players take turns to move. During原创 2015-12-18 21:48:54 · 889 阅读 · 0 评论 -
codeforces Police Patrol
Description Let’s assume that we are given a matrix b of size x × y, let’s determine the operation of mirroring matrix b. The mirroring of matrix b is a 2x × y matrix c which has the following propert原创 2015-12-18 21:50:21 · 335 阅读 · 0 评论 -
codeforces 416D Population Size
Description Polycarpus develops an interesting theory about the interrelation of arithmetic progressions with just everything in the world. His current idea is that the population of the capital of Be原创 2015-12-04 23:41:20 · 518 阅读 · 0 评论 -
codeforces 416C Booking System (贪心)
Description Innovation technologies are on a victorious march around the planet. They integrate into all spheres of human activity!A restaurant called “Dijkstra’s Place” has started thinking about opt原创 2015-12-04 23:30:32 · 500 阅读 · 1 评论 -
codeforces 416B Art Union
Description A well-known art union called “Kalevich is Alive!” manufactures objects d’art (pictures). The union consists of n painters who decided to organize their work as follows.Each painter uses o原创 2015-12-04 23:22:12 · 489 阅读 · 0 评论 -
codeforces Guess a number!
Description A TV show called “Guess a number!” is gathering popularity. The whole Berland, the old and the young, are watching the show.The rules are simple. The host thinks of an integer y and the pa原创 2015-12-04 23:17:53 · 443 阅读 · 0 评论 -
codeforces 412E E-mail Addresses
Description One of the most important products of the R1 company is a popular @r1.com mail service. The R1 mailboxes receive and send millions of emails every day.Today, the online news thundered with原创 2015-11-27 20:52:24 · 835 阅读 · 0 评论 -
codeforces 407C Triangle
Description There is a right triangle with legs of length a and b. Your task is to determine whether it is possible to locate the triangle on the plane in such a way that none of its sides is parallel原创 2015-11-20 21:14:24 · 330 阅读 · 0 评论 -
codeforces Vanya and Cards
DescriptionVanya loves playing. He even has a special set of cards to play with. Each card has a single integer. The number on the card can be positive, negative and can even be equal to zero. The only原创 2015-11-04 19:17:53 · 285 阅读 · 0 评论 -
codeforces Trees in a Row
DescriptionThe Queen of England has n trees growing in a row in her garden. At that, the i-th (1 ≤ i ≤ n) tree from the left has height ai meters. Today the Queen decided to update the scenery of her g原创 2015-11-06 20:18:25 · 352 阅读 · 0 评论 -
codeforces Searching for Graph
DescriptionLet’s call an undirected graph of n vertices p-interesting, if the following conditions fulfill: • the graph contains exactly 2n + p edges; • the graph doesn’t contain self-loops and mul原创 2015-11-06 20:39:25 · 334 阅读 · 0 评论 -
codeforces Nuts
DescriptionYou have a nuts and lots of boxes. The boxes have a wonderful feature: if you put x(x ≥ 0) divisors (the spacial bars that can divide a box) to it, you get a box, divided into x + 1 sections原创 2015-11-06 19:24:56 · 391 阅读 · 0 评论 -
codeforces Inna and Alarm Clock
DescriptionInna loves sleeping very much, so she needs n alarm clocks in total to wake up. Let’s suppose that Inna’s room is a 100 × 100 square with the lower left corner at point (0, 0) and with the u原创 2015-11-11 21:11:21 · 404 阅读 · 0 评论 -
codeforces Fox and Number Game
DescriptionFox Ciel is playing a game with numbers now. Ciel has n positive integers: x1, x2, …, xn. She can do the following operation as many times as needed: select two different indexes i and j suc原创 2015-11-11 21:06:39 · 381 阅读 · 0 评论 -
codeforces Fox and Cross
DescriptionFox Ciel has a board with n rows and n columns. So, the board consists of n × n cells. Each cell contains either a symbol ‘.’, or a symbol ‘#’.A cross on the board is a connected set of exac原创 2015-11-11 21:08:51 · 362 阅读 · 0 评论 -
codeforces Inna, Dima and Song
SubmitStatusDescriptionInna is a great piano player and Dima is a modest guitar player. Dima has recently written a song and they want to play it together. Of course, Sereja wants to listen to the song原创 2015-11-11 21:14:08 · 433 阅读 · 0 评论 -
codeforces Inna and New Matrix of Candies
DescriptionInna likes sweets and a game called the “Candy Matrix”. Today, she came up with the new game “Candy Matrix 2: Reload”.The field for the new game is a rectangle table of size n × m. Each line原创 2015-10-30 20:58:02 · 364 阅读 · 0 评论 -
codeforces Inna and Choose Options
DescriptionThere always is something to choose from! And now, instead of “Noughts and Crosses”, Inna choose a very unusual upgrade of this game. The rules of the game are given below:There is one perso原创 2015-10-30 20:54:40 · 474 阅读 · 0 评论 -
codeforces Inna and Huge Candy Matrix
DescriptionInna and Dima decided to surprise Sereja. They brought a really huge candy matrix, it’s big even for Sereja! Let’s number the rows of the giant matrix from 1 to n from top to bottom and the原创 2015-10-30 21:04:07 · 344 阅读 · 0 评论 -
codeforces 417C Football
Description One day, at the “Russian Code Cup” event it was decided to play football as an out of competition event. All participants was divided into n teams and played several matches, two teams cou原创 2015-12-08 21:05:20 · 403 阅读 · 0 评论 -
codeforces 417B Crash
Description During the “Russian Code Cup” programming competition, the testing system stores all sent solutions for each participant. We know that many participants use random numbers in their program原创 2015-12-08 21:02:54 · 447 阅读 · 0 评论 -
codeforces E Square Table
Description While resting on the ship after the “Russian Code Cup” a boy named Misha invented an interesting game. He promised to give his quadrocopter to whoever will be the first one to make a recta原创 2015-12-08 21:22:25 · 432 阅读 · 0 评论 -
codeforces 417A Elimination
Description The finalists of the “Russian Code Cup” competition in 2214 will be the participants who win in one of the elimination rounds.The elimination rounds are divided into main and additional. E原创 2015-12-08 20:58:14 · 599 阅读 · 0 评论