当前位置:网站首页>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.
边栏推荐
- ML's yellowbrick: A case of interpretability (threshold map) for LoR logistic regression model using yellowbrick based on whether Titanic was rescued or not based on the two-class prediction dataset
- rosbridge-WSL2 && carla-win11
- Create function report error, prompting DECLARE definition syntax problem
- Work Subtotal QT Packing
- SPOJ 2774 Longest Common Substring(两串求公共子串 SAM)
- 用队列模拟实现栈
- 创建函数报错,提示DECLARE定义语法问题
- Click the icon in Canvas App to generate PDF and save it to Dataverse
- 二叉搜索树解决落叶问题
- utils 定时器
猜你喜欢

云平台建设解决方案

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

物联网新零售模式,引领购物新潮流

Embedded systems: overview

Lift, Splat, Shoot: Encoding Images from Arbitrary Camera Rigs by Implicitly Unprojecting to 3D 论文笔记

win10系统下yolov5-V6.1版本的tensorrt部署细节教程及bug修改

用两个栈模拟队列

Live Preview | Build Business Intelligence, Quickly Embrace Financial Digital Transformation

First domestic open source framework 】 【 general cloud computing framework, any program can be made into cloud computing.

SPOJ 2774 Longest Common Substring(两串求公共子串 SAM)
随机推荐
LabVIEW code generation error 61056
Walk the Maze BFS
1067 Sort with Swap(0, i)
Zilliz 2023 秋季校园招聘正式启动!
Analysys Analysis: The transaction scale of China's online retail B2C market in Q2 2022 will reach 2,344.47 billion yuan
MiniAPI of .NET6 (14): Cross-domain CORS (Part 1)
Golang Chapter 1: Getting Started
Use tf.image.resize() and tf.image.resize_with_pad() to resize images
Unity2021发布WebGL雾效消失问题
【并发编程】ReentrantLock的lockInterruptibly()方法源码分析
Take an example of a web worker
用两个栈模拟队列
Creo9.0 绘制中心线
用队列模拟实现栈
MCS-51单片机,定时1分钟,汇编程序
雅思大作文写作模版
禾匠编译错误记录
用两个栈模拟队列
utils 定时器
log4j-slf4j-impl cannot be present with log4j-to-slf4j