服务出现报这个错, o.s.c.c.c.ConfigServicePropertySourceLocator - Could not locate PropertySource: label not found 主要原因是git的uri配置出现问题了 cloud: config: label: ma ...
分类:
编程语言 时间:
2020-01-29 01:13:24
阅读次数:
554
字符串操作 1 拼数 LGP1012 题解 string类型不会真是个事啊,多个字符串开char也不是事啊... 思想很简单,如果$A+B include include include include using namespace std; string a[30]; int n; int ma ...
分类:
其他好文 时间:
2020-01-28 23:35:52
阅读次数:
124
1 #include <iostream> 2 #include <cstdio> 3 #include <vector> 4 5 using namespace std; 6 7 // 注意:vector在尾部添加或移动元素非常快,在中间操作非常耗时,因为它需要移动元素 8 9 10 int ma ...
分类:
其他好文 时间:
2020-01-28 19:32:40
阅读次数:
66
json 格式网址:http://www.bejson.com json转dart工具网址:https://javiercbk.github.io/json_to_dart/ 代码: class CategoryItemModel { String mallCategoryId; String ma ...
分类:
其他好文 时间:
2020-01-28 15:57:21
阅读次数:
246
最大流模板题 注意反向边的意义。 #include<bits/stdc++.h> using namespace std; const int INF = 1e9; const int MAXN = 301; int ma[MAXN][MAXN],pre[MAXN]; int n,m; int bf ...
分类:
其他好文 时间:
2020-01-28 12:16:36
阅读次数:
63
static final int max=100005; //所有字符总数 static int son[][]=new int[max][26];//son数组存储每个节点的儿子;一维表示父节点下标,二维表示小写字母 son[x][0~25] static int cnt[]=new int[ma ...
分类:
其他好文 时间:
2020-01-26 14:29:52
阅读次数:
55
$K D\ Tree$是一种可以高效处理$k$维空间信息的数据结构 $K D\ Tree$具有二叉搜索树的形态,二叉搜索树上的每个结点都对应$k$维空间内的一个点。其每个子树中的点都在一个$k$维的超长方体内,这个超长方体内的所有点也都在这个子树中 同时用$ma$和$mi$来记录划分出的子空间的边界 ...
分类:
其他好文 时间:
2020-01-23 00:11:45
阅读次数:
65
static boolean isPrime(int n) { if(n<=1) { return false; } if(n==2||n==3) { return true; } if(n%6!=1&&n%6!=5) { return false; } for(int i=2;i<=(int)Ma ...
分类:
编程语言 时间:
2020-01-22 20:03:36
阅读次数:
77
[教材出处] 已知点 $M$ 与两个定点 $O(0,0),A(3,0)$ 的距离的比为 $\dfrac{1}{2}$,求点 $M$ 的轨迹方程. 解析 设 $M(x,y)$,依题意有 $\dfrac{MO}{MA}=\dfrac{1}{2}$,即:$$\dfrac{\sqrt{x^2+y^2}}{\ ...
分类:
其他好文 时间:
2020-01-21 23:51:02
阅读次数:
155
如果遇到问题: __main__:1: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. 解决方案: 在程序中增加一条语句: import ma ...
分类:
其他好文 时间:
2020-01-21 13:20:43
阅读次数:
545