摘要: C 先预处理出三个数组能拼出的数,存放到 map 中。 查询的时候只需要看这个数是否出现在 map 里即可。 时间复杂度 \(O(n^3\log v+Q\log v)\),\(n\leq100\),\(\log v\) 是 map 的时间复杂度。 #include <bits/stdc++.h> u 阅读全文
posted @ 2024-03-11 19:33 Otue 阅读(4) 评论(0) 推荐(0) 编辑