codeforces
轩辕小猪
这个作者很懒,什么都没留下…
展开
-
Mishka and Contest
http://codeforces.com/contest/999/problem/A问题描述:Mishka started participating in a programming contest. There are nn problems in the contest. Mishka's problem-solving skill is equal to kk.Mishka arrang...原创 2018-06-30 12:31:33 · 347 阅读 · 0 评论 -
Codeforces Round
http://codeforces.com/contest/1029A. Many Equal SubstringsYou are given a string t consisting of n lowercase Latin letters and an integer number kk. Let’s define a substring of some string s with...原创 2018-09-05 23:51:50 · 361 阅读 · 0 评论 -
Monitor
https://codeforces.com/contest/846/problem/D问题描述Recently Luba bought a monitor. Monitor is a rectangular matrix of size n × m. But then she started to notice that some pixels cease to work properl...原创 2018-08-17 00:20:15 · 384 阅读 · 0 评论 -
Points
https://codeforces.com/problemset/problem/19/D问题描述Pete and Bob invented a new interesting game. Bob takes a sheet of paper and locates a Cartesian coordinate system on it as follows: point (0, 0) ...原创 2018-08-19 16:42:31 · 316 阅读 · 0 评论 -
Exams
http://codeforces.com/contest/732/problem/D问题描述Vasiliy has an exam period which will continue for n days. He has to pass exams on m subjects. Subjects are numbered from 1 to m.About every day we...原创 2018-08-16 15:20:08 · 336 阅读 · 0 评论 -
Distance in Tree
https://codeforces.com/contest/161/problem/D#问题描述A tree is a connected graph that doesn’t contain any cycles.The distance between two vertices of a tree is the length (in edges) of the shortest ...原创 2018-08-08 16:46:43 · 477 阅读 · 2 评论 -
Theseus and labyrinth
https://codeforces.com/contest/676/problem/D问题描述Theseus has just arrived to Crete to fight Minotaur. He found a labyrinth that has a form of a rectangular field of size n × m and consists of block...原创 2018-08-07 14:24:21 · 209 阅读 · 0 评论 -
Fox And Names
http://codeforces.com/contest/510/problem/C问题描述Fox Ciel is going to publish a paper on FOCS (Foxes Operated Computer Systems, pronounce: “Fox”). She heard a rumor: the authors list on the paper is...原创 2018-08-11 20:39:16 · 137 阅读 · 0 评论 -
Mysterious Present
http://codeforces.com/contest/4/problem/D问题描述Peter decided to wish happy birthday to his friend from Australia and send him a card. To make his present more mysterious, he decided to make a chain....原创 2018-08-10 16:32:36 · 560 阅读 · 0 评论 -
Police Station
http://codeforces.com/problemset/problem/208/C问题描述The Berland road network consists of n cities and of m bidirectional roads. The cities are numbered from 1 to n, where the main capital city has n...原创 2018-08-05 13:52:22 · 1171 阅读 · 0 评论 -
Cards and Joy
http://codeforces.com/contest/999/problem/F问题描述:There are nn players sitting at the card table. Each player has a favorite number. The favorite number of the jj-th player is fjfj.There are k⋅nk⋅n card...原创 2018-07-01 21:24:30 · 215 阅读 · 0 评论 -
Reachability from the Capital
问题描述:There are nn cities and mm roads in Berland. Each road connects a pair of cities. The roads in Berland are one-way.What is the minimum number of new roads that need to be built to make all the ci...原创 2018-06-30 19:21:37 · 413 阅读 · 0 评论 -
Equalize the Remainders
http://codeforces.com/contest/999/problem/D问题描述:You are given an array consisting of nn integers a1,a2,…,ana1,a2,…,an, and a positive integer mm. It is guaranteed that mm is a divisor of nn.In a singl...原创 2018-06-30 17:03:53 · 271 阅读 · 0 评论 -
Alphabetic Removals
问题描述:You are given a string ss consisting of nn lowercase Latin letters. Polycarp wants to remove exactly kk characters (k≤nk≤n) from the string ss. Polycarp uses the following algorithm kk times:if t...原创 2018-06-30 14:54:27 · 261 阅读 · 0 评论 -
Reversing Encryption
http://codeforces.com/contest/999/problem/B问题描述:A string ss of length nn can be encrypted by the following algorithm:iterate over all divisors of nn in decreasing order (i.e. from nn to 11),for each d...原创 2018-06-30 13:21:24 · 168 阅读 · 0 评论 -
AIM Tech Round 5 (rated, Div. 1 + Div. 2)
http://codeforces.com/contest/1028A. Find SquareConsider a table of size n*m, initially fully white. Rows are numbered 11 through nn from top to bottom, columns 1 through m from left to right. Som...原创 2018-09-04 00:08:16 · 1077 阅读 · 0 评论