当前位置:网站首页>2022/8/3 Exam Summary
2022/8/3 Exam Summary
2022-08-03 23:09:00 【misty rain】
时间安排
7:30~8:00
先看了一遍题,It doesn't feel like one,非常自闭.
8:00~9:00
写了T2的暴力.
9:00~9:20
写T3的暴力
9:20~10:00
写T3the second and third gears,But somehow the answer is always big.
于是就放弃了
10:00~11:00
T1It can be done after Stirling split power,But don't know why the answer is always wrong.自闭.
11:00~12:00
想了想T2的 O ( n 2 ) O(n^2) O(n2),Finished writing a large sample.
考后总结
T1
It is the routine of using Stirling number to divide the power,into a composite meaning,Then proceed through tolerance and exclusiondp,All in all, it's very tricky.
I made a typo during the exam,导致挂了.
T2
O ( n l o g 3 n ) O(nlog^3n) O(nlog3n)
dsu on tree,Then use the tree chain to divide the statistics 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),But the constant is not big.But very good.
O ( n l o g 3 n ) O(nlog^3n) O(nlog3n)
Merge maintenance with segment tree,Then there is the tree chain segmentation,不过空间是 O ( n l o g 2 n ) O(nlog^2n) O(nlog2n),很危险.
So each heavy chain shares a segment tree,So the spacelog.
T3
就是dp,It's just that the author did better.
待upd.
边栏推荐
- 用两个栈模拟队列
- 如何创建一个Web项目
- What is the difference between the generator version and the viewer version?
- First domestic open source framework 】 【 general cloud computing framework, any program can be made into cloud computing.
- 七夕活动浪漫上线,别让网络拖慢和小姐姐的开黑时间
- OPC UA 与IEC61499 深度融合(1)
- 3D 语义分割——2DPASS
- 【职场杂谈】售前与销售工作配合探讨
- 图论-虚拟节点分层建图
- PowerMockup 4.3.4::::Crack
猜你喜欢
Boss: There are too many systems in the company, can you realize account interoperability?
冰河又一MySQL力作出版(文末送书)!!
Republish the lab report
node连接mysql数据库报错:Client does not support authentication protocol requested by server
OPC UA 与IEC61499 深度融合(1)
.NET6之MiniAPI(十四):跨域CORS(上)
"Digital Economy Panorama White Paper" Financial Digital User Chapter released!
LabVIEW code generation error 61056
如何创建一个Web项目
Creo 9.0二维草图的诊断:加亮开放端点
随机推荐
Creo 9.0在草图环境中创建坐标系
rosbridge-WSL2 && carla-win11
【day1】
UVa 437 - The Tower of Babylon (White Book)
Software testing is seriously involution, how to improve your competitiveness?
七夕活动浪漫上线,别让网络拖慢和小姐姐的开黑时间
使用tf.image.resize() 和tf.image.resize_with_pad()调整图像大小
log4j-slf4j-impl cannot be present with log4j-to-slf4j
工作小计 QT打包
Storage engine written by golang, based on b+ tree, mmap
Scala基础【正则表达式、框架式开发原则】
完全二叉树问题
为什么我们需要回调
Code Casual Recording Notes_Dynamic Programming_416 Segmentation and Subsetting
SPOJ 2774 Longest Common Substring(两串求公共子串 SAM)
UVa 10003 - Cutting Sticks (White Book, Interval DP)
encapsulation, package, access modifier, static variable
重发布实验报告
utlis 线程池
创建函数报错,提示DECLARE定义语法问题