当前位置:网站首页>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找到所有的点 也可以在维护一下没匹配的点是什么 找到这个点对应的叶子
但是怎么输出方案呢?
边栏推荐
- Getting started with pytest -- description of fixture parameters
- About PROFIBUS: communication backbone network of production plant
- Summary of MySQL key challenges (2)
- The reason why sizeof (ARR) / sizeof (arr[0]) is used in the function to calculate the length of the array is incorrect
- LM09丨费雪逆变换反转网格策略
- C# 基于MQTTNet的服务端与客户端通信案例
- 培养中小学生对教育机器人的热爱之心
- leetcode存在重复元素go实现
- go实现leetcode旋转数组
- Mysql database learning
猜你喜欢

Practical problem solving ability of steam Education

Application d'un robot intelligent dans le domaine de l'agroécologie

Express logistics quick query method, set the unsigned doc No. to refresh and query automatically

Idea automatic package import and automatic package deletion settings

关于Steam 教育的知识整理

解析少儿编程中的动手搭建教程

Embedded-c language-9-makefile/ structure / Consortium

ansible安装与使用

正大留4的主账户信息汇总

Cultivate primary and secondary school students' love for educational robots
随机推荐
数学知识——快速幂的理解及例题
[bus interface] Axi interface
06 装饰(Decorator)模式
Map in JS (including leetcode examples)
Rhcsa --- work on the third day
C - derived classes and constructors
Lm09 Fisher inverse transform inversion mesh strategy
Flag bits in assembly language: CF, PF, AF, ZF, SF, TF, if, DF, of
Pit encountered in win11 pytorch GPU installation
農業生態領域智能機器人的應用
在{{}}中拼接字符
Mathematical problems (number theory) trial division to judge prime numbers, decompose prime factors, and screen prime numbers
关于Steam 教育的知识整理
Design and implementation of general interface open platform - (44) log processing of API services
How to configure PostgreSQL 12.9 to allow remote connections
go实现leetcode旋转数组
geotrust ov多域名ssl證書一年兩千一百元包含幾個域名?
[understand one article] FD_ Use of set
AcrelEMS高速公路微电网能效管理平台与智能照明解决方案智慧点亮隧道
06 decorator mode