結果

問題 No.184 たのしい排他的論理和(HARD)
ユーザー rpy3cpprpy3cpp
提出日時 2015-04-17 16:09:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 980 ms / 5,000 ms
コード長 151 bytes
コンパイル時間 156 ms
コンパイル使用メモリ 10,664 KB
実行使用メモリ 20,780 KB
最終ジャッジ日時 2023-09-17 16:42:59
合計ジャッジ時間 17,681 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,828 KB
testcase_01 AC 16 ms
7,812 KB
testcase_02 AC 16 ms
7,932 KB
testcase_03 AC 16 ms
7,936 KB
testcase_04 AC 16 ms
7,824 KB
testcase_05 AC 16 ms
7,768 KB
testcase_06 AC 16 ms
7,764 KB
testcase_07 AC 16 ms
7,876 KB
testcase_08 AC 673 ms
17,096 KB
testcase_09 AC 143 ms
9,884 KB
testcase_10 AC 506 ms
14,868 KB
testcase_11 AC 360 ms
13,004 KB
testcase_12 AC 798 ms
18,396 KB
testcase_13 AC 866 ms
19,160 KB
testcase_14 AC 470 ms
14,352 KB
testcase_15 AC 936 ms
20,328 KB
testcase_16 AC 751 ms
18,312 KB
testcase_17 AC 836 ms
18,952 KB
testcase_18 AC 16 ms
7,756 KB
testcase_19 AC 16 ms
7,796 KB
testcase_20 AC 39 ms
9,912 KB
testcase_21 AC 971 ms
20,780 KB
testcase_22 AC 958 ms
20,688 KB
testcase_23 AC 16 ms
7,764 KB
testcase_24 AC 16 ms
7,792 KB
testcase_25 AC 16 ms
7,788 KB
testcase_26 AC 15 ms
7,716 KB
testcase_27 AC 16 ms
7,788 KB
testcase_28 AC 552 ms
15,780 KB
testcase_29 AC 784 ms
18,812 KB
testcase_30 AC 692 ms
17,440 KB
testcase_31 AC 565 ms
16,448 KB
testcase_32 AC 724 ms
18,348 KB
testcase_33 AC 931 ms
20,372 KB
testcase_34 AC 909 ms
20,256 KB
testcase_35 AC 952 ms
20,616 KB
testcase_36 AC 980 ms
20,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
r=0
while A:
 r+=1
 a=max(A)
 m=1<<(len(bin(a))-3)
 A=[b^a if b&m else b for b in A if b^a]
print(1<<r)
0