山东省省赛F题题解

山东省省赛F题题解链接:https://ac.nowcoder.com/acm/contest/15600/F来源:牛客网题目描述Moca's birthday is coming up, and her friend Ran is going to t...

Read More


6月5日题解

6月5日题解交换题目链接http://icpc.upc.edu.cn/problem.php?cid=2828&pid=9题目描述给出一个序列A,其中第i个数字为ai,你每次可以选择一个数字不变,将其他数字全部乘以x。其中x为任意素数。无需考虑这些数字在...

Read More


现代密码学复习

古典密码体制的计算:字母对照表image-20210516231951185仿射变换加密变换Ek(m)=a+bm mod q 解密变换 Dk(c)=(c-a)b-1 mod q密钥短语密码选择一个英文短语作为密钥字或称密钥短语,如HAPPY N...

Read More


PTA L3-028 森森旅游 (30 分) 题解

题目链接:https://pintia.cn/problem-sets/994805046380707840/problems/1386335159927652364题解:建两个图,正图和反图。正图里的边权是现金,反图里的边权是旅游金。然后分别以1为起点...

Read More


2021/3/25 题解

组队训练赛问题B题目描述You’re probably familiar with regular word searches, where you’re presented with a grid of letters and a word to fi...

Read More