結果
問題 |
No.183 たのしい排他的論理和(EASY)
|
ユーザー |
👑 ![]() |
提出日時 | 2020-11-13 15:52:26 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 170 bytes |
コンパイル時間 | 367 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 69,120 KB |
最終ジャッジ日時 | 2024-07-22 20:03:28 |
合計ジャッジ時間 | 3,407 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 RE * 13 |
ソースコード
N=int(input()) A=list(map(int,input().split())) T=1<<(N-1).bit_length() DP=[0]*(2*T) DP[0]=1 for a in A: for i in range(2*T): DP[i^a]|=DP[i] print(sum(DP))