結果
問題 | No.1876 Xor of Sum |
ユーザー |
![]() |
提出日時 | 2023-11-07 23:42:02 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 720 ms / 2,000 ms |
コード長 | 223 bytes |
コンパイル時間 | 198 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 258,944 KB |
最終ジャッジ日時 | 2024-09-25 23:31:16 |
合計ジャッジ時間 | 10,815 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
N = int(input())A = list(map(int, input().split()))now = 1for a in A:now = (now << a) ^ nowans = 0now = bin(now)[2:]for i, n in enumerate(now[::-1]):if n == "1":ans ^= iprint(ans)