测试窗体为: 直接上代码: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using ...
分类:
数据库 时间:
2020-09-17 12:31:54
阅读次数:
43
20行写完极其害怕 只能跑1e5的数据,那个1e6强制在线的开o2只有20pts QAQ 不用reserve也可以过,不过开了之后200ms的点只要130-140ms #include<bits/stdc++.h> using namespace std; #define ll long long ...
分类:
其他好文 时间:
2020-09-17 12:26:24
阅读次数:
24
在我们虚拟机中,安装的centOS8系统,默认网卡是没有启动的,安装好后需要先配置网络。在centOS8之前的版本,我们启动网络的命令是:systemctl restart network.service,而在我们centOS8系统中,运行该命令会提示如下错误: 意思为无法重启网络服务,原因是无法找 ...
分类:
系统相关 时间:
2020-09-17 12:22:34
阅读次数:
38
linux 下面启动nginx 和关闭nginx, 查看linux 开放的所有端口netstat -ntpl,重启服务命令 :service network restart 1 进入到安装的目录里面 whereis nginx 2. 进入该路径:cd /usr/local/nginx/sbin 3 ...
分类:
系统相关 时间:
2020-09-17 12:09:46
阅读次数:
28
题意:编写程序求出最长连续因子的个数,并输出最小的连续因子序列。 思路:找到n中(开平方后)的所有因子,逐个判断它的最长连续因子个数。 1 #include <iostream> 2 #include<math.h> 3 using namespace std; 4 5 int main() 6 { ...
分类:
其他好文 时间:
2020-09-17 12:07:27
阅读次数:
41
CDN缓存的理解 CDN即内容分发网络Content Delivery Network,CDN的基本原理是广泛采用各种缓存服务器,将这些缓存服务器分布到用户访问相对集中的地区或网络中,在用户访问网站时,利用全局负载技术将用户的访问指向距离最近的工作正常的缓存服务器上,由缓存服务器直接响应用户请求,C ...
分类:
其他好文 时间:
2020-09-17 12:05:30
阅读次数:
39
grep常见命令参数 -n 打印行号 grep -n ".*" h.txt 所有打印行号 grep -n "root" h.txt 匹配的内容显示行号 -v 不包括 -E 表示过滤 多个参数 grep -Ev "sshd|network|crond|sysstat|" -o:仅打印你需要的东西,默认 ...
分类:
其他好文 时间:
2020-09-16 12:28:54
阅读次数:
38
#include <iostream> using namespace std; const int N = 60; long long dp[N]; int n; void show(){ dp[0]=0;dp[1]=1; dp[2]=2;dp[3]=3;dp[4]=4; for(int i=5; ...
分类:
其他好文 时间:
2020-09-16 12:27:08
阅读次数:
34
动态规划相关代码实现: 1、孩子有多像爸爸——最长的公共子序列 //program 4-1 #include <iostream> #include<cstring> using namespace std; const int N=1002; int c[N][N],b[N][N]; char s ...
分类:
编程语言 时间:
2020-09-16 12:22:41
阅读次数:
30
分治法代码实现 1、猜数游戏——二分搜索技术 //program 3-1 #include<iostream> #include<cstdlib> #include<algorithm> using namespace std; const int M=10000; int x,n,i; int s ...
分类:
编程语言 时间:
2020-09-16 12:21:41
阅读次数:
37