
离散数学
夢懵緣遠
这个作者很懒,什么都没留下…
展开
-
离散数学 集合的运算
已知所给集合 A 和 B,求 A 与 B 的并集 C(C=A∪B)。已知所给集合 A 和 B,求 A 与 B 的交集 C(C=A∩B)。已知所给集合 A 和 B,求 A 与 B 的差集 C(C=A-B)。并集:#include <iostream>#include <set>using namespace std;set<int> myset;...原创 2019-11-25 15:13:01 · 2262 阅读 · 0 评论 -
离散数学 命题逻辑
求任意一个命题公式的真值表#include <iostream>#include <string>#include <queue>#include <stack>#include <cstdio>#include <cmath>using namespace std;string R;int var[27]={...原创 2019-11-13 13:43:36 · 501 阅读 · 0 评论