摘要:
#include<bits/stdc++.h> #define N 10010 using namespace std; int head[N],to[N],vis[N],net[N],cut; int num[N],f[N]; int vv[N]; queue<int>dl; double dis 阅读全文
摘要:
给定n个长度不超过50的由小写英文字母组成的单词,以及一篇长为m的文章。 请问,有多少个单词在文章中出现了。 #include<bits/stdc++.h> using namespace std; const int N = 10010, S = 55, M = 1000010; int n; i 阅读全文
摘要:
C国有 n 个大城市和 m 条道路,每条道路连接这 n 个城市中的某两个城市。 任意两个城市之间最多只有一条道路直接相连。 这 m 条道路中有一部分为单向通行的道路,一部分为双向通行的道路,双向通行的道路在统计条数时也计为1条。 C国幅员辽阔,各地的资源分布情况各不相同,这就导致了同一种商品在不同城 阅读全文