自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 1008 Maya Calendar

<br />DescriptionDuring his last sabbatical, professor M. A. Ya made a surprising discovery about the old Maya calendar. From an old knotted message, professor discovered that the Maya civilization used a 365 day long year, called Haab, which had 19 months

2011-03-07 23:13:00 218

原创 1007 DNA Sorting

DescriptionOne measure of ``unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For instance, in the letter sequence ``DAABEC'', this measure is 5, since D is greater than four letters to its rig

2011-03-07 23:01:00 200

原创 剩余定理

<br />今天做题突然发现要用这个玩意。。所以现学现卖。。有什么不对的还望多多指正。。<br /> <br />《孙子算经》中描述过这样一个问题:今有物不知其数,三三数之余二 ,五五数之余三 ,七七数之余二,问物几何?”<br />答案为"23”,其实我感觉貌似应该是这堆东西最少有23件。。<br /> <br />那么这个答案是怎么的出来的呢?<br /> <br />首先,如果一个数n除以m余1(m>2),那么2n除以m一定余2,证明也很容易,所以以此类推,3n......<br /> <br />所

2011-03-07 22:51:00 329

原创 1006 Biorhythms

DescriptionSome people believe that there are three cycles in a person's life that start the day he or she is born. These three cycles are the physical, emotional, and intellectual cycles, and they have periods of lengths 23, 28, and 33 days, respectively.

2011-03-07 22:10:00 193

原创 1005 I Think I Need a Houseboat

<br />DescriptionFred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he learned that the state of Louisiana is actually shrinking by 50 square miles each year, due to erosion caused

2011-03-06 15:25:00 160

原创 1004 Financial Management

<br />DescriptionLarry graduated this year and finally has a job. He's making a lot of money, but somehow never seems to have enough. Larry has decided that he needs to grab hold of his financial portfolio and solve his financing problems. The first step i

2011-03-06 15:23:00 154

原创 1003 Hangover

DescriptionHow far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming that the cards must be perpendicular to the table.) With two cards you can make the top card o

2011-03-06 15:22:00 226

原创 1001 Exponentiation

DescriptionProblems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for many computer systems.This problem requires that you write a progra

2011-03-06 15:17:00 350

原创 快排(qsort)用法

<br />qsort 函数包含在 stdlib.h 中<br />所以C就这点来看还是不错滴^_^,当然貌似c++里的sort更简单。。。<br /> <br />使用方法:void qsort(void *base , num , width , cmp);<br />参数含义如下:<br />base:需要排序的目标数组的开始地址。<br />num:需要排序的数据的个数。<br />width:数组中每个元素的长度。<br />cmp:这个还得自己写。。微麻烦。。<br /> <br />1、对in

2011-03-06 15:13:00 297

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除