結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー cielciel
提出日時 2015-04-17 15:17:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 642 ms / 5,000 ms
コード長 135 bytes
コンパイル時間 498 ms
コンパイル使用メモリ 87,008 KB
実行使用メモリ 77,092 KB
最終ジャッジ日時 2023-09-11 11:04:14
合計ジャッジ時間 6,869 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
76,536 KB
testcase_01 AC 80 ms
76,444 KB
testcase_02 AC 82 ms
76,568 KB
testcase_03 AC 83 ms
76,460 KB
testcase_04 AC 82 ms
76,368 KB
testcase_05 AC 83 ms
76,384 KB
testcase_06 AC 85 ms
76,248 KB
testcase_07 AC 586 ms
77,092 KB
testcase_08 AC 575 ms
76,860 KB
testcase_09 AC 419 ms
76,776 KB
testcase_10 AC 492 ms
76,780 KB
testcase_11 AC 617 ms
76,888 KB
testcase_12 AC 81 ms
76,364 KB
testcase_13 AC 78 ms
76,288 KB
testcase_14 AC 510 ms
76,856 KB
testcase_15 AC 642 ms
76,924 KB
testcase_16 AC 80 ms
76,576 KB
testcase_17 AC 202 ms
76,756 KB
testcase_18 AC 561 ms
76,760 KB
testcase_19 AC 139 ms
76,828 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python
M=32768
h=[1]+[0]*(M-1)
input()
a=map(int,input().split())
for e in a:
	for i in range(M): h[e^i]|=h[i]
print(sum(h))
0