- 博客(1)
- 收藏
- 关注
原创 http://codeforces.com/gym/100803/attachments A题 Bit String Reordering
主要是练位运算和BFS 思路就是改变一次的数和原数有一条边,用宽搜从开始数到所求数即可。 所求数有两种形式选择DIST少的那一组 另外记得用十进制写,位运算计算。 CODE如下#include<iostream> #include<algorithm> #include<string> #include<set> #include<cmath> #include<cstdio> #inclu
2016-07-07 20:02:44
317
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人