- 博客(470)
- 资源 (9)
- 收藏
- 关注
原创 AOJ-169 找零钱(记忆化搜索)
找零钱Time Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBDescription我们知道人民币有1、2、5、10、20、50、100这几种面值。 现在给你n(1≤n≤250)元,让你计算换成用上面这些面额表示且总数不超过100张,共有几种。 比如4元,能用4张1元、2张1
2014-08-20 20:15:35 1082
原创 HDU-3555 Bomb
BombTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Problem DescriptionThe counter-terrorists found a time bomb in the dust. But this time the terrorist
2014-08-20 12:54:13 878
原创 ZOJ-2770 Burn the Linked Camp
Burn the Linked CampTime Limit: 2 Seconds Memory Limit: 65536 KBIt is well known that, in the period of The Three Empires, Liu Bei, the emperor of the Shu Empire, was defeated by Lu Xun,
2014-08-19 19:05:23 1365 2
原创 Round #55 D. Beautiful numbers
D. Beautiful numberstime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVolodya is an odd boy and his taste is
2014-08-19 15:42:53 891
原创 POJ-3252 Round Numbers
Round NumbersTime Limit: 2000MS Memory Limit: 65536K DescriptionThe cows, as you know, have no fingers or thumbs and thus are unable to play Scissors, Paper, St
2014-08-18 23:11:50 851
原创 HDU-3652 B-number
B-numberTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2469 Accepted Submission(s): 1349Problem DescriptionA wqb-number, or
2014-08-18 20:47:25 775
原创 HDU-2089 不要62
不要62Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem Description杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样一
2014-08-18 17:15:38 689
原创 HDU-2152 Fruit
FruitTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem Description转眼到了收获的季节,由于有TT的专业指导,Lele获得了大丰收。特别是水果,Lele一共种了N种水果,有苹果,梨子,香蕉,西瓜……不但味道好吃,样子更是好看。
2014-08-17 22:34:00 789
原创 HDU-2110 Crisis of HDU
Crisis of HDUTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem Description话说上回讲到HDU大战东洋小苟,结果自然是中方大胜,这一战也使得海东集团在全球同行业中的地位更加巩固。随着集团的发展,很多创业时期的元老逐
2014-08-17 21:02:02 858
原创 HDU-2082 找单词
找单词Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem Description假设有x1个字母A, x2个字母B,..... x26个字母Z,同时假设字母A的价值为1,字母B的价值为2,..... 字母Z的价值为26。那么,对于给定的字
2014-08-17 20:18:12 788
原创 HDU-2079 选课时间(题目已修改,注意读题)
选课时间(题目已修改,注意读题)Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem Description又到了选课的时间了,xhd看着选课表发呆,为了想让下一学期好过点,他想知道学n个学分共有多少组合。你来帮帮他吧。(xhd认为一样学分
2014-08-17 18:13:59 810
原创 HDU-1398 Square Coins
Square CoinsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionPeople in Silverland use square coins. Not only they have square shape
2014-08-17 17:10:03 717
原创 HDU-1171 Big Event in HDU
Big Event in HDUTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionNowadays, we all know that Computer College is the biggest depart
2014-08-17 15:53:01 889
原创 hosts
202.38.95.110 mirrors.ustc.edu.cn#Google Services START#Googleapis¡ý61.19.1.54 mt0.googleapis.com61.19.1.54 mt1.googleapis.com61.19.1.54 mt2.googleapis.com61.19.1.54 mt3.googleapis.com61
2014-08-17 14:49:32 2887
原创 Linux mint 17 安装fcitx
aptitude install fcitx fcitx-config-gtk fcitx-frontend-all fcitx-frontend-fbterm fcitx-ui-classic fcitx-ui-light fcitx-module-dbus fcitx-module-x11 fcitx-config-common fcitx-sunpinyin fcitx-googlepiny
2014-08-17 13:21:07 907
原创 HDU-1085 Holding Bin-Laden Captive!
Holding Bin-Laden Captive!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionWe all know that Bin-Laden is a notorious terrorist, and
2014-08-17 09:57:39 946
转载 母函数(Generating function)详解
母函数(Generating function)详解前段时间写了一篇《背包之01背包、完全背包、多重背包详解》,看到支持的人很多,我不是大牛,只是一个和大家一样学习的人,写这些文章的目的只是为了一是希望让大家学的轻松,二是让自己复习起来更方便。(PS:大家觉得我的文章还过的去就帮我支持下我的个人独立博客---Tanky Woo的程序人生:http://www.wutianqi.co
2014-08-16 20:14:20 963
转载 母函数详解和史上最通用最高效的母函数模板
版权所有。所有权利保留。欢迎转载,转载时请注明出处:http://blog.csdn.net/xiaofei_it/article/details/17042651母函数,又称生成函数,是ACM竞赛中经常使用的一种解题算法,常用来解决组合方面的题目。本文讲解母函数,但不讲解该算法的基础理论。读者随便找一本组合数学教材便可找到相应的内容,或者直接在网上搜索一下。母函数
2014-08-16 18:18:59 894
原创 Dijkstra + Heap优化模板
const int N = 105;bool done[N];struct Edge { int to, w; int next;}edge[N];struct Heap { int d, u; bool operator < (const Heap &tmp) const { return d > tmp.d; }//重载'<',维护最小堆};void Dijkstr
2014-08-16 16:49:11 1050 1
原创 ZOJ-1857(POJ-2607) Fire Station
Fire StationTime Limit: 2 Seconds Memory Limit: 65536 KBA city is served by a number of fire stations. Some residents have complained that the distance from their houses to the nearest st
2014-08-16 16:35:15 1120
原创 POJ-1603 Risk
RiskTime Limit: 1000MS Memory Limit: 10000K DescriptionRisk is a board game in which several opposing players attempt to conquer the world. The gameboard consis
2014-08-16 11:30:44 876
原创 POJ-1125 Stockbroker Grapevine
Stockbroker GrapevineTime Limit: 1000MS Memory Limit: 10000K DescriptionStockbrokers are known to overreact to rumours. You have been contracted to develop a me
2014-08-16 11:28:22 736
原创 POJ-2472 106 miles to Chicago
106 miles to ChicagoTime Limit: 2000MS Memory Limit: 65M Special JudgeDescriptionIn the movie "Blues Brothers", the orphanage where Elwood and Jack were ra
2014-08-16 00:04:24 978
原创 ZOJ-2027 Travelling Fee
Travelling FeeTime Limit: 2 Seconds Memory Limit: 65536 KBSamball is going to travel in the coming vacation. Now it's time to make a plan. After choosing the destination city, the next st
2014-08-15 22:31:11 1144
原创 POJ-2253 Frogger
FroggerTime Limit: 1000MS Memory Limit: 65536K DescriptionFreddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitti
2014-08-15 17:10:09 786
原创 POJ-2263 Heavy Cargo
Heavy CargoTime Limit: 1000MS Memory Limit: 65536K DescriptionBig Johnsson Trucks Inc. is a company specialized in manufacturing big trucks. Their latest model,
2014-08-15 16:06:35 1031
原创 POJ-2570 Fiber Network
Fiber NetworkTime Limit: 1000MS Memory Limit: 65536K DescriptionSeveral startup companies have decided to build a better Internet, called the "FiberNet". They h
2014-08-15 15:39:00 761
原创 ZOJ-3088 Easter Holidays
Easter HolidaysTime Limit: 1 Second Memory Limit: 32768 KB Special JudgeScandinavians often make vacation during the Easter holidays in the largest ski resort Are. Are provides fanta
2014-08-15 15:11:59 961
原创 Github 上传代码
修改/etc/ssh/sshd-config文件,将其中的PermitRootLogin no修改为yes,PubkeyAuthentication yes修改为no,AuthorizedKeysFile .ssh/authorized_keys前面加上#屏蔽掉,PasswordAuthentication no修改为yes就可以了。
2014-08-15 09:45:26 649
原创 openSUSE支持TAB自动补全方法
安装配置bash-completiondongwm@linux-b8lh:~> sudo zypper in bash-completiondongwm@linux-b8lh:~> . /etc/bash_completion然后就OK了,方便了很多每次登录支持:在/etc/bash.bashrc文件加入if [ -f /etc/bash_c
2014-08-14 18:08:21 1087
原创 POJ-1860 Currency Exchange
Currency ExchangeTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 20025 Accepted: 7175DescriptionSeveral currency exchange points are working in our city.
2014-08-14 00:31:30 891
原创 POJ-3259 Wormholes
WormholesTime Limit: 2000MS Memory Limit: 65536KDescriptionWhile exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very pecu
2014-08-13 22:31:34 702
原创 POJ-3268 Silver Cow Party
Silver Cow PartyTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 12731 Accepted: 5684DescriptionOne cow from each of N farms (1 ≤ N ≤ 1000) conveniently
2014-08-13 20:54:55 883
原创 ZOJ-1232 Adventure of Super Mario
Adventure of Super MarioTime Limit: 2 Seconds Memory Limit: 65536 KB After rescuing the beautiful princess, Super Mario needs to find a way home -- with the princess of course :-) He's
2014-08-13 19:28:49 932
原创 POJ-1613 Cave Raider
Cave RaiderTime Limit: 1000MS Memory Limit: 10000KDescriptionAfkiyia is a big mountain. Inside the mountain, there are many caves. These caves are connected by tunnels. Hidde
2014-08-13 16:32:47 978
原创 HDU-1385 Minimum Transport Cost
Minimum Transport CostTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionThese are N cities in Spring country. Between each pair of citie
2014-08-13 00:32:25 919
原创 Floyd模板
/*ID: j.sure.1PROG:LANG: C++*//****************************************/#include #include #include #include #include #include #include #include #include #include #include #include #d
2014-08-12 22:08:24 761
原创 POJ-2240 Arbitrage
ArbitrageTime Limit: 1000MS Memory Limit: 65536KDescriptionArbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than
2014-08-12 14:21:39 1050
原创 Bellman-Ford模板
/*ID: j.sure.1PROG:LANG: C++*//****************************************/#include #include #include #include #include #include #include #include #include #include #include #define INF
2014-08-12 10:29:16 903
原创 POJ-1511 Invitation Cards
Invitation CardsTime Limit: 8000MS Memory Limit: 262144KDescriptionIn the age of television, not many people attend theater performances. Antique Comedians of Malidinesia are
2014-08-12 02:08:56 1017
Code::Blocks13.12 汉化+多方案主题(代码高亮)+智能缩进
2014-04-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人