我差点就行信了,咳咳咳咳 A.精灵魔法 题目描述 输入格式 输出格式 样例 样例输入 3 1 2 3 2 1 3 样例输出 1 数据范围与提示 分析 Code #include<bits/stdc++.h> using namespace std; typedef long long ll; con ...
分类:
其他好文 时间:
2020-07-06 20:26:00
阅读次数:
80
题意: 思路: 代码: 1 const int maxn = 10000000 + 10; 2 ll n, m, a; 3 ll miu[maxn], v[maxn]; 4 ll sum[maxn]; 5 void Eratosthenes(int n) { 6 for (int i = 1; i ...
分类:
其他好文 时间:
2020-07-06 15:54:27
阅读次数:
40
将本地文件拷贝到容器内 [root@k8s-master1 ~]# ll total 16 -rwxr-xr-x. 1 root root 322 Jul 6 09:48 1.sh -rw . 1 root root 1261 Nov 14 2019 anaconda-ks.cfg drwxr-xr ...
分类:
其他好文 时间:
2020-07-06 14:39:31
阅读次数:
167
1、查看版本 git --version 2、清屏 clear 3、设置签名 git config --global user,name "" 设置用户名和密码 4、本地仓库初始化 git init 查看隐藏的文件命令 ll -la Windows文件夹设置查看隐藏文件 初始化创建了一个隐藏的.gi ...
分类:
其他好文 时间:
2020-07-05 22:47:04
阅读次数:
87
关机 poweroff 重启 init 6 查看ip地址 ifconfig 查看当前目录下的文件与目录 ls ll 判断命令是内部还是外部的类型 type ifconfig 通过file /sbin/ifconfig命令,判定ifconfig文件类型是ELF,所以判定为内部命令 cd进入目录命令 c ...
分类:
系统相关 时间:
2020-07-05 19:19:40
阅读次数:
101
实现 strStr() 函数。 给定一个 haystack 字符串和一个 needle 字符串,在 haystack 字符串中找出 needle 字符串出现的第一个位置 (从0开始)。如果不存在,则返回 -1。 示例 1: 输入: haystack = "hello", needle = "ll"输 ...
分类:
其他好文 时间:
2020-07-05 00:33:36
阅读次数:
55
#include<bits/stdc++.h> using namespace std; typedef long long ll; #define ls (l[cnt]) #define rs (r[cnt]) const int N = 100005; struct Ftree { int l[ ...
分类:
其他好文 时间:
2020-07-04 21:12:28
阅读次数:
69
A 温暖的签到题。 #include <bits/stdc++.h> using namespace std; #define ll long long ll input(){ ll x=0,f=0;char ch=getchar(); while(ch<'0'||ch>'9') f|=ch=='- ...
分类:
其他好文 时间:
2020-07-03 23:08:21
阅读次数:
69
一、安装过程 1、下载源码包 下载地址:https://www.python.org/downloads/source/ 或:https://www.python.org/ftp/python/ 2、解压安装包,以python 3.7.8为例 [root@localhost ~]# ll Pytho ...
分类:
编程语言 时间:
2020-07-03 17:06:22
阅读次数:
66
查看虚拟内存swap的大小#free-m2.分区#fdisk/dev/sdbn-----p----2-----p3.验证分区#partprobe/dev/sdb#ll/dev/sdb*(------/dev/sdb2)4.格式化并启动swap分区#mkswap/dev/sdb2#swapon/dev/sdb2#free-m5.关闭swap#swapoff/dev/sdb2#free-m6.开机自动
分类:
其他好文 时间:
2020-07-02 21:52:59
阅读次数:
73