群论
rainbowsea_1
难得有了目标,怎么可以还是烂人一条!
展开
-
hdu5495 LCS (群论/并查集)
题意: 选择一种排列,使得数组a和b有更多的相同子序列。 例如,例1:1 2 3 和 3 2 1 ;p可以为2 1 3; 所以排列为 a2 a1 a3 和 b2 b1 b3. 即 2 1 3 和 2 3 1; 此时 2 1 是相同子序列, 长度为2; 再例如 , 例2: 6 1 5 3 2 6 4 3 6 2 4 5 1 可以看成 1 3 2 4 5 6 3 2 4 1 ...原创 2020-03-15 14:56:32 · 137 阅读 · 0 评论 -
poj1026-Cipher
Cipher Description Bob and Alice started to use a brand-new encoding scheme. Surprisingly it is not a Public Key Cryptosystem, but their encoding and decoding is based on secret keys. They chose the s...原创 2020-03-08 20:38:20 · 119 阅读 · 0 评论