40pts,求助+壶关
查看原帖
40pts,求助+壶关
995569
L__B楼主2024/7/1 17:07
#include<bits/stdc++.h>
using namespace std;
int n,a[1000001],b[1000001];
bool cmp(int x,int y){
    return x>y;
}
int main(){
    scanf("%d",&n);
    for(int i=0;i<n;i++) scanf("%d",&a[i]);
    sort(a,a+n,cmp);
    printf("%d",a[0]&a[1]);
    return 0;
}
2024/7/1 17:07
加载中...