結果
問題 | No.2061 XOR Sort |
ユーザー |
|
提出日時 | 2022-08-26 23:19:19 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 498 bytes |
コンパイル時間 | 293 ms |
コンパイル使用メモリ | 82,116 KB |
実行使用メモリ | 102,948 KB |
最終ジャッジ日時 | 2024-10-14 00:03:41 |
合計ジャッジ時間 | 5,677 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 WA * 25 |
ソースコード
import sys,random,bisectfrom collections import deque,defaultdict,Counterfrom heapq import heapify,heappop,heappushfrom itertools import cycle, permutationsfrom math import log,gcdinput = lambda :sys.stdin.readline().rstrip()mi = lambda :map(int,input().split())li = lambda :list(mi())N = int(input())A = li()res = 1for i in range(30):x,y = 0,0for a in A:if a>>i & 1:x += 1else:y += 1if x*y >= 1:res *= 2print(res)