2015年8月28日

POJ-1251-Jungle Roads

摘要: A - Jungle Roads Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionThe Head Elder of the tropical island of ... 阅读全文

posted @ 2015-08-28 15:29 甜蜜蜜吖甜蜜蜜 阅读(139) 评论(0) 推荐(0) 编辑

Prim算法模板

摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 const int N=1001; 6 const int inf=1<<29; 7 int w[N][N]; 8 int dis[N],flag[N]; 9 int n,m,... 阅读全文

posted @ 2015-08-28 11:12 甜蜜蜜吖甜蜜蜜 阅读(164) 评论(0) 推荐(0) 编辑

2015年8月25日

敌兵布阵-线段树(1)

摘要: A - 敌兵布阵 Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了... 阅读全文

posted @ 2015-08-25 16:55 甜蜜蜜吖甜蜜蜜 阅读(138) 评论(0) 推荐(0) 编辑

2015年8月24日

hdu-1541-Stars (树状数组)

摘要: Problem DescriptionAstronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let t... 阅读全文

posted @ 2015-08-24 10:02 甜蜜蜜吖甜蜜蜜 阅读(111) 评论(0) 推荐(0) 编辑

2015年8月23日

母牛生小牛

摘要: 1149: 母牛生小牛Time Limit: 1 SecMemory Limit: 128 MBDescription设有一头小母牛,从出生第四年起每年生一头小母牛,按此规律,第N年时有几头母牛?Input输入一个整数N。(1≤N≤50)Output第N年时母牛的数量Sample Input5Sam... 阅读全文

posted @ 2015-08-23 19:12 甜蜜蜜吖甜蜜蜜 阅读(255) 评论(0) 推荐(0) 编辑

2015年8月20日

uva 12086 - Potentiometers

摘要: A potentiometer, or potmeter for short, is anelectronic device with a variable electric resistance. It has two terminals andsome kind of control mecha... 阅读全文

posted @ 2015-08-20 20:41 甜蜜蜜吖甜蜜蜜 阅读(260) 评论(0) 推荐(0) 编辑

2015年8月19日

敲七

摘要: 1135: 敲七Time Limit: 1 SecMemory Limit: 128 MBDescription输出7和7的倍数,还有包含7的数字例如(17,27,37...70,71,72,73...)Input一个整数N。(N不大于30000) Output统计出不大于N的与7有关的数字的个数。... 阅读全文

posted @ 2015-08-19 19:46 甜蜜蜜吖甜蜜蜜 阅读(516) 评论(0) 推荐(0) 编辑

穿越明朝之富豪杨

摘要: Problem D: 穿越明朝之富豪杨Time Limit: 1 SecMemory Limit: 128 MBDescription 一个月黑风高阴森恐怖的晚上,富豪杨像往常一样在皇家公共厕所,唱着他最拿手的生日快乐,唱到高音,他穿越到了明朝的紫禁城,转角遇到了朱元璋,两人一见如故,明太祖想册封他... 阅读全文

posted @ 2015-08-19 17:21 甜蜜蜜吖甜蜜蜜 阅读(282) 评论(0) 推荐(0) 编辑

杨二哥扛把子

摘要: Problem A: 杨二哥扛把子Time Limit: 1 SecMemory Limit: 128 MBDescription在孙悟空出世之前,杨二哥一直是三界的扛把子,身为扛把子,没件像样的武器怎么行。于是二哥去东海龙王那给自己和小弟找武器。都说土豪靠装备,屌丝靠变异,杨二哥手里有这么一个运输... 阅读全文

posted @ 2015-08-19 17:19 甜蜜蜜吖甜蜜蜜 阅读(197) 评论(0) 推荐(0) 编辑

2015年8月18日

数列排序

摘要: 1131: 数列排序Time Limit: 1 SecMemory Limit: 128 MBSubmit: 316Solved: 100[Submit][Status][BBS]Description将一正整数序列{K1,K2,...,K9}重新排列成一个新的序列。新序列中,比K1小的数都在K1的... 阅读全文

posted @ 2015-08-18 16:29 甜蜜蜜吖甜蜜蜜 阅读(278) 评论(0) 推荐(0) 编辑

导航