摘要: #include<bits/stdc++.h>using namespace std;const int inf=0x3f3f3f3f;struct node{ int v,z,d,next;//存可以连接的点,用next存邻接表}a[10010];struct road{ int u,cnt,di 阅读全文
posted @ 2018-08-04 20:53 sewage 阅读(138) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;int n,x;char s[10010];char a[31010];int val[100010];int ch[100010][30];int dp[100010];int main(){ while(~sc 阅读全文
posted @ 2018-08-04 08:59 sewage 阅读(148) 评论(0) 推荐(0) 编辑