随笔分类 -  ProgrammingContest

算法竞赛
摘要:CSP_202206-2_寻宝!大冒险 题目链接 思路 相当于判断两个有限集合AB之间是不是满射和单射,只需要保证以下两点 A和B元素个数相等 A中每个元素都能通过映射$\psi$到B中一个元素,且$\psi(a_1)=\psi(a_2) \iff a_1 = a_2$ 坑 输入的矩阵格式和我们平常 阅读全文
posted @ 2022-09-02 21:12 dutrmp19 阅读(294) 评论(0) 推荐(0)
摘要:题目描述 #include <iostream> #include <vector> #include <set> #include <algorithm> #include <unordered_map> #include <string> #include <cstring> using nam 阅读全文
posted @ 2021-12-04 17:14 dutrmp19 阅读(53) 评论(0) 推荐(0)
摘要:题目描述 方法暴力了点,但是主要就是学个语法。 #include <iostream> #include <vector> #include <set> #include <algorithm> #include <unordered_map> #include <string> #include 阅读全文
posted @ 2021-12-04 16:09 dutrmp19 阅读(94) 评论(0) 推荐(0)