当前位置:网站首页>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 游戏
边栏推荐
- kotlin by lazy
- 中集世联达工业级成熟航运港口人工智能AI产品规模化应用,打造新一代高效能智慧港口和创新数字港口,全球港航人工智能能领军者中集飞瞳
- 好未来单季营收2.24亿美元:同比降84% 张邦鑫持股26.3%
- 智慧中控屏
- 3D机器视觉厂商的场景争夺战役
- 【PHPWord】Quick Start of PHPWord in PHPOffice Suite
- Pytorch foundation -- tensorboard use (1)
- CCNA-ACL(访问控制列表)标准ACL 扩展ACL 命名ACL
- A senior with 13 years of experience in software testing, summed up 5 test employment suggestions....
- 图解LeetCode——11. 盛最多水的容器(难度:中等)
猜你喜欢

微信小程序云开发 | 城市信息管理

One year after graduation, I was engaged in software testing and won 11.5k. I didn't lose face to the post-98 generation...

C# wpf 无边框窗口添加阴影效果

"Ruffian Heng Embedded Bimonthly" Issue 59

The use of @ symbol in MySql

【Pointing to Offer】Pointing to Offer 18. Delete the node of the linked list

(2022杭电多校四)1001-Link with Bracket Sequence II(区间动态规划)

ESP8266-Arduino编程实例-BMP180气压温度传感器驱动

Hello, my new name is "Bronze Lock/Tongsuo"

Swiper rotates pictures and plays background music
随机推荐
【Pointing to Offer】Pointing to Offer 18. Delete the node of the linked list
开心的聚餐
A senior with 13 years of experience in software testing, summed up 5 test employment suggestions....
【Qt Designer工具的使用】
Meta元宇宙部门第二季度亏损28亿!仍要继续押注?元宇宙发展尚未看到出路!
CIMC Shilian Dafeitong is the global industrial artificial intelligence AI leader, the world's top AI core technology, high generalization, high robustness, sparse sample continuous learning, industri
载誉而归,重磅发布!润和软件亮相2022开放原子全球开源峰会
【Swords Offer】Swords Offer 17. Print n digits from 1 to the largest
CCNA-网络汇总 超网(CIDR) 路由最长掩码匹配
时序数据库在船舶风险管理领域的应用
常见链表题及其 Go 实现
ROS 环境使用第三方动态链接库(.so)文件
[Prometheus] An optimization record of the Prometheus federation [continued]
MYSQL(基本篇)——一篇文章带你走进MYSQL的奇妙世界
图解LeetCode——11. 盛最多水的容器(难度:中等)
The use of @ symbol in MySql
Anaconda Navigator stuck on loading applications
《痞子衡嵌入式半月刊》 第 59 期
CMake库搜索函数居然不搜索LD_LIBRARY_PATH
不同的路径依赖