摘要: http://codeforces.com/contest/1187/problem/E 分析:问得分最高,实际上就是问以哪个节点出发得到的分数最多,而呈现成代码形式就变成了换根,max其得分!!!而要利用之前算过的得分来求。 #include<bits/stdc++.h> using namesp 阅读全文
posted @ 2019-07-10 20:03 starve_to_death 阅读(272) 评论(0) 推荐(0) 编辑
摘要: Input The first line of input contains a single integer P, (1 ≤ P ≤ 1000), which is the number of data sets that follow. Each data set should be proce 阅读全文
posted @ 2019-07-10 16:05 starve_to_death 阅读(293) 评论(0) 推荐(0) 编辑