基本建图套路,从单词头向单词尾连一条边,答案就是是否存在一条欧拉路径 #include<bits/stdc++.h> using namespace std; const int N=2e5+10; int p[N]; int din[N],dout[N]; int st[N]; int find( ...
数据库增删改查的通用接口,命名需要严格按照标准,数据库大写单数,请求路径小写复数 ...
分类:
其他好文 时间:
2020-07-03 21:24:50
阅读次数:
59
这是一篇我犯过的各种弱智错误的合集,记录下来以备后用 1.scanf("%d",a); 2.BFS忘记设置队头元素; 3.BFS时忘记每次循环结束后head++ 3.并查集的使用:fa[find(x)] = find(y); 4.(经常导致段错误)邻接表遍历,循环时一顿操作最后忘记将当前边指针指向下 ...
分类:
其他好文 时间:
2020-07-03 21:23:44
阅读次数:
69
软件著作权申报时,使用Linux系统find命令如何统计项目行数 案例:我们查询当前目录下的php,js,css,html文件的代码行数,并忽略./App/Runtime 和 ./Uploads 目录下的文件find ./ "(" -path "./App/Runtime" -o -path "./ ...
分类:
系统相关 时间:
2020-07-03 19:19:37
阅读次数:
71
目的:分享Pycharm中使用正则的分组匹配来进行批量替换的小技巧 一、PyCharm的搜索/替换快捷键: 查找:Ctrl+F 替换:Ctrl+R 查找是Find,替换是Replace。 二、正则表达式匹配 用途:文本处理 1.相同字符串匹配替换处理: 2.土办法匹配字符串替换处理: 3.正则匹配字 ...
分类:
编程语言 时间:
2020-07-03 17:24:04
阅读次数:
76
schtasks /create /sc once /st 00:00 /tn start_jingxi_H5 /tr D:\bat_list\start_jingxi_H5.vbs /F /RU ******(运行账户) /RP *******(运行账户密码)schtasks /run /tn s ...
分类:
其他好文 时间:
2020-07-03 17:20:35
阅读次数:
73
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the fo ...
分类:
其他好文 时间:
2020-07-03 15:34:00
阅读次数:
55
说点废话 当我们正常在界面系统使用selenium时,会感觉很爽,因为能清楚的看到我们代码的实现的过程,当遇到报错,也能相对来说缩小错误范围,一般都能很快的找到问题所在; 倘若我们想在Linux环境(无界面)中使用selenium,虽然在官网可以下载到linux环境下的chromedriver驱动文 ...
分类:
系统相关 时间:
2020-07-03 12:08:34
阅读次数:
75
Maximum Subarray (E) 题目 Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and retur ...
分类:
其他好文 时间:
2020-07-03 09:14:00
阅读次数:
76
方式一: [root@localhost ~]# find / -name mysql //在根目录下查找文件名为mysql的文件夹 方式二: [root@localhost ~]# find /user/local/mysql -name \*.bin //目录“/usr/local/mysql” ...
分类:
系统相关 时间:
2020-07-03 01:06:48
阅读次数:
81