题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1848 代码如下: #include<bits/stdc++.h> using namespace std; typedef unsigned int ui; typedef long long ll; ...
分类:
其他好文 时间:
2020-06-06 19:00:21
阅读次数:
75
java有八大基本数据类型类型从低到高如下所示: byte—> short, char—> int —> long—>float —> double 1个字节是8位只有8种基本类型可以算.其他引用类型都是由java虚拟机决定的自己不能操作byte 1字节short 2字节int 4字节long 8字 ...
分类:
编程语言 时间:
2020-06-06 18:51:58
阅读次数:
94
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1527 代码如下: #include<bits/stdc++.h> using namespace std; typedef unsigned int ui; typedef long long ll; ...
分类:
其他好文 时间:
2020-06-06 18:18:17
阅读次数:
60
128. 最长连续序列 给定一个未排序的整数数组,找出最长连续序列的长度。要求算法的时间复杂度为 O(n)。示例:输入: [100, 4, 200, 1, 3, 2]输出: 4解释: 最长连续序列是 [1, 2, 3, 4]。它的长度为 4。 1.解题思路 由于题目要求连续序列,因此用 集合 去重。 ...
分类:
其他好文 时间:
2020-06-06 13:07:45
阅读次数:
50
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1521 代码如下: #include<bits/stdc++.h> using namespace std; typedef unsigned int ui; typedef long long ll; ...
分类:
其他好文 时间:
2020-06-06 13:06:06
阅读次数:
56
dp: #include<bits/stdc++.h> using namespace std; typedef unsigned int ui; typedef long long ll; typedef unsigned long long ull; #define pf printf #def ...
分类:
其他好文 时间:
2020-06-06 10:42:55
阅读次数:
57
public static void main(String[] args) { factorial(); //調用求階乘求和的方法 } public static void factorial() { long factorial = 1; // 定義初始值為1 long sum = 0; // ...
分类:
编程语言 时间:
2020-06-06 01:16:41
阅读次数:
114
#include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=510000; const int Log=50; const int inf=2147483647; int val[N*Log],rnd[ ...
分类:
其他好文 时间:
2020-06-06 00:58:59
阅读次数:
66
#include<bits/stdc++.h> typedef long long ll; using namespace std; const int N=12; const int M=1595323; const int mod=500009; int n,m,mp[N+5][N+5]; in ...
分类:
其他好文 时间:
2020-06-06 00:57:56
阅读次数:
52
htop在epel YUM源中 F1:显示帮助信息 F2:配置界面 F3:进程搜索 F4:进程过滤 F3进程搜索会将光标定位到符合搜索条件的进程上,按F3跳到下一个 F4是将所有符合条件的进程筛选出来 F5:显示进程树/sorted排序 再按F3或者F4查找 F6排序 在左侧选择想要按照哪个属性排序 ...
分类:
系统相关 时间:
2020-06-05 21:29:52
阅读次数:
85