摘要:
A 思路: 直接遍历字符串s,判断是否依次出现过dfs和DFS 时间复杂度: O(∑n) #include <bits/stdc++.h> using namespace std; int t,n; string a; int main() { cin>>t; while(t--) { int s1 阅读全文
摘要:
A 思路: 分解质因数当指数为1并且cnt==3时满足条件 时间复杂度: o(n) AC代码: #include <iostream> using namespace std; int l,r,cnt; bool k; int c[100]; void divide(int n) { int t=n 阅读全文