自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

y_Cnew的博客

励志追求浩瀚的大海,却专注于船的打磨;却始终相信,总有扬帆远航的那一天

  • 博客(27)
  • 资源 (1)
  • 收藏
  • 关注

原创 线性表的顺序结构实现--代码 数据结构

前言,代码只是用来参考,更好的应该亲自打一遍,体会其中#include<stdio.h>#include<stdlib.h>//函数结果状态代码 #define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2 //...

2019-03-20 16:41:16 316

转载 Java关于Scanner类的心得

类 Scanner一个可以使用正则表达式来解析基本类型和字符串的简单文本扫描器。java.util.Scanner是Java5的新特征,主要功能是简化文本扫描。这个类最实用的地方表现在获取控制台输入,其他的功能都很鸡肋,尽管Java API文档中列举了大量的API方法,但是都不怎么地。Scanner一般用于用户输入,可以对输入的文本进行操作重要方法摘要useDelimiter(Pattern pa...

2018-06-04 10:11:08 390

转载 java中使用MD5进行加密

java中使用MD5进行加密    在各种应用系统的开发中,经常需要存储用户信息,很多地方都要存储用户密码,而将用户密码直接存储在服务器上显然是不安全的,本文简要介绍工作中常用的 MD5加密算法,希望能抛砖引玉。(一)消息摘要简介    一个消息摘要就是一个数据块的数字指纹。即对一个任意长度的一个数据块进行计算,产生一个唯一指印(对于SHA1是产生一个20字节的二进制数组)。消息摘要是一种与消息认...

2018-06-03 12:42:33 290

原创 HDOJ--1013Digital Roots

原题链接Problem DescriptionThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root.

2018-04-07 10:19:16 184

原创 HDOJ--1012 u Calculate e

原题链接Problem DescriptionA simple mathematical formula for e iswhere n is allowed to go to infinity. This can actually yield very accurate approximations of e using relatively smal

2018-04-06 20:09:08 159

原创 HDOJ--1008Elevator

原题链接Problem DescriptionThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will sto

2018-04-06 20:00:38 171

原创 HDOJ--1005Number Sequence

原题链接Problem DescriptionA number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are to calculate the valu

2018-04-06 19:56:24 160

原创 HDOJ--1004Let the Balloon Rise

原题链接Problem DescriptionContest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most popular problem. Wh

2018-04-05 19:06:20 171

原创 HDOJ--1001Sum Problem

原题链接Problem DescriptionHey, welcome to HDOJ(Hangzhou Dianzi University Online Judge).In this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n. InputThe

2018-04-05 18:59:43 248

原创 HDOJ--1000A + B Problem

原题链接Problem DescriptionCalculate A + B. InputEach line will contain two integers A and B. Process to end of file. OutputFor each case, output A + B in one lin

2018-04-05 18:51:42 245

原创 HDOJ--2152Fruit!!母函数

原题链接Problem Description转眼到了收获的季节,由于有TT的专业指导,Lele获得了大丰收。特别是水果,Lele一共种了N种水果,有苹果,梨子,香蕉,西瓜……不但味道好吃,样子更是好看。于是,很多人们慕名而来,找Lele买水果。甚至连大名鼎鼎的HDU ACM总教头 lcy 也来了。lcy抛出一打百元大钞,"我要买由M个水果组成的水果拼盘,不过我有个

2017-12-04 20:04:09 177

原创 HDOJ--2110Crisis of HDU!母函数

原题链接:Problem Description话说上回讲到HDU大战东洋小苟,结果自然是中方大胜,这一战也使得海东集团在全球同行业中的地位更加巩固。随着集团的发展,很多创业时期的元老逐步功成身退,先是8600移民海外,然后是linle夫妇退隐山林,逐渐的,最初众多的元老只剩下XHD夫妇和Wiskey三人了。到了2020年,因为扩张过度加上老鼠数量逐年减少,公司的发展遇到了前所

2017-12-04 19:43:39 264

原创 HDOJ--2082找单词!!!母函数

原题链接Problem Description假设有x1个字母A, x2个字母B,..... x26个字母Z,同时假设字母A的价值为1,字母B的价值为2,..... 字母Z的价值为26。那么,对于给定的字母,可以找到多少价值 Input输入首先是一个整数N,代表测试实例的个数。然后包括N行数据,每行包括26个 Output

2017-12-04 19:08:23 253

原创 HDOJ--2079选课时间!!!母函数

原题链接Problem Description又到了选课的时间了,xhd看着选课表发呆,为了想让下一学期好过点,他想知道学n个学分共有多少组合。你来帮帮他吧。(xhd认为一样学分的课没区别) Input输入数据的第一行是一个数据T,表示有T组数据。每组数据的第一行是两个整数n(1 接着有k行,每行有两个整数a(1  O

2017-12-04 18:45:45 472

转载 HDOJ--2188(巴什博奕)

原题连接:悼念512汶川大地震遇难同胞——选拔志愿者Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 10647    Accepted Submission(s): 6769Problem Description

2017-11-29 22:35:32 270

原创 HDOJ--2899Strange fuction!!!!二分法 (三分)

原文链接  Problem DescriptionNow, here is afuction:  F(x) = 6 * x^7+8*x^6+7*x^3+5*x^2-y*x (0 Can you find the minimum value when x is between 0 and 100.  InputThe first line ofthe in

2017-11-22 21:14:34 302

原创 HDOJ--2199Can you solve this equation?!!!!二分法

HDOJ--2899Strange fuction!!!!二分法

2017-11-22 19:48:48 219

转载 母函数思考与讨论

普通型母函数 定义:对于任意数列a0,a1,a2…an 即用如下方法与一个函数联系起来:~G(x) = a0 + a1x + a2x*2 + a3x^3 +….+ anx^n则称G(x)是数列的生成函数(generating function)例子:比较典型的是:A(x) = (1+x)^n~C(n,0),C(n,1),C(n,2),C(n,3)

2017-11-20 18:41:48 654

原创 HDOJ--1171Big Event in HDU!母函数

HDOJ--1171Big Event in HDU!母函数Problem DescriptionNowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don't know that Computer College had ever been split into Computer College and Software College in 2002.The spl

2017-11-19 19:13:13 266

原创 HDOJ--1085Holding Bin-Laden Captive!!!母函数

HDOJ--1085Holding Bin-Laden Captive!!!母函数Problem DescriptionWe all know that Bin-Laden is a notorious terrorist, and he has disappeared for a long time. But recently, it is reported that he hides in Hang Zhou of China! “Oh, God! How terrible! ”

2017-11-19 18:13:36 270

原创 HDOJ--1028Ignatius and the Princess III!!母函数

HDOJ--1028Ignatius and the Princess III!!母函数

2017-11-16 21:09:31 222

原创 HDOJ--1398Square Coins!!母函数

HDOJ--1398Square Coins!!母函数

2017-11-16 20:38:40 294

转载 算法:最大公约数和最小公倍数(C语言表示)

最大公约数和最小公倍数(C语言表示) CSDN

2017-11-16 18:38:14 4212

转载 数据结构——绪论

数据结构:数据结构是一门研究非数值计算的程序设计问题中计算机的操作对象以及它们之间的关系和操作等的学科。基本概念与术语:数据:是对客观事物的符号表示,在计算机科学中是指所有能输入到计算机中并被计算机程序处理的符号的总称。数据元素:是数据的基本单位,在计算机程序中通常作为一个整体进行考虑和处理。一个数据元素可由若干个数据项组成。数据项:数据的不可分割的最小单位。数据对象:是性

2017-11-11 10:45:09 322

原创 HDOJ--1800Flying to the Mars!!贪心

传送门In the year 8888, the Earth is ruled by the PPF Empire . As the population growing , PPF needs to find more land for the newborns . Finally , PPF decides to attack Kscinow who ruling the Mars

2017-11-08 20:15:16 390

原创 HDOJ--1052Tian Ji -- The Horse Racing 贪心!!!

ProblemDescriptionHere is a famous story in Chinese history."That was about 2300 years ago. General Tian Ji was a high official in thecountry Qi. He likes to play horse racing with the king and

2017-11-08 20:02:45 247

原创 HDOJ--1050Moving Tables!!

Moving TablesProblem DescriptionThe famous ACM (Advanced Computer Maker) Company has rented a floor of a building whose shape is in the following figure. The floor has 200 rooms ea

2017-11-06 20:27:29 348

数据结构-线性表代码实现

线性表顺序存储代码实现

2019-03-20

空空如也

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

TA关注的人

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