![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Codeforces
bao___zi
ACM 弱鸡一枚
What this era lacks is not the person who is perfect but the person who is with virtue, justice, courage and compassion.
展开
-
Codeforces 915C Permute Digits
You are given two positive integer numbers a and b. Permute (change order) of the digits of a to construct maximal number not exceeding b. No number in input and/or output can start with the digit 0.I...原创 2018-03-06 21:56:08 · 331 阅读 · 0 评论 -
Codeforces 1016C Vasya And The Mushrooms
Vasya's house is situated in a forest, and there is a mushroom glade near it. The glade consists of two rows, each of which can be divided into n consecutive cells. For each cell Vasya knows how fast ...原创 2018-08-12 11:29:57 · 309 阅读 · 0 评论 -
Codefrces 1017C. The Phone Number
Mrs. Smith is trying to contact her husband, John Smith, but she forgot the secret phone number!The only thing Mrs. Smith remembered was that any permutation of ncan be a secret phone number. Only...原创 2018-08-12 10:23:27 · 171 阅读 · 0 评论 -
Codeforces 931C Laboratory Work
Anya and Kirill are doing a physics laboratory work. In one of the tasks they have to measure some value n times, and then compute the average value to lower the error.Kirill has already made his meas...原创 2018-03-05 22:44:51 · 610 阅读 · 0 评论 -
Codeforces 931D Peculiar apple-tree
In Arcady's garden there grows a peculiar apple-tree that fruits one time per year. Its peculiarity can be explained in following way: there are n inflorescences, numbered from 1 to n. Inflorescence n...原创 2018-03-05 16:20:48 · 588 阅读 · 0 评论 -
Codeforces 937B Vile Grasshoppers
The weather is fine today and hence it's high time to climb the nearby pine and enjoy the landscape.The pine's trunk includes several branches, located one above another and numbered from 2 to...原创 2018-03-04 09:31:24 · 439 阅读 · 0 评论 -
Codeforces 948C Producing Snow
Alice likes snow a lot! Unfortunately, this year's winter is already over, and she can't expect to have any more of it. Bob has thus bought her a gift — a large snow maker. He plans to make some amoun...原创 2018-03-11 17:28:11 · 501 阅读 · 0 评论 -
Codeforces 937C--Save Energy!
Julia is going to cook a chicken in the kitchen of her dormitory. To save energy, the stove in the kitchen automatically turns off after k minutes after turning on.During cooking, Julia goes to the ki...原创 2018-03-03 13:50:14 · 452 阅读 · 1 评论 -
Codeforces 950C Zebras
Oleg writes down the history of the days he lived. For each day he decides if it was good or bad. Oleg calls a non-empty sequence of days a zebra, if it starts with a bad day, ends with a bad day, and...原创 2018-03-10 02:10:37 · 290 阅读 · 0 评论 -
Codeforces 950D A Leapfrog in the Array
Dima is a beginner programmer. During his working process, he regularly has to repeat the following operation again and again: to remove every second element from the array. One day he has been bored ...原创 2018-03-10 01:02:04 · 537 阅读 · 0 评论 -
Codeforces 939D Love Rescue
Valya and Tolya are an ideal pair, but they quarrel sometimes. Recently, Valya took offense at her boyfriend because he came to her in t-shirt with lettering that differs from lettering on her pullove...原创 2018-03-09 13:02:16 · 249 阅读 · 1 评论 -
Codeforces 913D oo Easy Problems
You are preparing for an exam on scheduling theory. The exam will last for exactly T milliseconds and will consist of n problems. You can either solve problem i in exactly ti milliseconds or ignore it...原创 2018-03-08 21:35:30 · 187 阅读 · 0 评论 -
Codeforces 913C Party Lemonade
A New Year party is not a New Year party without lemonade! As usual, you are expecting a lot of guests, and buying lemonade has already become a pleasant necessity.Your favorite store sells lemonade i...原创 2018-03-07 22:10:28 · 292 阅读 · 0 评论 -
Codeforces 1042 C Array Product
You are given an array a consisting of nintegers. You can perform the following operations with it:Choose some positions i and j (1≤i,j≤n,i≠j), write the value of ai⋅aj into the j-th cell and remo...原创 2018-09-18 09:55:08 · 307 阅读 · 0 评论