自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(89)
  • 资源 (3)
  • 收藏
  • 关注

原创 java线程切换

java线程切换package main.java;/** * Created by Administrator on 2016/10/20. */public class Test{ public static Object Lock = new Object(); public static boolean flag = false; public st

2016-10-22 14:32:23 396

原创 js简单实现图片切换效果

js简单实现图片切换效果 body{ margin: 0; padding: 0; } .adbody{ width:100%; height:100%; } .adPanel{ width:100%; height:100%; } var count =

2016-01-20 13:27:58 4148

原创 Ajax的两种实现方式

//ajax的jquery实现function aclick(){//alert("测试一");var name = $("#userName").val();//alert(name);$.get("servlet/AjaxServlet?name=" + name ,null,back);}function back(data){//alert(data

2015-07-27 15:12:06 2710

原创 String方法汇总

java中String的常用方法汇总1.length()  字符串的长度2.charAt()  按照指定的位置截取一个字符   c = "abc".charAt(1) 返回 b3.getChars()  截取多个字符     void getChars(int sourceStart,int sourceEnd,char target[],int targetStart)  s

2015-07-24 16:37:59 588

原创 单词数

单词数Time Limit: 1000msCase Time Limit: 1000msMemory Limit: 32768KB64-bit integer IO format: %I64d      Java class name: Main SubmitStatus PID: 6216 Font Size: lily的好朋友xiaoou33

2013-09-13 09:47:43 663

原创 叠筐

F. 叠筐Time Limit: 1000msCase Time Limit: 1000msMemory Limit: 32768KB64-bit integer IO format: %I64d      Java class name: Main SubmitStatus PID: 6218 Font Size: 需要的时候,就把一个个大小差

2013-09-13 09:44:39 537

原创 E - 最短的名字

E - 最短的名字Time Limit:5000MS    Memory Limit:65536KB    64bit IO Format:%lld & %lluSubmitStatusPracticeCSU 1115Description在一个奇怪的村子中,很多人的名字都很长,比如aaaaa, bbb and abababab。名字这么长,叫全名显然起

2013-09-09 15:51:23 736

原创 J - 病毒

J - 病毒Time Limit:3000MS    Memory Limit:131072KB    64bit IO Format:%lld & %lluSubmitStatusPracticeCSU 1120Description你有一个日志文件,里面记录着各种系统事件的详细信息。自然的,事件的时间戳按照严格递增顺序排列(不会有两个事件在完全相同的时刻

2013-09-09 15:36:13 909

原创 Updating a Dictionary

Updating a DictionaryIn this problem, a dictionary is collection of key-value pairs, where keys are lower-case letters, andvalues are non-negative integers. Given an old dictionary and a new dicti

2013-09-09 12:10:07 784

转载 多连块拼图

多连块拼图Time Limit:1000MS    Memory Limit:65535KB    64bit IO Format:%I64d & %I64uSubmitStatusPracticeNBUT 1105Description多连块是指由多个等大正方形边与边连接而成的平面连通图形。 -- 维基百科给一个大多连块和小多连块,你的任务是判断大

2013-09-06 15:38:39 2891

原创 线段树模板

听说是最标准的模板:(敌兵布阵实例)#include#define max 50000struct Node{ int left; int right; int sum;}segTree[4*max+10];int p[max+10];void CreatsegTree(int index,int lef,int rig) //创建一个[lef,rig]的

2013-09-06 08:46:15 449

原创 E - 盒子游戏

E - 盒子游戏Time Limit:1000MS    Memory Limit:65535KB    64bit IO Format:%I64d & %I64uSubmitStatusDescription有两个相同的盒子,其中一个装了n个球,另一个装了一个球。Alice和Bob发明了一个游戏,规则如下:Alice和Bob轮流操作,Alice先操作每次操作时,游

2013-09-05 14:49:37 1043

原创 B - 报数游戏

B - 报数游戏Time Limit:1000MS    Memory Limit:65535KB    64bit IO Format:%I64d & %I64uSubmitStatusDescriptionn个人站成一行玩一个报数游戏。所有人从左到右编号为1到n。游戏开始时,最左边的人报1,他右边的人报2,编号为3的人报3,等等。当编号为n的人(即最右边的人)报

2013-09-05 14:42:31 824

原创 A - 一二三

A - 一二三Time Limit:1000MS    Memory Limit:65535KB    64bit IO Format:%I64d & %I64uSubmitStatusDescription你弟弟刚刚学会写英语的一(one)、二(two)和三(three)。他在纸上写了好些一二三,可惜有些字母写错了。已知每个单词最多有一个字母写错了(单词长度肯定不

2013-09-05 14:41:55 1029

原创 Multiple of 17

Multiple of 17Time Limit:1000MS    Memory Limit:0KB    64bit IO Format:%lld & %lluSubmitStatusPracticeUVA 11879Description Multiple of 17 Theorem: If you drop the

2013-09-04 15:01:36 649

原创 全场最水题之陈兴老师与比赛

全场最水题之陈兴老师与比赛Time Limit: 1 Sec  Memory Limit: 128 MBSubmit: 401  Solved: 151[Submit][Status][Web Board]Description大家都知道ACM比赛罚时很重要。比如说你做A题要10分钟,B题要15分钟,如果先做A题再做B题,那么在ranking上的时间就是10 + (

2013-09-02 11:20:41 1113

原创 榜单

榜单Time Limit: 1 Sec  Memory Limit: 128 MBSubmit: 251  Solved: 92[Submit][Status][Web Board]DescriptionZZY很喜欢流行音乐,每周都要跟踪世界各地各种榜单,例如Oricon和Billboard,现在给出每周各个单曲的销量请给出每周的TOP5以及TOP5中各个单曲的

2013-09-02 11:15:32 491

原创 ZZY的宠物

ZZY的宠物Time Limit: 2 Sec  Memory Limit: 128 MBSubmit: 99  Solved: 51[Submit][Status][Web Board]DescriptionZZY领养了一对刚刚出生的不知名小宠物..巨萌巨可爱!!...小宠物的生命为5个单位时间并且不会在中间出意外翘辫子(如: 从0出生能活到5但活不到6)..

2013-09-01 12:57:52 645

转载 二叉查找树(二叉排序树)的详细实现

转自http://blog.csdn.net/touch_2011/article/details/68319241、序     详细实现了二叉查找树的各种操作:插入结点、构造二叉树、删除结点、查找、  查找最大值、查找最小值、查找指定结点的前驱和后继2、二叉查找树简介     它或者是一棵空树;或者是具有下列性质的二叉树: (1)若左子树不空,则左子树上所有结点的值均

2013-08-31 09:05:41 464

原创 Machine Schedule (二分匹配)

Machine Schedule Time Limit : 2000/1000ms (Java/Other)   Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 3   Accepted Submission(s) : 2Problem DescriptionAs we all know, machine

2013-08-30 17:21:16 442

原创 Girls and Boys (二分匹配)

Girls and Boys Time Limit : 20000/10000ms (Java/Other)   Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 7   Accepted Submission(s) : 3Problem Descriptionthe second year of the u

2013-08-30 16:57:15 430

原创 取石子游戏(博弈类)

取石子游戏(博弈类)Time Limit: 1 Sec  Memory Limit: 10000 MBSubmit: 16  Solved: 10[Submit][Status][Web Board]Description有两堆石子,数量任意,可以不同。游戏开始由两个人轮流取石子。游戏规定,每次有两种不同的取法,一是可以在任意的一堆中取走任意多的石子;二是可以在两堆

2013-08-30 09:46:36 561

原创 单词统计

单词统计Time Limit: 1000msMemory Limit: 65536KB64-bit integer IO format: %lld      Java class name: Main PrevSubmit Status Statistics Discuss Next Font Size: 现在有一段文本需要处理,需要

2013-08-27 10:38:29 915

原创 B. Matrix(二维树状数组)

B. MatrixTime Limit: 3000msCase Time Limit: 3000msMemory Limit: 65536KB64-bit integer IO format: %lld      Java class name: Main SubmitStatus Font Size: Given an N*N matrix A,

2013-08-24 15:59:26 571

原创 Stars

Stars Time Limit : 2000/1000ms (Java/Other)   Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 5   Accepted Submission(s) : 4Font: Times New Roman | Verdana | GeorgiaFont Size:

2013-08-24 14:46:29 1087

原创 Color the ball (树状数组)

Color the ball Time Limit : 9000/3000ms (Java/Other)   Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 4   Accepted Submission(s) : 4Font: Times New Roman | Verdana | GeorgiaFo

2013-08-24 10:41:22 519

原创 排序(拓扑排序)

排序Time Limit: 1000msMemory Limit: 65535KB64-bit integer IO format: %lld      Java class name: Main PrevSubmit Status Statistics Discuss Next Font Size: Type: 排序是计

2013-08-23 17:09:40 562

原创 选机房

选机房Time Limit: 1000msMemory Limit: 65535KB64-bit integer IO format: %lld      Java class name: Main PrevSubmit Status Statistics Discuss Next Font Size: BNU程序设计大赛就要开始了,决赛

2013-08-23 15:44:58 496

原创 Restoration of the Permutation

Restoration of the PermutationTime Limit: 1000msMemory Limit: 262144KBThis problem will be judged on CodeForces. Original ID:67B64-bit integer IO format: %I64d      Java class name:(

2013-08-21 09:09:37 512

原创 Ignatius and the Princess III

Ignatius and the Princess IIITime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 10143    Accepted Submission(s): 7184Problem Description

2013-08-20 10:58:10 571

原创 Sereja and Bottles

Sereja and BottlesTime Limit: 2000msCase Time Limit: 2000msMemory Limit: 262144KB64-bit integer IO format: %I64d      Java class name: (Any) SubmitStatus PID: 33596 Font Size:

2013-08-16 09:31:17 507

原创 饭卡

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

2013-08-14 21:00:05 879

原创 Drainage Ditches

Drainage DitchesTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6736    Accepted Submission(s): 3192Problem DescriptionEvery time it

2013-08-14 20:18:52 447

原创 过山车

过山车 Time Limit : 1000/1000ms (Java/Other)   Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 7   Accepted Submission(s) : 5Problem DescriptionRPG girls今天和大家一起去游乐场玩,终于可以坐上梦寐以求的过山车了

2013-08-14 20:14:59 1146

原创 求先序排列

1013 0人推荐  收藏 发题解提交代码报错题目描述输入描述输出描述样例输入样例输出提示题目描述 Description给出一棵二叉树的中序与后序排列。求出它的先序排列。(约定树结点用不同的大写字母表示,长度)。输入描述 Input Description两个字符串,分别是中序和后序(每行一个)

2013-08-14 10:09:27 816

原创 HDU Coins

Coins Time Limit : 2000/1000ms (Java/Other)   Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 107   Accepted Submission(s) : 44Font: Times New Roman | Verdana | GeorgiaFont Siz

2013-08-12 16:49:56 667

原创 Stripies

StripiesTime Limit: 1000msCase Time Limit: 1000msMemory Limit: 30000KB64-bit integer IO format: %lld      Java class name: Main SubmitStatus PID: 1981 Font Size: Our chemical

2013-08-12 09:43:04 465

原创 Avoid The Lakes

Avoid The LakesTime Limit: 1000msCase Time Limit: 1000msMemory Limit: 65536KB64-bit integer IO format: %lld      Java class name: Main SubmitStatus PID: 3739 Font Size: F

2013-08-12 09:32:51 717

原创 Train Problem I

Train Problem ITime Limit: 1000msCase Time Limit: 1000msMemory Limit: 32768KB64-bit integer IO format: %I64d      Java class name: Main SubmitStatus PID: 5246 Font Size: As t

2013-08-12 09:00:21 587

原创 Burning Midnight Oil

Burning Midnight OilTime Limit:2000MS    Memory Limit:262144KB    64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 165BDescriptionOne day a highly important task was commi

2013-08-09 08:46:18 571

sum it up !

Given a specified total t and a list of n integers, find all distinct sums using numbers from the list that add up to t. For example, if t=4, n=6, and the list is [4,3,2,2,1,1], then there are four different sums that equal 4: 4,3+1,2+2, and 2+1+1.(A number can be used within a sum as many times as it appears in the list, and a single number counts as a sum.) Your job is to solve this problem in general.

2013-08-16

进制转换一

进制转换

2013-06-07

计算大数阶乘

计算一个非常大的数的阶乘。计算方法!

2012-05-30

空空如也

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

TA关注的人

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