結果
| 問題 |
No.1674 Introduction to XOR
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-09-10 21:53:11 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 296 bytes |
| コンパイル時間 | 114 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-06-11 23:35:41 |
| 合計ジャッジ時間 | 1,534 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 12 |
ソースコード
N = int(input())
A = list(map(int,input().split()))
ans = [0]*73
m = 0
for i in range(N):
a = A[i]
for j in range(73):
if (a>>j)&1:
ans[j] = 1
m = max(m,j)
res = 0
for i in range(m+1):
res += (1-ans[i])*(2**i)
if res == 0:
res = 2**(m+1)
print(res)