链接:http://agc001.contest.atcoder.jp/tasks/agc001_c
题解(官方):
We use the following well-known fact about trees.Let T be a tree, and let D be the diameter of the tree.
• If D is even, th...
传送门
A - A+...+B Problem
题意:n个数最大值a,最小值b,求和的可能数量。
#include<cstdio>
#include<algorithm>
using namespace std;
int read_p,read_ca;
inline int read(){
read_p=;re...
Atcoder CODE FESTIVAL 2016 Grand Final E - Water Distribution
题目链接:https://atcoder.jp/contests/cf16-exhibition-final/tasks/cf16_exhibition_final_e
洛谷链接:https://www.luogu.com.cn/problem/AT...