[luoguP1019] 单词接龙(DFS)


传送门

不知为什么,判断全部包含反而A不了,不判断反而A了,╮(╯▽╰)╭

代码

#include <cstdio> #include <iostream> #define max(x, y) ((x) > (y) ? (x) : (y)) using namespace std; int n, ans; int b[21]; string s[21], st; inline bool check(int i, string dra) inline int connect(int p, string dra) } inline void dfs(string dra) } int main() printf("%d\n", ans); return 0; }

  



上一篇:[luoguP1022] 计算器的改良(模拟)

下一篇:test


dfs
Copyright © 2002-2019 k262电脑网 www.k262.cn 皖ICP备2020016292号
温馨提示:部分文章图片数据来源与网络,仅供参考!版权归原作者所有,如有侵权请联系删除!QQ:251442993 热门搜索 网站地图