結果
| 問題 | No.1876 Xor of Sum |
| ユーザー |
|
| 提出日時 | 2022-03-13 21:49:06 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 197 bytes |
| 記録 | |
| コンパイル時間 | 142 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 58,752 KB |
| 最終ジャッジ日時 | 2026-04-07 12:11:00 |
| 合計ジャッジ時間 | 3,715 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | TLE * 1 -- * 26 |
ソースコード
n = int(input())
A = list(map(int, input().split()))
bit = 1
for a in A:
bit ^= bit << a
i = 1
ans = 0
bit >>= 1
while bit:
if bit & 1:
ans ^= i
bit >>= 1
i += 1
print(ans)