結果
問題 | No.1082 XORのXOR |
ユーザー |
👑 |
提出日時 | 2020-01-28 23:30:43 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 7 ms / 2,000 ms |
コード長 | 273 bytes |
コンパイル時間 | 471 ms |
コンパイル使用メモリ | 65,100 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-16 02:27:31 |
合計ジャッジ時間 | 1,776 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 |
ソースコード
#include <iostream> using namespace std; int main(){ int n;cin>>n; int a[n]; for(int i = 0; n > i; i++){ cin>>a[i]; } int ans = 0; for(int i = 0; n > i; i++){ for(int j = 1; n > j; j++){ ans = max(ans,a[i]^a[j]); } } cout << ans << endl; }