摘要: #include<bits/stdc++.h> using namespace std ; int n; struct City { int id; long long x,y; //坐标 long long cc,kk; //自建的花费,连线的花费 bool self;//是否建站 int fa;//连线的站 bool operator < (const City & a)const { ret 阅读全文
posted @ 2019-11-02 23:38 晴屿 阅读(151) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; typedef long long ll; char x[105]; char xx[105]; int main() { int t; cin>>t; while(t--) { int a,b,c,n; cin>>n>>a>>b>>c; for(int i=0; i<n; i++) xx[i]=0; sc 阅读全文
posted @ 2019-11-02 22:57 晴屿 阅读(294) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; char s[101010]; int dp[101010]; const int MOD = 1e9+7; int main() { dp[0] = 1; scanf("%s", s+1); int N = strlen(s+1); for(int i=1; i<=N; ++i) { if(s[i] == 阅读全文
posted @ 2019-11-02 22:41 晴屿 阅读(233) 评论(0) 推荐(0)