結果
問題 | No.1876 Xor of Sum |
ユーザー |
![]() |
提出日時 | 2023-11-07 23:32:15 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 196 bytes |
コンパイル時間 | 260 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 81,152 KB |
最終ジャッジ日時 | 2024-09-25 23:30:50 |
合計ジャッジ時間 | 4,015 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | TLE * 1 -- * 26 |
ソースコード
N = int(input())A = list(map(int, input().split()))now = 1for a in A:now = (now << a) ^ nowans = 0for i in range(sum(A) + 1):if (now >> i) & 1:ans ^= iprint(ans)