CCPC-Wannafly Summer Camp 2019 Day1
bootdubbo
这个作者很懒,什么都没留下…
展开
-
CodeForces-449B Jzzhu and Cities
Jzzhu is the president of country A. There are n cities numbered from 1 to n in his country. City 1 is the capital of A. Also there are m roads connecting the cities. One can go from city ui to vi (an...原创 2019-07-21 23:36:56 · 252 阅读 · 0 评论 -
CodeForces - 1167C News Distribution
In some social network, there are n users communicating with each other in m groups of friends. Let’s analyze the process of distributing some news between users. Initially, some user x receives the n...原创 2019-07-21 23:53:36 · 148 阅读 · 0 评论 -
CodeForces - 707B 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 connects some pair of cities. To bake muffins in her bak...原创 2019-07-21 23:52:16 · 122 阅读 · 0 评论 -
CodeForces - 939A Love Triangle
As you could know there are no male planes nor female planes. However, each plane on Earth likes some other plane. There are n planes on Earth, numbered from 1 to n, and the plane with number i likes ...原创 2019-07-21 23:50:17 · 141 阅读 · 0 评论 -
CodeForces - 875F Royal Questions
In a medieval kingdom, the economic crisis is raging. Milk drops fall, Economic indicators are deteriorating every day, money from the treasury disappear. To remedy the situation, King Charles Sunnyfa...原创 2019-07-21 23:48:26 · 146 阅读 · 0 评论 -
CodeForces - 350B Resort
Valera’s finally decided to go on holiday! He packed up and headed for a ski resort. Valera’s fancied a ski trip but he soon realized that he could get lost in this new place. Somebody gave him a usef...原创 2019-07-21 23:46:58 · 182 阅读 · 0 评论 -
CodeForces - 682C Alyona and the Tree
Alyona decided to go on a diet and went to the forest to get some apples. There she unexpectedly found a magic rooted tree with root in the vertex 1, every vertex and every edge of which has a number ...原创 2019-07-21 23:45:12 · 147 阅读 · 0 评论 -
CodeForces - 500B New Year Permutation
User ainta has a permutation p1, p2, …, pn. As the New Year is coming, he wants to make his permutation as pretty as possible. Permutation a1, a2, …, an is prettier than permutation b1, b2, …, bn, if ...原创 2019-07-21 23:43:47 · 131 阅读 · 0 评论 -
CodeForces - 437C The Child and Toy
On Children’s Day, the child got a toy from Delayyy as a present. However, the child is so naughty that he can’t wait to destroy the toy. The toy consists of n parts and m ropes. Each rope links two p...原创 2019-07-21 23:42:12 · 125 阅读 · 0 评论 -
CodeForces - 598D Igor In the Museum
Igor is in the museum and he wants to see as many pictures as possible. Museum can be represented as a rectangular field of n × m cells. Each cell is either empty or impassable. Empty cells are marked...原创 2019-07-21 23:40:39 · 116 阅读 · 0 评论 -
CodeForces-585B Phillip and Trains
The mobile application store has a new game called “Subway Roller”. The protagonist of the game Philip is located in one end of the tunnel and wants to get out of the other one. The tunnel is a rectan...原创 2019-07-21 23:39:03 · 150 阅读 · 0 评论 -
CodeForces - 687A NP-Hard Problem
Recently, Pari and Arya did some research about NP-Hard problems and they found the minimum vertex cover problem very interesting. Suppose the graph G is given. Subset A of its vertices is called a ve...原创 2019-07-21 23:55:02 · 78 阅读 · 0 评论