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 · 451 阅读 · 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 · 429 阅读 · 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 n can be a secret phone number. Only...原创 2018-08-12 10:23:27 · 251 阅读 · 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 · 687 阅读 · 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 · 681 阅读 · 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 · 522 阅读 · 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 · 597 阅读 · 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 · 537 阅读 · 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 · 383 阅读 · 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 · 644 阅读 · 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 · 299 阅读 · 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 · 259 阅读 · 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 · 380 阅读 · 0 评论 -
Codeforces 1042 C Array Product
You are given an array a consisting of n integers. 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 · 428 阅读 · 0 评论
分享