题目要求
都是整数
输入俩数n和k
1到n形成一个集合
a、b是集合里的任意俩数,但是a要小于b;
不管ab怎么样组合,三个位运算a & b (AND) 、a|b (OR) 、 a⊕b (XOR) 的多个可能值中的最大值要小于k。找出三个的最大值。
最终代码
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
//Complete the following function.
void calculate_the_maximum(int n, int k) {
//Write your code here.
int i,j; //定义两整数,在集合里的俩