2019年5月12日

集训队日常训练20180513-DIV1

摘要: A.3132 给一个有向图,问能否从任意点出发都能进入一个环中。 深搜。 #include<bits/stdc++.h> using namespace std; const int N=55; vector<int>G[N]; bool vis[N]; int f; void dfs(int u) 阅读全文

posted @ 2019-05-12 11:10 大桃桃 阅读(319) 评论(0) 推荐(0)

集训队日常训练20180513-DIV2

摘要: A.2176 给一个字符串s,问距离为D的字母对是否存在相同。 模拟。 #include<bits/stdc++.h> using namespace std; int main() { string s,b; while(cin>>s) { if(s[0]=='*')break; int flag 阅读全文

posted @ 2019-05-12 09:57 大桃桃 阅读(264) 评论(0) 推荐(0)

导航