当前位置:网站首页>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 游戏
边栏推荐
- Pytorch foundation -- tensorboard use (1)
- node封装一个控制台进度条插件
- 猎豹移动终于递交年报:年营收7.85亿 腾讯持股16.6%
- 【HMS Core】【FAQ】运动健康、音频编辑、华为帐号服务 典型问题合集7
- 软件测试13年从业经验的前辈,总结的5条测试就业建议....
- 【Qt Designer工具的使用】
- 图解LeetCode——11. 盛最多水的容器(难度:中等)
- 【每日一道LeetCode】——191. 位1的个数
- [OC study notes] attribute keyword
- Immersive experience iFLYTEK 2022 Consumer Expo "Official Designated Product"
猜你喜欢

The Meta metaverse division lost 2.8 billion in the second quarter!Still want to keep betting?Metaverse development has yet to see a way out!

ESP8266-Arduino编程实例-HC-SR04超声波传感器驱动

【剑指 Offer】剑指 Offer 22. 链表中倒数第k个节点

【剑指 Offe】剑指 Offer 18. 删除链表的节点

《痞子衡嵌入式半月刊》 第 59 期

一文读懂“语言模型”

MySQL数据类型

Web结题报告

线性筛求积性函数

【剑指 Offe】剑指 Offer 17. 打印从1到最大的n位数
随机推荐
生物医学论文有何价值 论文中译英怎样翻译效果好
DM8:单库单实例搭建本地数据守护服务
OneFlow source code analysis: Op, Kernel and interpreter
Mongo for infrastructure
【剑指 Offer】剑指 Offer 22. 链表中倒数第k个节点
Does the satellite phone communicate directly with the satellite or through a ground station?
【Qt Designer工具的使用】
Application of time series database in the field of ship risk management
毕业1年从事软件测试拿下11.5k,没有给98后丢脸吧...
载誉而归,重磅发布!润和软件亮相2022开放原子全球开源峰会
Pytorch foundation -- tensorboard use (1)
单例模式 (Singleton)
SwiftUI iOS Boutique Open Source Project Complete Baked Food Recipe App based on SQLite (tutorial including source code)
基础架构之Redis
荐号 | 对你有恩的人,不要请吃饭来报答
网络基础(二)-Web服务器-简介——WampServer集成服务器软件之Apache+MySQL软件安装流程 & netstat -an之检测计算机的端口是否占用
[Prometheus] An optimization record of the Prometheus federation [continued]
【Swords Offer】Swords Offer 17. Print n digits from 1 to the largest
AI Basics: Graphical Transformer
ctf.show_web5