会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
YovM
2020年3月31日
A - Prime Ring Problem (深度优先搜索dfs)
摘要: A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacen
阅读全文
posted @ 2020-03-31 23:15 YovM_21
阅读(205)
评论(0)
推荐(0)
编辑
深度优先搜索dfs
摘要: 题目大意: 你手中有编号1-9的九张扑克牌,然后将这9张扑克牌放到9个盒子里,并使得_ _ _+_ _ _=_ _ _成立; 其实就是判断下 a[1]*100+a[2]*10+a[3]+a[4]*100+a[5]*10+a[6]==a[7]*100+a[8]*10+a[9] 这个等式是否成立; 用于
阅读全文
posted @ 2020-03-31 22:48 YovM_21
阅读(203)
评论(0)
推荐(0)
编辑
导航
博客园
首页
新随笔
联系
订阅
管理
公告