当前位置:网站首页>7.1模拟赛总结
7.1模拟赛总结
2022-07-02 05:02:00 【Flame*】
呵呵呵呵呵呵经历我找了两天饭卡之后我终于发现
于是我不是丢了饭卡 是丢了校服外套(蚌
其实今天我感觉我还是有认真思考的 (除了最开始太困
感觉自己有个问题:太想搞正解 有时候懒得打很麻烦的暴力
今天有两个地方还可以
1.T1基本想了个大概(除了最后是真的不知道怎么输出方案 我只会确定点 不知道怎么确定方案)
2.T1最后很想偷懒不打第一档暴力 但还是认真写了
但也犯了错
1.T3数组开错了(用偏移量开了数组呵呵呵呵呵呵
2.T1分段写错了) 怎么会有人先判断n再读入呢呵呵呵
怒挂22分 很可惜
时间安排
7.40-9.00
大概看了看题 感觉23都没啥想法 T1最有感觉 然后就认真推T1 假了几个做法之后反应过来 找点和关键点的对应方式应该是:这个叶子到关键点中间不能经过别的关键点
9.00-10.00
对着这个东西冥思苦想没有任何进展
10.00-10.30
感觉不行 所以打了T2 T3的暴力
10.30-11.00
猛地反应过来 T3可以dpdpdpdp
but 我不知道 怎么确定某个点的值 我只会找到叶子和它对应的点 不知道点是什么值 sad
11.00-12.00
想了一会之后克制住自己 打了T1的两个暴力
题目分析
T1
考虑 f [ i , o p ] f[i,op] f[i,op] 表示 i i i 这个子树内状态为 o p op op 时的方案
0表示存在没匹配的叶子 1代表不存在
需要在一个点开个vector 之类的维护
需要维护
1.是和什么东西形成了转移
2.当前的 ∑ v \sum v ∑v
这样就可以dfs找到所有的点 也可以在维护一下没匹配的点是什么 找到这个点对应的叶子
但是怎么输出方案呢?
边栏推荐
- 6.30 year end summary, end of student age
- Promise all()
- What are the rules and trading hours of agricultural futures contracts? How much is the handling fee deposit?
- Lm09 Fisher inverse transform inversion mesh strategy
- The El cascader echo only selects the questions that are not displayed
- How to write a client-side technical solution
- Video multiple effects production, fade in effect and border background are added at the same time
- VMware installation win10 reports an error: operating system not found
- js中的Map(含leetcode例题)
- idea自動導包和自動删包設置
猜你喜欢

Markdown edit syntax

Pit encountered in win11 pytorch GPU installation

Detailed process of DC-1 range construction and penetration practice (DC range Series)

What data does the main account of Zhengda Meiou 4 pay attention to?

Unity particle Foundation

Knowledge arrangement about steam Education

Embedded-c language-8-character pointer array / large program implementation
![[common error] the DDR type of FPGA device is selected incorrectly](/img/f3/be66bcfafeed581add6d48654dfe34.jpg)
[common error] the DDR type of FPGA device is selected incorrectly

Solution of DM database unable to open graphical interface

数学知识(欧拉函数)
随机推荐
2022 Alibaba global mathematics competition, question 4, huhushengwei (blind box problem, truck problem) solution ideas
Simple and practical accounting software, so that accounts can be checked
Flag bits in assembly language: CF, PF, AF, ZF, SF, TF, if, DF, of
Lay the foundation for children's programming to become a basic discipline
The reason why sizeof (ARR) / sizeof (arr[0]) is used in the function to calculate the length of the array is incorrect
ansible安装与使用
Feign realizes file uploading and downloading
Solution of DM database unable to open graphical interface
Hcip day 17
数学知识(欧拉函数)
JS interview collection test question 1
Future trend of automated testing ----- self healing technology
go实现leetcode旋转数组
Several methods of capturing packets under CS framework
js面试收藏试题1
Go Chan's underlying principles
Implementation of go language for deleting duplicate items in sorting array
How do I interview for a successful software testing position? If you want to get a high salary, you must see the offer
Set the default style of scroll bar Google browser
Idea automatic package import and automatic package deletion settings