- 一、基础数据结构——2.队列——3.双端队列和单调队列2
鸥梨菌Honevid
Algorithm数据结构
参考资料:《算法竞赛》,罗勇军郭卫斌著本博客作为阅读本书的学习笔记,仅供交流学习。建议关注罗勇军老师博客3.单调队列与最大子序和问题不限制子序列长度问题——贪心法或动态规划HDOJ1003MAXSUMMaxSumTimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)ProblemDescriptionGiven
- hdoj 2035 幂取余
Buffalooo
ProblemDescription求A^B的最后三位数表示的整数。说明:A^B的含义是“A的B次方”Input输入数据包含多个测试实例,每个实例占一行,由两个正整数A和B组成(1intmain(){intn,m;intans;inti;while(~scanf("%d%d",&n,&m)&&n&&m){ans=1;for(i=1;i<=m;i++){ans=(ans*n)%1000;}ans=a
- 2018-07-21-完全背包
termanary
题目:HDOJ-4508参考:1核心代码:for(i=0;i=b[i])p[j]=p[j]>p[j-b[i]]+a[i]?p[j]:p[j-b[i]]+a[i];}}
- 2018-07-21-数列
termanary
题目:HDOJ-1001HDOJ-2058HDOJ-2576参考:1假设x=sn则sn-sn-1=n(n+1)/2;s1=1;求sn的通项公式通过累加法之后化简可求得公式为Sn=n(n+1)(n+2)/6;对sn求余我们可以分成2部分即n(n+1)和(n+2)注意本题中要保证n(n+1)(n+2)能被6整除因为sn一定是个整数所以求余的时候要这样求余s1=(n(n+1))%(200905246);
- 深度优先搜索DFS与记忆化搜索
猴勒
算法算法深度优先
深度优先搜索(DFS)求连通块HDOJ-1241OilDeposits【题目】石油勘探公司把油田分成许多的大格,每个大格又分为许多小格,然后分析各个小格是否有石油矿藏。有矿藏的小格(用@表示)称为容器.如果2个容器相连(横、竖、斜),则它们是同一矿区的不同部分。输入各大格的矿藏分布(无矿藏用*表示),输出其中有多少个不同的矿区。#includeusingnamespacestd;charg[105
- HDOJ-2032
process21
杨辉三角ProblemDescription还记得中学时候学过的杨辉三角吗?具体的定义这里不再描述,你可以参考以下的图形:11112113311464115101051Input输入数据包含多个测试实例,每个测试实例的输入只包含一个正整数n(1<=n<=30),表示将要输出的杨辉三角的层数。Output对应于每一个输入,请输出相应层数的杨辉三角,每一层的整数之间用一个空格隔开,每一个杨辉三角后面加
- hdoj 2036 求多边形面积
Buffalooo
题目在这里:2036改革春风吹这题的目的就是求多边形的面积,求多边形的面积是通过将多边形分割成多个三角形,然后求多个三角形的面积和,就能得到多边形的面积。而求三角形的面积S=a*b由于题目是逆时针给的坐标,所以用向量求得的结果就是正数,如果是顺时针的话,求得的结果就是负数。如图是将左边转换为行列式后,行列式的运算:2036运算.jpg然后我们将所要求得多边形分割,如图所示2036分割.jpg那么如
- 2018-07-14-奇偶剪枝
termanary
题目:Problem-1010刚开始超时,网上查了一下,了解到了奇偶剪枝。改了一下,WA了一天,最后,看到:HDOJ1010HDU1010TempteroftheBoneACM1010INHDU-MiYu-博客园感谢提醒。原来用的是gets,scanf("%s"),getchar,scanf("%c"),都没有通过,最后用scanf("%c")和cin通过了。不过,我还有一点想不明白的是,效率应该
- ACM大学生程序设计竞赛在线题库最新精选题解(赵端阳)解析
长门yuki
本科acm算法acm竞赛
在线OJ题库部分解析测试网站主要为书中ZOJ,HDOJ。如果你准备入门acm,那以下题目顺序循序渐进,很适合各个阶段新手刷题。非常感谢本书作者和编审人员,后悔没有早点看到此书,相见恨晚!在此推荐一波希望更多像我一样的小白能从中受益受益。章节(完结)前言第1章基础编程技巧题第2章模拟编程技巧题第3章字符串处理技巧题(缺)第4章大整数运算技巧题第5章基本数据结构题第6章搜索算法题第7章动态规划算法题第
- 航电HDOJ2032 杨辉三角
Jccober
没事航电水水题目c语言算法杭电OJ
自己AC后又结合了网上一些好的思路重写了一边,废话少说上代码:#includeintmain(){inta[100][100];intn;for(inti=0;i<30;i++){a[i][0]=1;//第一列全赋为1a[i][i]=1;//每一行最后一个数为1for(intj=1;j<=i-1;j++){a[i][j]=a[i-1][j]+a[i-1][j-1];//根据杨辉三角规律处理}}wh
- 并查集与最小生成树
猴勒
图论算法
并查集HDOJ-1232畅通工程题目:省政府“畅通工程”的目标是使全省任何两个城镇间都可以实现交通,输入现有城镇道路统计表(表中列出了每条道路直接连通的城镇),求最少还需要建设的道路数量。(城镇从1到N编号)思路:将每组互相连通的城市视为一个不相交集合,不与其他城市连通的城市也视为一个集合。“使任何两个城镇间都可以实现交通”即将所有集合合并为一个集合。题目每行输入,定义该行的两个元素属于同一个集合
- 贪心算法经典习题7道
猴勒
贪心算法算法
HDOJ-1257最少拦截系统【题目】有一种带缺陷的导弹拦截系统,它的第一发炮弹能够到达任意的高度,之后每一发炮弹都不能超过前一发的高度。现给出导弹依次飞来的高度,计算一下最少需要多少套拦截系统。【思路】对每个炮弹进行处理:当前高度低于或等于其中一些系统:选择这些系统中高度最低的,该系统高度=当前高度当前高度高于所有系统:系统数+1,该系统高度=当前高度#include#defineINF3000
- 取石子问题 java,HDOJ 1527 取石子游戏(威佐夫博奕)
aniKuso
取石子问题java
取石子游戏TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):7095AcceptedSubmission(s):3884ProblemDescription有两堆石子,数量任意,可以不同。游戏开始由两个人轮流取石子。游戏规定,每次有两种不同的取法,一是可以在任意的一堆中
- SUM PROBLEM
bbmessi
Hey,welcometoHDOJ(HangzhouDianziUniversityOnlineJudge).Inthisproblem,yourtaskistocalculateSUM(n)=1+2+3+...+n.InputTheinputwillconsistofaseriesofintegersn,oneintegerperline.OutputForeachcase,outputSUM(
- HDOJ2006平方和与立方和
대휘kiyo
HDOJ修炼
#include#include#includeusingnamespacestd;intmain(){inta,b,t,ou=0,ji=0;while(scanf("%d%d",&a,&b)!=EOF){ou=0;ji=0;//错误的地方,忽略的情况,但是连续整数不就是默认ab){t=a;a=b;b=t;}*/for(inti=a;i<=b;i++){if(i%2==0){ou+=pow(i,2
- hdoj-2037
天高地远_3764
链接:http://acm.hdu.edu.cn/showproblem.php?pid=2037今年暑假不ACProblemDescription“今年暑假不AC?”“是的。”“那你干什么呢?”“看世界杯呀,笨蛋!”“@#$%^&*%...”确实如此,世界杯来了,球迷的节日也来了,估计很多ACMer也会抛开电脑,奔向电视了。作为球迷,一定想看尽量多的完整的比赛,当然,作为新时代的好青年,你一定还
- HDOJ 十天刷题及答案 c++
宇宙第一甜心
HDOJ
HDOJ10天刷题顺序每天四五道(1.1代表第一天第一道),从易到难分享一下我的结果,都AC了,欢迎提意见哦~文章目录1.1.HDOJ10001.2.HDOJ10891.3.HDOJ10961.4.HDOJ10011.5.HDOJ20002.1HDOJ20012.2HDOJ20022.3HDOJ2003绝对值2.4HDOJ2004成绩转换2.5HDOJ20053.1HDOJ20103.2HDOJ2
- hdoj4741 求空间中不平行的两条直线的最短距离及最短线段与两直线的交点
竹舞清风_忆
竞赛计算几何acm模板
SaveLabmanNo.004TimeLimit:2000/1000MS(Java/Others)MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):2115AcceptedSubmission(s):711ProblemDescriptionDuetothepreeminentresearchconductedbyDr.Kyouma,
- 01背包——HDOJ2602拾骨者
奋起的熊猫
【算法】背包01背包
问题陈述:Manyyearsago,inTeddy’shometowntherewasamanwhowascalled“BoneCollector”.Thismanliketocollectvariesofbones,suchasdog’s,cow’s,alsohewenttothegrave…ThebonecollectorhadabigbagwithavolumeofV,andalonghis
- HDOJ题目分类
ao350322
c/c++数据结构与算法人工智能
1001整数求和水题1002C语言实验题——两个数比较水题10031、2、3、4、5...简单题1004渊子赛马排序+贪心的方法归并1005HeroInMaze广度搜索1006Redraiment猜想数论:容斥定理1007童年生活二三事递推题1008University简单hash1009目标柏林简单模拟题1010Rails模拟题(堆栈)1011BoxofBricks简单题1012IMMEDIAT
- A - 比赛难度 HDU - 4546
i-Curve
T数据结构
最近,小明出了一些ACM编程题,决定在HDOJ举行一场公开赛。假设题目的数量一共是n道,这些题目的难度被评级为一个不超过1000的非负整数,并且一场比赛至少需要一个题,而这场比赛的难度,就是所有题目的难度之和,同时,我们认为一场比赛与本场题目的顺序无关,而且题目也不会重复。显而易见,很容易得到如下信息:假设比赛只用1个题目,有n种方案;假设比赛使用2个题目,有(n-1)n/2种方案;假设比赛使用3
- HDU - 4546 比赛难度(Java & JS & Python)
伏城之外
算法与数据结构算法HDU-4546JavaJavaScriptPython
题目来源Problem-4546(hdu.edu.cn)题目描述最近,小明出了一些ACM编程题,决定在HDOJ举行一场公开赛。假设题目的数量一共是n道,这些题目的难度被评级为一个不超过1000的非负整数,并且一场比赛至少需要一个题,而这场比赛的难度,就是所有题目的难度之和,同时,我们认为一场比赛与本场题目的顺序无关,而且题目也不会重复。显而易见,很容易得到如下信息:假设比赛只用1个题目,有n种方案
- ACM2.3
九九询
A+BAgain----hdu-2057ProblemDescriptionTheremustbemanyA+BproblemsinourHDOJ,nowanewoneiscoming.Giveyoutwohexadecimalintegers,yourtaskistocalculatethesumofthem,andprintitinhexadecimaltoo.Easy?ACit!InputT
- 2018-07-01-HDOJ-2662-coin
termanary
学习自:【hdu-2662Coin】-ismdeep-博客园题目大意:任意两个质数,存在一个数,大于这个数的所有数都可以用这两个质数的次叠加表示。原证明:设所求为n,那么n+a、n+b可以用a、b线性表出,而n不可。所以n+a=x1*a+y1*b,n+b=x2*a+y2*b所以n=(x1-1)*a+y1*bn=x2*a+(y2-1)*b因为n不能被线性表出,所以x1=0,y2=0所以n+a=y1*
- HDOJ入门刷题记录
Lifegoeson.
刷题记录hdojhdoj刷题
菜鸟的刷题记录第一阶段:1000、1089—1096、10011000:A+BProblem#includeusingnamespacestd;intmain(void){inta,b;while(scanf("%d%d",&a,&b)!=EOF)coutusingnamespacestd;intmain(void){inta,b;while(scanf("%d%d",&a,&b)==2)cout
- hdoj 2022 选主角
Buffalooo
ProblemDescriptionpotato老师虽然很喜欢教书,但是迫于生活压力,不得不想办法在业余时间挣点外快以养家糊口。“做什么比较挣钱呢?筛沙子没力气,看大门又不够帅...”potato老师很是无奈。“张艺谋比你还难看,现在多有钱呀,听说还要导演奥运开幕式呢!你为什么不去娱乐圈发展呢?”lwg在一旁出主意。嗯,也是,为了生存,就委屈点到娱乐圈混混吧,马上就拍一部激光电影《杭电记忆——回来
- hdoj5806 NanoApe Loves Sequence Ⅱ
科学旅行者
题目:ProblemDescriptionNanoApe,theRetiredDog,hasreturnedbacktoprepareforfortheNationalHigherEducationEntranceExamination!Inmathclass,NanoApepickedupsequencesonceagain.Hewrotedownasequencewithnnumbersand
- OJ奇淫巧计汇总(c++版)
Explosion_M
刷题技巧OJ技巧
刷题时遇到的各种奇淫巧计(我认为的)本文章仅记录本菜鸟刷题时被教育所收获的经验长期更新通用篇PAT篇HDOJ篇通用篇一行多输出要求时,要求每个输出之间有一个空格,同时最后一个输出之后没有空格//这种情况普遍出现在循环输出时//以for循环为例for(inti=0;i>example){...}//这种写法在自己的ide中是不起作用的,应为它只有在读取到EOF时才会判断为false//但是OJ系统就
- 整数的尾数(HDOJ2099)
劳斯鸡
HDOJ2099题目的原意:设置好两个整数A、B,再设置一个I(0I<100),求出当的余数为零时的所有I值。思路:1.建立一个循环,利用公式(a*100+i)%b==0,将I由0到100的条件下都判断一遍,筛选出符合的数字并赋值给一个设定好的整形数组g[100]。2.再建立一个循环,分别输出每一个值。这里要注意同组数据之间留空格,最后一个数据不留空格并换行。在这里我设置里一个变量flag,初值为
- hdoj 2034 人见人爱A-B
Buffalooo
题目:人见人爱A-B这题的要求是,输入两个集合A、B,然后输出两个集合A-B。题目的要求非常简单,但是要注意的一点就是要先给集合A进行排序,因为题目要求从小到大输出答案。第二个要注意的是输出的格式,题目要求输出的每个元素后面要跟一个空格。我的思路就是要让B集合中的每个数跟A集合进行对比。定义两个整形变量flag=0和num=0。flag是用来判断B中是否有元素与A中的元素相同。而num是记录一共有
- jQuery 跨域访问的三种方式 No 'Access-Control-Allow-Origin' header is present on the reque
qiaolevip
每天进步一点点学习永无止境跨域众观千象
XMLHttpRequest cannot load http://v.xxx.com. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:63342' is therefore not allowed access. test.html:1
- mysql 分区查询优化
annan211
java分区优化mysql
分区查询优化
引入分区可以给查询带来一定的优势,但同时也会引入一些bug.
分区最大的优点就是优化器可以根据分区函数来过滤掉一些分区,通过分区过滤可以让查询扫描更少的数据。
所以,对于访问分区表来说,很重要的一点是要在where 条件中带入分区,让优化器过滤掉无需访问的分区。
可以通过查看explain执行计划,是否携带 partitions
- MYSQL存储过程中使用游标
chicony
Mysql存储过程
DELIMITER $$
DROP PROCEDURE IF EXISTS getUserInfo $$
CREATE PROCEDURE getUserInfo(in date_day datetime)-- -- 实例-- 存储过程名为:getUserInfo-- 参数为:date_day日期格式:2008-03-08-- BEGINdecla
- mysql 和 sqlite 区别
Array_06
sqlite
转载:
http://www.cnblogs.com/ygm900/p/3460663.html
mysql 和 sqlite 区别
SQLITE是单机数据库。功能简约,小型化,追求最大磁盘效率
MYSQL是完善的服务器数据库。功能全面,综合化,追求最大并发效率
MYSQL、Sybase、Oracle等这些都是试用于服务器数据量大功能多需要安装,例如网站访问量比较大的。而sq
- pinyin4j使用
oloz
pinyin4j
首先需要pinyin4j的jar包支持;jar包已上传至附件内
方法一:把汉字转换为拼音;例如:编程转换后则为biancheng
/**
* 将汉字转换为全拼
* @param src 你的需要转换的汉字
* @param isUPPERCASE 是否转换为大写的拼音; true:转换为大写;fal
- 微博发送私信
随意而生
微博
在前面文章中说了如和获取登陆时候所需要的cookie,现在只要拿到最后登陆所需要的cookie,然后抓包分析一下微博私信发送界面
http://weibo.com/message/history?uid=****&name=****
可以发现其发送提交的Post请求和其中的数据,
让后用程序模拟发送POST请求中的数据,带着cookie发送到私信的接入口,就可以实现发私信的功能了。
- jsp
香水浓
jsp
JSP初始化
容器载入JSP文件后,它会在为请求提供任何服务前调用jspInit()方法。如果您需要执行自定义的JSP初始化任务,复写jspInit()方法就行了
JSP执行
这一阶段描述了JSP生命周期中一切与请求相关的交互行为,直到被销毁。
当JSP网页完成初始化后
- 在 Windows 上安装 SVN Subversion 服务端
AdyZhang
SVN
在 Windows 上安装 SVN Subversion 服务端2009-09-16高宏伟哈尔滨市道里区通达街291号
最佳阅读效果请访问原地址:http://blog.donews.com/dukejoe/archive/2009/09/16/1560917.aspx
现在的Subversion已经足够稳定,而且已经进入了它的黄金时段。我们看到大量的项目都在使
- android开发中如何使用 alertDialog从listView中删除数据?
aijuans
android
我现在使用listView展示了很多的配置信息,我现在想在点击其中一条的时候填出 alertDialog,点击确认后就删除该条数据,( ArrayAdapter ,ArrayList,listView 全部删除),我知道在 下面的onItemLongClick 方法中 参数 arg2 是选中的序号,但是我不知道如何继续处理下去 1 2 3
- jdk-6u26-linux-x64.bin 安装
baalwolf
linux
1.上传安装文件(jdk-6u26-linux-x64.bin)
2.修改权限
[root@localhost ~]# ls -l /usr/local/jdk-6u26-linux-x64.bin
3.执行安装文件
[root@localhost ~]# cd /usr/local
[root@localhost local]# ./jdk-6u26-linux-x64.bin&nbs
- MongoDB经典面试题集锦
BigBird2012
mongodb
1.什么是NoSQL数据库?NoSQL和RDBMS有什么区别?在哪些情况下使用和不使用NoSQL数据库?
NoSQL是非关系型数据库,NoSQL = Not Only SQL。
关系型数据库采用的结构化的数据,NoSQL采用的是键值对的方式存储数据。
在处理非结构化/半结构化的大数据时;在水平方向上进行扩展时;随时应对动态增加的数据项时可以优先考虑使用NoSQL数据库。
在考虑数据库的成熟
- JavaScript异步编程Promise模式的6个特性
bijian1013
JavaScriptPromise
Promise是一个非常有价值的构造器,能够帮助你避免使用镶套匿名方法,而使用更具有可读性的方式组装异步代码。这里我们将介绍6个最简单的特性。
在我们开始正式介绍之前,我们想看看Javascript Promise的样子:
var p = new Promise(function(r
- [Zookeeper学习笔记之八]Zookeeper源代码分析之Zookeeper.ZKWatchManager
bit1129
zookeeper
ClientWatchManager接口
//接口的唯一方法materialize用于确定那些Watcher需要被通知
//确定Watcher需要三方面的因素1.事件状态 2.事件类型 3.znode的path
public interface ClientWatchManager {
/**
* Return a set of watchers that should
- 【Scala十五】Scala核心九:隐式转换之二
bit1129
scala
隐式转换存在的必要性,
在Java Swing中,按钮点击事件的处理,转换为Scala的的写法如下:
val button = new JButton
button.addActionListener(
new ActionListener {
def actionPerformed(event: ActionEvent) {
- Android JSON数据的解析与封装小Demo
ronin47
转自:http://www.open-open.com/lib/view/open1420529336406.html
package com.example.jsondemo;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
impor
- [设计]字体创意设计方法谈
brotherlamp
UIui自学ui视频ui教程ui资料
从古至今,文字在我们的生活中是必不可少的事物,我们不能想象没有文字的世界将会是怎样。在平面设计中,UI设计师在文字上所花的心思和功夫最多,因为文字能直观地表达UI设计师所的意念。在文字上的创造设计,直接反映出平面作品的主题。
如设计一幅戴尔笔记本电脑的广告海报,假设海报上没有出现“戴尔”两个文字,即使放上所有戴尔笔记本电脑的图片都不能让人们得知这些电脑是什么品牌。只要写上“戴尔笔
- 单调队列-用一个长度为k的窗在整数数列上移动,求窗里面所包含的数的最大值
bylijinnan
java算法面试题
import java.util.LinkedList;
/*
单调队列 滑动窗口
单调队列是这样的一个队列:队列里面的元素是有序的,是递增或者递减
题目:给定一个长度为N的整数数列a(i),i=0,1,...,N-1和窗长度k.
要求:f(i) = max{a(i-k+1),a(i-k+2),..., a(i)},i = 0,1,...,N-1
问题的另一种描述就
- struts2处理一个form多个submit
chiangfai
struts2
web应用中,为完成不同工作,一个jsp的form标签可能有多个submit。如下代码:
<s:form action="submit" method="post" namespace="/my">
<s:textfield name="msg" label="叙述:">
- shell查找上个月,陷阱及野路子
chenchao051
shell
date -d "-1 month" +%F
以上这段代码,假如在2012/10/31执行,结果并不会出现你预计的9月份,而是会出现八月份,原因是10月份有31天,9月份30天,所以-1 month在10月份看来要减去31天,所以直接到了8月31日这天,这不靠谱。
野路子解决:假设当天日期大于15号
- mysql导出数据中文乱码问题
daizj
mysql中文乱码导数据
解决mysql导入导出数据乱码问题方法:
1、进入mysql,通过如下命令查看数据库编码方式:
mysql> show variables like 'character_set_%';
+--------------------------+----------------------------------------+
| Variable_name&nbs
- SAE部署Smarty出现:Uncaught exception 'SmartyException' with message 'unable to write
dcj3sjt126com
PHPsmartysae
对于SAE出现的问题:Uncaught exception 'SmartyException' with message 'unable to write file...。
官方给出了详细的FAQ:http://sae.sina.com.cn/?m=faqs&catId=11#show_213
解决方案为:
01
$path
- 《教父》系列台词
dcj3sjt126com
Your love is also your weak point.
你的所爱同时也是你的弱点。
If anything in this life is certain, if history has taught us anything, it is
that you can kill anyone.
不顾家的人永远不可能成为一个真正的男人。 &
- mongodb安装与使用
dyy_gusi
mongo
一.MongoDB安装和启动,widndows和linux基本相同
1.下载数据库,
linux:mongodb-linux-x86_64-ubuntu1404-3.0.3.tgz
2.解压文件,并且放置到合适的位置
tar -vxf mongodb-linux-x86_64-ubun
- Git排除目录
geeksun
git
在Git的版本控制中,可能有些文件是不需要加入控制的,那我们在提交代码时就需要忽略这些文件,下面讲讲应该怎么给Git配置一些忽略规则。
有三种方法可以忽略掉这些文件,这三种方法都能达到目的,只不过适用情景不一样。
1. 针对单一工程排除文件
这种方式会让这个工程的所有修改者在克隆代码的同时,也能克隆到过滤规则,而不用自己再写一份,这就能保证所有修改者应用的都是同一
- Ubuntu 创建开机自启动脚本的方法
hongtoushizi
ubuntu
转载自: http://rongjih.blog.163.com/blog/static/33574461201111504843245/
Ubuntu 创建开机自启动脚本的步骤如下:
1) 将你的启动脚本复制到 /etc/init.d目录下 以下假设你的脚本文件名为 test。
2) 设置脚本文件的权限 $ sudo chmod 755
- 第八章 流量复制/AB测试/协程
jinnianshilongnian
nginxluacoroutine
流量复制
在实际开发中经常涉及到项目的升级,而该升级不能简单的上线就完事了,需要验证该升级是否兼容老的上线,因此可能需要并行运行两个项目一段时间进行数据比对和校验,待没问题后再进行上线。这其实就需要进行流量复制,把流量复制到其他服务器上,一种方式是使用如tcpcopy引流;另外我们还可以使用nginx的HttpLuaModule模块中的ngx.location.capture_multi进行并发
- 电商系统商品表设计
lkl
DROP TABLE IF EXISTS `category`; -- 类目表
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `category` (
`id` int(11) NOT NUL
- 修改phpMyAdmin导入SQL文件的大小限制
pda158
sqlmysql
用phpMyAdmin导入mysql数据库时,我的10M的
数据库不能导入,提示mysql数据库最大只能导入2M。
phpMyAdmin数据库导入出错: You probably tried to upload too large file. Please refer to documentation for ways to workaround this limit.
- Tomcat性能调优方案
Sobfist
apachejvmtomcat应用服务器
一、操作系统调优
对于操作系统优化来说,是尽可能的增大可使用的内存容量、提高CPU的频率,保证文件系统的读写速率等。经过压力测试验证,在并发连接很多的情况下,CPU的处理能力越强,系统运行速度越快。。
【适用场景】 任何项目。
二、Java虚拟机调优
应该选择SUN的JVM,在满足项目需要的前提下,尽量选用版本较高的JVM,一般来说高版本产品在速度和效率上比低版本会有改进。
J
- SQLServer学习笔记
vipbooks
数据结构xml
1、create database school 创建数据库school
2、drop database school 删除数据库school
3、use school 连接到school数据库,使其成为当前数据库
4、create table class(classID int primary key identity not null)
创建一个名为class的表,其有一