当前位置:网站首页>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。
边栏推荐
- 【bug】汇总Elipse项目中代码中文乱码解决方法!
- The sword refers to the offer question 22 - the Kth node from the bottom in the linked list
- Embedded systems: overview
- [b01lers2020]Life on Mars
- 《数字经济全景白皮书》金融数字用户篇 重磅发布!
- [MySQL Advanced] Creation and Management of Databases and Tables
- 目标检测技术研究现状及发展趋势
- 投资性大于游戏性 NFT游戏到底是不是门好生意
- 易观分析:2022年Q2中国网络零售B2C市场交易规模达23444.7亿元
- Golang第二章:程序结构
猜你喜欢
随机推荐
2022-08-02 mysql/stonedb慢SQL-Q18-内存使用暴涨分析
2022的七夕,奉上7个精美的表白代码,同时教大家快速改源码自用
466. Count The Repetitions
LabVIEW code generation error 61056
pikachu Over permission 越权
Embedded systems: overview
HCIP第十三天
Shell编程的条件语句
LabVIEW代码生成错误 61056
重发布实验报告
一个函数有多少种调用方式?
Summary bug 】 【 Elipse garbled solution project code in Chinese!
PowerMockup 4.3.4::::Crack
【day1】
Embedded Systems: GPIO
Codeup刷题笔记-简单模拟
【bug】汇总Elipse项目中代码中文乱码解决方法!
Teach a Man How to Fish - How to Query the Properties of Any SAP UI5 Control by Yourself Documentation and Technical Implementation Details Demo
嵌入式系统:GPIO
Cloud platform construction solutions