自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

古古天的博客

如花美眷,也敌不过似水流年; 心若磐石,也敌不过过眼云烟。

  • 博客(24)
  • 资源 (6)
  • 收藏
  • 关注

原创 HDOJ1864 最大报销额

最大报销额Time Limit : 1000/1000ms (Java/Other)   Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 14   Accepted Submission(s) : 2Problem Description现有一笔经费可以报销一定额度的发票。允许报销的发票类型

2013-07-21 01:25:06 1497

原创 HDOJ1171 Big Event in HDU

Big Event in HDUTime Limit : 10000/5000ms (Java/Other)   Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 25   Accepted Submission(s) : 8Problem DescriptionNowadays, we al

2013-07-21 00:55:46 1726

原创 HDOJ2546 饭卡

饭卡Time Limit : 5000/1000ms (Java/Other)   Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 37   Accepted Submission(s) : 14Problem Description电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断

2013-07-21 00:04:42 1928

原创 HDOJ2602 Bone Collector

Bone CollectorTime Limit : 2000/1000ms (Java/Other)   Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 66   Accepted Submission(s) : 23Problem DescriptionMany years ago ,

2013-07-20 23:59:25 1297

原创 波动序列

1、 该点比他低,那么序列长度加一,更新当前点为现在的点2、 该点比他高,那么序列长度不变,更新当前点为现在的点,那么该点升高了,有利于对下一个点的判断

2013-07-18 23:09:59 1076

转载 标准模板库(STL)学习探究之vector容器

标准模板库(STL)学习探究之vector容器 C++ Vectors   vector是C++标准模板库中的部分内容,它是一个多功能的,能够操作多种数据结构和算法的模板类和函数库。vector之所以被认为是一个容器,是因为它能够像容器一样存放各种类型的对象,简单地说,vector是一个能够存放任意类型的动态数组,能够增加和压缩数据。为了可以使用vector,必须在你的头文件中包含下面的代

2013-07-18 16:37:34 1005

原创 弹球II

游戏厅里有一种很常见的游戏机,里面有很多根管子有规律地排成许多行。小球从最上面掉下去,碰到管子会等概率地往管子左边或者右边的空隙掉下去。

2013-07-17 20:52:02 907

原创 时间复杂度

在ACM里面,计算复杂度是一项非常重要的事情,常见的复杂度格式有三种:

2013-07-16 19:27:20 1627 3

原创 Delete it

Problem A: Delete itTime Limit: 2 Sec  Memory Limit: 64 MBSubmit: 99  Solved: 25Description克林在打一行字母时总是会打多一个字符,比如想打”july”时会打成”juuly”,这样他需要删掉其中一个’u’。克林想知道他可以删掉哪个位置的字符就可以变成他真正想打的一行字母。

2013-07-16 12:07:16 1668

原创 Matrix Multiplication

Problem H: Matrix MultiplicationTime Limit: 1 Sec  Memory Limit: 128 MBSubmit: 84  Solved: 33DescriptionJohnny and John are good friends. Johnny is going to take the entrance exams for pos

2013-07-15 21:37:17 1149

原创 Help Johnny

Problem F: Help JohnnyTime Limit: 1 Sec  Memory Limit: 128 MBSubmit: 98  Solved: 41DescriptionPoor Johnny is so busy this term. His tutor threw lots of hard problems to him and demanded hi

2013-07-15 21:33:06 996

原创 simple problem

Problem B: A simple problemTime Limit: 1 Sec  Memory Limit: 128 MBSubmit: 94  Solved: 42DescriptionDreamone has a lovely cat. The cat can comfort you if you are very dejected, she can also

2013-07-15 21:31:14 1231

原创 Hard problem

1022: Hard problemTime Limit: 1 Sec  Memory Limit: 128 MBSubmit: 43  Solved: 12DescriptionThe cat gets N mice from dreamone, and she can choose K mice from them as the order which is liste

2013-07-13 11:38:26 957

原创 Triangle

1006: TriangleTime Limit: 1 Sec  Memory Limit: 32 MBSubmit: 29  Solved: 8DescriptionIt is a simple task, for N points on the 2D plane, you are supposed to find whether there are three po

2013-07-13 11:34:08 1154

原创 Matrix

To efficient calculate the multiplication of a sparse matrix is very useful in industrial filed. Le

2013-07-11 12:05:32 792

原创 Triangles

1010: TrianglesTime Limit: 2 Sec  Memory Limit: 128 MBSubmit: 18  Solved: 8DescriptionYou are given a figure consisting of n points in a 2D-plane and m segments connecting some of

2013-07-11 10:04:00 1166

原创 水题一大片

Problem A: EmingTime Limit: 1 Sec  Memory Limit: 32 MBSubmit: 28  Solved: 24[Submit][Status][Web Board] [Edit]DescriptionEming is a contest hold by WHUACM training team. The aim is t

2013-07-09 21:14:21 990

原创 遍历矩阵的n^m种情况的解决办法

例如一个n*n的矩阵,矩阵中所给数据为正,且全部小于某一整数m,现在想要遍历矩阵第一列Matrix[0][i](0那么Matrix[0][0]的取值范围为0~m;Matrix[0][1]的取值范围为0~m;...Matrix[0][i](0可知总共有n^m种情况,但如何枚举这些情况呢?最简单的想法:用n个for循环实现,但这样有两个坏处,第一,由于不知道n的大小,所以实

2013-07-08 18:41:58 2280

原创 ZZY的爱好

F: ZZY的爱好   描述   ZZY爱足球~~爱音乐~~爱日剧~~爱电影~~爱A题~~爱萌妹~~总之ZZY喜欢做很多事情~~而且ZZY希望在这些爱好中能收获一些东西~~但是并不是所有爱好对所有目标都是起积极作用的..ZZY十分的困惑..于是ZZY列了下自己想获得的收获并且给每个目标设立了最小要达到的权值...并且给自己的爱好对每个收获目标进行了评值..这个值若是负则代表不利于获得某个收

2013-07-06 22:15:50 1226

原创 ZZY的宠物(矩阵运算+快速幂)

E :ZZY的宠物描述ZZY领养了一对刚刚出生的不知名小宠物..巨萌巨可爱!!...小宠物的生命为5个单位时间并且不会在中间出意外翘辫子(如: 从0出生能活到5但活不到6)..小宠物经过2个单位时间成熟..刚刚成熟的一对小宠物能立即生育6只新的小宠物(如: 从0出生的一对在2时成熟并进行第一次生育)...小宠物是很忠诚的..不会在中途换伴侣..每对小宠物生育一次这一对的生育能力就会降低2个

2013-07-06 21:28:59 1330

原创 Strings of Power

B. Strings of PowerVolodya likes listening to heavy metal and (occasionally) reading. No wonder Volodya is especially interested in texts concerning his favourite music style.Volodya calls a strin

2013-07-06 17:52:02 1232

原创 Even Odds

A. Even OddsBeing a nonconformist, Volodya is displeased with the current state of things, particularly with the order of natural numbers (natural number is positive integer number). He is determine

2013-07-06 17:47:59 1634

原创 C++组合问题

求一个组合,如C(16,3),我们可以通过公式求出这有多少个数,但怎么把这些数表示出来呢?代码:#include#include#define MAXN 100using namespace std;int a[MAXN];int count=0;void assem(int m,int k){ int i,j; for (i=m;i>=k;i--)

2013-07-01 16:23:50 1310

原创 2013暑期规划

2013暑期规划    每个暑期都是提升自己能力最好的时段,所以这个暑期当然是要对自己不断充电,提升自己喽。鉴于自己对算法的热爱,暑假大部分时间还是会和去年一样,呆在学校,留在8教203,跟随校ACM集训队一起训练。大体规划如下:    7.1--7.5  集训还未开始,但自己要做好准备工作,多学习一些基础知识,顺便看一看javascript的视频,为下学期的课程做好准备。    7.

2013-07-01 11:02:28 833 1

C++, .NET 编码规范

C++, .NET 编码规范

2013-09-19

C#四则计算器源码

四则计算期,连续运算,四则计算期,连续运算,四则计算期,连续运算,四则计算期,连续运算,四则计算期,连续运算

2013-09-19

安卓侧面滑动组件设计

安卓侧面滑动组件设计,安卓侧面滑动组件设计,安卓侧面滑动组件设计,安卓侧面滑动组件设计

2013-05-20

饮料自动售货机系统

饮料自动售货机系统,饮料自动售货机系统,饮料自动售货机系统,饮料自动售货机系统

2013-05-15

图书管理系统源文件

代码: package librarysystem; import java.awt.Color; import java.awt.Dimension; import java.awt.Rectangle; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.AbstractButton; import javax.swing.ButtonGroup; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JToolBar; 文档下载地址:http://download.csdn.net/detail/xing634325131/5119686

2013-03-08

空空如也

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

TA关注的人

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