当前位置:网站首页>【学习笔记】模拟
【学习笔记】模拟
2022-06-28 08:06:00 【仰望星空的蚂蚁】
码量大的思维题
P3617 电阻网络
这是很坑的一道题。
建议跳过。
水の斗牛
只是单纯比较牌型大小。
细心一点即可。
可以用类似 hash 的算法,考虑把一副牌的大小压缩成一个整数 。
唯一需要做的就是预处理出牌型即可。
不围棋
这题需要一定思维。
并查集 + 启发式合并
*COWBASIC P
idea 很有趣。
显然不能暴力执行每一个 for 语句。 所以不能像编译器一样逐行执行。
怎么偷懒呢 ?
我们考虑把一个赋值语句看成一个转移矩阵,然后用矩阵乘法 。
这样就可以快速幂计算了。
这题并不简单。
[NOIP2005 提高组] 等价表达式
中缀表达式转后缀表达式求值。
栈模拟。
[NOIP2017 提高组] 时间复杂度
读懂题目了就不难。
还是要用栈模拟记录,因为涉及到循环嵌套的问题。
小结:语言处理题的考察范围比较广,包括字符串处理、代码理解和各种数据结构的运用。游戏类则是要搞清楚规则,以及按什么方式来模拟。
边栏推荐
- [JS] - [DFS, BFS application] - learning notes
- MySQL two table connection principle (understand join buf)
- Kubernetes理论基础
- Today's notes 22/1/7
- How to configure DDR3 of dm8148
- MySQL installation and environment variable configuration
- Disposition Flex
- MySQL tablespace parsing
- HJ字符串排序
- Software design of resistance test board
猜你喜欢

Airflow2.1.1 summary of the pits stepped on in actual combat!!

22/02/14 study notes

HJ质数因子

MySQL installation and environment variable configuration

Online WPS tool

Redis implements distributed locks

asp. Net to search products and realize paging function

asp. Net upload image path and image name

asp. Net error "/" server error in the application. String or binary data would be truncated. The statement...

Ambari (VIII) --- ambari integrated impala document (valid for personal test)
随机推荐
Rediscluster cluster mode capacity expansion node
Leetcode摆动序列系列
sql主从复制搭建
Idea package together, using compact middle packages to solve &
MySQL implements transaction persistence using redo logs
B_QuRT_User_Guide(30)
Unity 获取当前物体正前方,一定角度、距离的坐标点
图像翻译/Transformer:ITTR: Unpaired Image-to-Image Translation with Transformers用Transfor进行非配对图像对图像的转换
HJ进制转换
HJ explicit random number
Section Xi. Axi of zynq_ Use of DMA
Porting ucosiii to stm32f429
SOC serial port configuration
本周二晚19:00战码先锋第8期直播丨如何多方位参与OpenHarmony开源贡献
Online WPS tool
Today's notes 22/1/7
Design of DSP image data stream
Trigonometric transformation formula
HJ string sort
sql主從複制搭建