
CF
SCUT_Pein
这个作者很懒,什么都没留下…
展开
-
CF237D Minesweeper 1D
Game "Minesweeper 1D" is played on a line of squares, the line's height is 1 square, the line's width is n squares. Some of the squares contain bombs. If a square doesn't contain a bomb, then it con原创 2014-03-20 15:59:52 · 765 阅读 · 0 评论 -
CF 455C--Civilization
Andrew plays a game called "Civilization". Dima helps him.The game has n cities and m bidirectional roads. The cities are numbered from 1 to n. Between any pair of cities there either is a sin原创 2014-08-09 15:20:49 · 817 阅读 · 0 评论 -
CF 455B-- A Lot of Games
Andrew, Fedor and Alex are inventive guys. Now they invent the game with strings for two players.Given a group of n non-empty strings. During the game two players build the word together, initiall原创 2014-08-09 15:11:38 · 946 阅读 · 0 评论 -
CF 448C Painting Fence
Bizon the Champion isn't just attentive, he also is very hardworking.Bizon the Champion decided to paint his old fence his favorite color, orange. The fence is represented as n vertical planks, pu原创 2014-07-18 11:33:17 · 757 阅读 · 0 评论 -
CF 426C--Sereja and Swaps
As usual, Sereja has array a, its elements are integers: a[1], a[2], ..., a[n]. Let's introduce notation:A swap operation is the following sequence of actions:choose two indexes i, j (i原创 2014-04-28 19:28:46 · 1023 阅读 · 0 评论 -
CF240 DIV1 C--归并排序求逆序
Mashmokh and Reverse Operationtime limit per test4 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputMashmokh's boss, Bimokh, did原创 2014-04-10 16:23:43 · 832 阅读 · 0 评论 -
CF 421C Online Meeting
Nearly each project of the F company has a whole team of developers working on it. They often are in different rooms of the office in different cities and even countries. To keep in touch and track th原创 2014-04-24 19:26:06 · 910 阅读 · 0 评论 -
CF 421D--Bug in code
Recently a serious bug has been found in the FOS code. The head of the F company wants to find the culprit and punish him. For that, he set up an organizational meeting, the issue is: who's bugged the原创 2014-04-24 19:14:13 · 932 阅读 · 0 评论 -
CF 417D - Cunning Gena--状态压缩DP
A boy named Gena really wants to get to the "Russian Code Cup" finals, or at least get a t-shirt. But the offered problems are too complex, so he made an arrangement with his n friends that they wil原创 2014-04-18 14:59:08 · 1717 阅读 · 0 评论 -
Unusual Product--CF238C
Little Chris is a huge fan of linear algebra. This time he has been given a homework about the unusual square of a square matrix.The dot product of two integer number vectors x and y of size n i原创 2014-03-23 23:27:06 · 708 阅读 · 0 评论 -
CF DIV2 236E Strictly Positive Matrix(强连通)
You have matrix a of size n × n. Let's number the rows of the matrix from 1 to n from top to bottom, let's number the columns from 1 to nfrom left to right. Let's use aij to represent the elem原创 2014-03-18 18:36:31 · 1183 阅读 · 0 评论 -
CF237 E 404E - Maze 1D(二分)
Valera has a strip infinite in both directions and consisting of cells. The cells are numbered by integers. The cell number 0 has a robot.The robot has instructions — the sequence of moves that he原创 2014-03-20 20:26:26 · 822 阅读 · 0 评论 -
CF468B--Two Sets
Little X has n distinct integers: p1, p2, ..., pn. He wants to divide all of them into two sets A and B. The following two conditions must be satisfied:If number x belongs to set A, then num原创 2014-09-21 18:16:44 · 890 阅读 · 0 评论