mysqldump:Goterror:1102:Incorrectdatabasename'#mysql50#.ssh'whenselectingthedatabase.今天在用MySQLdump备份数据库的时候发现报错了,1102,提示我找不到这个名字的数据库。很简单,去数据库所在的文件夹看看有没有.ssh这个文件夹即可,有则删掉既可。我的目录是在/var/lib/mysql下面
原创 2019-03-21 20:13:40
4008阅读
js中数据类型 // Number 数值 整数 小数 // String 字符串 (字符) '单引号'或"双引号" // Boolean true/false // null 没有 // undefined 没有赋值就是他 未定义 // object 对象 类型 0.1+0.2结果为0.300000 ...
转载 2021-11-02 18:26:00
129阅读
2评论
1.字体样式:font-size: 设置字体大小 font-weight: bold; 设置变粗 font-weight: lighter; 设置变细 font-style: italic;设置斜体 color: 设置颜色2、文本样式:text-decoration: underline;设置字体下 ...
转载 2021-11-02 16:55:00
62阅读
2评论
#include#include#include#define N 100struct node {int x,y,dis;}road[N*N];int pre[N];int find(int n) {return pre[n]=n==pre[n]?n:find(pre[n]);}int cmp(c...
转载 2013-10-30 18:48:00
39阅读
Constructing RoadsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 10151Accepted Submission(s): 3782 Problem Description There are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can c... Read More
转载 2013-05-11 20:31:00
54阅读
2评论
思路:用dfs 会爆栈,巨坑,要用bfs。
转载 2018-06-16 19:07:00
29阅读
2评论
1.源代码#include#include #define maxn 100using namespace std;struct Node{ int left,right; int root_flag = 1 ;//根标志 };int num;//结点总数 Node node[maxn];//二叉树节点 vector result;//存储遍历结果 //从字符转换
原创 2021-07-08 14:16:30
70阅读
1.源代码#include#include #define maxn 100using namespace std;struct Node{ int left,right; int root_flag = 1 ;//根标志 };int num;//结点总数 Node node[maxn];//二叉树节点 vector result;//存储遍历结果 //从字符转换
原创 2022-01-28 14:34:03
20阅读
我卧底五年成了老二,再卧底下去,我怕会成为老大! ...
转载 2021-11-02 08:59:00
44阅读
2评论
1 class Solution(object): 2 def maximumMinimumPath(self, A): 3 """ 4 :type A: List[List[int]] 5 :rtype: int 6 """ 7 dire = [[0,1],[1,0],[-1,0],[0,-1
转载 2019-06-30 01:33:00
43阅读
模拟#include #include using namespace std;char numbers[10][5][3] = { { ' ', '-', ' ', '|', ' ', '|', ' ', ' ', ' ', '|', ...
转载 2013-07-19 20:00:00
44阅读
2评论
1102. Invert a Binary Tree (25) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue The following is from Max Howell @twi
原创 2022-08-30 09:57:14
62阅读
随便写一下的搜索,别的OJ深搜就过了,强大的BZOJ成功栈溢出RE了我并使我屈服地用广搜过掉,第一行手动开栈惨遭无视。 广搜: 深搜:
原创 2021-07-15 15:34:34
58阅读
http://acm.hdu.edu.cn/showproblem.php?pid=1102 1 #include 2 #include 3 #include 4 #define maxn 1001 5 using namespace std; 6 const int inf=1<<30; 7...
转载 2014-04-13 19:35:00
24阅读
2评论
The following is from Max Howell @twitter: Google: 90% of our engineers use the software you wrote (Homebrew), but you can't invert a binary tree on a
转载 2020-04-28 16:24:00
96阅读
题目题意:给定树结点的左右孩子信息,要求输出对应树的层序遍历和中序遍历的序列tip: 层序遍历 + 中序遍历#include<iostream>#include<queue>using namespace std;int s[10][2];int n;int count;void inoder(int start) {//中序遍历 if(s...
原创 2023-06-27 10:22:37
54阅读
Constructing Roads Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 14269    Accepted Submission(s): 543
原创 2022-12-02 00:35:18
37阅读
并查集+最小生成树Constructing RoadsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 15844Accepted Submissio...
转载 2015-05-01 12:15:00
33阅读
2评论
#include<iostream> #include<cstdio> #include<cstring> using namespace std; int main(){ int s,len,p,i,j,k; char n[10],d[25][100]; while(scanf("%d%s",&s ...
转载 2021-08-02 11:48:00
82阅读
2评论
题目大意:已知一个连接了q条路的城镇,求最小生成树。#include #include #include using namespace std;struct data{int l,x,y;}seg[10010];int r,f[10010],n,l,cnt,x,y,fx,fy,now,p,ans;char c;int sf(int x){return f[x]==x?x:f[x]=sf(f[x]);}void scan(int &x){ while(c=getchar(),c'9');x=c-'0'; while(c=getchar(),c>=&
转载 2014-03-05 15:08:00
20阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5