摘要: //36分 阅读全文
posted @ 2017-02-22 22:29 神犇(shenben) 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 3123: [Sdoi2013]森林 Description Input 第一行包含一个正整数testcase,表示当前测试数据的测试点编号。保证1≤testcase≤20。 第二行包含三个整数N,M,T,分别表示节点数、初始边数、操作数。第三行包含N个非负整数表示 N个节点上的权值。 接下来 M行 阅读全文
posted @ 2017-02-22 22:27 神犇(shenben) 阅读(414) 评论(1) 推荐(1) 编辑
摘要: #include #include #include #include #include using namespace std; typedef long long ll; struct Thash{ static const int MOD=233333; static const int MAXN=1e6+5; int tot,head[MOD+100],n... 阅读全文
posted @ 2017-02-22 22:25 神犇(shenben) 阅读(344) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio> #include<cmath> #include<tr1/unordered_map> using namespace std; using namespace std::tr1; typedef long long ll; int T,K;ll mod; unor 阅读全文
posted @ 2017-02-22 17:19 神犇(shenben) 阅读(545) 评论(2) 推荐(0) 编辑