<gh_stars>1-10
# -*- coding: utf-8 -*-
import operator
from functools import reduce


class Solution:
    def singleNumber(self, nums):
        import operator
        from functools import reduce
        return reduce(operator.xor, nums)

nums = [1,2,2,1,3]
print(Solution().singleNumber(nums))
# -*- coding: utf-8 -*-
import operator
from functools import reduce


class Solution:
    def singleNumber(self, nums):
        import operator
        from functools import reduce
        return reduce(operator.xor, nums)

nums = [1,2,2,1,3]
print(Solution().singleNumber(nums))
# -*- coding: utf-8 -*-