想关掉刚用了三个月的卡,会影响信用吗# Money - 海外理财
a*g
1 楼
面的时候一时没想出来比较理想的方法
还请高手指点
Unsighed 30-bit integer B, 0 <= B < 2^30,
we say integer A conforms to integer B if A has bits set to 1 in all
positions where B has bits set to 1.
e.g. 00 0000 1111 0111 1101 1110 conforms to
00 0000 1100 0110 1101 1010
Write function which takes three 30-bit unsighed integer as input, and
returns the number of unsighed 30-bit integers that conform to at least one
of unsighed 30-bit A, B, C
e.g. A = 11 1111 1111 1111 1111 1111 1111 1001
B = 11 1111 1111 1111 1111 1111 1111 0011
C = 11 1111 1111 1111 1111 1111 1111 0100
Should return 11.
0011, 0100, 0101, 0110, 0111, 1001, 1011, 1100, 1101, 1110, 1111
Time complexity O(1), space complexity O(1)
还请高手指点
Unsighed 30-bit integer B, 0 <= B < 2^30,
we say integer A conforms to integer B if A has bits set to 1 in all
positions where B has bits set to 1.
e.g. 00 0000 1111 0111 1101 1110 conforms to
00 0000 1100 0110 1101 1010
Write function which takes three 30-bit unsighed integer as input, and
returns the number of unsighed 30-bit integers that conform to at least one
of unsighed 30-bit A, B, C
e.g. A = 11 1111 1111 1111 1111 1111 1111 1001
B = 11 1111 1111 1111 1111 1111 1111 0011
C = 11 1111 1111 1111 1111 1111 1111 0100
Should return 11.
0011, 0100, 0101, 0110, 0111, 1001, 1011, 1100, 1101, 1110, 1111
Time complexity O(1), space complexity O(1)