結果
問題 | No.2061 XOR Sort |
ユーザー | chineristAC |
提出日時 | 2022-08-26 23:19:19 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 498 bytes |
コンパイル時間 | 180 ms |
コンパイル使用メモリ | 82,172 KB |
実行使用メモリ | 102,932 KB |
最終ジャッジ日時 | 2024-04-22 01:27:52 |
合計ジャッジ時間 | 5,419 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 41 ms
56,108 KB |
testcase_01 | AC | 40 ms
56,088 KB |
testcase_02 | AC | 39 ms
56,496 KB |
testcase_03 | AC | 44 ms
63,340 KB |
testcase_04 | AC | 39 ms
56,604 KB |
testcase_05 | AC | 45 ms
63,312 KB |
testcase_06 | AC | 47 ms
61,368 KB |
testcase_07 | AC | 47 ms
61,692 KB |
testcase_08 | AC | 45 ms
57,288 KB |
testcase_09 | AC | 48 ms
62,564 KB |
testcase_10 | AC | 45 ms
56,176 KB |
testcase_11 | AC | 44 ms
55,948 KB |
testcase_12 | AC | 47 ms
61,400 KB |
testcase_13 | AC | 43 ms
56,276 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | AC | 77 ms
80,152 KB |
testcase_30 | AC | 42 ms
56,640 KB |
testcase_31 | AC | 52 ms
66,436 KB |
testcase_32 | AC | 40 ms
56,420 KB |
testcase_33 | AC | 41 ms
56,796 KB |
testcase_34 | WA | - |
testcase_35 | WA | - |
testcase_36 | WA | - |
testcase_37 | WA | - |
testcase_38 | WA | - |
testcase_39 | WA | - |
testcase_40 | WA | - |
testcase_41 | WA | - |
testcase_42 | WA | - |
testcase_43 | WA | - |
ソースコード
import sys,random,bisect from collections import deque,defaultdict,Counter from heapq import heapify,heappop,heappush from itertools import cycle, permutations from math import log,gcd input = lambda :sys.stdin.readline().rstrip() mi = lambda :map(int,input().split()) li = lambda :list(mi()) N = int(input()) A = li() res = 1 for i in range(30): x,y = 0,0 for a in A: if a>>i & 1: x += 1 else: y += 1 if x*y >= 1: res *= 2 print(res)