Mysql
mysql中的行锁
在 MySQL 的 InnoDB 存储引擎中,行级锁通常是加在索引上的,而不是直接加在数据行上。这种机制是基于索引的锁定策略,具体来说: 主键索引:如果查询更新使用了主键进行查找,InnoDB 会直…
Sakurako’s Test
#二分 #值域 #前缀和
题目描述
Sakurako will soon take a test. The test can be described as an array of integers n n n and a task on it:
Given an integer x x x, Sakurako can perform the following operation any number of times:
Choose …