結果
| 問題 |
No.183 たのしい排他的論理和(EASY)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-04-17 00:13:38 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 259 bytes |
| コンパイル時間 | 165 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 22,552 KB |
| 最終ジャッジ日時 | 2024-07-04 15:16:40 |
| 合計ジャッジ時間 | 6,761 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 TLE * 1 -- * 12 |
ソースコード
def read_data():
N = int(input())
A = map(int, input().split())
return N, A
def solve(N, A):
pool = set([0])
for a in A:
for p in pool.copy():
pool.add(p ^ a)
return len(pool)
N, A = read_data()
print(solve(N, A))