USACO 2021 January Contest, Platinum Problem 1. Sum of Distances 铂金组T1 题意概述 给出K张图,设K元组,(1,1,1,1,……,1)出发,(a1,a2,a3,……,ak)与(b1,b2,b3,……,bk)有边当且仅当a1与b1,a2与b2,……,ak与bk均有边连接 求出发可到达的距离和 solution 对于多元组a1-a
B. Distances to Zero time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given the array of integer numbers a0, a