实现 strStr() 函数。 给定一个 haystack 字符串和一个 needle 字符串,在 haystack 字符串中找出 needle 字符串出现的第一个位置 (从0开始)。如果不存在,则返回 -1。 示例 1: 输入: haystack = "hello", needle = "ll" ...
分类:
其他好文 时间:
2020-11-25 12:19:34
阅读次数:
5
oracle安装环境配置前提下 1 在安装文件/database/response/*有三个配置文件模板 [oracle@oracledb response]$ ll 总用量 100 -rwxrwxr-x. 1 oracle oinstall 44954 12月 4 11:46 dbca.rsp - ...
分类:
数据库 时间:
2020-11-21 12:43:54
阅读次数:
24
###P3899 [湖南集训]谈笑风生 二维数点问题,主席树模板(两种写法 #include<bits/stdc++.h> #define IL inline #define LL long long #define pb push_back using namespace std; const i ...
分类:
其他好文 时间:
2020-11-21 12:15:18
阅读次数:
7
A 输入,第i个人把礼物给了谁,输出,第i个人的礼物是谁给的 #include<bits/stdc++.h> using namespace std; typedef long long ll; #define ture true int main() { int n,flag=0,a[200],b ...
分类:
其他好文 时间:
2020-11-20 11:48:21
阅读次数:
6
题目链接:a^b 题目分析: 简单数论,快速幂模板题 代码如下: #include<bits/stdc++.h> using namespace std; #define mm(a,x) memset(a,x,sizeof a) #define mk make_pair #define ll lon ...
分类:
编程语言 时间:
2020-11-19 13:00:22
阅读次数:
21
文件权限RWX 查看文件权限: -rw-r--r-- 1 root root 34 Nov 11 09:19 passwd #ll 查文件 ll -d查目录 1.表达权限方式 表示权限方式1:RWX ? R read #可读cat ? W wrire #可写vim echo sed ? X exec ...
分类:
其他好文 时间:
2020-11-18 12:49:31
阅读次数:
6
1 #include<bits/stdc++.h> 2 #define ll long long 3 #define INF 1e17 4 using namespace std; 5 const int N = 2e5 + 10; 6 ll n, k; 7 ll a[N]; 8 9 bool ch ...
分类:
其他好文 时间:
2020-11-17 12:50:15
阅读次数:
11
安装环境:Centos 7 1.安装subverision yum -y install subversion 2.创建代码仓库 mkdir -p /dev/svn/code svnadmin create /dev/svn/code ll 总用量 8 drwxr-xr-x 3 root root ...
分类:
系统相关 时间:
2020-11-13 13:12:14
阅读次数:
20
思路: 代码: #include<iostream> #include<stdio.h> using namespace std; typedef long long ll; int main(){ ll n; cin>>n; ll res=n; for(ll i=2;i<=n/i;i++){ if ...
分类:
编程语言 时间:
2020-11-11 16:33:00
阅读次数:
9
###P2915 [USACO08NOV]Mixed Up Cows G dfs去做 #include<iostream> #include<cstdio> #include<cmath> #include<cstring> #define ll long long using namespace ...
分类:
其他好文 时间:
2020-11-11 15:59:42
阅读次数:
7