- 博客(9)
- 资源 (6)
- 收藏
- 关注
原创 HDU 1786 Tempter of the Bone again
<br />又是莫名其妙做出来的,不知道怎么证明自己使用的方法,求解!!<br /> Problem DescriptionIgnatius found some bones in an ancient maze, which fascinated him a lot. However, when he picked them up, the maze began to shake, and Ignatius could feel the ground sinking. He realized that t
2010-12-30 11:40:00 950 2
原创 HDU 1532 Drainage Ditches
第一次做网络流题目,写个报告巩固一下哈。 Problem DescriptionEvery time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover patch. This means that the clover is covered by water for awhile and takes quite a long time to regrow. Thus, Farmer John has bu
2010-12-29 18:52:00 960 4
原创 [院赛]A number game
DescriptionYou've designed a computer and implemented all the common arithmetic operators: addition, subtraction, multiplication and integer division. However, your budget was very limited, so you could only afford to place a single register in the compute
2010-12-28 16:20:00 687
原创 极简约版正大数加法
<br />#include<iostream><br />#include<cstring><br />#define L 1000000000<br />class bignum{<br />private:<br /> int Num[101],Len;<br />public:<br /> bignum(){Num[0]=0;Len=0;}<br /> friend bignum operator+(bignum a,bignum b){<br /> int i,l1=a.Len,l2=b.Len
2010-12-24 15:47:00 579
原创 求日期什么的
#includeint month[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};char Month[13][10]={"","January","February","March","April","May","June","July","August","September","October","November","December"};char DayofWeek[7][10]={"Monday","Tuesday","Wednesday","Thurs
2010-12-22 21:08:00 656
转载 catalan数
<br />都是转的真不好意思,唉~~~~~~~~~<br /> <br /> <br />首先是啥米叫catalan数,h(n) = h(0)*h(n-1)+ h(1)*h(n-2)+….+h(n-2)*h(1)+h(n-1)*h(0) ,h(0) = h(1) = 1通项公式为另外还有h(n) = h(1)h(n-1)+h(2)*h(n-2)+…+h(n-2)*h(2)+h(n-1)*h(1),h(1) = 1其通项公式为<br />首先是括号问题,很多问题都能转换为括号匹配问题,即在任何位置,左括号的
2010-12-21 20:12:00 1187
转载 凸包和重心求法
/*==================================================*\ | Graham 求凸包 O(N * logN) | CALL: nr = graham(pnt, int n, res); res[]为凸包点集; \*==================================================*/ struct
2010-12-12 20:34:00 1430
转载 求直线交点
Point intersection(Line l1,Line l2){//面积比求出交点之比 Point ret = l1.s; double t = ((l1.s.x - l2.s.x) * (l2.s.y - l2.e.y) - (l1.s.y - l2.s.y) * (l2.s.x - l2.e.x)) /((l1.s.x - l1.e.x) *
2010-12-10 22:20:00 653
转载 [ZT]HDU胡搞题
1022、1027、1030、1035、1128、1165、1209、1210、1215、1222、1228、1229、1230、1237、1259、1276、1286、1337、1342、1361、1370、1506、1577、1597、1702、1716、1727、1868、1870、1896、1981、1986、1987、1988、1997、1998、1999、2058、2062、2089、2090、2094、2104、2116、2117、2135、2175、2183、2184、2197、2303、2
2010-12-08 09:58:00 889
zlib.h+zconf.h+zlib.lib+zlib1.dll
2013-08-29
Google的C++编码规范 中文.PDF
2013-02-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人