結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー MitI_7MitI_7
提出日時 2015-12-19 11:16:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 175 bytes
コンパイル時間 138 ms
コンパイル使用メモリ 10,692 KB
実行使用メモリ 8,132 KB
最終ジャッジ日時 2023-10-14 14:16:53
合計ジャッジ時間 1,571 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,836 KB
testcase_01 AC 17 ms
7,832 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 16 ms
7,828 KB
testcase_06 WA -
testcase_07 AC 17 ms
8,068 KB
testcase_08 AC 18 ms
8,112 KB
testcase_09 AC 17 ms
8,132 KB
testcase_10 AC 16 ms
8,056 KB
testcase_11 AC 17 ms
8,056 KB
testcase_12 AC 17 ms
7,796 KB
testcase_13 AC 16 ms
7,800 KB
testcase_14 AC 17 ms
7,884 KB
testcase_15 AC 18 ms
8,088 KB
testcase_16 WA -
testcase_17 AC 17 ms
7,784 KB
testcase_18 AC 18 ms
8,004 KB
testcase_19 AC 16 ms
7,768 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    n = input()
    x = 0
    for a in map(int, input().split()):
        x |= a
    print(2 ** bin(x)[2:].count('1'))
    
if __name__ == '__main__':
    main()
0