11 2014 档案

摘要:http://acm.hdu.edu.cn/showproblem.php?pid=254 0-1背包问题 代码: #include<stdio.h> #include<string.h> #include<algorithm> using namespace std; int cmp(int a, 阅读全文
posted @ 2014-11-29 21:55 wojiaohuangyu 阅读(4) 评论(0) 推荐(0) 编辑
摘要:正好我现在在玩数独这个游戏,看到这个问题我就来了兴趣,完成着这个问题,妈妈再也不用担心我玩数独游戏啦~~ 题目链接: http://acm.nyist.net/JudgeOnline/problem.php?pid=722 #include<stdio.h> int map[9][9]; int f 阅读全文
posted @ 2014-11-29 21:27 wojiaohuangyu 阅读(3) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1010 做这道题目的时候需要注意剪枝,如果没有剪枝的话,就会超时 注意奇偶剪枝 代码:】 #include<stdio.h> #include<string.h> #include<stdlib.h> c 阅读全文
posted @ 2014-11-29 11:00 wojiaohuangyu 阅读(2) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=58 比较简单的搜索题目, 代码: #include<stdio.h> #include<string.h> int map[9][9]={{1,1,1,1,1,1,1,1,1},{1,0,0 阅读全文
posted @ 2014-11-29 10:51 wojiaohuangyu 阅读(3) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2152 母函数: 代码: #include<stdio.h> #include<string.h> int main(){ int c1[120],c2[120],min[120],max[120]; i 阅读全文
posted @ 2014-11-26 22:37 wojiaohuangyu 阅读(7) 评论(0) 推荐(0) 编辑
摘要:简单的背包题 ;好无奈,我又没做出来在考试的时候 代码: #include<stdio.h> #include<string.h> #include<algorithm> using namespace std; double dp[60],money[60]; double total; int 阅读全文
posted @ 2014-11-26 13:18 wojiaohuangyu 阅读(4) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1241 简单的深搜,但是我花了两个小时都没没有做出来,说出来都是泪啊 代码: #include<stdio.h> #include<string.h> #include<algorithm> using 阅读全文
posted @ 2014-11-25 11:39 wojiaohuangyu 阅读(4) 评论(0) 推荐(0) 编辑
摘要:Problem Description Once upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major problem. The shores of Rellau Creek in central 阅读全文
posted @ 2014-11-22 21:39 wojiaohuangyu 阅读(10) 评论(0) 推荐(0) 编辑
摘要:Problem Description A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of nu 阅读全文
posted @ 2014-11-22 10:41 wojiaohuangyu 阅读(2) 评论(0) 推荐(0) 编辑
摘要:Problem Description Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7 阅读全文
posted @ 2014-11-21 21:05 wojiaohuangyu 阅读(7) 评论(0) 推荐(0) 编辑
摘要:描述 Tom has fallen in love with Mary. Now Tom wants to show his love and write a number on the fence opposite to Mary’s house. Tom thinks that the larg 阅读全文
posted @ 2014-11-20 15:48 wojiaohuangyu 阅读(4) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=220 贪心算法 主要是除以二的那一点不好想,就是两排房子并行的 http://acm.nyist.net/JudgeOnline/problem.php?pid=220 #include<s 阅读全文
posted @ 2014-11-20 13:57 wojiaohuangyu 阅读(2) 评论(0) 推荐(0) 编辑
摘要:描述 Here is a famous story in Chinese history. "That was about 2300 years ago. General Tian Ji was a high official in the country Qi. He likes to play 阅读全文
posted @ 2014-11-18 22:29 wojiaohuangyu 阅读(10) 评论(0) 推荐(0) 编辑
摘要:描述 Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the s 阅读全文
posted @ 2014-11-17 21:47 wojiaohuangyu 阅读(6) 评论(0) 推荐(0) 编辑
摘要:Problem Description 在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗? Input 输入包括多组数据。每组数据第一行是两个 阅读全文
posted @ 2014-11-17 14:12 wojiaohuangyu 阅读(3) 评论(0) 推荐(0) 编辑
摘要:Problem Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black til 阅读全文
posted @ 2014-11-16 16:13 wojiaohuangyu 阅读(4) 评论(0) 推荐(0) 编辑
摘要:Problem Description C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的 阅读全文
posted @ 2014-11-14 23:50 wojiaohuangyu 阅读(7) 评论(0) 推荐(0) 编辑
摘要:Problem Description A snail is at the bottom of a 6-foot well and wants to climb to the top. The snail can climb 3 feet while the sun is up, but slide 阅读全文
posted @ 2014-11-13 12:21 wojiaohuangyu 阅读(8) 评论(0) 推荐(0) 编辑
摘要:Problem Description Given a positive integer N, your task is to calculate the sum of the positive integers less than N which are not coprime to N. A i 阅读全文
posted @ 2014-11-12 22:22 wojiaohuangyu 阅读(2) 评论(0) 推荐(0) 编辑
摘要:Problem Description "Well, it seems the first problem is too easy. I will let you know how foolish you are later." feng5166 says. "The second problem 阅读全文
posted @ 2014-11-10 20:50 wojiaohuangyu 阅读(4) 评论(0) 推荐(0) 编辑
摘要:Problem Description Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , s 阅读全文
posted @ 2014-11-09 22:45 wojiaohuangyu 阅读(2) 评论(0) 推荐(0) 编辑
摘要:文章转载自: http://www.nowamagic.net/librarys/veda/detail/438 背包问题是在1978年由Merkel和Hellman提出的。它的主要思路是假定某人拥有大量物品,重量各不同。此人通过秘密地选择一部分物品并将它们放 到背包中来加密消息。背包中的物品中重量 阅读全文
posted @ 2014-11-09 22:33 wojiaohuangyu 阅读(9) 评论(0) 推荐(0) 编辑
摘要:Problem Description Given a positive integer N, you should output the leftmost digit of N^N. Input The input contains several test cases. The first li 阅读全文
posted @ 2014-11-08 23:35 wojiaohuangyu 阅读(3) 评论(0) 推荐(0) 编辑
摘要:ACM 训练大纲 Changsha University of Science & Technology July 31, 2012 1 推荐题库 • http://ace.delos.com/usaco/ 美国的OI 题库,如果是刚入门的新手,可以尝试先把它刷通,能够学到几乎全部的基础算法极其优化 阅读全文
posted @ 2014-11-08 22:51 wojiaohuangyu 阅读(9) 评论(0) 推荐(0) 编辑
摘要:Problem Description Give you two numbers A and B, if A is equal to B, you should print "YES", or print "NO". Input 这道题目,刚开始做的时候我只考虑开头的时候有+这种情况,想错了,这道题 阅读全文
posted @ 2014-11-08 22:29 wojiaohuangyu 阅读(10) 评论(0) 推荐(0) 编辑
摘要:Problem Description 读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。 Input 测试输入包含若干测试用例,每个测试用例占一行,每行不超过200个字符,整数和运算符之间用一个空格分隔。没有非法表达式。当一行中只有0时输入结束,相应的结果不要输出。 O 阅读全文
posted @ 2014-11-07 21:42 wojiaohuangyu 阅读(3) 评论(0) 推荐(0) 编辑
摘要:Problem Description XX星有许多城市,城市之间通过一种奇怪的高速公路SARS(Super Air Roam Structure 超级空中漫游结构)进行交流,每条SARS都对行驶在上面的Flycar限制了固定的Speed,同时XX星人对 Flycar的“舒适度”有特殊要求,即乘坐过 阅读全文
posted @ 2014-11-07 20:32 wojiaohuangyu 阅读(5) 评论(0) 推荐(0) 编辑
摘要:Problem Description Here is a game for two players. The rule of the game is described below: ● In the beginning of the game, there are a lot of piles 阅读全文
posted @ 2014-11-05 21:59 wojiaohuangyu 阅读(5) 评论(0) 推荐(0) 编辑
摘要:Square Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 8922 Accepted Submission(s): 2903 Proble 阅读全文
posted @ 2014-11-05 19:50 wojiaohuangyu 阅读(4) 评论(0) 推荐(0) 编辑
摘要:NEW~ 关于举办计算机学院大学生程序设计竞赛(2014'11)的报名通知 最少拦截系统 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 194 阅读全文
posted @ 2014-11-04 15:52 wojiaohuangyu 阅读(4) 评论(0) 推荐(0) 编辑
摘要:Revenge of Fibonacci Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 703 Accepted Submission(s): 阅读全文
posted @ 2014-11-03 21:04 wojiaohuangyu 阅读(3) 评论(0) 推荐(0) 编辑
摘要:找点 时间限制: 2000 ms | 内存限制: 65535 KB 难度: 2 描述 上数学课时,老师给了LYH一些闭区间,让他取尽量少的点,使得每个闭区间内至少有一个点。但是这几天LYH太忙了,你们帮帮他吗? 输入 多组测试数据。 每组数据先输入一个N,表示有N个闭区间(N≤100)。 接下来N行 阅读全文
posted @ 2014-11-02 08:59 wojiaohuangyu 阅读(4) 评论(0) 推荐(0) 编辑
摘要:<span style="font-family: 微软雅黑, 黑体; background-color: rgb(255, 255, 255);">+-字符串</span> 时间限制: 1000 ms | 内存限制: 65535 KB 难度: 1 描述 Shiva得到了两个只有加号和减号的字符串, 阅读全文
posted @ 2014-11-01 21:26 wojiaohuangyu 阅读(3) 评论(0) 推荐(0) 编辑
摘要:过河问题 时间限制: 1000 ms | 内存限制: 65535 KB 难度: 5 描述 在漆黑的夜里,N位旅行者来到了一座狭窄而且没有护栏的桥边。如果不借助手电筒的话,大家是无论如何也不敢过桥去的。不幸的是,N个人一共只带了一只手电筒,而桥窄得只够让两个人同时过。如果各自单独过桥的话,N人所需要的 阅读全文
posted @ 2014-11-01 18:49 wojiaohuangyu 阅读(5) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示