結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー roiti46roiti46
提出日時 2015-04-21 00:20:29
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 217 bytes
コンパイル時間 68 ms
コンパイル使用メモリ 6,732 KB
実行使用メモリ 10,472 KB
最終ジャッジ日時 2023-09-18 02:05:15
合計ジャッジ時間 7,329 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
10,472 KB
testcase_01 AC 60 ms
6,036 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(raw_input())
A = sorted(map(int, raw_input().split()), reverse = True)
ans = 0
for i in xrange(2**16, -1, -1):
    for a in A:
        if i ^ a < i:
            i ^= a
    if i == 0:
        ans += 1
print ans
0