
搜索
Arizona_xinYuan
好好学习天天向上
展开
-
codeforces 550B Preparing Olympiad
刷题的路上 还差的很远呢。 一看就知道用DFS + 回溯 但就是想不出来 最后还是看了别人的代码才有思路的。 诶 忧郁。 不知道题目链接 是给新生做的训练里看到的(丢人!) #include #include #include using namespace std; int n, l, r, x; int num[15]; int temp[15原创 2016-11-30 21:43:05 · 394 阅读 · 0 评论 -
hdu 1459 BFS
一看题目就知道是用bfs 然而.... WA WA WA 勤能补拙。 寒假补解释 AC代码: #include #include using namespace std; struct node{ int asum, bsum, csum; int time; }; int a, b, c; int mr[101][101]; int bfs(){ mems原创 2016-12-01 19:12:09 · 397 阅读 · 0 评论