![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
比赛
浮生一朝
这个作者很懒,什么都没留下…
展开
-
F - Prime Path P
The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room numbers on their offices.— It is a matter of secu原创 2017-09-22 22:12:28 · 313 阅读 · 0 评论 -
G - Topological Sorting URAL - 1280(拓扑排序)
Michael wants to win the world championship in programming and decided to study N subjects (for convenience we will number these subjects from 1 to N). Michael has worked out a study plan for this purp原创 2017-12-11 17:42:39 · 340 阅读 · 0 评论 -
B - Bill Total Value(小数点问题处理)
Vasily exited from a store and now he wants to recheck the total price of all purchases in his bill. The bill is a string in which the names of the purchases and their prices are printed in a row witho原创 2017-11-24 09:22:41 · 579 阅读 · 0 评论 -
G - Mnemonics and Palindromes 3 URAL - 1737(回文)
As you remember, when Vasechkin was preparing a problem for the latest student contest, he spent a lot of time trying to invent an unusual and complex name for this problem. The name that Vasechkin had原创 2017-12-06 10:52:35 · 280 阅读 · 0 评论 -
E - Friends and Berries URAL - 2067(三点共线)
There is a group of n children. According to a proverb, every man to his own taste. So the children value strawberries and raspberries differently. Let’s say that i-th child rates his attachment to str原创 2017-12-06 11:38:47 · 438 阅读 · 0 评论 -
D - Satisfactory Pairs HackerRank - pairs-again(查找因数组合题目)
D - Satisfactory Pairs HackerRank - pairs-again 题意:给出n,求符合要求的(a,b)有多少对,应注意的是(a,b)中a #include#include#include#include#include#includeusing namespace std;int cun[300010];//将每一个找到的a,b组合标记下原创 2018-01-24 20:39:04 · 281 阅读 · 0 评论 -
Game with a Strip URAL - 2104(神奇的dfs)
There is a strip 1 × n with two sides. Each square of the strip (their total amount is 2 n, n squares on each side) is painted in one of two colors (let’s call them A and B). Alice and Bob play a game原创 2018-01-26 21:34:38 · 319 阅读 · 0 评论 -
A - Union of Doubly Linked Lists CodeForces - 847A(并查集)
Doubly linked list is one of the fundamental data structures. A doubly linked list is a sequence of elements, each containing information about the previous and the next elements of the list. In this原创 2017-11-22 11:43:15 · 371 阅读 · 0 评论 -
**A Cubic number and A Cubic Number**
A Cubic number and A Cubic NumberProblem Description A cubic number is the result of using a whole number in a multiplication three times. For example, 3×3×3=27 so 27 is a cubic number. The first f原创 2017-09-18 17:13:30 · 511 阅读 · 0 评论 -
Gym - 101608D(区间问题)
You want to prepare test cases for a problem with the following description:"Given an array of n positive integers, and a number of queries. Each query will ask about a range [l, r] (1 ≤ l ≤ r ≤ n),...原创 2018-02-11 09:42:36 · 525 阅读 · 1 评论 -
Arcade Game (全排列函数应用)
Arcade mall is a new modern mall. It has a new hammer game called “Arcade Game”. In this game you’re presented with a number n which is hanged on a wall on top of a long vertical tube, at the bottom o...原创 2018-02-12 21:43:39 · 374 阅读 · 0 评论 -
B - Weird Cryptography Gym - 100935B(集合,思维题)
Khaled was sitting in the garden under an apple tree, suddenly! , well... you should guess what happened, an apple fell on his head! , so he came up with a new Cryptography method!!The method deals ...原创 2018-02-27 11:50:15 · 218 阅读 · 0 评论 -
A - Product of Digits URAL - 1014(数位操作)
Your task is to find the minimal positive integer number Q so that the product of digits of Q is exactly equal to N.Input The input contains the single integer number N (0 ≤ N ≤ 10 9). Output原创 2017-12-11 17:17:31 · 261 阅读 · 0 评论 -
Five Dimensional Points CodeForces - 850A
You are given set of n points in 5-dimensional space. The points are labeled from 1 to n. No two points coincide.We will call point a bad if there are different points b and c, not equal to a, from the原创 2017-11-17 09:47:24 · 328 阅读 · 0 评论 -
The Heaviest Non-decreasing Subsequence Problem
Let SSS be a sequence of integers s1s_{1}s1, s2s_{2}s2, ………, sns_{n}sn Each integer is is associated with a weight by the following rules:(1) If is is negative, then its weight is 000.(2) If i原创 2017-09-25 21:48:02 · 327 阅读 · 0 评论 -
The Dominator of Strings(杭电icpc)
The Dominator of StringsProblem Description Here you have a set of strings. A dominator is a string of the set dominating all strings else. The string S is dominated by T if S is a substring of T.Inpu原创 2017-09-18 19:59:52 · 625 阅读 · 2 评论 -
A - Link/Cut Tree
Programmer Rostislav got seriously interested in the Link/Cut Tree data structure, which is based on Splay trees. Specifically, he is now studying the expose procedure.Unfortunately, Rostislav is unabl原创 2017-09-20 15:14:56 · 336 阅读 · 0 评论 -
E - New Year and Old Property
The year 2015 is almost over.Limak is a little polar bear. He has recently learnt about the binary system. He noticed that the passing year has exactly one zero in its representation in the binary syst原创 2017-09-20 15:53:41 · 276 阅读 · 0 评论 -
Hot Air Ballooning
Dave is the director of the Summer school of hot air ballooning. Being a responsible director, he keeps a list of flights of each trainee in the school. After each flight, Dave appends a note to the原创 2017-10-03 10:36:01 · 701 阅读 · 0 评论 -
Etnetera Brevity Challenge
Your task is to implement a decoder of the famous Morse alphabet. As most of you know, the Morse code represents characters as variable-length sequences of short and long signals (“beeps”), often wri原创 2017-10-03 11:23:21 · 443 阅读 · 0 评论 -
cf——B. Garland (桶排思想)
Once little Vasya read an article in a magazine on how to make beautiful handmade garland from colored paper. Vasya immediately went to the store and bought n colored sheets of paper, the area of each原创 2017-10-19 20:43:45 · 270 阅读 · 0 评论 -
cf,A. Mashmokh and Lights
Mashmokh works in a factory. At the end of each day he must turn off all of the lights.The lights on the factory are indexed from 1 to n. There are n buttons in Mashmokh's room indexed from 1 to n as w原创 2017-10-19 20:45:56 · 278 阅读 · 0 评论 -
B - Table Tennis CodeForces - 879B
n people are standing in a line to play table tennis. At first, the first two players in the line play a game. Then the loser goes to the end of the line, and the winner plays with the next person from原创 2017-11-04 17:17:30 · 430 阅读 · 0 评论 -
A - New Year Table CodeForces - 140A(精度,几何图形)
Gerald is setting the New Year table. The table has the form of a circle; its radius equals R. Gerald invited many guests and is concerned whether the table has enough space for plates for all those gu原创 2017-11-29 11:05:18 · 257 阅读 · 0 评论 -
C - Load Testing CodeForces - 847H
Polycarp plans to conduct a load testing of its new project Fakebook. He already agreed with his friends that at certain points in time they will send requests to Fakebook. The load testing will last n原创 2017-11-27 20:46:54 · 353 阅读 · 0 评论 -
K - Palindromization Gym - 100971K (回文)
Mihahim has a string s. He wants to delete exactly one character from it so that the resulting string would be a palindrome. Determine if he can do it, and if he can, what character should be deleted....原创 2018-02-22 11:21:36 · 271 阅读 · 0 评论