https://www.liaoxuefeng.com/wiki/1016959663602400/1016959856222624 第一种办法:运行cmd - pip install requests 运行cmd - pip install BeautifulSoup4 https://www.j ...
分类:
编程语言 时间:
2020-03-22 18:02:46
阅读次数:
74
JOISC2020 自闭记 以下是考试时以及考试后我想出来的所有算法,因此很多题都不是正解 T1 11 pts 算法:考虑$DP$。 设$f_{i, j, k}$表示前$i$个数,选了$j$个$B$数组的数,且第$i$个数选的是$A/B$时,是否存在所要求的单调不降的数列。 直接$DP$,可以获得一 ...
分类:
其他好文 时间:
2020-03-22 10:50:39
阅读次数:
270
运行项目时,在登录页面输入账号密码后,控制台报数据库错误,排查了好久发现数据库的账号密码写错了,改正后就可以了。 之后又报数据库初始化错误: 1 init datasource error 2 The last packet sent successfully to the server was 0 ...
分类:
数据库 时间:
2020-03-21 14:49:27
阅读次数:
144
#include<stdio.h>#include<string.h>intmy_strlen(char*str){intcount=0;while(*str!=‘\0‘){count++;*str++;}returncount;}intmain(){chararr[]={"iloveyou"};intlen=my_strlen(arr);printf("%d",len);
分类:
编程语言 时间:
2020-03-19 09:26:40
阅读次数:
54
1.打印直角三角形 # 1.输出直角三角形 # 方法1 def print_Right_triangle(m): if m>1: for i in range(m+1): #控制行数 print('* '*i) else: print("无法构成三角形") print("这是边长为:{0}的等腰直角 ...
分类:
其他好文 时间:
2020-03-16 19:00:43
阅读次数:
85
A 略 B 略 C 有解当且仅当存在 $a_i + a_j \geq L$ D $\triangle$ 考虑一个暴力:整体二分,每次遍历整张图 由于每次访问的点的数量跟二分的mid有关,直接t飞 可以发现上面这个算法并没有很好地重复利用之前的信息 考虑把信息用并查集维护,然后把 $1 \sim m$ ...
分类:
其他好文 时间:
2020-03-12 09:54:36
阅读次数:
92
#include<iostream> #include<cmath> using namespace std; int main() { float x, y; string s = "I love you!"; int l = s.length(); for (y = 1.3f; y >= -1. ...
分类:
编程语言 时间:
2020-03-11 12:43:41
阅读次数:
169
$$\cos \left( A-B\right) =\frac {2\sin A\sin B} {\sin C}\Rightarrow \sin C \cdot \cos \left( A-B\right) =\cos \left( A-B\right) -\cos \left( A+B\right ...
分类:
其他好文 时间:
2020-03-11 01:10:22
阅读次数:
100
接口测试(Postman、Swagger UI等)博客:https://testerhome.com/topics/11677https://testerhome.com/topics/6695https://testerhome.com/topics/6641https://segmentfaul... ...
分类:
其他好文 时间:
2020-03-10 15:49:52
阅读次数:
54
Linux常见命令补充 虚拟机补充:virtualbox 企业中使用最多的Linux系统是centos6和7 掌握Linux常见的基本命令的操作,企业中服务器都是Unix系列的,深入学习参考运维课程 宿主机(windows)连接虚拟机(centos),大部分人使用xshell(ssh),还用secu ...
分类:
系统相关 时间:
2020-03-09 18:00:40
阅读次数:
92