結果
問題 |
No.183 たのしい排他的論理和(EASY)
|
ユーザー |
|
提出日時 | 2015-04-21 00:20:29 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 217 bytes |
コンパイル時間 | 41 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 13,888 KB |
最終ジャッジ日時 | 2024-07-04 18:57:51 |
合計ジャッジ時間 | 7,309 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | WA * 5 TLE * 1 -- * 12 |
ソースコード
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