当前位置:网站首页>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.
边栏推荐
- SPOJ 2774 Longest Common Substring(两串求公共子串 SAM)
- Live Preview | Build Business Intelligence, Quickly Embrace Financial Digital Transformation
- SolidEdge ST8安装教程
- 最小化安装debian11
- Boss: There are too many systems in the company, can you realize account interoperability?
- V8中的快慢数组(附源码、图文更易理解)
- Deep integration of OPC UA and IEC61499 (1)
- FinClip,助长智能电视更多想象空间
- 【并发编程】ReentrantLock的lockInterruptibly()方法源码分析
- Creo9.0 绘制中心线
猜你喜欢

Another MySQL masterpiece published by Glacier (send the book at the end of the article)!!

响应式织梦模板塑身瑜伽类网站

获国际权威认可 | 云扩科技入选《RPA全球市场格局报告,Q3 2022》

complete binary tree problem

Canvas App中点击图标生成PDF并保存到Dataverse中

Quickly build a website with static files

数据分析知识点搜集(纯粹的搜集)

What is the difference between the generator version and the viewer version?

跨域的学习

OPC UA 与IEC61499 深度融合(1)
随机推荐
最小化安装debian11
CAS:178744-28-0,mPEG-DSPE,DSPE-mPEG,甲氧基-聚乙二醇-磷脂酰乙醇胺供应
Nine ways to teach you to read the file path in the resources directory
UVa 1025 - A Spy in the Metro (White Book)
Analysys Analysis: The transaction scale of China's online retail B2C market in Q2 2022 will reach 2,344.47 billion yuan
Research status of target detection at home and abroad
【LeetCode】最长回文子序列(动态规划)
禾匠编译错误记录
(PC+WAP)织梦模板螺钉手柄类网站
complete binary tree problem
utils 定时器
OPC UA 与IEC61499 深度融合(1)
【开源框架】国内首个通用云计算框架,任意程序都可做成云计算。
栈的压入、弹出序列
End-to-End Lane Marker Detection via Row-wise Classification
override学习(父类和子类)
【职场杂谈】售前与销售工作配合探讨
CAS: 178744-28-0, mPEG-DSPE, DSPE-mPEG, methoxy-polyethylene glycol-phosphatidylethanolamine supply
设置工作模式与环境(下):探查和收集信息
响应式织梦模板除尘器类网站