Loading

上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 74 下一页
摘要: 动物园里饲养了很多动物,饲养员小 A 会根据饲养动物的情况,按照《饲养指南》购买不同种类的饲料,并将购买清单发给采购员小 B。 具体而言,动物世界里存在 2k 种不同的动物,它们被编号为 0∼2k−1。动物园里饲养了其中的 n 种,其中第 i 种动物的编号为 ai。 《饲养指南》中共有 m 条要求, 阅读全文
posted @ 2020-11-09 23:47 脂环 阅读(223) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/u014788838/article/details/87742126 阅读全文
posted @ 2020-11-07 18:22 脂环 阅读(135) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/LJH950908/article/details/85045833 阅读全文
posted @ 2020-11-07 14:48 脂环 阅读(1707) 评论(0) 推荐(0) 编辑
摘要: 给定一张 n 个点的带权无向图,点从 0~n-1 标号,求起点 0 到终点 n-1 的最短Hamilton路径。 Hamilton路径的定义是从 0 到 n-1 不重不漏地经过每个点恰好一次。 输入格式 第一行输入整数n。 接下来n行每行n个整数,其中第i行第j个整数表示点i到j的距离(记为a[i, 阅读全文
posted @ 2020-10-30 18:50 脂环 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 链接:https://ac.nowcoder.com/acm/contest/2970/A 来源:牛客网 题目描述 给出一个长度为n的操作序列。每个位置为“&”,“|”,“”中的一个。&表示按位与,|表示按位或,表示按位异或。 定义一个长度为n+1的01数列(即该数列只包含0和1)是合法的,当且仅当 阅读全文
posted @ 2020-10-30 15:55 脂环 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Binary Search Andrey thinks he is truly a successful developer, but in reality he didn't know about the binary search algorithm until recently. After 阅读全文
posted @ 2020-10-25 00:36 脂环 阅读(399) 评论(0) 推荐(0) 编辑
摘要: Boring Apartments 模拟 #include <iostream> using namespace std; int main() { //freopen("data.txt", "r", stdin); int t; cin >> t; while(t--) { int x; cin 阅读全文
posted @ 2020-10-21 20:05 脂环 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 主要是中缀转后缀+构造真值表进行判断,借助map来进行映射。 #include <iostream> #include <stack> #include <map> #include <vector> using namespace std; int n/*变元个数*/; map<char, int 阅读全文
posted @ 2020-10-19 23:26 脂环 阅读(552) 评论(0) 推荐(0) 编辑
摘要: 最近用homebrew的时候总是卡在update上面,于是直接编辑配置文件关闭brew的自动更新qwq https://www.runoob.com/linux/linux-vim.html 阅读全文
posted @ 2020-10-18 22:01 脂环 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Garrison and Anderson are working in a company named “Adjustment Office”. In competing companies workers change the reality, in this company they 阅读全文
posted @ 2020-10-07 15:50 脂环 阅读(143) 评论(0) 推荐(0) 编辑
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 74 下一页