bertown专题

codeforces 884C Bertown Subway

http://codeforces.com/problemset/problem/884/C 找环,再按每个环内元素的数量从大到小排序,把前2个大的求和,再将这个和与其他的数求平方和。 #include <bits/stdc++.h>using namespace std;int con=0;long long int ans[111111]; boo