Problem I. TV ShowTime Limit: 20 Sec Memory Limit: 256 MB 题目连接 http://acm.hust.edu.cn/vjudge/contest/view.action?cid=88926#problem/I Description Charlie is going to take part in one famous TV Show. The show is a single player game. Initially the play…
bzoj2435,懒得复制,戳我戳我 Solution: 模拟即可(有点傻逼啊 Code: //It is coded by Ning_Mew on 5.13 #include<bits/stdc++.h> #define LL long long using namespace std; const int maxn=1e6+7; int n; LL ans=0; int siz[maxn]; int head[maxn],cnt=0; struct Edge{ int nxt,to,dis…