当前位置:网站首页>7.1模擬賽總結
7.1模擬賽總結
2022-07-02 05:03: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找到所有的點 也可以在維護一下沒匹配的點是什麼 找到這個點對應的葉子
但是怎麼輸出方案呢?
边栏推荐
- Ansible installation and use
- 设置滚动条默认样式 谷歌浏览器
- Typescript function details
- Set the default style of scroll bar Google browser
- VMware installation win10 reports an error: operating system not found
- Implementation of leetcode two number addition go
- 面试会问的 Promise.all()
- Learn BeanShell before you dare to say you know JMeter
- DJB Hash
- Ruby replaces gem Alibaba image
猜你喜欢

Unity particle Foundation

農業生態領域智能機器人的應用

Realize the function of data uploading

How to modify data file path in DM database

Interview question: do you know the difference between deep copy and shallow copy? What is a reference copy?

C# 基于MQTTNet的服务端与客户端通信案例

Vmware安装win10报错:operating system not found

LeetCode 241. 为运算表达式设计优先级(分治/记忆化递归/动态规划)

培养中小学生对教育机器人的热爱之心

Pytest learning ----- pytest Interface Association framework encapsulation of interface automation testing
随机推荐
Fasttext text text classification
Simple and practical accounting software, so that accounts can be checked
正大美欧4的主账户关注什么数据?
Detailed process of DC-1 range construction and penetration practice (DC range Series)
Here comes the chicken soup! Keep this quick guide for data analysts
Save the CDA from the disc to the computer
Vmware安装win10报错:operating system not found
Pytest learning ----- pytest assertion of interface automation testing
Lm09 Fisher inverse transform inversion mesh strategy
Splice characters in {{}}
Beginner crawler - biqu Pavilion crawler
ansible安装与使用
Solution: the agent throws an exception error
LeetCode 1175. 质数排列(质数判断+组合数学)
[high speed bus] Introduction to jesd204b
4. Flask cooperates with a tag to link internal routes
oracle 存储过程与job任务设置
面试会问的 Promise.all()
Rhcsa --- work on the third day
DC-1靶场搭建及渗透实战详细过程(DC靶场系列)