当前位置:网站首页>7.25模拟赛总结
7.25模拟赛总结
2022-07-26 19:45:00 【Flame*】
嘎 嘎
胃好像没有那么难受了 就是一直腹泻 嘎…
今天的榜单:50分怒冲rank2
7.30-8.30
看题 感觉都没啥想法 T1感觉是dp 但不会 T2感觉是ds T3 不太懂
8.30-9.30
想了一会 打了个T2 的暴力 感觉不能用笛卡尔树做(二维的情况没法推广到三维)
9.30-11.00
打了T3的两种暴力
11.00-12.30
编了一下T1的链的做法 迫真贪心复合dp 然后继续想T2 感觉单调栈也不好做
题目分析
T1
不懂
upd
这个题(就是dp那一类的) 我订着都比较费劲 (就是会想转移对应什么)
f [ x , o p , o p 1 ] f[x,op,op1] f[x,op,op1] 表示在 x x x 的子树内 点 x x x 的状态是 o p op op 子树内有 o p 1 op1 op1 个端点
最开始一直不理解为什么0 对应多踩了一下 u u u 2对应多踩了一下v
直到我后来打表发现: 默认不在子树内的端点 都要在点 x x x 上
比如一个12 13 的树 f [ 1 , 1 , 0 ] = 12131 f[1,1,0]=1 2 1 3 1 f[1,1,0]=12131
T2
不懂啊 感觉是不是笛卡尔树/单调栈的混合
upd
考虑 m n A , m n B mnA,mnB mnA,mnB 取到的位置 分治做这个东西
T3
只会暴力 性质发现变化点之前差值是上一层编号 否则是当前层编号
upd:
考虑维护长链 长链上的点除了尾都只有一个儿子 那么答案只可能是询问点或者长链的尾部点
然后考虑主席树维护这个东西
边栏推荐
猜你喜欢

Definition and use of one-dimensional array

When there are many query fields, you can add ordinary query and advanced query

Task 1 report

软件测试-开发提测内容规范(项目提测模板)

Meeting seating & submission of meeting OA

Ape tutoring's technological hard power: let AI start from reading children's homework

Gartner发布最新《中国AI初创企业市场指南》,弘玑Cyclone再次被评为代表性企业

数字化工厂的优势有哪些

I hope some suggestions on SQL optimization can help you who are tortured by SQL like me

静音台式风扇芯片-DLTAP703SD-杰力科创
随机推荐
任务一 报告
Auto.js 旋转图标
MySQL之InnoDB引擎(五)
数字化工厂的优势有哪些
正则表达式
PSPICE 仿真石英晶体振荡电路
Easycvr device management list page, paging data does not display problem repair
Where are the single dogs in the evening of 5.20?
What are the key technologies of digital factory
Game partner topic: breederdao and ultiverse have established a new metauniverse
EtherCAT synchronization mode
numpy.put()
A super simple neural network code with 5 coordinates for one layer node training
Silent desktop fan chip dltap703sd Jericho
App Uploader下载安装
this指向,最简单的规则记住它
The sandbox cooperates with artist Alec monopoly
Record an analysis of a.Net property management background service stuck
猿辅导的科技硬实力:让AI从读懂孩子作业开始
Shell script basic programming commands