- 博客(108)
- 收藏
- 关注
原创 LeetCode-4Sum(九月千题鬼之历练 1/1000, 指针数组的初始化和调用)
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.Note:Element
2015-06-10 11:27:06 861 1
转载 只能看不能改的Select
只能看不能改的select元素让 select 里的值只能看, 不允许选默认值外的其它值呵呵,我看到这个题目首先想到的是disable,但是禁用的话就连看都看不了了。代码和效果如下:哎,禁用了啊。没用的选项。 哎,禁用了啊。 没用的选项。 panliu888的代码实给出了解决方案,代码是极其的简单:abcdef
2013-04-19 15:13:32 832
转载 JSP 获得项目所在物理路径
private String projectName="sz_pro"; // 你项目的名称//获取当前项目的绝对路径 public String getPorjectPath(){ String nowpath; //当前tomcat的bin目录的路径 如 D:\java\software\apache-tomcat-6.0.14\bin
2013-04-18 13:34:18 685
转载 JSP使用SmartUpload上传图片
原文出处:http://blog.sina.com.cn/s/blog_59d6717c0100e62l.htmlSmartUpload上传图片 目标:在Jsp页面中实现文件上传初级篇文件上传是我们程序中会经常使用到的功能,针对于上传的技术也非常多!常用的上传组件: Apache commns FilUpload JavaZoom的Upl
2013-04-17 22:06:03 1433
转载 配置PHP+mssql环境的一些常见问题及解决方案
Fatal error: Call to undefined function mysql_connect() in D:\PHP\www\index.php on line 7PHP+MSSQL Call to undefined function mssql_connect() 错误解决: 如果服务器端没有安装MSSQL 即使去掉EXTENTION中的 mss
2013-04-08 13:28:47 1735
转载 Value '0000-00-00' can not be represented as java.sql.Date错误修改
java.sql.SQLException:Value '0000-00-00' can not be represented as java.sql.Date 问题探究: 数据表中有记录的time字段(属性为timestamp)其值为:“0000-00-00 00:00:00”程序使用select 语句从中取数据时出现以下异常:java.sql.SQLException:
2013-04-05 12:15:14 1105
转载 SVN服务器的配置
Svn服务器安装一、准备工作:1,下载Subversion服务器程序。http://subversion.tigris.org/2,下载Subversion的Windows客户端TortoiseSVNhttp://www.subversion.org.cn/二、svn服务器配置:1:双击运行Setup-Subversion-1.5.3.msi一路默认,只管下一步
2013-04-02 21:26:05 887
原创 POJ 3438 Look and Say(我的水题之路——N个M的队列)
Look and SayTime Limit: 5000MS Memory Limit: 65536KTotal Submissions: 7678 Accepted: 4638DescriptionThe look and say sequence is defined as follows. Start with
2012-02-14 21:22:22 1222
原创 POJ 3427 Ecology tax(我的水题之路——不同的理解,不同的AC)
Ecology taxTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 3677 Accepted: 1901DescriptionIn a big and rich on natural resources country, the governmen
2012-02-14 20:48:43 1120
原创 POJ 3386 Halloween Hoildays(我的水题之路——两个戒指)
Halloween HolidaysTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 2787 Accepted: 1120DescriptionPlanet Cucurbita is inhabited with intelligent pumpkin
2012-02-14 19:52:27 977
原创 POJ 3325 ICPC Score Totalizer Software(我的水题之路——评委评分)
ICPC Score Totalizer SoftwareTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 6034 Accepted: 4185DescriptionThe International Clown and Pierrot Competi
2012-02-14 19:14:44 1035
原创 POJ 3302 Subsequence(我的水题之路——子串判断)
SubsequenceTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 6940 Accepted: 4058DescriptionGiven a string s of length n, a subsequence of it, is defined
2012-02-14 18:32:13 810
原创 POJ 3300 Tour de France(我的水题之路——车轮角速度最大)
Tour de FranceTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 3704 Accepted: 1759DescriptionA racing bicycle is driven by a chain connecting two sproc
2012-02-14 17:59:16 1111
原创 POJ 3224 Go for Lab Cup!(我的水题之路——赢的场数最多)
Go for Lab Cup!Time Limit: 1000MS Memory Limit: 131072KTotal Submissions: 7697 Accepted: 3946DescriptionThe Lab Cup Table Tennis Competition is going to take pl
2012-02-14 17:10:50 1115
原创 POJ 3183 Stump Removal(我的水题之路——高峰烧火,在线判断)
Stump RemovalTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 2379 Accepted: 1282DescriptionAlways thinking of the cows' grazing experience, FJ has fou
2012-02-14 16:42:53 1867
原创 POJ 3158 Kickdown(我的水题之路——齿轮盒子,读题失败)
KickdownTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 1271 Accepted: 587DescriptionA research laboratory of a world-leading automobile company has
2012-02-14 15:43:31 1819
原创 POJ 3117 World Cup(我的水题之路——世界杯平局数目)
World CupTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 7208 Accepted: 3608DescriptionA World Cup of association football is being held with teams
2012-02-13 18:56:34 855
原创 POJ 3100 Root of the Problem(我的水题之路——取A^N最接近B的A)
Root of the ProblemTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 10067 Accepted: 5372DescriptionGiven positive integers B and N, find an integer A s
2012-02-13 18:30:38 741
原创 POJ 3096 Surprising Strings(我的水题之路——重点,D-pairs)
Surprising StringsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 3960 Accepted: 2652DescriptionThe D-pairs of a string of letters are the ordered pai
2012-02-13 17:43:10 1708
原创 POJ 3086 Triangular Sums(我的水题之路——三角数累加)
Triangular SumsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 5437 Accepted: 3845DescriptionThe nth Triangular number, T(n) = 1 + … + n, is the sum
2012-02-13 16:57:27 1490
原创 POJ 3077 Rounders(我的水题之路——高精度四舍五入)
RoundersTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 6419 Accepted: 4155DescriptionFor a given number, if greater than ten, round it to the nearest
2012-02-13 16:29:26 1396
原创 POJ 3062 Celebrity jeopardy(我的水题之路——原样输出)
Celebrity jeopardyTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 11708 Accepted: 6572DescriptionIt's hard to construct a problem that's so easy that
2012-02-13 15:50:42 1661
原创 POJ 3030 Nasty Hacks(我的水题之路——比较大小)
Nasty HacksTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 9214 Accepted: 6478DescriptionYou are the CEO of Nasty Hacks Inc., a company that creates
2012-02-13 15:35:56 831
原创 POJ 3006 Dirichlet's Theorem on Arithmetic Progressions(我的水题之路——加i个d后的第几个素数)
Dirichlet's Theorem on Arithmetic ProgressionsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 11068 Accepted: 5539DescriptionIf a and d are relatively
2012-02-13 15:24:49 739
原创 POJ 2924 Gauß in Elementary School(我的水题之路——n到m的连和)
Gauß in Elementary SchoolTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 7873 Accepted: 3530DescriptionJohann Carl Friedrich Gauß (1777 – 1855) was
2012-02-13 14:50:11 1038
原创 POJ 2909 Goldbach's Conjecture(我的水题之路——任一数为素数对之和)
Goldbach's ConjectureTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 8369 Accepted: 4843DescriptionFor any even number n greater than or equal to 4, t
2012-02-13 14:19:23 670
原创 POJ 2871 A Simple Question of Chemistry(我的水题之路——数列两数之差 )
A Simple Question of ChemistryTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 5647 Accepted: 3757DescriptionYour chemistry lab instructor is a very en
2012-02-13 13:08:09 875
原创 POJ 2864 Pascal Library(我的水题之路——都来了么)
Pascal LibraryTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 3383 Accepted: 1647DescriptionPascal University, one of the oldest in the country, needs
2012-02-12 18:03:57 1243
原创 POJ 2840 Big Clock(我的水题之路——水,钟)
Big ClockTime Limit: 1000MS Memory Limit: 131072KTotal Submissions: 7912 Accepted: 5024DescriptionOur vicar raised money to have the church clock repaired for s
2012-02-12 17:39:38 1227
原创 POJ 2665 Trees(我的水题之路——移树,POJ100题啦!)
TreesTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 8212 Accepted: 5461DescriptionThe road off the east gate of Peking University used to be decorate
2012-02-12 17:09:36 984 1
原创 POJ 2664 Prerequisites?(我的水题之路——选课)
Prerequisites?Time Limit: 2000MS Memory Limit: 65536KTotal Submissions: 3063 Accepted: 1931DescriptionFreddie the frosh has chosen to take k courses. To meet th
2012-02-12 16:44:50 1378
原创 POJ 2656 Unhappy Jinjin(我的水题之路——不开心的学习日)
Unhappy JinjinTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 8985 Accepted: 6619DescriptionJinjin is a junior school student. Besides the classes in
2012-02-12 16:16:00 880
原创 POJ 2636 Electrical Outlets(我的水题之路——水,电器接头)
Electrical OutletsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 7124 Accepted: 5413DescriptionRoy has just moved into a new apartment. Well, actuall
2012-02-12 15:58:57 2054
原创 POJ 2608 Soundex(我的水题之路——字符值)
SoundexTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 8200 Accepted: 4039DescriptionSoundex coding groups together words that appear to sound alike b
2012-02-12 15:39:39 1543
原创 POJ 2606 Rabbit hunt(我的水题之路——斜率最多)
Rabbit huntTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 6159 Accepted: 3008DescriptionA good hunter kills two rabbits with one shot. Of course, it
2012-02-12 15:10:46 1325
原创 POJ 2591 Set Definition(我的水题之路——又一个丑数)
Set DefinitionTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 8304 Accepted: 3792DescriptionSet S is defined as follows: (1) 1 is in S; (2) If x i
2012-02-12 14:57:49 807
原创 POJ 2579 Blurred Vision(我的水题之路——四方格平均值)
Blurred VisionTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 1449 Accepted: 1053DescriptionAliasing is the stair-step effect achieved when attempting
2012-02-12 14:42:08 1405
原创 POJ 2578 Keep on Truckin'(我的水题之路——谁先大于168)
Keep on Truckin'Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 7166 Accepted: 5374DescriptionBoudreaux and Thibodeaux are on the road again . . .
2012-02-12 14:00:02 867
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人