上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页

2013年9月19日

古老的四种图存储方式

摘要: #include #include #include #include #include using namespace std;int graph[100][100];int n,m;int x,y,w;int main(){ scanf("%d%d",&n,&m); for(int i = 1;i %d have %d longth\n",i,j,graph[i][j]);#include #include #include #include #include #include using namespace std;struct Node{ 阅读全文

posted @ 2013-09-19 19:56 天使是一个善良的神 阅读(315) 评论(1) 推荐(0) 编辑

2013年9月18日

HDU 2046 骨牌铺方格

摘要: 骨牌铺方格Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 22744Accepted Submission(s): 10992Problem Description在2×n的一个长方形方格中,用一个1× 2的骨牌铺满方格,输入n ,输出铺放方案的总数.例如n=3时,为2× 3方格,骨牌的铺放方案有三种,如下图:Input输入数据由多行组成,每行包含一个整数n,表示该测试实例的长方形方格的规格是2×n (0 阅读全文

posted @ 2013-09-18 21:02 天使是一个善良的神 阅读(209) 评论(1) 推荐(0) 编辑

HDU 2209 翻纸牌游戏

摘要: 翻纸牌游戏Time Limit : 9000/3000ms (Java/Other)Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 5Accepted Submission(s) : 1Font: Times New Roman | Verdana | GeorgiaFont Size: ← →Problem Description有一种纸牌游戏,很有意思,给你N张纸牌,一字排开,纸牌有正反两面,开始的纸牌可能是一种乱的状态(有些朝正,有些朝反),现在你需要整理这些纸牌。但 是麻烦的是,每当你翻一张纸牌(由正翻到反,或 阅读全文

posted @ 2013-09-18 20:22 天使是一个善良的神 阅读(239) 评论(0) 推荐(0) 编辑

2013年9月17日

HDU 2602 Bone Collector

摘要: Bone CollectorTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 22357Accepted Submission(s): 9071Problem DescriptionMany years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such 阅读全文

posted @ 2013-09-17 20:11 天使是一个善良的神 阅读(145) 评论(0) 推荐(0) 编辑

2013年9月16日

HDU 2546 饭卡

摘要: 饭卡Time Limit: 5000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7688Accepted Submission(s): 2630Problem Description电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一定可以购买成功(即使购买后卡上余额为负),否则无法购买(即使金额足够)。所以大家都希望尽量使卡上的余额最少。某天,食堂中有n种菜出售,每种菜可购买一次。已知每种菜的价格以及卡 阅读全文

posted @ 2013-09-16 20:18 天使是一个善良的神 阅读(193) 评论(0) 推荐(0) 编辑

2013年9月15日

HDU 1035 Robot Motion

摘要: Robot MotionTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5274Accepted Submission(s): 2454Problem DescriptionA robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid dow 阅读全文

posted @ 2013-09-15 21:10 天使是一个善良的神 阅读(197) 评论(1) 推荐(0) 编辑

2013年9月14日

HDU 4730 We Love MOE Girls

摘要: We Love MOE GirlsTime Limit: 1000/500 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 68Accepted Submission(s): 55Problem DescriptionChikami Nanako is a girl living in many different parallel worlds. In this problem we talk about one of them.In this world, Nanako has a 阅读全文

posted @ 2013-09-14 18:52 天使是一个善良的神 阅读(301) 评论(0) 推荐(0) 编辑

HDU 1878 欧拉回路

摘要: 欧拉回路Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8309Accepted Submission(s): 2980Problem Description欧拉回路是指不令笔离开纸面,可画过图中每条边仅一次,且可以回到起点的一条回路。现给定一个图,问是否存在欧拉回路?Input测试输入包含若干测试用例。每个测试用例的第1行给出两个正整数,分别是节点数N ( 1 #include #include #include #include #incl 阅读全文

posted @ 2013-09-14 01:07 天使是一个善良的神 阅读(151) 评论(0) 推荐(0) 编辑

HDU 1072 Nightmare

摘要: NightmareTime Limit : 2000/1000ms (Java/Other)Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 3Accepted Submission(s) : 1Font: Times New Roman | Verdana | GeorgiaFont Size: ← →Problem Description Ignatius had a nightmare last night. He found himself in a labyrinth with a time bomb on h 阅读全文

posted @ 2013-09-14 00:32 天使是一个善良的神 阅读(256) 评论(0) 推荐(0) 编辑

2013年9月13日

HDU 2049 不容易系列之(4)——考新郎

摘要: 不容易系列之(4)——考新郎Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 17250Accepted Submission(s): 6462Problem Description国庆期间,省城HZ刚刚举行了一场盛大的集体婚礼,为了使婚礼进行的丰富一些,司仪临时想出了有一个有意思的节目,叫做"考新郎",具体的操作是这样的:首先,给每位新娘打扮得几乎一模一样,并盖上大大的红盖头随机坐成一排;然后,让各位新郎寻找自己的新娘.每人 阅读全文

posted @ 2013-09-13 20:59 天使是一个善良的神 阅读(135) 评论(0) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页

导航