楼主: newkid

[每日一题] puzzleup 2021

[复制链接]
论坛徽章:
0
321#
发表于 2021-11-14 01:13 来自手机 | 只看该作者
Focus on 2/2 even case which could be 4a or 2a+2b(1a+1b on both sides).  Split one side only which is either 1a=1a or 1a<>1b.  If 1a=1a then group of 4 has 4 a and continue to compare split 4/4 of group 8 (skip for now).  If 1a<>1b then group of 4 has 2a+2b.  So all other groups only have a from which picking one and compare either side of split 1/1 and if equal then it is a otherwise it is b.  Do the same for the second 1/1 split to identify which one is b.  Done for group of 4 containing 2a+2b and split 2/2 even.  Now if split 2/2 of group 4 is uneven it implies the group of 4 has 1 b or 2 b (both b on one side).  Still focus on 2 b uneven case which implies split 1/1 of both sides must be true with 1a=1a and 1b=1b (for group of 4 having only 1 b it is 1a<>1b and 1a=1a).  Now picking any 2 from other groups which must 2 a and compare either side of 2/2 (uneven but both 1/1 splits are even).  If even that side has 2 a and if not that side has 2 b.  Done for the group of 4 in uneven case with 2 b on same side of split 2/2.  As said above group of 4 with 0 or 1 b are also identified but need further process to complete (skip for now to avoid confusion with cases of 2 b in group of 4.

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表