当前位置:网站首页>2022/8/3 考试总结
2022/8/3 考试总结
2022-08-03 22:28:00 【迷蒙之雨】
时间安排
7:30~8:00
先看了一遍题,感觉一道都不会,非常自闭。
8:00~9:00
写了T2的暴力。
9:00~9:20
写T3的暴力
9:20~10:00
写T3的第二和第三档,但是不知为什么答案总是会大。
于是就放弃了
10:00~11:00
T1可以斯特林拆幂之后容斥做,但是不知道为什么答案总是不对。自闭。
11:00~12:00
想了想T2的 O ( n 2 ) O(n^2) O(n2),写完过了大样例。
考后总结
T1
就是套路的用斯特林数拆幂,转化为组合意义,然后通过容斥进行dp,总之就是非常套路。
考试的时候有个细节写错了,导致挂了。
T2
O ( n l o g 3 n ) O(nlog^3n) O(nlog3n)
dsu on tree,然后用树链剖分统计 d [ y ] − 2 ∗ c n t [ x ] [ y ] d[y]-2*cnt[x][y] d[y]−2∗cnt[x][y]
复杂度 O ( n l o g 3 n ) O(nlog^3n) O(nlog3n),但是常数不大。不过非常好些。
O ( n l o g 3 n ) O(nlog^3n) O(nlog3n)
用线段树合并维护,然后还是树链剖分,不过空间是 O ( n l o g 2 n ) O(nlog^2n) O(nlog2n),很危险。
于是把每一条重链公用一棵线段树,于是空间单log。
T3
就是dp,只不过出题人实现的更妙。
待upd。
边栏推荐
猜你喜欢

Bytebase数据库 Schema 变更管理工具

Network basic learning series four (network layer, data link layer and some other important protocols or technologies)

What is Adobe?
![[b01lers2020]Life on Mars](/img/d0/d5c9b7224542c8843ce29adc7ef713.png)
[b01lers2020]Life on Mars

数据一致性:双删为什么要延时?

藏宝计划TreasureProject(TPC)系统模式开发技术原理

Data_web(八)mysql增量同步到mongodb

encapsulation, package, access modifier, static variable

云平台建设解决方案

Diazo Biotin-PEG3-DBCO | Diazo Compound Modified Biotin-Tripolyethylene Glycol-Dibenzocyclooctyne
随机推荐
2022-08-03 oracle执行慢SQL-Q17对比
488. Zuma Game
Bytebase数据库 Schema 变更管理工具
Summary bug 】 【 Elipse garbled solution project code in Chinese!
【开源框架】国内首个通用云计算框架,任意程序都可做成云计算。
电商秒杀系统
Makefile
网络基础学习系列四(网络层,数据链路层和一些其他重要协议或技术)
HCIP第十六天
Gains double award | know micro easily won the "2021 China digital twin solution suppliers in excellence" "made in China's smart excellent recommended products" double award!
Diazo Biotin-PEG3-DBCO | Diazo Compound Modified Biotin-Tripolyethylene Glycol-Dibenzocyclooctyne
[b01lers2020]Life on Mars
DO280管理和监控OpenShift平台--资源限制
PowerMockup 4.3.4::::Crack
LabVIEW code generation error 61056
The sword refers to the offer question 22 - the Kth node from the bottom in the linked list
VLAN实验
HCIP第十三天
Internet user account information management regulations come into effect today: must crack down on account trading and gray products
RPA助力商超订单自动化!