結果
問題 | No.1082 XORのXOR |
ユーザー |
![]() |
提出日時 | 2023-01-17 15:48:51 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 52 ms / 2,000 ms |
コード長 | 166 bytes |
コンパイル時間 | 403 ms |
コンパイル使用メモリ | 82,516 KB |
実行使用メモリ | 62,380 KB |
最終ジャッジ日時 | 2025-01-02 15:20:58 |
合計ジャッジ時間 | 3,118 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 |
ソースコード
n = int(input()) a = list(map(int,input().split())) x = 0 for i in range(n): for j in range(i+1,n): if a[i]^a[j] > x: x = a[i]^a[j] print(x)