自然溢出hash 双重hash 大质数hash BKDR哈希
分类:程序学习
【思维】Flippy Sequence
题目链接:ZOJ4060 题意: 两个二进制串a与b,进行两次段取反操作,使得a变为b,问有多少种方法?
【思维】Marjar Cola
Marjar Cola is on sale now! In order to attract more customers, Edward, the boss of Marjar Company, decides to…
【DFS】Sheba’s Amoebas
题目链接:
【模拟/字符串】DRM Messages
DRM Encryption is a new kind of encryption. Given an encrypted string (which we’ll call a DRM message), the de…
【序列自动机】Subsequence
题目地址:https://nanti.jisuanke.com/t/38232 求串A是否为串B的非连续子序列。
【单调栈/dp】Max answer
Describe Alice has a magic array. She suggests that the value of a interval is equal to the sum of the values …