组合题6 个小题
已作答 0 / 6
1#include <iostream>2using namespace std;3 4int n;5int d[1000];6 7int main() {8 cin >> n;9 for (int i = 0; i < n; ++i)10 cin >> d[i];11 int ans = -1;12 for (int i = 0; i < n; ++i)13 for (int j = 0; j < n; ++j)14 if (d[i] < d[j])15 ans = max(ans, d[i] + d[j] - (d[i] & d[j]));16 cout << ans;17 return 0;18}19 假设输入的 n 和 d[i] 都是不超过 10000 的正整数,完成下面的判断题和单选题:
若输入 n 为 100,且输出为 127,则输入的 d[i] 中不可能有( )。