>>733
阪大の授業より抜粋
コンピュータ基礎&基礎演習
ttp://www3.sys.es.osaka-u.ac.jp/iwai/cs/
/* 和集合 */
int Union(int A, int B) {
    return A | B;
}
/* 積集合 */
int Intersection(int A, int B) {
    return A & B;
}
/* 差集合 */
int Difference(int A, int B) {
    return A & ~B;
}
/* 追加 */
int insert(int set, int atom) {
    set |= (1L << (atom - 1));
    return set;
}
/* 削除 */
int erase(int set, int atom) {
    set &= ~(1L << (atom - 1));
    return set;
}