using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u ...
nohup java -Dserver.port=8087 -Dspring.config.location=application-generic.yml -jar ${APP_HOME}/${APP_NAME} >/dev/null 2>&1 #-Dserver.port为指定端口启动 #-Ds ...
分类:
移动开发 时间:
2020-07-08 15:25:20
阅读次数:
106
1.Memory用的是hash index,但是InnoDB和MyISAM用的是B+树,不用二叉树的原因就是深度可能过深,深度过深影响查询和IO性能; 2.索引使用树的过程: BST:二分查找,不平衡AVL:二叉平衡树,最长子树和最短子树的高度之差不能超过1,数据越多,旋转越多,插入删除效率极低,查 ...
分类:
数据库 时间:
2020-07-08 15:06:03
阅读次数:
70
A - Mental Rotation(模拟) 思路: 只要发现旋转的规律就好了 就是向右旋转的时候,矩阵整体旋转,之后里面的图形成为逆时针旋转$90°$的图形 #include<iostream> #include<algorithm> #include<cstring> using namesp ...
分类:
其他好文 时间:
2020-07-08 01:42:59
阅读次数:
109
https://ac.nowcoder.com/acm/contest/6226/C 、 修修去年种下了一棵树,现在它已经有n个结点了。 修修非常擅长数数,他很快就数出了包含每个点的连通点集的数量。 澜澜也想知道答案,但他不会数数,于是他把问题交给了你。 换根dp 第一遍dfs , 从下到上算贡献 ...
分类:
其他好文 时间:
2020-07-08 00:59:29
阅读次数:
252
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1024 题目大意:给m 和n个数,将n个数分为m段,不交叉,求m段和的最大值。 Sample Input 1 3 1 2 3 2 6 -1 4 -2 3 -2 3 Sample Output 6 8 em ...
分类:
其他好文 时间:
2020-07-08 00:58:59
阅读次数:
82
方法在Program中,实例成员要实例化对象【对象.方法】之后才能调用 using System; using System.Collections.Generic; using System.Text; namespace Exp04_1 { class Program { //方法在Progra ...
快排 #include<iostream> #include<cstdio> #include<algorithm> #include<cstring> #include<vector> #include<stack> #include<map> #include<cstdio> #include< ...
分类:
其他好文 时间:
2020-07-07 21:01:02
阅读次数:
81
排序规则: 比较相邻的元素。如果第一个比第二个大,就交换它们两个。 对每对相邻元素做同样的工作,从开始第一对到最后一对。这步做完之后,最后的元素会是最大的数。 针对所有的元素重复以上的步骤,除了最后一个。 持续每次对越来越少的元素重复上面的步骤,直到没有任何一对数字需要进行比较。 时间复杂度:O(n ...
分类:
编程语言 时间:
2020-07-07 19:32:35
阅读次数:
60
废话不多说,直接上代码 —— 将下面的代码赋给所需要控制的物体上即可。 using System.Collections; using System.Collections.Generic; using UnityEngine; public class MouseControlModel : Mo ...
分类:
编程语言 时间:
2020-07-07 17:35:12
阅读次数:
67