結果
問題 |
No.183 たのしい排他的論理和(EASY)
|
ユーザー |
![]() |
提出日時 | 2020-04-18 15:46:08 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 253 bytes |
コンパイル時間 | 288 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 249,768 KB |
最終ジャッジ日時 | 2024-10-03 23:49:15 |
合計ジャッジ時間 | 8,334 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 18 |
ソースコード
import sys input=lambda: sys.stdin.readline().rstrip() n=int(input()) A=[int(i) for i in input().split()] m=2**15 DP1=[0]*m DP1[0]=1 for i in range(n): DP2=[0]*m for j in range(m): DP2[j]=max(DP1[j],DP1[j^A[i]]) DP1=DP2 print(sum(DP1[n]))