二分查找 #include<bits/stdc++.h> using namespace std; const int maxn = 2e5+5; long long a[maxn], b[maxn]; long long getKth(int k, int lo1, int hi1, int lo ...
分类:
其他好文 时间:
2020-07-23 23:22:49
阅读次数:
76
1010.Lead of Wisdom 暴搜。。。我去除了比某一同类装备4个属性都低的装备 #include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, a, b) for (register i ...
分类:
其他好文 时间:
2020-07-23 23:22:33
阅读次数:
184
2020 Multi-University Training Contest 2 The Oculus 题解: 这个题目很简单,就直接枚举就可以了,算法就是哈希。 #include <bits/stdc++.h> #define inf 0x3f3f3f3f using namespace std; ...
分类:
其他好文 时间:
2020-07-23 22:58:44
阅读次数:
97
https://www.luogu.com.cn/problem/P3346 广义后缀自动机 我们需要把所有两两叶子节点之间的路径丢进广义后缀自动机中,然后计算不同子串个数 观察数据,叶子节点数为$\le 20$,好像有点小 那么我们暴力枚举每个叶子节点为根的情况,然后处理根与其他叶子节点的路径 认 ...
分类:
其他好文 时间:
2020-07-23 22:29:56
阅读次数:
65
个人测试环境为:Asp.net coe 3.1 WebApi 1:封装自定义的cacheHelper帮助类,部分代码 1 public static void SetCacheByFile<T>(string key, T model) 2 { 3 using (ICacheEntry entry ...
分类:
Web程序 时间:
2020-07-23 18:55:09
阅读次数:
232
0/1背包 package.pas 【问题描述】 有1个容量为m的背包,现有n种物品,重量分别为w1,w2…wn,价值分别为v1,v….vn,若每种物品只有1件,求能放入的最大总价值。【输入格式】第一行:两个整数m(m<=200)和n(n<=30)第2~n+1,每行两个整数wi和vi【输出格式】一个 ...
分类:
其他好文 时间:
2020-07-23 16:29:11
阅读次数:
59
如果是环状可以复制一份变直线求字符串最小表示法,如果存在一种,两个字符串相比前面相同,但是到后面不相同,且必然其中一个字典序打一些,那么大的字符串必然不可1-k前的子窜就不能满足条件。 1 #include <iostream> 2 #include <cstring> 3 using namesp ...
分类:
其他好文 时间:
2020-07-23 16:27:17
阅读次数:
63
#include<bits/stdc++.h> using namespace std; typedef long long ll; #define mem(a) memset(a,0,sizeof(a)) #define sc1(a) scanf("%lld",&a) #define sc2(a, ...
分类:
其他好文 时间:
2020-07-23 16:24:13
阅读次数:
69
https://www.luogu.com.cn/problem/P1478 1 #include<bits/stdc++.h> 2 using namespace std; 3 int n, s, a, b; 4 struct apple{ //结构体定义苹果的高度和摘苹果所用的力气 5 int ...
分类:
移动开发 时间:
2020-07-23 15:54:43
阅读次数:
85
1.评估oracle 数据库rman 全备的大小: SQL> select sum(bytes)/1024/1024 from v$datafile; SUM(BYTES)/1024/1024 990SQL> select sum(bytes)/1024/1024 from dba_free_spa ...
分类:
数据库 时间:
2020-07-23 15:43:07
阅读次数:
131