結果
問題 |
No.183 たのしい排他的論理和(EASY)
|
ユーザー |
![]() |
提出日時 | 2022-05-23 23:45:53 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 224 bytes |
コンパイル時間 | 242 ms |
コンパイル使用メモリ | 82,416 KB |
実行使用メモリ | 69,060 KB |
最終ジャッジ日時 | 2024-09-20 13:25:49 |
合計ジャッジ時間 | 1,972 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 18 |
ソースコード
n=int(input()) ns=list(map(int,input().split())) dp= [0]*((2<<14)+1) dp[0]=1 for i in range(n): for j in range((2<<14)+1): if dp[i][j] == 0: continue dp[j ^ ns[i]] = 1 print(sum(dp))