自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 资源 (1)
  • 收藏
  • 关注

原创 算一个日期是星期几

F - What day is itTime Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 2133DescriptionToday is Saturday, 17th Nov,2007. Now, if

2013-05-30 00:55:30 828

原创 最近题目基础练习

1、计算一个数在不同的进制下的阶乘的位数阶乘位数的公式:log(xy) = log(x) + log(y), 所以100的阶乘:log(1) + log(2) + ....log(100)最后转化成不同的进制:最后除以log(base)后 +1 就好了(base指的是进制)需要注意的是,开数组的时候要开double,否则是错的代码:double a[1000005] = {0}

2013-05-21 12:21:11 558

原创 乘法与位数

题目意思:给你一个数,然后转化成相应进制的数,算出阶乘以后,求阶乘的位数阶乘的位数我们这么来算:例如1000的阶乘log10(1) + log10(2) + ...+log10(1000) 取整后加1然后转化成进制的话就是: 除以log10(base) 后加1题目:A - Digits of FactorialTime Limit:2000MS     Memo

2013-05-18 23:44:33 793

原创 1到n打乱,求交换次数

、B - Old SortingTime Limit:2000MS     Memory Limit:32768KB     64bit IO Format:%lld & %lluSubmit StatusDescriptionGiven an array containing a permutation of 1 to n, you have to f

2013-05-18 20:34:01 1305

原创 对于输入字符串数组的处理,三维数组

DescriptionDo you know password table? A password table is used to protect the security of the online account. When a user needs to login to his/her online account or pay for money, he/she may nee

2013-05-16 15:53:14 4147

原创 判断一个字符是不是数字

判断一个字符是不是数字,也就是从字符串中提取字符串通过isdigit()函数来运算:其功能的实现见代码:#include #include #include #include #include #include #include #include using namespace std;string str;int main () { while (cin >

2013-05-12 10:18:55 1058

原创 UVA 10006

题目意思:快速幂求摸。。。。G - Carmichael NumbersTime Limit:3000MS     Memory Limit:0KB     64bit IO Format:%lld & %lluSubmit Status Practice UVA 10006Description  Carmi

2013-05-12 09:04:01 1494

原创 UVA-10008统计单词的数量

题目意思:统计给出的 单词的数量,要求从小到大排列并输出分析:结构体进行排列是比较方便的I - What's Cryptanalysis?Time Limit:3000MS     Memory Limit:0KB     64bit IO Format:%lld & %lluSubmit Status Practice UVA 10008

2013-05-12 08:41:51 1803

原创 UVA 10000 -Longest Paths-Bellman - Ford,flody,spfa

\A - Longest PathsTime Limit:3000MS     Memory Limit:0KB     64bit IO Format:%lld & %lluSubmit Status Practice UVA 10000Description  Longest Paths

2013-05-11 18:05:02 1460

原创 CodeForces 102A - flody

I - ClothesTime Limit:2000MS     Memory Limit:262144KB     64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 102ADescriptionA little boy Gerald entered a clothes sho

2013-05-11 17:49:48 800

原创 ZOJ 3693-进位

H - Happy Great BGTime Limit:2000MS     Memory Limit:65536KB     64bit IO Format:%lld & %lluSubmit Status Practice ZOJ 3693DescriptionThe summer training of ZJU ICPC in July is abo

2013-05-11 10:31:43 1381

原创 poj 3332-判断字符串是否合法

C - Parsing Real NumbersTime Limit:2000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64uSubmit Status Practice POJ 3332DescriptionWrite a program that read a line o

2013-05-11 10:03:13 1577

原创 poj-3628-Bookshelf 2

题目意思:有个书架,高度为H,现在FJ有N个奶牛,每个奶牛有个高度hi,现在将奶牛堆起来,使得堆起来的高度大于等于H,现在要求最小高度差。B - Bookshelf 2Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64uSubmit Status Prac

2013-05-11 09:19:08 861

原创 poj 3602-字符串模拟

D - Typographical LigaturesTime Limit:1000MS     Memory Limit:131072KB     64bit IO Format:%I64d & %I64uSubmit Status Practice POJ 3602DescriptionTypesetting involves the prese

2013-05-11 08:58:32 1152

原创 字符串处理string

- Children's GameTime Limit:3000MS     Memory Limit:0KB     64bit IO Format:%lld & %lluSubmit StatusDescription4th IIUC Inter-University Programming Contest, 2005

2013-05-01 15:32:33 767

经典动态规划

关于动态规划的详细介绍,分类以及一些经典的例题。相信你看过以后会大有收获

2012-10-24

空空如也

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

TA关注的人

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