1. 配置文件的修改 将文件docker-compose.yml中的内容进行修改,开启随机设备服务 ~]# ll total 16 -rw . 1 root root 1249 anaconda-ks.cfg -rw-r--r--. 1 root root 11451 docker-compose. ...
分类:
其他好文 时间:
2020-06-17 10:49:24
阅读次数:
43
问题:常用命令“ll”失效或命令未找到 原因: "ll"命令不是linux的基本命令, 它是"ls -l"的别名, 部分版本并不直接支持“ll”命令输出。 ###解决方法: 运行“vi ~/.bashrc” 查看该文件里是否有“alias ll='ls -l'”这样的数据, 如有,将数据前的“#”去 ...
分类:
系统相关 时间:
2020-06-17 10:45:31
阅读次数:
102
#date命令现实当前日期 date +%F显示当前日期 [10:02:52 root@C8[ 2020-06-16DIR]#touch `hostname`_`date +%F`.log [10:03:47 root@C8[ 2020-06-16DIR]#ll total 0 -rw-r--r-- ...
分类:
系统相关 时间:
2020-06-16 10:20:35
阅读次数:
314
#include <bits/stdc++.h> #define mp make_pair #define pb push_back using namespace std; typedef pair<int, int> pii; typedef long long ll; typedef unsi ...
分类:
其他好文 时间:
2020-06-15 23:21:00
阅读次数:
80
ll qmi(ll a,ll b){ ll res=1; while(b){ if(b&1) res=res*a%mod; b>>=1; a=a*a%mod; } return res; } ll inv(ll p){ return qmi(p,mod-2); } ll ny(ll a,ll b){ ...
分类:
其他好文 时间:
2020-06-15 15:43:50
阅读次数:
31
695. 岛屿的最大面积 class Solution { public: int maxAreaOfIsland(vector<vector<int>>& grid) { int hh=grid.size();//行 int ll=grid[0].size();//列 if(hh==0) retu ...
分类:
其他好文 时间:
2020-06-14 23:44:14
阅读次数:
62
Caesar Cipher ####题意: 凯撒密码加密,输出对应的密文的明文 ####思路: 加密是将明文向右移位,那么解密就是将密文向左移位。 注意:A向左一位是Z #include<bits/stdc++.h> #define ll long long using namespace std; ...
分类:
其他好文 时间:
2020-06-14 16:40:15
阅读次数:
54
Power Tower ###题意: 一个序列有$n$个数,$q$次询问,将$l$到$r$这个区间的数叠起来模上$M$ ###思路: 欧拉降幂 #include<bits/stdc++.h> #define ll long long using namespace std; map<ll,ll>mp ...
分类:
其他好文 时间:
2020-06-14 16:24:18
阅读次数:
66
题目链接:http://poj.org/problem?id=1958 代码: #include<iostream> #include<cstring> using namespace std; #define maxn 100 typedef long long ll; ll d[maxn],f[ ...
分类:
编程语言 时间:
2020-06-14 12:57:40
阅读次数:
82
#include<bits/stdc++.h> #define ls rt<<1 #define rs rt<<1|1 using namespace std; typedef long long ll; const int p=1e8+7; int ans1; int ans2; int ans3 ...
分类:
其他好文 时间:
2020-06-14 12:57:25
阅读次数:
164