- 博客(33)
- 资源 (3)
- 收藏
- 关注
原创 mysql创建表和删除表
mysql创建和删除表创建表简单的方式CREATE TABLE person (number INT(11),name VARCHAR(255),birthday DATE);或者是CREATE TABLE IF NOT EXISTS person (number INT(11),name VARCHAR(255),birthday DATE);
2014-11-02 22:05:50
567
转载 MyEclipse第一个Servlet程序
转自:http://blog.youkuaiyun.com/wangdingqiaoit/article/details/7674367前言本文旨在帮助学习java web开发的人员,熟悉环境,在Win7系统下运行自己的第一个Servlet程序,因为有时候配置不当或系统原因可能会运行不成功,这给初学者带来了一 定烦恼,我也是为此烦恼过几小时。现手把手介绍利用MyEclipse,连接tomcat服务器,
2014-10-28 18:20:37
559
原创 POJ 3304 segments (直线与线段相交)
SegmentsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 9837 Accepted: 3030DescriptionGiven n segments in the two dimensional space, write a program, wh
2014-10-26 19:48:45
490
转载 JAVA的StringBuffer类
JAVA的StringBuffer类 StringBuffer类和String一样,也用来代表字符串,只是由于StringBuffer的内部实现方式和String不同,所以StringBuffer在进行字符串处理时,不生成新的对象,在内存使用上要优于String类。 所以在实际使用时,如果经常需要对一个字符串进行修改,例如插入、删除等操作,使用StringBu
2014-10-16 21:40:19
344
原创 POJ 2398 Toy Storage 计算几何(点与直线的关系)
Toy StorageTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 4034 Accepted: 2394DescriptionMom and dad have a problem: their child, Reza, never puts his toy
2014-10-16 16:37:33
632
原创 计算几何--矢量和叉积
矢量 如果一条线段的端点是有次序之分的话,那么这种线段就称为 有向线段,如果有向线段p1p2的起点p1在坐标的原点,则可以把它称为矢量 p2矢量的加减 设二维矢量 P = (x1, y1), Q = (x2, y2),则 P + Q = (x1 + x2, y1 + y2), P - Q = (x1 - x2, y1 - y2),且有 P + Q = Q + P,
2014-10-16 12:35:39
2618
原创 POJ 2318 TOYS 计算几何(点与直线关系)
TOYSTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 10668 Accepted: 5130DescriptionCalculate the number of toys that land in each bin of a partitioned toy
2014-10-15 22:01:39
1810
1
转载 ACM计算几何专项练习题目总结
//第一期计算几何题的特点与做题要领:1.大部分不会很难,少部分题目思路很巧妙2.做计算几何题目,模板很重要,模板必须高度可靠。3.要注意代码的组织,因为计算几何的题目很容易上两百行代码,里面大部分是模板。如果代码一片混乱,那么会严重影响做题正确率。4.注意精度控制。5.能用整数的地方尽量用整数,要想到扩大数据的方法(扩大一倍,或扩大sqrt2)。因为整数不用考
2014-10-14 23:42:43
973
转载 Sublime 相关的一些配置问题
一. Sublime Text 3 介绍, 下载, 安装, 破解, 汉化,插件安装1. Sublime Text 3 介绍:代码编辑器或者文本编辑器, 对于程序员来说, 就像剑与战士一样, 谁都想拥有一把可以随心驾驭且锋利无比的宝剑,而每一位程序员,同 样会去追求最适合自己的强大、灵活的编辑器,相信你和我一样,都不 会例外。Sublime Text 3 就是一款强大的代码编辑器,它小巧
2014-09-26 16:37:49
744
原创 Codeforces Round #263 (Div. 2) C. Appleman and Toastman(贪心)
C. Appleman and Toastmantime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAppleman and Toastman play a game.
2014-08-27 10:27:10
451
原创 codeforces 462 B.Appleman and Card Game (贪心)
B. Appleman and Card Gametime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAppleman has n cards. Each card ha
2014-08-27 10:11:15
1075
原创 Codeforces Round #263 (Div. 2) A.Appleman and Easy Task(坑)
A. Appleman and Easy Tasktime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputToastman came up with a very easy
2014-08-27 09:43:34
850
原创 POJ 2965 The Pilots Brothers' refrigerator(dfs+记录路径)
The Pilots Brothers' refrigeratorTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 18634 Accepted: 7141 Special JudgeDescriptionThe game “The Pilots
2014-08-23 15:17:58
343
原创 POJ 1083 Moving Tables(水题)
Moving TablesTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 25912 Accepted: 8622DescriptionThe famous ACM (Advanced Computer Maker) Company has rented
2014-08-19 16:09:04
411
原创 POJ 2739 Sum of Consecutive Prime Numbers(水题)
Sum of Consecutive Prime NumbersTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 19153 Accepted: 10504DescriptionSome positive integers can be represente
2014-08-19 14:14:55
483
原创 POJ 1207 The 3n + 1 problem(水题)
The 3n + 1 problemTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 51392 Accepted: 16322DescriptionProblems in Computer Science are often classified as bel
2014-08-16 21:18:38
465
原创 POJ 1005 I Think I Need a Houseboat(水题)
I Think I Need a HouseboatTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 86746 Accepted: 37616DescriptionFred Mapper is considering purchasing some lan
2014-08-16 17:06:48
376
原创 POJ 1004 Financial Management(水题)
Financial ManagementTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 132489 Accepted: 57099DescriptionLarry graduated this year and finally has a job. He
2014-08-16 16:48:14
419
原创 POJ 1003 Hangover (水题)
HangoverTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 101382 Accepted: 49291DescriptionHow far can you make a stack of cards overhang a table? If you
2014-08-16 16:35:53
543
原创 POJ 3299 Humidex(水题)
HumidexTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 16680 Accepted: 6063DescriptionAdapted from Wikipedia, the free encyclopediaThe humidex is a me
2014-08-16 16:18:35
665
转载 POJ 题目分类
OJ上的一些水题(可用来练手和增加自信) (poj3299,poj2159,poj2739,poj1083,poj2262,poj1503,poj3006,poj2255,poj3094)初期:一.基本算法: (1)枚举. (poj1753,poj2965) (2)贪心(poj1328,poj2109,poj2586) (3)递归和分治法.
2014-08-16 14:12:45
360
原创 HDOJ 1058 Humble Numbers(基础DP方程)
Humble NumbersTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 17254 Accepted Submission(s): 7495Problem DescriptionA number whose
2014-08-12 22:45:02
538
原创 HDOJ 1421 搬寝室(基础DP方程)
搬寝室Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 17309 Accepted Submission(s): 5854Problem Description搬寝室是很累的,xhd深有体会.时间追述2
2014-08-12 16:34:28
473
原创 codeforces 451 D.Count Good Substrings (思维)
D. Count Good Substringstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputWe call a string good, if after me
2014-08-12 14:09:33
455
原创 HDOJ 1176 免费馅饼(基础DP方程)
免费馅饼 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
2014-08-11 16:55:40
510
原创 Codeforces 382 B. Number Busters(数论推公式)
B. Number Busterstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputArthur and Alexander are number busters. T
2014-08-09 16:08:52
830
2
原创 HDOJ 3530 Subsequence(单调队列(含单调队列详解))
Subsequence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
2014-08-09 12:51:26
517
原创 CodeForces 300C Beautiful Numbers (乘法逆元+快速幂(含乘法逆元的讲解))
C. Beautiful Numberstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVitaly is a very weird man. He's got two favorit
2014-08-06 23:45:43
1865
原创 HDU 4355 Party All the Time (三分算法的应用(含三分算法的讲解))
Party All the TimeTime Limit: 6000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3351 Accepted Submission(s): 1050Problem DescriptionIn the
2014-08-04 23:50:24
820
3
原创 Codeforces Round #232 (Div. 2) B. On Corruption and Numbers 题解
Codeforces Round #232 (Div. 2) B. On Corruption and Numbers B. On Corruptio
2014-02-27 17:25:37
667
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人