自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 资源 (6)
  • 收藏
  • 关注

原创 ural 1136. Parliament -搜索二叉树

1136. ParliamentA new parliament is elected in the state of MMMM. Each member of the parliament gets his unique positive integer identification number during the parliament registration. The numbers were given in a random order; gaps in the sequence of num

2016-11-30 21:18:51 412

原创 ural 1106. Two Teams -bfs

1106. Two TeamsThe group of people consists of N members. Every member has one or more friends in the group. You are to write program that divides this group into two teams. Every member of each team must have friends in another team.

2016-11-27 15:57:48 388

原创 ural 2025. Line Fighting -思维题

2025. Line FightingBoxing, karate, sambo… The audience is sick of classic combat sports. That is why a popular sports channel launches a new competition format based on the traditional Russian entertainment called line fighting. There can be from 2 to k t

2016-11-27 13:21:14 787

原创 ural 1982. Electrification Plan -最小生成树

1982. Electrification PlanSome country has n cities. The government has decided to electrify all these cities. At first, power stations in k different cities were built. The other cities should be connected with the power stations via power lines. For any

2016-11-26 18:29:46 388

原创 ural 1009. K-based Numbers - dp

1009. K-based NumbersLet’s consider K-based numbers, containing exactly N digits. We define a number to be valid if its K-based notation doesn’t contain two successive zeros. For example: 1010230 is a valid 7-digit number; 1000198 is not a valid number;

2016-11-24 23:57:10 458

原创 ural 1820. Ural Steaks -思维题

1820. Ural SteaksAfter the personal contest, happy but hungry programmers dropped into the restaurant “Ural Steaks” and ordered n specialty steaks. Each steak is cooked by frying each of its sides on a frying pan for one minute.Unfortunately, the chef has

2016-11-23 21:19:26 576

原创 ural 1100. Final Standings -排序

1100. Final StandingsOld contest software uses bubble sort for generating final standings. But now, there are too many teams and that software works too slow. You are asked to write a program, which generates exactly the same final standings as old softwa

2016-11-23 20:55:44 417

原创 ural 1110 Power

1110. PowerYou are given the whole numbers N, M and Y. Write a program that will find all whole numbers X in the interval [0, M − 1] such that XN mod M = Y.

2016-11-23 20:30:33 274

原创 ural 1005. Stone Pile -01背包-dp

1005. Stone PileYou have a number of stones with known weights w1, …, wn. Write a program that will rearrange the stones into two piles such that weight difference between the piles is minimal.Input contains the number of stones n (1 ≤ n ≤ 20) and weights

2016-11-23 19:54:27 634

原创 ural 1671 Anansi's Cobweb-并查集

ural 1671 Anansi's Cobweb-并查集The first line contains integers N and M — the number of nodes and threads in the cobweb, respectively (2 ≤ N ≤ 100000; 1 ≤ M ≤ 100000) . Each of the next M lines contains two different integers — the 1-based indices of nodes

2016-11-22 00:07:39 568

原创 Codeforces Round #380 B Spotlights -dp

Codeforces Round #380 B Spotlights -dpTheater stage is a rectangular field of size n × m. The director gave you the stage's plan which actors will follow. For each cell it is stated in the plan if there would be an actor in this cell or not.You are to

2016-11-20 23:46:55 413

原创 CodeForces 416 Guess a number!

A TV show called "Guess a number!" is gathering popularity. The whole Berland, the old and the young, are watching the show.The rules are simple. The host thinks of an integer y and the participants guess it by asking questions to the host. There are four

2016-11-20 14:17:52 403

原创 CodeForces 586D Phillip and Trains -dfs

Phillip and TrainsThe mobile application store has a new game called "Subway Roller".The protagonist of the game Philip is located in one end of the tunnel and wants to get out of the other one. The tunnel is a rectangular field consisting of three rows

2016-11-20 14:12:00 381

原创 2016ACM/ICPC亚洲区青岛站 ABC题题解

2016ACM/ICPC亚洲区青岛站 ABC题题解

2016-11-20 13:34:17 1418

原创 poj2431 Expedition 贪心+优先队列

ExpeditionDescriptionA group of cows grabbed a truck and ventured on an expedition deep into the jungle. Being rather poor drivers, the cows unfortunately managed to run over a rock and puncture the truck's fuel tank. The truck now leaks one unit of fuel

2016-11-16 19:59:59 338

原创 【原+转】STL之优先队列的cmp函数和sort以及qsort函数的cmp

sort以及qsort函数的cmp 转自 http://blog.csdn.net/lionel_d/article/details/41746135 写的很好,直接复制粘贴过来了,感谢一、sort 以及 qsort首先,我们来谈谈大名鼎鼎的void qsort(void *base,int nelem,int width,int (*fcmp)(const void *,const void *...

2016-11-14 22:39:07 5493

原创 poj2823 Sliding Window 单调队列

Sliding WindowDescriptionAn array of size n ≤ 106 is given to you. There is a sliding window of sizek which is moving from the very left of the array to the very right. You can only see thek n

2016-11-14 22:28:43 335

原创 poj 2828 Buy Tickets -插队问题-单节点更新-线段树

Buy TicketsRailway tickets were difficult to buy around the Lunar New Year in China, so we must get up early and join a long queue…The Lunar New Year was approaching, but unluckily the Little Cat still had schedules going here and there. Now, he had to t

2016-11-11 19:07:09 587

DOS 7.10 IOS镜像

配套视频http://blog.csdn.net/fengfengdiandia/article/details/7457803,感谢博主的分享,资源也是从他那里下载的,想免费提供给大家但是至少选择1积分

2017-09-14

【免费】计算机网络第六版课后题答案完整版(谢仁希)

本资源为计算机网络第六版课后题答案完整版(谢仁希),下载后为doc文件,资源来源网络,免费分享给大家,但必须至少选择1积分

2017-09-06

人工智能技术导论第二版pdf

本书是人工智能技术导论第二版pdf,是影印版pdf,清晰度较好,免费分享给大家,但是由于至少选择1积分,所以只能选了

2017-09-06

编译原理(清华大学出版社)课后题详解 第二版

本书是清华大学出版社出版的编译原理第二版的课后习题详解,资源源于网络,该书是文字版pdf,极为清晰,免费分享给大家,,但是由于最少必须选1积分,所以只能选上啦

2017-09-06

编译原理第二版(清华大学出版社)

本书是清华大学出版社出版的编译原理第二版,该书是影印版pdf,清晰程度较好,免费分享给大家,,但是由于最少必须选1积分,所以只能选上啦

2017-09-06

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除