思路: 了解加权平均数 c o d e code code #include<iostream> #include<cstdio> #include<algorithm> #include<cmath> using namespace std; int n; struct node { int w, x, y; }a[100100]; bool cmp(node x, node y)