摘要: 题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4706 思路:字符串是一个集合(由0到多个A~Z字符组成),我们可以假设初始集合是多个A,多个B……多个Z组成。用unsigned char nums[26] 来标记它们 阅读全文
posted @ 2019-05-04 07:51 Youpeng 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4712 求a对于m的最小正整数逆元 先回顾一下几个定理 定理一:如果d = gcd(a, b),则必能找到正的或负的整数 x 和 y ,使 d = a x+ b y。 定 阅读全文
posted @ 2019-05-04 07:03 Youpeng 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4713 题目很水,但是注意,越是简单的题目越应该关注细节,比如说输出上的陷阱(有空格),不要想当然的就粗心大意的写了。 AC代码: include using names 阅读全文
posted @ 2019-05-04 06:45 Youpeng 阅读(126) 评论(0) 推荐(0) 编辑