当前位置:网站首页>7.29模拟赛总结
7.29模拟赛总结
2022-07-30 18:39:00 【Flame*】
我挂分 我偏挂分(痛哭流涕
今天没那么困! 感觉很有精神!
时间安排
7.30-8.30
看T1 感觉没啥想法 感觉是不是个什么最优策略题 但我不知道最优策略是什么 嘎
8.30-10.00
写T2 想了半天也只会拓扑
10.00-11.30
想T2 以为能过第二个点 猛冲(但其实空间时间开销同阶 泪目了 mle
11.30-12.30
又想了一会T1 还是不会
题目分析
啊? T1怎么过了998244353个人啊
T1
?
upd
c e i l ( l o g ( m ) ) ceil(log(m)) ceil(log(m)) 可以取得100分的好成绩捏喵!
正解是dp 也就是我没想出来的最优策略 f [ x , y ] = f [ x − 1 , y − 1 ] + f [ x , y − 1 ] + 1 f[x,y]=f[x-1,y-1]+f[x,y-1]+1 f[x,y]=f[x−1,y−1]+f[x,y−1]+1
f [ x , y ] f[x,y] f[x,y] 是用 x x x 个牛油果 扔 y y y 次可以确定的最大范围
问题可能是 我认为这个有一个贪心的策略 但其实dp)
T2
n 2 n^2 n2 建出来dag之后跑
upd
不太好的一点是没想到可以归并排序做链
T3
考虑可以把询问放在边上 然后按照追击/相遇分别计算
可以剪枝剪进2s内(nm)
就是空间开销有问题)
upd
考虑转换成以时间为横坐标 深度为纵坐标的线段
那么答案就是线段的交点
树剖后 用set维护这些线段
有一点点像 sdoi 游戏
边栏推荐
- 软件测试13年从业经验的前辈,总结的5条测试就业建议....
- DM8: Single database and single instance to build a local data guard service
- Recommendation | People who are kind to you, don't repay them by inviting them to eat
- ROS 环境使用第三方动态链接库(.so)文件
- 深化校企合作 搭建技术技能人才成长“立交桥”
- 经济新闻:错误# 15:初始化libiomp5md。dll,但发现libiomp5md。已经初始化dll。解决方法
- 【Pointing to Offer】Pointing to Offer 18. Delete the node of the linked list
- 常见链表题及其 Go 实现
- What is the value of biomedical papers? How to translate the papers into Chinese and English?
- 毕业1年从事软件测试拿下11.5k,没有给98后丢脸吧...
猜你喜欢
国轩高科瑞交所上市:募资近7亿美元 为瑞士今年最大融资项目
Application of time series database in the field of ship risk management
【PHPWord】Quick Start of PHPWord in PHPOffice Suite
Scrapy framework is introduced
Web结题报告
经济新闻:错误# 15:初始化libiomp5md。dll,但发现libiomp5md。已经初始化dll。解决方法
【Pointing to Offer】Pointing to Offer 22. The kth node from the bottom in the linked list
MySQL data types
Immersive experience iFLYTEK 2022 Consumer Expo "Official Designated Product"
cocos creater 热更重启导致崩溃
随机推荐
ctf.show_web5
Swiper轮播图片并播放背景音乐
【HMS core】【FAQ】HMS Toolkit典型问题合集1
Critical Reviews | 南农邹建文组综述全球农田土壤抗生素与耐药基因分布
【剑指 Offer】剑指 Offer 22. 链表中倒数第k个节点
The use of @ symbol in MySql
博纳影通过IPO注册:阿里腾讯是股东 受疫情冲击明显
智慧中控屏
A senior with 13 years of experience in software testing, summed up 5 test employment suggestions....
二分答案裸题(加一点鸽巢原理)
OSPF详解(4)
mysql的多实例
自然语言处理nltk
延时队列优化 (2)
基础架构之Mongo
高精度加法
Go system collection
MYSQL(基本篇)——一篇文章带你走进MYSQL的奇妙世界
Recommended Books | Recommend 3 database books with rave reviews
LeetCode Exercise - Two Questions About Finding Sum of Array Elements