結果
| 問題 | No.1082 XORのXOR |
| コンテスト | |
| ユーザー |
Iroha_3856
|
| 提出日時 | 2024-07-28 21:08:17 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 2,000 ms |
| コード長 | 259 bytes |
| 記録 | |
| コンパイル時間 | 2,279 ms |
| コンパイル使用メモリ | 332,836 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-04-03 19:05:12 |
| 合計ジャッジ時間 | 3,211 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int n; cin >> n;
vector<int> a(n);
for (int i = 0; i < n; i++) cin >> a[i];
int ans = 0;
for (int i = 0; i < n; i++) for(int j = 0; j < n; j++) ans = max(ans, a[i]^a[j]);
cout << ans << endl;
}
Iroha_3856