結果

問題 No.184 たのしい排他的論理和(HARD)
ユーザー pluto77pluto77
提出日時 2018-01-03 15:31:52
言語 Python2
(2.7.18)
結果
AC  
実行時間 1,601 ms / 5,000 ms
コード長 221 bytes
コンパイル時間 547 ms
コンパイル使用メモリ 6,612 KB
実行使用メモリ 16,060 KB
最終ジャッジ日時 2023-09-17 17:44:58
合計ジャッジ時間 28,369 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,900 KB
testcase_01 AC 11 ms
6,024 KB
testcase_02 AC 11 ms
6,016 KB
testcase_03 AC 12 ms
6,024 KB
testcase_04 AC 12 ms
5,952 KB
testcase_05 AC 12 ms
5,952 KB
testcase_06 AC 11 ms
5,812 KB
testcase_07 AC 11 ms
5,916 KB
testcase_08 AC 1,132 ms
13,192 KB
testcase_09 AC 241 ms
7,356 KB
testcase_10 AC 866 ms
11,424 KB
testcase_11 AC 619 ms
9,680 KB
testcase_12 AC 1,319 ms
14,400 KB
testcase_13 AC 1,426 ms
14,932 KB
testcase_14 AC 820 ms
10,948 KB
testcase_15 AC 1,549 ms
15,656 KB
testcase_16 AC 1,290 ms
14,116 KB
testcase_17 AC 1,391 ms
14,776 KB
testcase_18 AC 12 ms
5,904 KB
testcase_19 AC 12 ms
5,880 KB
testcase_20 AC 76 ms
7,360 KB
testcase_21 AC 1,601 ms
16,060 KB
testcase_22 AC 1,597 ms
15,920 KB
testcase_23 AC 12 ms
6,072 KB
testcase_24 AC 12 ms
5,904 KB
testcase_25 AC 12 ms
5,904 KB
testcase_26 AC 11 ms
5,808 KB
testcase_27 AC 11 ms
5,900 KB
testcase_28 AC 949 ms
11,828 KB
testcase_29 AC 1,327 ms
14,312 KB
testcase_30 AC 1,161 ms
13,396 KB
testcase_31 AC 976 ms
12,436 KB
testcase_32 AC 1,223 ms
14,052 KB
testcase_33 AC 1,549 ms
15,836 KB
testcase_34 AC 1,540 ms
15,648 KB
testcase_35 AC 1,586 ms
15,920 KB
testcase_36 AC 1,580 ms
16,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki_184

n=int(raw_input())
a=map(int,raw_input().split())
res=0
for i in xrange(n):
 if a[i]:
  res+=1
  x=0
  while (2**(x+1))<=a[i]:
   x+=1
  for y in xrange(i+1,n):
   if a[y] & (2**x):
    a[y]^=a[i]
print 2**res
0