当前位置:网站首页>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找到所有的点 也可以在维护一下没匹配的点是什么 找到这个点对应的叶子
但是怎么输出方案呢?
边栏推荐
- 洛谷入门3【循环结构】题单题解
- VMware installation win10 reports an error: operating system not found
- Simple and practical accounting software, so that accounts can be checked
- Change deepin to Alibaba image source
- Embedded-c language-9-makefile/ structure / Consortium
- 数学知识(欧拉函数)
- [quick view opencv] familiar with CV matrix operation with image splicing examples (3)
- How do I interview for a successful software testing position? If you want to get a high salary, you must see the offer
- Leetcode basic programming: array
- 将光盘中的cda保存到电脑中
猜你喜欢
What data does the main account of Zhengda Meiou 4 pay attention to?
About PROFIBUS: communication backbone network of production plant
Go Chan's underlying principles
Preparation for writing SAP ui5 applications using typescript
[understand one article] FD_ Use of set
Cubemx DMA notes
VMware installation win10 reports an error: operating system not found
Steam教育的实际问题解决能力
Save the CDA from the disc to the computer
06 装饰(Decorator)模式
随机推荐
Design and implementation of general interface open platform - (44) log processing of API services
正大美欧4的主账户关注什么数据?
Detailed process of DC-1 range construction and penetration practice (DC range Series)
Hcip day 17
Comp 250 parsing
Mathematical knowledge (Euler function)
go实现leetcode旋转数组
Preparation for writing SAP ui5 applications using typescript
What are the rules and trading hours of agricultural futures contracts? How much is the handling fee deposit?
geotrust ov多域名ssl證書一年兩千一百元包含幾個域名?
Video multiple effects production, fade in effect and border background are added at the same time
Mouse events in JS
Pyflink writes MySQL examples with JDBC
Leetcode merge sort linked list
C# 基于MQTTNet的服务端与客户端通信案例
Steam教育的实际问题解决能力
Knowledge arrangement about steam Education
A new attribute value must be added to the entity entity class in the code, but there is no corresponding column in the database table
2022阿里巴巴全球数学竞赛 第4题 虎虎生威(盲盒问题、集卡问题)解决思路
Oracle和MySQL的基本区别(入门级)