HDU 5536 Chip Factory(字典树)

该问题描述了一个CPU芯片工厂的经理John如何计算每日生产的芯片的校验和。每个芯片有一个唯一的序列号,校验和是通过选取三个不同的芯片,计算它们序列号之和的异或值的最大值。输入包含芯片的数量和每个芯片的序列号,输出是计算得到的校验和。题目提示解决这类问题时要考虑异或运算的性质,并给出了一些样例输入和输出。
摘要由CSDN通过智能技术生成

Chip Factory

Time Limit: 18000/9000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others)
Total Submission(s): 5258    Accepted Submission(s): 2358


Problem Description

John is a manager of a CPU chip factory, the factory produces lots of chips everyday. To manage large amounts of products, every processor has a serial number. More specifically, the factory produces n chips today, the i-th chip produced this day has a serial number si.

At the end of the day, he packages all the chips produced this day, and send it to wholesalers. More specially, he writes a checksum number on the package, this checksum is defined as below:

maxi,j,k(si+sj)⊕sk


which

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值