結果
問題 |
No.1082 XORのXOR
|
ユーザー |
👑 ![]() |
提出日時 | 2021-01-22 19:40:03 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 6 ms / 2,000 ms |
コード長 | 294 bytes |
コンパイル時間 | 2,653 ms |
コンパイル使用メモリ | 190,280 KB |
最終ジャッジ日時 | 2025-01-18 03:29:20 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 |
ソースコード
#include<bits/stdc++.h> using namespace std; using LL = long long; using ULL = unsigned long long; #define rep(i,n) for(int i=0; i<(n); i++) int N; int A[2000]; int main() { cin>>N; rep(i,N) cin>>A[i]; int ans=0; rep(i,N) rep(j,i) ans=max(ans,A[i]^A[j]); cout<<ans<<endl; return 0; }