#include #include #include #include using namespace std; typedef long long LL; struct Data { int id,g,res; } it[35],pre[35][5005]; inline bool cmp1(const Data &a,const Data &b) { return a.g>b.g; } inline bool cmp2(const Data &a,const Data &b) { return a.id