Lang:G++
Edit12345678910111213141516171819202122232425262728293031//// main.cpp// 小P的强力值//// Created by Jiao Liu on 2/11/18.// Copyright © 2018 ChangHong. All rights reserved.//#include <iostream>#include <math.h>#include <vector>#include <algorithm>using namespace std;struct pet {int att;double percent;};int a[15],N,K;double b[15],sumb;int suma,sum;vector<pet> group;bool cmp(pet a, pet b){if (a.percent > b.percent) {return true;}if (a.percent == b.percent && a.att < b.att) {