当前位置:网站首页>7.5模拟赛总结
7.5模拟赛总结
2022-07-05 23:50:00 【Flame*】
绷不住了 一个地方忘开longlong 一个地方忘取模 破防 破防
时间安排
1.00-3.00
看题 然后想了想T1 最后两档不会 其他都编出来了
T2推了很久还是只会暴力
T3没想法
3.00-4.30
T1
4.30-5.00
又推了一会T2 但还是只会暴力
5.00-5.50
想了一会T3 然后写出来发现假了 后来在想 这个东西和a的取值无关 出现的次数应该是个组合数 但是没时间推了
题目分析
T1
首先可以想到 n 2 n^2 n2 的做法: l , r l,r l,r 最多相差n位 (否则一定不可能合并出答案) 并且进位不会超过16,所以减去偏移量之后暴力模拟就好了
接着考虑a比较小的做法
可以搞个线段树 然后对于一个右端点维护所有左端点 可以注意到线段树上的值一定是不增的
那么只会有50种 a k a^k ak
可以枚举之后在线段树上二分来判断是否存在以及找到对应的区间长度
感觉正解应该是取模意义下balabalabalaba 但我不知道这个具体怎么做比较好(不好确定 2 k 2^k 2k)
T2
不懂不理解不明白 如果求个最后的和我会做)
T3
最开始编了个贪心结论 写出来之后发现不对
又没法网络流(没法像一般的匹配那样确定左部点和右部点
但是写的时候可以感知到 这个东西和a无关 是个组合数应该
边栏推荐
- C # input how many cards are there in each of the four colors.
- 如何提升口才
- QT a simple word document editor
- Mathematical model Lotka Volterra
- QT QPushButton details
- Hcip course notes-16 VLAN, three-tier architecture, MPLS virtual private line configuration
- 如何获取localStorage中存储的所有值
- 保研笔记四 软件工程与计算卷二(8-12章)
- How to rotate the synchronized / refreshed icon (EL icon refresh)
- The PostgreSQL column reference 'ID' is ambiguous - PostgreSQL column reference'id'is ambiguous
猜你喜欢

Biased sample variance, unbiased sample variance

4 points tell you the advantages of the combination of real-time chat and chat robots

行列式学习笔记(一)

Rsync remote synchronization

20220703 周赛:知道秘密的人数-动规(题解)

成为程序员的你,后悔了吗?

零犀科技携手集智俱乐部:“因果派”论坛成功举办,“因果革命”带来下一代可信AI

Zhongjun group launched electronic contracts to accelerate the digital development of real estate enterprises

20.移植Freetype字体库

软件测试工程师必会的银行存款业务,你了解多少?
随机推荐
18.(arcgis api for js篇)arcgis api for js点采集(SketchViewModel)
关于结构体所占内存大小知识
教你在HbuilderX上使用模拟器运行uni-app,良心教学!!!
Huawei simulator ENSP - hcip - MPLS experiment
TS type declaration
14 MySQL view
保研笔记四 软件工程与计算卷二(8-12章)
After summarizing more than 800 kubectl aliases, I'm no longer afraid that I can't remember commands!
QT QPushButton details
15 MySQL-存储过程与函数
Senparc. Weixin. Sample. MP source code analysis
[Luogu p3295] mengmengda (parallel search) (double)
21. PWM application programming
激光slam学习记录
俄外交部:日韩参加北约峰会影响亚洲安全稳定
[gym 102832h] [template] combination lock (bipartite game)
"14th five year plan": emphasis on the promotion of electronic contracts, electronic signatures and other applications
Part III Verilog enterprise real topic of "Niuke brush Verilog"
行列式学习笔记(一)
Initialiser votre vecteur & initialisateur avec une liste Introduction à la Liste