随笔分类 -  codeforces

摘要:Description Little Nastya has a hobby, she likes to remove some letters from word, to obtain another word. But it turns out to be pretty hard for her, 阅读全文
posted @ 2017-02-26 23:41 樱花落舞 阅读(375) 评论(0) 推荐(0) 编辑
摘要:Description Igor found out discounts in a shop and decided to buy n items. Discounts at the store will last for a week and Igor knows about each item 阅读全文
posted @ 2017-02-26 23:34 樱花落舞 阅读(296) 评论(0) 推荐(0) 编辑
摘要:Description Polycarp is crazy about round numbers. He especially likes the numbers divisible by 10k. In the given number of n Polycarp wants to remove 阅读全文
posted @ 2017-02-26 23:23 樱花落舞 阅读(353) 评论(0) 推荐(0) 编辑
摘要:Description In Berland each high school student is characterized by academic performance — integer value between 1 and 5. In high school 0xFF there ar 阅读全文
posted @ 2017-02-26 23:14 樱花落舞 阅读(410) 评论(0) 推荐(1) 编辑
摘要:Misha and Vanya have played several table tennis sets. Each set consists of several serves, each serve is won by one of the players, he receives one p 阅读全文
posted @ 2017-02-14 20:20 樱花落舞 阅读(272) 评论(0) 推荐(0) 编辑
摘要:Description Kostya likes Codeforces contests very much. However, he is very disappointed that his solutions are frequently hacked. That's why he decid 阅读全文
posted @ 2017-02-14 20:15 樱花落舞 阅读(326) 评论(0) 推荐(0) 编辑
摘要:Description There are literally dozens of snooker competitions held each year, and team Jinotega tries to attend them all (for some reason they prefer 阅读全文
posted @ 2017-02-14 20:04 樱花落舞 阅读(239) 评论(0) 推荐(0) 编辑
摘要:Description Santa Claus has Robot which lives on the infinite grid and can move along its lines. He can also, having a sequence of m points p1, p2, .. 阅读全文
posted @ 2016-12-25 23:09 樱花落舞 阅读(249) 评论(0) 推荐(0) 编辑
摘要:Description Santa Claus decided to disassemble his keyboard to clean it. After he returned all the keys back, he suddenly realized that some pairs of 阅读全文
posted @ 2016-12-25 23:02 樱花落舞 阅读(243) 评论(0) 推荐(0) 编辑
摘要:Description Santa Claus is the first who came to the Christmas Olympiad, and he is going to be the first to take his place at a desk! In the classroom 阅读全文
posted @ 2016-12-25 22:55 樱花落舞 阅读(345) 评论(0) 推荐(0) 编辑
摘要:链接:http://codeforces.com/gym/101116 学弟写的,以后再补 阅读全文
posted @ 2016-11-10 00:07 樱花落舞 阅读(291) 评论(0) 推荐(0) 编辑
摘要:链接:http://codeforces.com/gym/101116 题意:给出n个点,要求一个矩形框将(n/2)+1个点框住,要面积最小 解法:先根据x轴选出i->j之间的点,中间的点(包括两边)按照y排序,固定一边X=(xj-xi),Y就枚举点两端的Y坐标,细节是注意要取(n/2)+1个点 事 阅读全文
posted @ 2016-11-10 00:06 樱花落舞 阅读(418) 评论(0) 推荐(0) 编辑
摘要:链接:http://codeforces.com/gym/101116 题意:选六个数,必须出现次数最多,且数字最小,如果出现7优先加入7 解法:排序,出现7优先加入7,最后再将6个数排序 阅读全文
posted @ 2016-11-10 00:00 樱花落舞 阅读(256) 评论(0) 推荐(0) 编辑
摘要:链接:http://codeforces.com/gym/101116 学弟做的,以后再补 阅读全文
posted @ 2016-11-09 23:57 樱花落舞 阅读(316) 评论(0) 推荐(0) 编辑
摘要:Description X is fighting beasts in the forest, in order to have a better chance to survive he's gonna buy upgrades for his weapon. Weapon upgrade sho 阅读全文
posted @ 2016-11-09 23:54 樱花落舞 阅读(321) 评论(0) 推荐(0) 编辑
摘要:Description It is raining again! Youssef really forgot that there is a chance of rain in March, so he didn't fix the roof of his house. Youssef's roof 阅读全文
posted @ 2016-11-09 23:40 樱花落舞 阅读(457) 评论(0) 推荐(0) 编辑
摘要:Description You've possibly heard about 'The Endless River'. However, if not, we are introducing it to you. The Endless River is a river in Cambridge 阅读全文
posted @ 2016-11-08 20:57 樱花落舞 阅读(443) 评论(0) 推荐(0) 编辑
摘要:Description The forces of evil are about to disappear since our hero is now on top on the tower of evil, and all what is left is the most evil, most d 阅读全文
posted @ 2016-11-08 20:39 樱花落舞 阅读(368) 评论(0) 推荐(0) 编辑
摘要:Description Zaid has two words, a of length between 4 and 1000 and b of length 4 exactly. The word a is 'good' if it has a substring which is equal to 阅读全文
posted @ 2016-11-08 19:48 樱花落舞 阅读(427) 评论(0) 推荐(0) 编辑
摘要:Description ACM-SCPC-2017 is approaching every university is trying to do its best in order to be the Champion, there are n universities, the ith of t 阅读全文
posted @ 2016-11-08 18:29 樱花落舞 阅读(400) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示