- 博客(25)
- 收藏
- 关注
原创 HDU---1466-计算直线的交点数(DP)
计算直线的交点数 Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 8 Accepted Submission(s) : 2Font: Times New Roman | Verdana | Georgia Font Size
2015-05-31 21:31:48 472
原创 HDU---1024-Max Sum Plus Plus(DP)
Max Sum Plus PlusTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 19575 Accepted Submission(s): 6457Problem DescriptionNow I think
2015-05-30 22:11:49 410
原创 HDU---1023-Train Problem II (Catalan数)
Train Problem IITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6643 Accepted Submission(s): 3598Problem DescriptionAs we all kno
2015-05-26 13:39:52 432
原创 (组合数学)Stirling 数
第一类Stirling数 s(p,k) s(p,k)的一个的组合学解释是:将p个物体排成k个非空循环排列的方法数。 s(p,k)的递推公式: s(p,k)=(p-1)*s(p-1,k)+s(p-1,k-1) ,1边界条件:s(p,0)=0 ,p>=1 s(p,p)=1 ,p>=0递推关系的说明:考虑第p个物品,p可以单独构成一个非空循环排列,这样前p-
2015-05-25 13:05:42 690
原创 HDU---2082-找单词(母函数)
找单词Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4832 Accepted Submission(s): 3444Problem Description假设有x1个字母A, x2个字母B,..... x2
2015-05-24 16:45:35 462
原创 HDU---2035-人见人爱A^B (快速幂)
人见人爱A^B Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 13 Accepted Submission(s) : 8Font: Times New Roman | Verdana | GeorgiaFont Siz
2015-05-23 17:02:27 372
原创 HDU---1030-Delta-wave (简单数学)
Delta-wave Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 3 Accepted Submission(s) : 2Font: Times New Roman | Verdana | GeorgiaFont S
2015-05-23 15:43:17 584
原创 2015-第10周项目2-职员有薪水了
【项目2 - 职员有薪水了】(1)定义一个名为CPerson的类,有以下私有成员:姓名、身份证号、性别和年龄,成员函数:构造函数、析构函数、输出信息的函数。并在此基础上派生出CEmployee类,派生类CEmployee增加了两个新的数据成员,分别用于表示部门和薪水。要求派生类CEmployee的构造函数显示调用基类CPerson的构造函数,并为派生类CEmployee定义析构函数,定义输出信
2015-05-20 09:10:53 579 1
原创 2015-第10周项目1-项目1 - 存储班长信息的学生类
【项目1 - 存储班长信息的学生类】 (1)请完成类中成员函数的定义。(2)将Stu类的数据成员的访问权限改为private,你的程序是否能完成要求的功能?如果不行,请修改程序。请不要修改给出的代码,只能修改自己写的代码。 #include #include using namespace std;class Stu //声明基类{public:
2015-05-20 08:40:24 353
原创 山东省ACM竞赛(2015)---H - Square Number
Square NumberTime Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^题目描述In mathematics, a square number is an integer that is the square of an integer. In other words, it is the product of
2015-05-17 16:26:51 1455
原创 山东省ACM竞赛(2015)---B - Lowest Unique Price
Lowest Unique PriceTime Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^题目描述Recently my buddies and I came across an idea! We want to build a website to sell things in a new way.For ea
2015-05-17 16:23:03 674
原创 HDU---1233-畅通工程(最小生成树prim)
还是畅通工程Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 30189 Accepted Submission(s): 13487Problem Description某省调查乡村交通状况,得到的统计表中列出了
2015-05-16 22:41:36 396
原创 山东ACM省赛酱油记
ACM省赛酱油记 比赛结束许久了,但一直没能静下心写点感想。直到昨天,集训队的所有队员集聚一堂,包括已经考上研的集训队第一批学长学姐,一起谈了谈多年的ACM经历、感受与收获,感触良多,又在今天看到了学长的总结,觉得我也应该打开word大干一番了。
2015-05-16 14:52:24 1590 2
原创 模板整理---大数模板
#include#include#include#include#include#includeusing namespace std; #define MAXN 9999#define MAXSIZE 1000#define DLEN 4 class BigNum{private: int a[MAXSIZE]; //可以控制大数的位数 int
2015-05-16 11:15:37 550 1
原创 2015-第9周项目1-复数类中的运算符重载(续)
【项目1-复数类中的运算符重载(续)】在复数类中的运算符重载基础上(1)再定义一目运算符 -,-c相当于0-c。(2)定义Complex类中的>运算符的重载,实现输入和输出,改造原程序中对运算结果显示方式,使程序读起来更自然。#include using namespace std;class Complex{public: Complex() {
2015-05-15 21:40:22 328
原创 POJ---3278-Catch That Cow(BFS/deque)
Catch That CowTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 40350 Accepted: 12560DescriptionFarmer John has been informed of the location of a fug
2015-05-08 21:51:36 364
原创 YTU ---1914- 找零钱(DP)
1914: 找零钱Time Limit: 1 Sec Memory Limit: 64 MBSubmit: 17 Solved: 6[Submit][Status][Web Board]Description我们知道人民币有1、2、5、10、20、50、100这几种面值。 现在给你 n(1≤n≤250)元,让你计算换成用上面这些面额表示且总数不超过100张,共有几种。
2015-05-07 16:57:46 1100
原创 四川省ACM竞赛(2013)---E - Naive and Silly Muggles
E - Naive and Silly MugglesTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionThree wizards are doing a experiment. To avoid from bothering,
2015-05-07 16:11:04 659
原创 四川省ACM竞赛(2013)---K - Kia's Calculation
K - Kia's CalculationTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionDoctor Ghee is teaching Kia how to calculate the sum of two integers
2015-05-07 16:09:04 787
原创 四川省ACM竞赛(2013)---G-Good Numbers(规律/可DP)
G - Good NumbersTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 4722DescriptionIf we sum up every digit of a number and the result c
2015-05-07 16:04:33 1315
原创 浙江省ACM竞赛(2013)---H - Hard to Play
H - Hard to PlayTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit Status Practice ZOJ 3712DescriptionMightyHorse is playing a music game called osu!.
2015-05-06 20:12:31 467
原创 浙江省ACM竞赛(2013)---F.Friends
F - FriendsTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit Status Practice ZOJ 3710DescriptionAlice lives in the country where people like to make
2015-05-06 20:07:49 558
原创 浙江省ACM竞赛(2013)---B - Break Standard Weight(DFS)
B - Break Standard WeightTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit Status Practice ZOJ 3706DescriptionThe balance was the first mass measurin
2015-05-06 19:50:47 557
原创 山东省ACM竞赛(2013)---Alice and Bob(二进制)
Problem F:Alice and BobTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 48 Solved: 18[Submit][Status][Discuss]DescriptionAlice and Bob like playing games very much.Today, they introduce a new
2015-05-05 14:32:43 495
原创 福州大学第十二届程序设计竞赛 B.完美的数字(2191)
Problem 2191 完美的数字 Accept: 46 Submit: 139Time Limit: 1000 mSec Memory Limit : 32768 KB Problem DescriptionBob是个很喜欢数字的孩子,现在他正在研究一个与数字相关的题目,我们知道一个数字的完美度是 把这个数字分解成三个整数相乘A*A*B(0S,S表示的是从a
2015-05-03 21:11:48 609
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人