結果
問題 |
No.183 たのしい排他的論理和(EASY)
|
ユーザー |
![]() |
提出日時 | 2020-04-18 15:47:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 250 bytes |
コンパイル時間 | 400 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 16,816 KB |
最終ジャッジ日時 | 2024-10-03 23:49:43 |
合計ジャッジ時間 | 7,905 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 TLE * 1 -- * 12 |
ソースコード
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))