
CodeForces
文章平均质量分 87
于心有愧丶
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【codeforces 748A】Santa Claus and a Place in a Class
H - Santa Claus and a Place in a Class 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 classroo原创 2017-01-17 18:09:38 · 392 阅读 · 0 评论 -
【CodeForces - 821B Okabe and Banana Trees】 思维
C - Okabe and Banana Trees Okabe needs bananas for one of his experiments for some strange reason. So he decides to go to the forest and cut banana trees.Consider the point (x, y) in原创 2017-08-14 15:10:18 · 405 阅读 · 0 评论 -
【CodeForces - 766C Mahmoud and a Message】 DP
C - Mahmoud and a Message Mahmoud wrote a message s of length n. He wants to send it as a birthday present to his friend Moaz who likes strings. He wrote it on a magical paper but he w原创 2017-08-22 11:02:43 · 290 阅读 · 0 评论 -
【CodeForces - 758C Unfair Poll】 暴力 + 模拟
D - Unfair PollOn the Literature lesson Sergei noticed an awful injustice, it seems that some students are asked more often than others.Seating in the class looks like a rectangle, where n原创 2017-08-25 11:41:58 · 362 阅读 · 0 评论 -
【CodeForces - 837D Round Subset】 DP
D - Round SubsetLet's call the roundness of the number the number of zeros to which it ends.You have an array of n numbers. You need to choose a subset of exactly k numbers so that the rou原创 2017-08-22 19:34:54 · 307 阅读 · 0 评论 -
【CodeForces 630K】-Indivisibility 容斥原理
B - Indivisibility IT City company developing computer games decided to upgrade its way to reward its employees. Now it looks the following way. After a new game release users st原创 2017-01-17 11:10:53 · 374 阅读 · 0 评论 -
【CodeForces - 777E Hanoi Factory】 贪心+栈
E - Hanoi FactoryOf course you have heard the famous task about Hanoi Towers, but did you know that there is a special factory producing the rings for this wonderful game? Once upon a time,原创 2017-08-01 22:10:24 · 394 阅读 · 0 评论 -
【CodeForces - 754D Fedor and coupons】 贪心+优先队列
C - Fedor and couponsAll our characters have hobbies. The same is true for Fedor. He enjoys shopping in the neighboring supermarket.The goods in the supermarket have unique integer ids. Al原创 2017-08-25 11:26:59 · 348 阅读 · 0 评论 -
【CodeForces - 839C Journey】 DFS
C. Journeytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n cities and n - 1 roads in the Seve原创 2017-08-16 10:41:58 · 344 阅读 · 0 评论 -
【CodeForces - 821C Okabe and Boxes】 思维+模拟
D - Okabe and BoxesOkabe and Super Hacker Daru are stacking and removing boxes. There are n boxes numbered from 1 to n. Initially there are no boxes on the stack.Okabe, being a control fre原创 2017-08-14 15:28:54 · 416 阅读 · 0 评论 -
【CodeForces - 808B Average Sleep Time】 思维
D - Average Sleep Time It's been almost a week since Polycarp couldn't get rid of insomnia. And as you may already know, one week in Berland lasts k days!When Polycarp went to a doct原创 2017-08-16 10:22:43 · 257 阅读 · 0 评论 -
【CodeForces - 825B Five-In-a-Row】 模拟
B. Five-In-a-Rowtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlice and Bob play 5-in-a-row game. They ha原创 2017-08-17 14:28:10 · 257 阅读 · 0 评论 -
【Codeforces 599A】Patrick and Shopping 最短路程
C - Patrick and Shopping Today Patrick waits for a visit from his friend Spongebob. To prepare for the visit, Patrick needs to buy some goodies in two stores located near his原创 2017-01-17 11:42:45 · 379 阅读 · 0 评论 -
【CodeForces 606A】Magic Spheres
A - Magic Spheres Carl is a beginner magician. He has a blue,b violet and c orange magic spheres. In one move he can transform two spheresof the same color into one sph原创 2017-01-17 10:50:23 · 329 阅读 · 0 评论 -
【CodeForces 748B 】Santa Claus and Keyboard Check
A - Santa Claus and Keyboard CheckSanta Claus decided to disassemble his keyboard to clean it. After he returned all the keys back, he suddenly realized that some pairs of keys took each oth原创 2017-03-05 10:08:50 · 420 阅读 · 0 评论 -
【CodeForces - 808C Tea Party】 贪心
E - Tea Party Polycarp invited all his friends to the tea party to celebrate the holiday. He has ncups, one for each of his n friends, with volumes a1, a2, ..., an. His teapot stores原创 2017-08-16 09:50:07 · 469 阅读 · 0 评论 -
【CodeForces - 821D Okabe and City】 最短路spfa
E - Okabe and City Okabe likes to be able to walk through his city on a path lit by street lamps. That way, he doesn't get beaten up by schoolchildren.Okabe's city is represented by原创 2017-08-14 16:20:09 · 568 阅读 · 0 评论 -
【CodeForces - 831C Jury Marks】 暴力
C. Jury Markstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp watched TV-show where k jury members原创 2017-08-18 13:30:06 · 283 阅读 · 0 评论 -
【CodeForces - 798C Mike and gcd problem】 思维+贪心
E - Mike and gcd problem Mike has a sequence A = [a1, a2, ..., an] of length n. He considers the sequence B = [b1, b2, ..., bn] beautiful if the gcd of all its elements is bigger t原创 2017-08-17 10:14:25 · 313 阅读 · 0 评论 -
【CodeForces - 839B Game of the Rows】 贪心
B. Game of the Rowstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDaenerys Targaryen has an army consistin原创 2017-08-16 13:52:57 · 340 阅读 · 0 评论 -
【CodeForces - 687A NP-Hard Problem】 二分图染色
I - NP-Hard ProblemRecently, Pari and Arya did some research about NP-Hard problems and they found theminimum vertex cover problem very interesting.Suppose the graph G is given. Subset A o原创 2017-07-25 15:45:31 · 350 阅读 · 0 评论