- 博客(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
424
原创 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
4187
原创 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
2742
原创 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
619
原创 单词数
单词数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
686
原创 叠筐
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
555
原创 E - 最短的名字
E - 最短的名字Time Limit:5000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmitStatusPracticeCSU 1115Description在一个奇怪的村子中,很多人的名字都很长,比如aaaaa, bbb and abababab。名字这么长,叫全名显然起
2013-09-09 15:51:23
756
原创 J - 病毒
J - 病毒Time Limit:3000MS Memory Limit:131072KB 64bit IO Format:%lld & %lluSubmitStatusPracticeCSU 1120Description你有一个日志文件,里面记录着各种系统事件的详细信息。自然的,事件的时间戳按照严格递增顺序排列(不会有两个事件在完全相同的时刻
2013-09-09 15:36:13
932
原创 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
809
转载 多连块拼图
多连块拼图Time Limit:1000MS Memory Limit:65535KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticeNBUT 1105Description多连块是指由多个等大正方形边与边连接而成的平面连通图形。 -- 维基百科给一个大多连块和小多连块,你的任务是判断大
2013-09-06 15:38:39
2925
原创 线段树模板
听说是最标准的模板:(敌兵布阵实例)#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
465
原创 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
1068
原创 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
851
原创 A - 一二三
A - 一二三Time Limit:1000MS Memory Limit:65535KB 64bit IO Format:%I64d & %I64uSubmitStatusDescription你弟弟刚刚学会写英语的一(one)、二(two)和三(three)。他在纸上写了好些一二三,可惜有些字母写错了。已知每个单词最多有一个字母写错了(单词长度肯定不
2013-09-05 14:41:55
1068
原创 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
665
原创 全场最水题之陈兴老师与比赛
全场最水题之陈兴老师与比赛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
1132
原创 榜单
榜单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
509
原创 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
665
转载 二叉查找树(二叉排序树)的详细实现
转自http://blog.youkuaiyun.com/touch_2011/article/details/68319241、序 详细实现了二叉查找树的各种操作:插入结点、构造二叉树、删除结点、查找、 查找最大值、查找最小值、查找指定结点的前驱和后继2、二叉查找树简介 它或者是一棵空树;或者是具有下列性质的二叉树: (1)若左子树不空,则左子树上所有结点的值均
2013-08-31 09:05:41
488
原创 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
465
原创 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
454
原创 取石子游戏(博弈类)
取石子游戏(博弈类)Time Limit: 1 Sec Memory Limit: 10000 MBSubmit: 16 Solved: 10[Submit][Status][Web Board]Description有两堆石子,数量任意,可以不同。游戏开始由两个人轮流取石子。游戏规定,每次有两种不同的取法,一是可以在任意的一堆中取走任意多的石子;二是可以在两堆
2013-08-30 09:46:36
587
原创 单词统计
单词统计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
943
原创 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
593
原创 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
1220
原创 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
540
原创 排序(拓扑排序)
排序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
583
原创 选机房
选机房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
510
原创 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
533
原创 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
589
原创 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
525
原创 饭卡
饭卡 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
915
原创 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
465
原创 过山车
过山车 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
1173
原创 求先序排列
1013 0人推荐 收藏 发题解提交代码报错题目描述输入描述输出描述样例输入样例输出提示题目描述 Description给出一棵二叉树的中序与后序排列。求出它的先序排列。(约定树结点用不同的大写字母表示,长度)。输入描述 Input Description两个字符串,分别是中序和后序(每行一个)
2013-08-14 10:09:27
832
原创 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
703
原创 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
483
原创 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
746
原创 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
602
原创 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
585
sum it up !
2013-08-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人