堆快照 -Xmx10M -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=C:\m.hprof 在系统发生错误时,运行第三方脚本 -XX:OnOutOfMemoryError=c:\reset.bat 获取GC信息 简要: -verbose:gc -XX:+PrintGC 详细: -X...
分类:
其他好文 时间:
2014-10-22 01:09:59
阅读次数:
186
题目大意:给定一个数列X(i+1)=(a*Xi+b)%p 求最小的i>0,使Xi=t
0.0 此题能1A真是太好了
首先讨论特殊情况
若X1=t ans=1
若a=0 ans=b==t?2:-1
若a=1 X1+b*(ans-1)==t (%p) 扩展欧几里得
令
temp=b/(a-1)
则有
(X(i+1)+temp)=a*(Xi+temp)
Xans=(X1+temp)*...
分类:
其他好文 时间:
2014-10-21 17:52:32
阅读次数:
197
//排序并获取index的顺序:4,7,2,9-->9,7,4,2-->4,2,1,3 Array.prototype.getIndex=function(){ var orderLength = this.length; var temp,tp; ...
分类:
编程语言 时间:
2014-10-21 13:36:59
阅读次数:
160
1 Private Shared Function ProgramExists(ByVal pgName As String) As Boolean 2 Dim temp As String = Nothing 3 Dim tempType As String = ...
分类:
Web程序 时间:
2014-10-20 21:00:45
阅读次数:
350
用MATLAB写了个这样的程序if((0<pwr<=2))wf_temp1=round(temp_wf0/2^7);elseif((2<pwr<=4))wf_temp1=round(temp_wf0/2^8);elseif((4<pwr<=8))wf_temp1=round(temp_wf0/2^9...
分类:
其他好文 时间:
2014-10-20 19:21:07
阅读次数:
160
--登录:sys/ken@orcl as sysdba1、建立表空间、授予权限/*分为四步 *//*第1步:创建临时表空间 */create temporary tablespace user_temp tempfile 'D:\oracle\oradata\Oracle9i\user_temp.....
分类:
数据库 时间:
2014-10-20 18:59:46
阅读次数:
248
查找重复次数最多的子字符串,借鉴兆芯查找重复次数最多的字符,我们可以进行扩展,查找重复次数最多的子字符串。
基本思想是把重复次数最大记录下来,并记录起始位置;
#include
#include
using namespace std;
int mystrlen(char *str)
{
int sum(0);
char *temp=str;
...
分类:
其他好文 时间:
2014-10-20 17:20:16
阅读次数:
202
/*分为四步 */ /*第1步:创建临时表空间 */ create temporary tablespace user_temp tempfile ‘D:\oracle\oradata\Oracle9i\user_temp.dbf‘ size 50m autoextend on next 50m maxsize 20480m extent management ...
分类:
其他好文 时间:
2014-10-20 11:57:01
阅读次数:
133
当一个类有多个构造函数的时候,常使用this构造器:public class SomeClass
{ public SomeClass() { //TODO:初始化一些字段 } public SomeClass(string temp) : this() { //TODO:初始化另外一些字段 }
}...
分类:
其他好文 时间:
2014-10-20 09:53:08
阅读次数:
175
这个问题是Unity4.5版本的一个bug,导入的"Water(Basic)"中的水显示出来没有波浪等动态效果解决办法:一:导入完整的4.3版本的Water(Basic)二:修改Water(Basic)->Sources->Shade->FX-WaterSimple.shader//unity4.3.0
//line45
temp.xyzw=v.vertex.xzxz*_WaveScale/un..
分类:
编程语言 时间:
2014-10-20 02:17:24
阅读次数:
386