結果
問題 |
No.183 たのしい排他的論理和(EASY)
|
ユーザー |
![]() |
提出日時 | 2020-04-18 15:45:18 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 249 bytes |
コンパイル時間 | 134 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 18,084 KB |
最終ジャッジ日時 | 2024-10-03 23:48:49 |
合計ジャッジ時間 | 12,183 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 RE * 1 TLE * 1 -- * 11 |
ソースコード
import sys input=lambda: sys.stdin.readline().rstrip() n=int(input()) A=[int(i) for i in input().split()] m=2**14 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))