数字操作
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
给你一个长度为 的非负整数数组 。
你可以选择一个非负整数 。
令 xor 。 xor 为异或运算,把两个操作数按二进制位运算,如果两个数二进制下第位相同,则运算结果的二进制下第位为0,否则为1。
问 的最小值是多少。
输入格式
第一行一个整数 。
第二行 个非负整数 。
输出格式
一行一个整数。
输入1
3
1 2 3
输出1
2
解释1
选择 , , 。
数据范围
中大计算机 1
- Status
- Done
- Rule
- IOI
- Problem
- 6
- Start at
- 2025-6-23 10:30
- End at
- 2025-6-23 12:30
- Duration
- 2 hour(s)
- Host
- Partic.
- 1