题目链接: https://www.luogu.com.cn/problem/P6144 题意: 已经描述的很清楚了,略。 题解: 考虑 \(K=1\) 时的做法: 此时如果沿用 G 组该题的简单做法,是行不通的。 不过仍然是类似的做法,以每个区间结尾的贡献的和。 考虑区间 \([l,r]\) : ...
分类:
其他好文 时间:
2021-02-17 14:07:20
阅读次数:
0
Link Description 计数有多少个 \(n\) 个点 \(m\) 条边的无向图满足恰好有 \(k\) 个点的度数为 \(1\)。 Solution 容易发现度数为 \(1\) 的点只有两种状态:和另一个度数为 \(1\) 的点相连;和一个大连通块连边。于是想到对这两种情况进行分类讨论,枚 ...
分类:
其他好文 时间:
2021-02-16 12:37:38
阅读次数:
0
以父组件内的el-dialog和子组件内的el-form为例,进行父子组件方法调用与动态组件的灵活应用做讲解: 父组件: <el-dialog title="提示" :visible.sync="dialogVisible" width="30%" > <components :is="childr ...
分类:
其他好文 时间:
2021-02-16 12:21:06
阅读次数:
0
ref和reactive使用上的区别(vue3 组合式api中) 在vue3中对响应式数据的声明官方给出了ref()和reactive()这两种方式 响应式数据:是指当数据改变后,Vue 会通知到使用该数据的代码。例如,视图渲染中使用了数据,数据改变后,视图也会自动更新。 定义数据 reactive ...
分类:
其他好文 时间:
2021-02-16 12:17:09
阅读次数:
0
参考:https://www.unknowncheats.me/forum/red-dead-redemption-2-a/386858-ct-trader-role.html CE搜索数据类型设置为"Array of byte",勾选"Hex",然后搜索以下内容: ?? 00 00 00 00 0 ...
分类:
其他好文 时间:
2021-02-16 11:57:34
阅读次数:
0
neodash 方便构建基于ne4j dashboard 的工具 包含的特性 实时图表直支持(table,图,bar,line。。。) 支持neo4j 数据类型 自定义配置 保存以及加载为json 格式 参考效果 参考资料 https://nielsdejong.nl/neo4j%20project ...
分类:
其他好文 时间:
2021-02-16 11:55:48
阅读次数:
0
jq Bash, unfortunately, doesn’t ship with a command that can work with JSON natively. In this lesson, we’ll learn how to read and do basic queries on ...
分类:
Web程序 时间:
2021-02-15 12:41:34
阅读次数:
0
uses SysUtils; // 生成GUID function TForm2.GetGUID: string; var LTep: TGUID; sGUID: string; begin CreateGUID(LTep); sGUID := GuidToString(LTep); sGUID : ...
https://www.acwing.com/problem/content/1136/ #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.tie(0); cout.tie ...
分类:
其他好文 时间:
2021-02-15 11:53:26
阅读次数:
0
原题 1 class Solution: 2 def summaryRanges(self, nums: List[int]) -> List[str]: 3 left,right,lens,ans = 0,0,len(nums),[] 4 while left < lens: 5 right = ...
分类:
其他好文 时间:
2021-02-15 11:47:09
阅读次数:
0