結果
| 問題 |
No.1082 XORのXOR
|
| コンテスト | |
| ユーザー |
uni_python
|
| 提出日時 | 2020-06-19 21:42:01 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 2,000 ms |
| コード長 | 361 bytes |
| コンパイル時間 | 190 ms |
| コンパイル使用メモリ | 82,312 KB |
| 実行使用メモリ | 61,820 KB |
| 最終ジャッジ日時 | 2024-07-03 14:10:14 |
| 合計ジャッジ時間 | 2,599 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
ソースコード
import sys
input=sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
mod=10**9+7
def main():
N=I()
A=LI()
ans=0
for i in range(N):
for j in range(N):
temp=A[i]^A[j]
ans=max(ans,temp)
print(ans)
main()
uni_python