具体的解决方法:手动设置MaxPermSize的大小修改 TOMCAT_HOME/bin/catalina.bat(Linux上为catalina.sh)文件,在echo "using CATALINA_BASE:$CATALINA_BASE"上面加入这一行内容:set JAVA_OPTS=%JAV...
分类:
编程语言 时间:
2015-06-19 13:22:06
阅读次数:
112
题目:在一个序列中找一个最长子串,使得子串的m
维护一个递减的单调队列q1(队首为当前最大),同时维护一个递增的单调队列q2(队首为当前最小),控制最大减最小 小于等于k , 若最大减最小大于等于m,则更新答案。
代码:
#include
#include
#include
#include
#include
using namespace std;
const int N = 1e5+10...
分类:
其他好文 时间:
2015-06-19 11:58:57
阅读次数:
114
#include
#include
using namespace std;
const char str[][4] = {"yi","er","san","si","wu","liu","qi","ba","jiu"};
const int num[] = {2,2,3,2,2,3,2,2,3};//寻找对应的字符串的大小。
int GetIndex(c...
分类:
编程语言 时间:
2015-06-19 11:53:06
阅读次数:
337
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1527
hint:威佐夫博弈#include
#include
#include
#include
using namespace std;
const double k=(sqrt(5.0)-1.0)/2.0;
int m...
分类:
其他好文 时间:
2015-06-19 10:41:17
阅读次数:
129
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1406
这题简单,就是有点坑,要考虑m>n的时候#include
#include
#include
using namespace std;int main()
{
int t;
scanf("%d",&t);
w...
分类:
其他好文 时间:
2015-06-19 10:40:23
阅读次数:
112
#include
using namespace std;class MaxHash
{
public:
MaxHash(int n)
{
data = new int[n];
size = n;
}
void Insert(int a[], int n)
{
int i = 0;...
分类:
编程语言 时间:
2015-06-19 10:35:26
阅读次数:
187
孙广东 2015.6.17熟悉NGUI的人可定知道了。但是NGUI弄的有些繁琐, 感兴趣的人可以将NGUI的TypewriterEffect类转成 UGUI特定的,因为有些以来的其他脚本,不爱弄。我这个只是简化的内容。够用了using System;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;
///
/...
分类:
其他好文 时间:
2015-06-19 10:35:01
阅读次数:
220
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 数组{ class Class1 { ...
分类:
其他好文 时间:
2015-06-19 10:07:45
阅读次数:
110
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication2{ class...
分类:
其他好文 时间:
2015-06-19 08:58:31
阅读次数:
124