算法设计与分析编程题(Algorithm design and analysis programming).docVIP

  • 6
  • 0
  • 约8.72千字
  • 约 27页
  • 2017-10-07 发布于河南
  • 举报

算法设计与分析编程题(Algorithm design and analysis programming).doc

算法设计与分析编程题(Algorithm design and analysis programming)

算法设计与分析编程题(Algorithm design and analysis programming) 1, there are 10 boxes of products, 1000 cases per box, authentic, 100 grams per piece. There are several cases of defective products, each of which is 10 grams lighter than the genuine ones. I wonder if I can weigh it only once and find out which boxes are defective. Algorithm design: first, calculate the standard total weight, stored in the variable w1. The actual total weight of the input call is stored in the variable w2. It is then calculated to be much lighter than the standard weight and still stored in the variable w1. When w/10=2^k,

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档