码迷,mamicode.com
首页 >  
搜索关键字:there are two rows o    ( 14173个结果
Mysql主从报错锦集
前言 在发生故障切换后,经常遇到的问题就是同步报错,下面是最近收集的报错信息。 记录删除失败 在master上删除一条记录,而slave上找不到 Last_SQL_Error: Could not execute Delete_rows event on table hcy.t1; Can't fi ...
分类:数据库   时间:2020-07-28 10:02:24    阅读次数:103
[LeetCode 1530] Number of Good Leaf Nodes Pairs
Given the root of a binary tree and an integer distance. A pair of two different leaf nodes of a binary tree is said to be good if the length of the s ...
分类:其他好文   时间:2020-07-27 15:58:17    阅读次数:93
nuxt(vue)动态增加数据属性
1 asyncData(){ 2 return spitApi.search(1,10,{state:'1'}).then(res=>{ 3 let tmp = res.data.data.rows.map(item=>{ 4 return { 5 ...item, 6 zan:'' 7 } 8 } ...
分类:其他好文   时间:2020-07-26 22:59:35    阅读次数:125
arc092D Two Sequences
题意 给你两个长度为 \(n\) 的串 \(a,b\) 求 \(a,b\) 两序列各任取一数相加形成的$n^2$个和的异或和 $1 \le n \le 2 \times 10^5$ $0 \le a_i \le 2^{28}$ 传送门 思路 按位考虑。对于第$i$位,令 \(x=2^i\),所有数对 ...
分类:其他好文   时间:2020-07-26 22:51:31    阅读次数:66
LeetCode617合并二叉树
题目链接 https://leetcode-cn.com/problems/merge-two-binary-trees/ 题解 递归解法 解法见代码注释 // Problem: LeetCode 617 // URL: https://leetcode-cn.com/problems/merge- ...
分类:其他好文   时间:2020-07-26 01:03:49    阅读次数:54
Codeforces #659 A. Common Prefixes
##题面 he length of the longest common prefix of two strings s=s1s2…sn and t=t1t2…tm is defined as the maximum integer k (0≤k≤min(n,m)) such that s1s2…s ...
分类:其他好文   时间:2020-07-26 00:15:56    阅读次数:106
[POJ2226]Muddy Fields(二分图匹配)
【原题】 Description Rain has pummeled the cows' field, a rectangular grid of R rows and C columns (1 <= R <= 50, 1 <= C <= 50). While good for the grass, ...
分类:其他好文   时间:2020-07-24 22:06:12    阅读次数:92
Dreamoon-Two matchings(DP)
题目大意: 给出个点,n为偶数,询问两个完全没有交集的匹配q和p。 一方面使得n个点两两互相匹配,一方面使得匹配的权值和最小 分析: 因为n是偶数,所以可以考虑将n个数分配到不同的长度为偶数的环中,对于排列q和排列p,只需要在偶环中交换一下位置就好。 但这个偶环的长度必须要大于2,因为如果长度为2, ...
分类:其他好文   时间:2020-07-24 21:58:55    阅读次数:72
MySQL 主从复制(下)
延时复制 延时从库只做备份,不提供任何对外服务 配置延时复制(已经有主从) 1.停止主从 mysql> stop slave; Query OK, 0 rows affected (0.03 sec) 2.配置延时时间 mysql> change master to master_delay=180 ...
分类:数据库   时间:2020-07-24 21:35:25    阅读次数:85
dict
>>>dict() # 创建空字典 {} >>> dict(a='a', b='b', t='t') # 传入关键字 {'a': 'a', 'b': 'b', 't': 't'} >>> dict(zip(['one', 'two', 'three'], [1, 2, 3])) # 映射函数方式来构 ...
分类:其他好文   时间:2020-07-24 19:10:00    阅读次数:67
14173条   上一页 1 ... 13 14 15 16 17 ... 1418 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!