結果

問題 No.184 たのしい排他的論理和(HARD)
ユーザー tyawanmusityawanmusi
提出日時 2020-07-25 18:49:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,242 ms / 5,000 ms
コード長 159 bytes
コンパイル時間 803 ms
コンパイル使用メモリ 10,604 KB
実行使用メモリ 20,716 KB
最終ジャッジ日時 2023-09-17 18:27:59
合計ジャッジ時間 22,067 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,880 KB
testcase_01 AC 16 ms
7,644 KB
testcase_02 AC 16 ms
7,780 KB
testcase_03 AC 16 ms
7,760 KB
testcase_04 AC 16 ms
7,864 KB
testcase_05 AC 16 ms
7,840 KB
testcase_06 AC 16 ms
7,720 KB
testcase_07 AC 15 ms
7,772 KB
testcase_08 AC 884 ms
17,064 KB
testcase_09 AC 189 ms
9,868 KB
testcase_10 AC 664 ms
14,728 KB
testcase_11 AC 495 ms
12,976 KB
testcase_12 AC 1,002 ms
18,244 KB
testcase_13 AC 1,071 ms
19,140 KB
testcase_14 AC 627 ms
14,256 KB
testcase_15 AC 1,176 ms
20,432 KB
testcase_16 AC 964 ms
18,120 KB
testcase_17 AC 1,073 ms
18,948 KB
testcase_18 AC 16 ms
7,860 KB
testcase_19 AC 15 ms
7,780 KB
testcase_20 AC 76 ms
9,852 KB
testcase_21 AC 1,203 ms
20,716 KB
testcase_22 AC 1,214 ms
20,616 KB
testcase_23 AC 16 ms
7,756 KB
testcase_24 AC 15 ms
7,856 KB
testcase_25 AC 16 ms
7,696 KB
testcase_26 AC 15 ms
7,648 KB
testcase_27 AC 15 ms
7,716 KB
testcase_28 AC 723 ms
15,720 KB
testcase_29 AC 1,018 ms
18,824 KB
testcase_30 AC 877 ms
17,556 KB
testcase_31 AC 750 ms
16,348 KB
testcase_32 AC 951 ms
18,332 KB
testcase_33 AC 1,205 ms
20,232 KB
testcase_34 AC 1,154 ms
20,260 KB
testcase_35 AC 1,242 ms
20,576 KB
testcase_36 AC 1,194 ms
20,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=list(map(int,input().split()))
b=[0]
for i in a:
  x=i
  for j in b:
    if x^j<x:x^=j
  if x==0:continue
  b.append(x)
print(pow(2,len(b)-1))
0