結果
問題 | No.183 たのしい排他的論理和(EASY) |
ユーザー | ああいい |
提出日時 | 2021-12-24 15:18:15 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 218 bytes |
コンパイル時間 | 73 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 16,512 KB |
最終ジャッジ日時 | 2024-09-19 13:45:13 |
合計ジャッジ時間 | 6,970 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 TLE * 1 |
ソースコード
N = int(input()) A = list(map(int,input().split())) dp = [0] * ((1 << 15) + 1) dp[0] = 1 dp[A[0]] = 1 for i in range(1,N): for j in range((1 << 15) + 1): if dp[j]: dp[j^A[i]] = 1 print(sum(dp))