java中的算数运算符 + - * / % ++ -- + +: 加法运算符 - : 减法运算符 *: 乘法运算符 / : 除法运算符 注意: 除数不能为0,除数为0会报出异常 整数运算默认得到整数,如果要得到浮点数的值,请使用浮点数参与运算 %: 取余运算符 注意: 取模在java中的关键字是Ma ...
分类:
其他好文 时间:
2019-03-18 12:04:32
阅读次数:
147
在搭建lepus过程中,lepus启动失败 用tail -f /usr/local/lepuslogs/lepus.log查看错误日志为: import functions as func File "./include/functions.py", line 285, in <module> ma ...
分类:
数据库 时间:
2019-03-18 12:02:23
阅读次数:
304
添加JVM监控: nohup java -Xms8192M -Xmx16384M -XX:PermSize=1024M -server -Dprogram.name=avmon-server -Dcom.sun.management.jmxremote.port=12345 -Dcom.sun.ma ...
分类:
其他好文 时间:
2019-03-18 11:59:08
阅读次数:
138
【Spark内存模型】 Spark在一个executor中的内存分为3块:storage内存、execution内存、other内存。 1. storage内存:存储broadcast,cache,persist数据的地方。 2. execution内存:执行内存,join、aggregate、ma ...
分类:
其他好文 时间:
2019-03-18 01:15:47
阅读次数:
156
Eclipse Memory Analyzer Tool(MAT)是一个强大的基于Eclipse的内存分析工具,可以帮助我们找到内存泄露,减少内存消耗。 工作中经常会遇到一些内存溢出、内存泄露等问题,同时还可能导致CPU使用率也很高,因为在频繁的进行GC垃圾回收,这时候就需要分析导致问题的原因,MA ...
分类:
系统相关 时间:
2019-03-17 23:37:17
阅读次数:
265
题目大意:求 $$\sum\limits_{i=2}^n\phi(i)$$ 题解:利用与埃筛类似的操作,可在 $O(nlogn)$ 时间求出结果。 代码如下 cpp include using namespace std; const int maxn=3010; int kase,n,phi[ma ...
分类:
其他好文 时间:
2019-03-17 23:15:08
阅读次数:
134
现要在目录 mainDir 下编译库libmain.so, 但是其 依赖于 > libsub.so,sub.so在目录 mainDir / subDir 下,且subDir不在LD_LIBRARY_PATH以及环境变量中。 现有如下执行: 1. gcc -share -o libmain.so ma ...
分类:
其他好文 时间:
2019-03-14 13:30:41
阅读次数:
196
#include #include #include #include #include #include #include #include using namespace std; const int maxn = 1e5 +10 ; struct EDGE { int u,v,w; }e[ma... ...
分类:
其他好文 时间:
2019-03-14 13:15:47
阅读次数:
177
#include #include using namespace std; int m[5][5],w[3][3],s[10],b[3][3],c[5],ans[10][10]; char fa[100],ma[100],qu[100]; int gcd(int a,int b) { return... ...
分类:
其他好文 时间:
2019-03-10 20:40:13
阅读次数:
139
模拟垂直滚动条,效果如图所示 html common.js // 判断数组是否还有这个元素 function include(arr, item) { for(var i = 0; i max) { var a = min; min = max; max = a; } return min + Ma ...
分类:
其他好文 时间:
2019-03-07 22:06:07
阅读次数:
185