小记solution 4.10 set

Solutions to desertification

As global temperatures rise and the human population expands, more of the planet is vulnerable to desertification, the permanent degradation of land t ......
desertification Solutions to

A solution to desertification

What is desertification? Desertification, the process by which natural or human causes reduce the biological productivity of drylands (arid and semiar ......
desertification solution to

「Log」2023.11.9 小记

序幕 \(\text{7:00}\):起晚了到校(不是为啥这个点还没人),整整博客。 接着做点 CF 题,等会模拟赛。 \(\text{7:30}\):准时开题。 看来是 JOI 专场,题面还是有点意思的。(实际上是 JOISC 2015,赛后知道的。) T1 感觉有点神秘先跳过。 T2 貌似除了最 ......
小记 2023 Log 11

11.9 小记

今天的题目很难评啊,你说他难吧那倒也不是,反正就是,又偏又怪,我感觉价值非常有限,所以一题也没补。记录一下喔。 今天足足 5pts 呢!历史新低。 晚自习看同学做一个黄色的小小模拟题,然后说要“同台竞技”,于是我也去做,结果写了四十多分钟。虽然一发过了但是还是感觉被降智了。这是题目链接:作业调度方案 ......
小记 11.9 11

A solution to soil erosion

A specific measure to cope with soil erosion is to increase vegetation cover in China. How it works and its impact : Firstly, vegetation is the first ......
solution erosion soil to

Set&List&Map

Map 概述 An object that maps keys to values. A map cannot contain duplicate keys; each key can map to at most one value. Map将key映射到value; Map的key不能重复,每个 ......
amp List Set Map

A solution to soil erosion

A special measure to cope with soil erosion is to increase vegetation cover in China. Vegetation is the first barrier to protect land from outside. Ta ......
solution erosion soil to

Bioremediation Technology—— A Solution to Soil Pollution

Bioremediation Technology for Soil Polution 1. What is bioremediation technology? Bioremediation is a natural process based remediation technology for ......

10.31 模拟赛小记

抽象场。打完人自闭的那种。 得分情况:\(80-0-30-30\)。 A:从 \(0\) 走到 \(n\)。在 \(i\) 位置时,等概率走的走到 \([i+1,n]\)(视为一步)。求期望步数。 哥们赛时,爆搜打表找规律。。。最后写的 O(n),没看到第九个数据点没有特判。对于最后一个点 1e18 ......
模拟赛 小记 10.31 10 31

11.8 模拟赛小记

僕を連れてって,浸み込んでしまう前に 菜哭了。不会打,看了半个小时史铁生散文集。 100+0+80+0 喵。 A.俨俨与道路(constructure) 正解是最小生成树。我的思路差不多。 为了全部联通,需要 n-1 条边。随意先计算给定的确定起始点的边,根据边权排序,从中挑至少 \(n-1-k\) ......
模拟赛 小记 11.8 11

Set---HashSet-LinkedHashSet

概述 Hash table and linked list implementation of the <tt>Set</tt> interface, with predictable iteration order. This implementation differs from <tt>Has ......

set/map作业解析

目录P761 【入门】明明的随机数P760 [NOIP2007 提高组] 统计数字P2814 数对P495 【入门】宇宙总统1P496 【入门】宇宙总统2P2843 宇宙总统3P2810 相邻字符对 P761 【入门】明明的随机数 对于一组数据完成完成"去重"与"排序"的工作。 分析 方法1:可以直 ......
set map

some solutions for deforestation

Deforestation is a serious problem facing our planet,and it is critical that we find ways to solve it.Forests play a vital role in our ecosystem,provi ......
deforestation solutions some for

Set---SortedSet-NavigableSet-TreeSet

SortedSet 概述 A {@link Set} that further provides a <i>total ordering</i> on its elements.The elements are ordered using their {@linkplain Comparable n ......

The solution of P5339

problem 容斥好题,结果题解里面一堆 \(\text{NTT}\)。 如果我们去掉有多少个人喜欢什么东西的条件,那么这个题就直接枚举有 \(i\) 组同学会一起讨论蔡徐坤。这一个问题十分容易。 使用容斥原理来做,然后容斥的系数是 \((-1)^i\) 想必这个东西对于大家来说是十分简单的。 如 ......
solution P5339 5339 The of

「Log」2023.11.7 小记

序幕 早上好冷好冷好冷。 \(\text{6:40}\):冰冻到校。 补昨天的博客,一直补到七点多。 \(\text{7:30}\):模拟赛开题。 题面都很简洁,简单浏览一遍,感觉没什么不可做题。 先开 T1,缩点是显著的,缩完点直接套了个贪心上去。 大样例过不了,开始思考正确性。 用一条链就简单地 ......
小记 2023 Log 11

11.7 模拟赛小记

摘要:三道原,比较之前的难,发挥不好,八点半从机房外面过去的帅哥真的真的真的好帅我一下子无心大模拟赛了一整个惊艳到。 A.油田(oil) P3888 GDOI2014 拯救莫莉斯 状压 dp,据说爆搜也能过。本蒟蒻不会写剪枝,喜提 20pts。 状压 dp 思路: 首先 \(n*m<=50\),\( ......
模拟赛 小记 11.7 11

The Solutions of Ocean Trash

10 Things You Can Do to Save the Ocean 1. Mind Your Carbon Footprint and Reduce Energy Consumption Reduce the effects of climate change on the ocean b ......
Solutions Ocean Trash The of

The Solutions of Ocean Trash

Everyone can do something to help solve the plastic pollution problem, and millions of people worldwide are already taking action to reduce their plas ......
Solutions Ocean Trash The of

算法学习笔记(36): 点分治,边分治小记

分治,分而治之,是通过减少数据规模,然后合并的结果,从而减少复杂度的思想。 其实感觉本文应该放在分治里面讲……算法学习笔记(31): 分治 在经典的序列分治中,我们是对于每一个点,求出经过这个点的那些区间的贡献。 在点分治中,同样我们是对于每一个点,求出经过这个点的那些路径的贡献。 放在边分治中,则 ......
小记 算法 笔记 36

qt 配置文件 settings

Qt如何读取和写入配置文件的数据呢?_qt配置文件读写-CSDN博客 这篇写的很好,照着做成功了,能读写配置文件 配置文件的路径在构造函数中设置。 Qt使用QSetting对ini配置文件进行读取和写入_.ini 文件读写 qsetting-CSDN博客 ......
settings 文件 qt

今日小记——Jupyter Notebook默认工作目录的修改

1、生成jupyter notebook的配置文件 打开Anaconda Prompt,输入jupyter notebook --generate-config生成当前jupyter notebook的配置文文件,返回一个jupyter_notebook_config.py的文件的地址 2、修改配置 ......
小记 Notebook Jupyter 目录

「Log」2023.11.6 小记

序幕 \(\text{6:40}\):冰冻到校,今天好冷,学校雪休但我们不休。 先补一补博客然后去写一些东西。 \(\color{blueviolet}{CF1499F}\) 设 \(f_{u, x}\) 表示在 \(u\) 子树内,\(u\) 向下延伸最多 \(x\) 步的方案数。转移是简单的,考 ......
小记 2023 Log 11

Unity ET服务器框架小记

前言 之前用过一段时间Mirror,它是一个服务器客户端一体的框架,通过给方法打上特定注解,来控制该方法运行在客户端还是服务器上(Unity官方已弃用的UNet设计思路一致)。这是它的优点,也是它的缺点,见仁见智吧。抛开这一点不谈,如果是客户端做主机那还好,但如果要打包为Deplicate Serv ......
小记 框架 服务器 Unity

并查集(Union Find Set)

1 基本介绍 并查集是一种用来判断两个元素之间是否有关系的集合。 它的基本思想为:对于两个元素,如果他们之间有关系,则将其连接,以此形成一颗树。 对于任意两个节点,如果它们有相同的根节点,则它们之间有关系。 2. 建立步骤 给定n个点,以及m个关系。 1. 初始状态 将每个节点的根节点都指向自己 f ......
Union Find Set

HttpClient.PatchAsJsonAsync - dotnet/runtime 项目贡献小记

TL;DR 迫于 PatchAsJsonAsync 方法缺失,我给 dotnet/runtime 项目贡献了相关的 API,可惜要到 .NET7 才能用上。 https://github.com/dotnet/runtime/pull/60672 正文 同事小陈 的 issue 收到了回复,希望他可 ......

CF390B Inna, Dima and Song Solution

转裁自我的洛谷博客 :https://www.luogu.com.cn/blog/653832/solution-cf390b 题目传送门 思路: 如果 $b_i \le 1$ 则无解。 如果 ceil((double)b[i]/2)>a[i],即最好情况下,两个人的音量平均,但是较大的音量还是大于 ......
Solution 390B Inna Dima Song

「Log」2023.11.3 小记

序幕 起床的时候天还是黑的,差点再睡过去。 \(\text{6:50}\):冰冻到校,写一些文章。 没什么灵感倒是,把昨天没写完的写完了。 上午同学讲题,CF 1800-1900,大部分都是乱杀。不到两个小时讲完了,准备补题。 没啥做题欲望,一直在摆或者找一些写作灵感,但也没啥好写的,中午补两道题。 ......
小记 2023 Log 11

11.3 模拟赛小记

今天题目质量逆天,题也不是那个他讲的。应该是生气了。所以我也不打算写赛时记录了。 T1 分讨负数个数,T2 二分答案;T3 我写了哈希,想半天想不到性质;T4 小范围暴力大范围输出区间最大值 + 暴力之类的。 本场的感觉很不好。模拟赛期间最绝望的是闲下来:指已经不能进一步思考、没有什么需要调了、没有 ......
模拟赛 小记 11.3 11

Viper —— configuration solution for Go

1. support several formats of configuration config.yaml name: 'bobby' port: 12334 main.go to quick start package main import ( "fmt" "github.com/spf13 ......
configuration solution Viper for Go