当前位置:网站首页>2022/3/11 考试总结
2022/3/11 考试总结
2022-07-27 19:57:00 【迷蒙之雨】
赛时安排
7:40~8:00
看完题,发现T3是原题
依稀记得是多项式加速第一类斯特林数
保险起见先写写了个暴力求第一类斯特林数
一下就过了样例
因为有前车之鉴,所以不敢去写多项式,先去看前两题了
8:00~8:20
T2的 k ≤ 3 k\leq3 k≤3很奇怪
k = 1 , k = 2 k=1,k=2 k=1,k=2都很好做
但是3就没有什么性质
推了一下,发现对于一个左端点,连续区间按位与的变化是 O ( l o g a i ) O(loga_i) O(logai)级别的
因为每一位如果变成0就不会变了
可以对每一个二进制位开个桶,在桶里二分找后面第一个会使得当前为从1变成0的位置
然后这样的区间个数是 O ( n log a ) O(n\log a) O(nloga)的
然后查询的时候,把询问离线,用一颗线段树维护就行了
然后就赶紧写
8:30~9:00
写T2
9:00~9:40
写完之后,码了个暴力对拍
正确率没什么问题,但是常数很大,跑了2.3s
加上快读,把线段树改成树状数组,发现只跑了1.7s
但是还是有被卡的风险的
测试了一下发现是输出竟然输了800ms
改成快写,就跑进1s以内了
9:40~10:10
T1没有思路,写了个 O ( n m 2 ) O(nm^2) O(nm2)的做法就弃了
期望得分45pts
10:10~11:15
快速回忆了一下如何求第一类斯特林数
似乎只需要一个NTT和一个倍增
就赶紧码,码完拍一下,然后再卡卡常,应该问题不大
11:15~11:50
检查,对拍
订题总结
T1
其实本质是离线扫描线,只不过是把不断加入,变成不断删除
但是,还是第一次见到把trie树的儿子合并起来这种操作
然后再启发式合并维护
感觉挺妙的
T2T3的思路都和题解是一样的
边栏推荐
- SQL injection less29 (parameter pollution bypasses WAF)
- setContentView详解
- The wave of smart home is coming, how to make machines understand the world [there is information at the end]
- RN搜索高亮显示
- It is said that Intel will adopt TSMC 6nm EUV process next year
- It is said that Huawei will cut the order again! Supply chain manufacturers are more difficult
- leetcode383赎金信
- The ASML lithography machine purchased by SMIC international entered the factory smoothly, but it is not a non EUV lithography machine!
- EC code introduction
- Jstack stuff
猜你喜欢

SQL injection less26a (Boolean blind injection)

setContentView详解

Reed relay

蓝牙框架总结

Two dimensional code generation based on MCU and two dimensional code display on ink screen

智能家居浪潮来袭,如何让机器看懂世界 【结尾有资料】

If there is no reference ground at all, guess if you can control the impedance?

Build your own website (22)

The follow-up is coming. Whether it's OK without reference, let's make it clear to everyone at once!

【图解】三次握手,四次挥手 —— 用心看这一篇就够了
随机推荐
全国职业院校技能竞赛网络安全竞赛数据取证与分析思路分析
SSM integration process
带你掌握 Makefile 分析
[untitled]
视频人体行为检测
If there is no reference ground at all, guess if you can control the impedance?
The follow-up is coming. Whether it's OK without reference, let's make it clear to everyone at once!
Analysis on data collection and analysis of network security competition in national vocational college skill competition
Video human behavior detection
OPPO Find X2系列发布:3K+120Hz曲面屏,DXO评分第一,顶配版6999元!
PyQt5快速开发与实战 4.9 对话框类控件
Vocational school Panyun network security competition ----- exploration of hidden information
2022/4/8考试总结
Six employees have been confirmed! Samsung closed the turtle tail mobile phone factory for the third time!
Excel only wants to visualize charts and make data move? Yes, come and watch (with a large number of templates to download)
US officials suggested trump prevent Infineon from acquiring cypress
MMU learning summary
HC32F4A0 时钟控制
Chapter 3 business function development (choose to export market activities, Apache POI)
三星存储工厂又发生火灾!