Fork me on github
摘要: 要求写一个小程序完成JSON查询的功能。 查询dfs就好了。 存储JSON对象用图(树)就好,把$$作为节点,然后又是字符串处理了。 其实就是个简化版的 "201809 3元素选择器" 。 虽然说80%的评测用例对象层数不超过2层,但是经测试,凉心出题人评测用例最多的层数是20层。 cpp incl 阅读全文
posted @ 2019-08-17 17:28 acboyty 阅读(231) 评论(0) 推荐(0) 编辑
摘要: dfs cpp include const int maxn = 1000; const int maxm = 10000; using namespace std; int to[maxm+10]; int nex[maxm+10]; int head[maxn+10], cnt = 0; int 阅读全文
posted @ 2019-08-17 14:58 acboyty 阅读(225) 评论(0) 推荐(0) 编辑