結果
問題 |
No.183 たのしい排他的論理和(EASY)
|
ユーザー |
![]() |
提出日時 | 2022-05-23 23:45:33 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 227 bytes |
コンパイル時間 | 183 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 67,200 KB |
最終ジャッジ日時 | 2024-09-20 13:25:41 |
合計ジャッジ時間 | 2,350 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 18 |
ソースコード
n=int(input()) ns=list(map(int,input().split())) dp= [0]*((2<<14)+1) dp[0][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))