CF1461B Find the Spruce 题目大意: 求指定类型图案的数量。 思路: 一个很巧妙的递推式。 注意从下往上进行递推。 Code: #include <bits/stdc++.h> using namespace std; const int N = 510; int n, m; ...
分类:
其他好文 时间:
2021-01-19 11:39:58
阅读次数:
0
6.文件查找 与搜索相关的命令常用的有whereis、which、find和locate。 whereis简单快速 whereis <关键词> whereis搜索很快,因为其并没有从硬盘中依次查找,而是直接从数据库中查询。缺点是只能搜索二进制文件(-b)、man帮助文件(-m)和源代码文件(-s)。 ...
分类:
系统相关 时间:
2021-01-18 11:07:41
阅读次数:
0
public class test11 { public static void main(String[] args) { int [][]grid={{1,0,0,0},{1,1,0,0}}; int [][]hits={{1,1},{1,0}}; int []result=hitBricks( ...
分类:
其他好文 时间:
2021-01-18 10:36:45
阅读次数:
0
This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu ...
分类:
其他好文 时间:
2021-01-16 12:09:45
阅读次数:
0
mongo --port 端口 查看用户use admindb.system.users.find().pretty() 查询操作次数db.serverStatus().opcounters 查看参数use admindb.adminCommand({getParameter:"*"})因为mgse ...
分类:
其他好文 时间:
2021-01-16 11:54:15
阅读次数:
0
1、检查防火墙是否开放22端口 2、检查ssh是否安装 rpm -qa |grep ssh sudo apt-get install rpm sudo apt-get install ssh sudo service ssh restart 连接成功 安装ssh 参考: https://blog.c ...
分类:
系统相关 时间:
2021-01-14 11:27:11
阅读次数:
0
物理卷PV,卷组VG,逻辑卷LV 物理卷:每个4m,基本单元 卷组:由物理卷组成的组,作为一个新的大磁盘 逻辑卷:划分上面的大磁盘,就可以分区 三种卷的操作 实验: 1.关机插入四个20G硬盘 查看当前磁盘情况 fdisk -l | grep /dev/sd 2.将前三个硬盘创建成物理卷 pvcre ...
分类:
其他好文 时间:
2021-01-14 11:22:10
阅读次数:
0
#!/bin/bashecho -e "\033[36m \t\t\t 優化系統核心參數 \t\t\t \033[0m" grep 'keepalive_time = 1200' /etc/sysctl.conf &>/dev/null if [ $? -ne 0 ];then cat >> /et ...
分类:
其他好文 时间:
2021-01-14 10:58:27
阅读次数:
0
1.怎么停止一个正在运行的springboot项目ps -ef | grep tomcatkill -9 进程id 杀掉进程2.查看本机某个端口是否监听:netstat -anlp | grep 88883.直接回到根目录 cd /4.tar -xvf dist.tar //解压 tar包解压到一个 ...
分类:
系统相关 时间:
2021-01-13 11:12:00
阅读次数:
0
edit config && add Port 2222 vi /etc/ssh/sshd_config 重启ssh服务 systemctl restart sshd.service 查看端口 sudo netstat -atlunp | grep sshd ...
分类:
系统相关 时间:
2021-01-13 10:51:14
阅读次数:
0