当前位置:网站首页>[learning notes] radical thinking question
[learning notes] radical thinking question
2022-07-21 05:06:00 【Ants looking up at the starry sky】
Violent data structures
[SNOI2022] army
- Consider the whole block
- Because the fragmentation is very obvious , Just refactor directly
- When merging the two parties , We cannot superimpose the marks of one party directly on the marks of another party
- So we need to create a new point , Maintain the parties it represents and the cumulative value
- Obviously, we are building a tree
- When recruiting , In fact, it is the accumulation of all points that become the current party
- Obviously, it can be handled in reverse order
- Obviously, you can consider each block separately
- So the spatial complexity O ( n ) O(n) O(n)
- The complexity of time is obviously O ( n n ) O(n\sqrt{n}) O(nn)
[NOI2021] Quantum communication
边栏推荐
- FigDraw 11. Violinplot of SCI article drawing
- C语言结构体柔型数组
- 自编码器(Auto-Encoder)
- Dynamic password lock based on stm32
- 【云原生之kubernetes】kubernetes集群下初始化容器的使用方法
- 【学习笔记】数论思维题
- 关于晶圆介绍以及IGBT晶圆的应用
- Wangeditor uncaught (in promise) error: the editor instance already exists in the initialization node, and the edit cannot be created repeatedly
- keras MNIST手写数字数据集数字识别
- The realization of Sanzi game
猜你喜欢
Two dimensional convolution Chinese microblog emotion classification project
unicode 编码 输出12生肖表情图片
What are the six access database objects? What is the most important difference between access and excel?
Keras MNIST Handwritten Digital Data Set Digital Recognition
【组队 PK 赛】积分商城已开启 | 即刻兑换专属好礼
VAE image generation practice
C语言动态内存管理
Send a book at the end of the article | Douban 9.4 points, "Hello, world" originated from this book!
redis锁超卖解决问题
Two way LSTM Chinese microblog emotion classification project
随机推荐
Storage of integer and floating point numbers in memory
VAE图片生成实战
Go 调度器——schedule
一维卷积英语电影评论情感分类项目
unity 引用另一个类中的变量(自己实例)
二维卷积中文微博情感分类项目
双向LSTM中文微博情感分类项目
The projection layer released by leaflet loading hypergraph reports an error uncaught no projection definition for code XXXX
mpf4_ Pricing European American barrier options_ CRR_ Leisen-Reimer_ Greeks_ Binary tree trigeminal tree grid_ Fine differences (explicit implicit) crank Nicolson_ Imp volatility
With great power there must come great responsibility.
Deep Residual Learning for Image Recognition--ResNet经典论文
Leaflet 加载超图发布的投影图层报错 Uncaught No projection definition for code XXXX
this的指向
【JZOF-03】数组中重复的数字
如果在加密领域有段位,你是“青铜”还是“王者”?
7 款 DevOps 工具管理 Kubernetes
A very simple and beautiful login box
[QNX hypervisor 2.2 user manual] directory
【翻译】读博士一年后对机器学习工程的思考
【云原生之kubernetes】kubernetes集群下初始化容器的使用方法