結果
| 問題 |
No.130 XOR Minimax
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-30 19:40:57 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 165 bytes |
| コンパイル時間 | 299 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 21,764 KB |
| 最終ジャッジ日時 | 2024-12-16 11:04:30 |
| 合計ジャッジ時間 | 5,506 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 2 WA * 19 |
ソースコード
N = int(input())
A = tuple(map(int, input().split()))
ans = 0
for i in range(17):
if len(set((a >> i) & 1 for a in A)) == 2:
ans += pow(2, i)
print(ans)