結果
| 問題 | No.183 たのしい排他的論理和(EASY) |
| コンテスト | |
| ユーザー |
e-mon
|
| 提出日時 | 2015-04-16 23:34:59 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 283 bytes |
| 記録 | |
| コンパイル時間 | 340 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 33,940 KB |
| 最終ジャッジ日時 | 2026-03-25 22:52:36 |
| 合計ジャッジ時間 | 49,510 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 TLE * 7 |
ソースコード
#!/usr/bin/env python
# -*- coding: utf-8 -*-
N = int(input())
dp = dict()
A = list(map(int,input().split()))
dp[0] = True
for a in A:
tmp = dict()
for i,value in dp.items():
if i ^ a not in dp:
tmp[i^a] = True
dp.update(tmp)
print(len(dp.keys()))
e-mon