当前位置:网站首页>【学习笔记】模拟
【学习笔记】模拟
2022-06-28 08:06:00 【仰望星空的蚂蚁】
码量大的思维题
P3617 电阻网络
这是很坑的一道题。
建议跳过。
水の斗牛
只是单纯比较牌型大小。
细心一点即可。
可以用类似 hash 的算法,考虑把一副牌的大小压缩成一个整数 。
唯一需要做的就是预处理出牌型即可。
不围棋
这题需要一定思维。
并查集 + 启发式合并
*COWBASIC P
idea 很有趣。
显然不能暴力执行每一个 for 语句。 所以不能像编译器一样逐行执行。
怎么偷懒呢 ?
我们考虑把一个赋值语句看成一个转移矩阵,然后用矩阵乘法 。
这样就可以快速幂计算了。
这题并不简单。
[NOIP2005 提高组] 等价表达式
中缀表达式转后缀表达式求值。
栈模拟。
[NOIP2017 提高组] 时间复杂度
读懂题目了就不难。
还是要用栈模拟记录,因为涉及到循环嵌套的问题。
小结:语言处理题的考察范围比较广,包括字符串处理、代码理解和各种数据结构的运用。游戏类则是要搞清楚规则,以及按什么方式来模拟。
边栏推荐
- LeetCode之三步问题
- Estimation of SQL execution cost by MySQL query optimizer
- Buffer pool in MySQL
- kubernetes集群命令行工具kubectl
- HJ明明的随机数
- Study notes 22/1/17
- HJ21 简单密码
- asp. Net error "/" server error in the application. String or binary data would be truncated. The statement...
- Redis cluster deployment and application scenarios
- Airflow2.x distributed deployment DAG execution failure log cannot be obtained normally
猜你喜欢

Host is not allowed to connect to this MySQL server

小艺人黄鑫洋受邀参加巴黎时装周儿童单元武汉站

Prometheus monitoring (I)

Idea package together, using compact middle packages to solve &

Redis master-slave structure and application scenarios

【js】-【DFS、BFS应用】-学习笔记

22/02/14 study notes

Image translation /transformer:ittr: unpaired image to image translation with transformers

ROS 笔记(08)— 服务数据的定义与使用

Eslint syntax monitoring off
随机推荐
Trigonometric transformation formula
【js】-【节流、防抖函数】
HJ质数因子
Generation and verification of JWT token
nlp序列完全可以模拟人脑智能
2021 programming language ranking summary
Three step problem of leetcode
抗洪救灾,共克时艰,城联优品捐赠10万元爱心物资驰援英德
Airflow2.x distributed deployment DAG execution failure log cannot be obtained normally
Introduction to Devops Basics
Hj21 simple password
MySQL single table access method
Sentinel mechanism of redis cluster
ZYNQ_ IIC read / write m24m01 record board status
pip 更新到最新的版本
Eslint syntax monitoring off
Redis implements distributed locks
Upgrade HDP spark to spark 2.4.8 without upgrading ambari
Kubernetes theoretical basis
HJ character count