当前位置:网站首页>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 游戏
边栏推荐
- A senior with 13 years of experience in software testing, summed up 5 test employment suggestions....
- 怎么样的框架对于开发者是友好的?
- [Use of Qt Designer tool]
- 【HarmonyOS】【ARK UI】HarmonyOS ets语言怎么实现双击返回键退出
- 高精度加法
- 银行适用:此文能够突破你的运维流程管理问题
- The use of @ symbol in MySql
- CCNA-子网划分(VLSM)
- 常见链表题及其 Go 实现
- Application of time series database in the field of ship risk management
猜你喜欢

攻防世界web-Cat

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

SwiftUI iOS 精品开源项目之 完整烘焙食品菜谱App基于SQLite(教程含源码)

Codeblocks + Widgets 创建窗口代码分析

3D机器视觉厂商的场景争夺战役

Quickly build an e-commerce platform based on Amazon cloud technology serverless service - performance

基于inquirer封装一个控制台文件选择器

Recommendation | People who are kind to you, don't repay them by inviting them to eat

NC | Tao Liang Group of West Lake University - TMPRSS2 "assists" virus infection and mediates the host invasion of Clostridium sothrix hemorrhagic toxin...

Mysql执行原理剖析
随机推荐
MySQL data types
The use of @ symbol in MySql
Go 系统收集
AWS console
运营 23 年,昔日“国内第一大电商网站”黄了...
【开发者必看】【push kit】推送服务典型问题合集3
Swiper轮播图片并播放背景音乐
CCNA-ACL(访问控制列表)标准ACL 扩展ACL 命名ACL
CCNA-子网划分(VLSM)
Recommendation | People who are kind to you, don't repay them by inviting them to eat
时序数据库在船舶风险管理领域的应用
【Swords Offer】Swords Offer 17. Print n digits from 1 to the largest
ESP8266-Arduino programming example-HC-SR04 ultrasonic sensor driver
Swiper rotates pictures and plays background music
AI基础:图解Transformer
延时队列优化 (2)
Recommended Books | Recommend 3 database books with rave reviews
基础架构之Redis
怎么样的框架对于开发者是友好的?
A senior with 13 years of experience in software testing, summed up 5 test employment suggestions....