結果
問題 |
No.1876 Xor of Sum
|
ユーザー |
![]() |
提出日時 | 2022-03-16 17:26:24 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 195 bytes |
コンパイル時間 | 219 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 35,248 KB |
最終ジャッジ日時 | 2024-09-24 17:42:32 |
合計ジャッジ時間 | 3,821 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | TLE * 1 -- * 26 |
ソースコード
N = int(input()) A = list(map(int, input().split())) dp = {0, } for a in A: ndp = set() for i in dp: ndp ^= {i + a, } dp ^= ndp ans = 0 for i in dp: ans ^= i print(ans)